Template:Yahoo! Cricket/doc

Links to cricket player profiles are created with the "id" parameter and links to other pages are created with the "ref" parameter. It is intended for use in the external links section of an article.

Usage
Using "id" parameter:

Using "ref" parameter:

TemplateData
{ "description": "This template displays an external link to a Yahoo! Cricket web page. Links to cricket player profiles are created with the \"id\" parameter and links to other pages are created with the \"ref\" parameter. It is intended for use in the external links section of an article.", "params": { "id": { "label": "id", "description": "The \"id\" parameter should contain the ID string in the URL for the player's profile. Example: sachin-tendulkar_2962 is the \"id\" in http://cricket.yahoo.com/player-profile/sachin-tendulkar_2962.", "type": "string", "default": "", "required": true }, "ref": { "label": "ref", "description": "The \"ref\" parameter is optional and only used when the player \"id\" is not specified. If used, it should contain the portion of the URL after \"http://cricket.yahoo.com/\". Example: ground-profile/zafar-ali-stadium_173 is the \"ref\" portion of http://cricket.yahoo.com/ground-profile/zafar-ali-stadium_173.", "type": "string", "default": "", "required": false }, "name": { "label": "name", "description": "The \"name\" parameter may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(cricketer)\".", "type": "string", "default": "", "required": false } }}

Using "id" parameter
URL:
 * https://cricket.yahoo.com/player-profile/

Usage and output:

Using "ref" parameter
URL:
 * https://cricket.yahoo.com/

Usage and output: