Template:Cricinfo/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. Discrepancies between a specified "id" parameter and the Wikidata property are reported at Category:Cricinfo maintenance.

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
 * OOjs UI icon edit-ltr-progressive.svg
 * OOjs UI icon edit-ltr-progressive.svg


 * Usage with access-date parameter

Cricketer page using "id" parameter

 * URL
 * https://www.espncricinfo.com/ci/content/player/35320.html
 * https://www.espncricinfo.com/cricketers/sachin-tendulkar-35320


 * Usage


 * Usage with access-date parameter

Other pages using "ref" parameter

 * URL
 * https://www.espncricinfo.com/pakistan/content/ground/59011.html


 * Usage


 * Usage with ".html" in ref parameter


 * Usage with access-date parameter

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

 * Usage

TemplateData
{	"description": "This template displays an external link to an ESPNcricinfo web page. Links to cricket player profiles are created with the \"id\" parameter and links to other pages are created with the \"ref\" parameter. If \"id\" and \"ref\" parameters are omitted, the value stored in Wikidata is used. 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 35320 in https://www.espncricinfo.com/ci/content/player/35320.html or https://www.espncricinfo.com/cricketers/sachin-tendulkar-35320. It is required when not using the \"ref\" parameter or the Wikidata property.", "default": "Wikidata property P2697", "example": "|id=35320", "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://www.espncricinfo.com/\" and \".html\" such as pakistan/content/ground/59011 in https://www.espncricinfo.com/pakistan/content/ground/59011.html. It is required when not using the \"id\" parameter or the Wikidata property.", "example": "|ref=pakistan/content/ground/59011", "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 },		"access-date": { "label": "access-date", "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\". ESPNcricinfo. Retrieved 25 February 2017.", "example": "|access-date=25 February 2017", "type": "date", "required": false },		"check-wikidata": { "label": "check-wikidata", "description": "Include \"check-wikidata=no\" to prevent the template comparing the provided id or ref value against the value from wikidata. Use mainly when this template is used on list, place or other people's articles.", "example": "|check-wikidata=no", "type": "string", "required": false } },	"paramOrder": [ "id", "ref", "name", "access-date", "check-wikidata" ] }

Tracking category

 * – handles multiple maintenance issues using category sort keys:
 * : pages using template with unnamed parameter 1
 * : pages using template with unnamed parameter 2
 * : pages using template with "id" number different than number in Wikidata property
 * : pages using template with "id" or "ref" missing and Wikidata property does not exist