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
Using "id" from Wikidata:

Using "id" parameter:

Using "ref" parameter:

Using "id" from Wikidata
The Wikidata examples are simulated, they only work as shown if used in the Sachin Tendulkar article.

Usage:

Usage with accessdate parameter:

Using "id" parameter
URL:
 * https://cricketarchive.com/Archive/Players/1/1933/.html

Usage:

Usage with accessdate parameter:

Using "ref" parameter
URL:
 * https://cricketarchive.com/.html

Usage:

Usage with ".html" in ref parameter:

Usage with accessdate parameter:

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\" parameter should contain the ID number in the URL for the player's profile. Example: 1933 is the \"id\" in https://cricketarchive.com/Archive/Players/1/1933/1933.html. It is required when not using the \"ref\" parameter or the Wikidata property.", "type": "number", "required": false, "default": "Wikidata property P2697" }, "ref": { "label": "ref", "description": "The \"ref\" parameter is optional and 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\". Example: Archive/Grounds/22/1547 is the \"ref\" portion of https://cricketarchive.com/Archive/Grounds/22/1547.html. It is required when not using the \"id\" parameter or the Wikidata property.", "type": "string", "required": false }, "name": { "label": "name", "description": "The \"name\" parameter may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(cricketer)\".", "type": "string", "required": false, "default": "" }, "accessdate": { "label": "accessdate", "description": "The \"accessdate\" parameter may be used to document the date when the link was accessed or retrieved. This parameter is optional.", "type": "date", "required": false } }}

Tracking category

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