Template:Cricinfo
Player profile: {{{name}}} from ESPNcricinfo
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", "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
The above documentation is transcluded from Template:Cricinfo/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. |