Template:Cricketarchive/doc

Links to cricket player profiles are created with the "id" parameter and links to other pages are created with the "ref" parameter. It is intended for use in the external links section of an article.

For players, the "id" value should be added to the property in Wikidata. Then, if the "id" or "ref" parameters are not specified, the template will retrieve the id from Wikidata.

Usage

 * Cricketer page using ID from Wikidata


 * Cricketer page using "id" parameter


 * Other pages using "ref" parameter

Cricketer page using ID from Wikidata
The Wikidata examples are simulated; they only work as shown if used in the article for Sachin Tendulkar.


 * Usage
 * Sachin Tendulkar at CricketArchive OOjs UI icon edit-ltr-progressive.svg
 * Sachin Tendulkar at CricketArchive OOjs UI icon edit-ltr-progressive.svg


 * Usage with archive parameter
 * Sachin Tendulkar at CricketArchive OOjs UI icon edit-ltr-progressive.svg  (archive)
 * Sachin Tendulkar at CricketArchive OOjs UI icon edit-ltr-progressive.svg  (archive)


 * Usage with accessdate parameter

Cricketer page using "id" parameter

 * URL
 * https://cricketarchive.com/Archive/Players/1/1933/1933.html


 * Usage


 * Usage with archive parameter


 * Usage with accessdate parameter

Other pages using "ref" parameter

 * URL
 * https://cricketarchive.com/Archive/Grounds/22/1547.html


 * Usage


 * Usage with ".html" in ref parameter


 * Usage with archive parameter


 * Usage with accessdate parameter

Missing "id" or "ref" parameters and no ID in Wikidata

 * Usage

TemplateData
{	"description": "This template displays an external link to a CricketArchive web page. Links to cricket player profiles are created with the \"id\" parameter and links to other pages are created with the \"ref\" parameter. It is intended for use in the external links section of an article.", "params": { "id": { "label": "id", "description": "The ID number in the URL for the player's profile, such as 1933 in https://cricketarchive.com/Archive/Players/1/1933/1933.html. It is required when not using the \"ref\" parameter or the Wikidata property.", "default": "Wikidata property P2698", "example": "|id=1933", "type": "number", "required": false },		"ref": { "label": "ref", "description": "Only used when the player \"id\" is not specified. If used, it should contain the portion of the URL between \"https://cricketarchive.com/\" and \".html\" such as Archive/Grounds/22/1547 in https://cricketarchive.com/Archive/Grounds/22/1547.html. It is required when not using the \"id\" parameter or the Wikidata property.", "example": "|ref=Archive/Grounds/22/1547", "type": "string", "required": false },		"name": { "label": "name", "description": "The link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(cricketer)\".", "default": "", "example": "|name=Sachin Tendulkar", "type": "string", "required": false },		"archive": { "label": "archive", "description": "Optional parameter which may be used to display a link to archive of the page. The value of this parameter should be a number representing the date/time in an Internet Archive URL, such as 20170221000549 in https://web.archive.org/web/20170221000549/https://cricketarchive.com/Archive/Players/1/1933/1933.html.", "example": "|archive=20170221000549", "type": "number", "required": false },		"accessdate": { "label": "accessdate", "description": "Optional parameter which may be used to document the date when the link was accessed or retrieved. It also changes the output to a citation format, such as \"Name\". CricketArchive. Retrieved 25 February 2017.", "example": "|accessdate=25 February 2017", "type": "date", "required": false } },	"paramOrder": [ "id", "ref", "name", "archive", "accessdate" ] }

Tracking category

 * – handles multiple maintenance issues using category sort keys:
 * : pages using template with unnamed parameter 1
 * : pages using template with unnamed parameter 2