close
Sayahna Sayahna
Search

Difference between revisions of "Template:Cricketarchive/doc"


(update documentation)
 
m (1 revision)
 
(No difference)

Latest revision as of 04:12, 22 March 2014

Template:Cricketarchive displays an external link to a CricketArchive web page for a cricket player.

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/doc",
   "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