Difference between revisions of "Template:Yahoo! Cricket"
(add "id" parameter) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:07, 22 March 2014
Player profile: {{{name}}} from Yahoo! Cricket
Template:Yahoo! Cricket displays an external link to a Yahoo! Cricket web page for a cricket player.
Contents
Usage
Using "id" parameter
{{Yahoo! Cricket|id=ID}}
{{Yahoo! Cricket|id=ID|name=NAME}}
Using "ref" parameter
{{Yahoo! Cricket|ref=REF}}
{{Yahoo! Cricket|ref=REF|name=NAME}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Yahoo! Cricket
<templatedata>{ "description": "This template displays an external link to a Yahoo! Cricket web page for a cricket player.", "params": {
"id": { "label": "ID", "description": "ID number in URL of a player's Yahoo! Cricket web page. Example: 2962 is the ID number in http://cricket.yahoo.com/cricket/profile/player-profile?pid=2962 ", "type": "number", "default": "", "required": true }, "ref": { "label": "REF", "description": "Portion of URL specific to a player's Yahoo! Cricket web page (currently everything after http://cricket.yahoo.com/). Not required if ID is specified. Examples: player-profile/Sachin-Tendulkar_2962 OR cricket/profile/player-profile?pid=2962", "type": "string", "default": "", "required": false }, "name": { "label": "NAME", "description": "Name of cricket player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (cricketer).", "type": "string", "default": "Yahoo! Cricket", "required": false }
}}</templatedata>
Examples
Using "id" parameter
URL:
Usage:
{{Yahoo! Cricket |id= 2962 |name= Sachin Tendulkar }}
Output:
Using "ref" parameter
URL:
Usage:
{{Yahoo! Cricket |ref= player-profile/Sachin-Tendulkar_2962 |name= Sachin Tendulkar }}
Output:
See also
{{Cricinfo}}
, which uses a similar format{{Cricketarchive}}
, which uses a similar format
The above documentation is transcluded from Template:Yahoo! Cricket/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |