Template:Cricinfo/doc
| 40px | This is a documentation subpage for Template:Cricinfo. It contains usage information, categories and other content that is not part of the original template page. |
Template:Cricinfo displays an external link to an ESPN Cricinfo web page for a cricket player.
Contents
Usage
Using "id" parameter
{{Cricinfo|id=ID}}{{Cricinfo|id=ID|name=NAME}}
Using "ref" parameter
{{Cricinfo|ref=REF}}{{Cricinfo|ref=REF|name=NAME}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Cricinfo
<templatedata>{ "description": "This template displays an external link to an ESPN Cricinfo web page for a cricket player.", "params": {
"id": {
"label": "ID",
"description": "ID number in URL of a player's ESPN Cricinfo web page. Example: 39343 is the ID portion of http://www.espncricinfo.com/ci/content/player/39343.html",
"type": "number",
"default": "",
"required": true
},
"ref": {
"label": "REF",
"description": "Portion of URL specific to a player's ESPN Cricinfo web page (everything between http://www.espncricinfo.com/ and .html). Not required if ID is specified. Examples: ci/content/player/39343 OR pakistan/content/player/39343",
"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": "Cricinfo/doc",
"required": false
}
}}</templatedata>
Examples
Using "id" parameter
Usage:
{{Cricinfo |id= 39343 |name= Abdul Aziz }}
Output:
URL:
Using "ref" parameter
Usage:
{{Cricinfo |ref= pakistan/content/player/39343 |name= Abdul Aziz }}
Output:
URL:
See also
{{Cricketarchive}}, which uses a similar format{{Yahoo! Cricket}}, which uses a similar format