Template:Yahoo! Cricket/doc
This is a documentation subpage for Template:Yahoo! Cricket. It may contain usage information, categories and other content that is not part of the original template page. |
Template:Yahoo! Cricket 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.
Usage
[edit]- Cricketer page using "id" parameter
{{Yahoo! Cricket | id= ID }}
{{Yahoo! Cricket | id= ID | name= NAME }}
- Other pages using "ref" parameter
{{Yahoo! Cricket | ref= REF }}
{{Yahoo! Cricket | ref= REF | name= NAME }}
Examples
[edit]Using "id" parameter
[edit]- Usage and output
* {{Yahoo! Cricket | id= sachin-tendulkar_2962 | name= Sachin Tendulkar }}
- URLs
- https://cricket.yahoo.com/player-profile/sachin-tendulkar_2962 (generated by template)
- https://cricket.yahoo.net/players/sachin-tendulkar-2962-playerprofile (redirected by website)
Using "ref" parameter
[edit]- Usage and output
* {{Yahoo! Cricket |ref= team-profile/Chennai_1108 |name= Chennai cricket team }}
- URLs
- https://cricket.yahoo.com/team-profile/Chennai_1108 (generated by template)
- https://cricket.yahoo.net/teams/chennai-1108-teamprofile (redirected by website)
Missing "id" or "ref" parameters
[edit]- Usage and output
* {{Yahoo! Cricket}}
- {{Yahoo! Cricket}} template missing "id" or "ref" parameters.
TemplateData
[edit]TemplateData for Yahoo! Cricket
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id | The ID string in the URL for the player's profile, such as sachin-tendulkar_2962 in https://cricket.yahoo.com/player-profile/sachin-tendulkar_2962. It is required when not using the "ref" parameter.
| String | optional |
Ref | ref | 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.
| String | optional |
Name | name | The link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cricketer)".
| String | optional |
Tracking category
[edit]See also
[edit]{{Cricinfo}}
, which uses a similar format{{Cricketarchive}}
, which uses a similar format