Difference between revisions of "Template:Cricketarchive"
(update formatting) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:07, 22 March 2014
Player profile: {{{name}}} from CricketArchive
Template:Cricketarchive displays an external link to a CricketArchive web page for a cricket player.
Contents
Usage
Using "id" parameter
{{Cricketarchive|id=ID}}
{{Cricketarchive|id=ID|name=NAME}}
Using "ref" parameter
{{Cricketarchive|ref=REF}}
{{Cricketarchive|ref=REF|name=NAME}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Cricketarchive
<templatedata>{ "description": "This template displays an external link to a CricketArchive web page for a cricket player.", "params": {
"id": { "label": "ID", "description": "ID number in URL of a player's CricketArchive web page. Example: 41464 is the ID number in http://www.cricketarchive.com/Archive/Players/41/41464/41464.html", "type": "number", "default": "", "required": true }, "ref": { "label": "REF", "description": "Portion of URL specific to a player's CricketArchive web page (everything between http://www.cricketarchive.com/ and .html). Not required if ID is specified. Examples: Archive/Players/41/41464/41464 or PCA/Players/1/1407/1407", "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": "Cricketarchive", "required": false }
}}</templatedata>
Examples
Using "id" parameter
Usage:
{{Cricketarchive |id= 41464 |name= Abdul Aziz }}
Output:
URL:
Using "ref" parameter
Usage:
{{Cricketarchive |ref= Archive/Players/41/41464/41464 |name= Abdul Aziz }}
Output:
URL:
See also
{{Cricinfo}}
, which uses a similar format{{Yahoo! Cricket}}
, which uses a similar format
The above documentation is transcluded from Template:Cricketarchive/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. |