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:

Using "id" parameter
Usage and output:

URLs:
 * https://cricket.yahoo.com/player-profile/ (generated by template)
 * https://cricket.yahoo.net/players/sachin-tendulkar-2962-playerprofile (redirected by website)

Using "ref" parameter
Usage and output:

URLs:
 * https://cricket.yahoo.com/ (generated by template)
 * https://cricket.yahoo.net/teams/chennai-1108-teamprofile (redirected by website)

Missing "id" or "ref" parameters
Usage and output:

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 https://cricket.yahoo.com/player-profile/sachin-tendulkar_2962. It is required when not using the \"ref\" parameter.", "example": "|id=sachin-tendulkar_2962", "type": "string", "required": false },		"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 \"https://cricket.yahoo.com/\". Example: team-profile/Chennai_1108 is the \"ref\" portion of https://cricket.yahoo.com/team-profile/Chennai_1108. It is required when not using the \"id\" parameter.", "example": "|ref=team-profile/Chennai_1108", "type": "string", "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)\".", "default": "", "example": "|name=Sachin Tendulkar", "type": "string", "required": false } },	"paramOrder": [ "id", "ref", "name" ] }