ଛାଞ୍ଚ:Cricinfo 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. It is intended for use in the external links section of an article.

For players, the "id" value should be added to the (P2697) 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.

Using "id" from Wikidata:

{{Cricinfo}}
{{Cricinfo | name= NAME }}
{{Cricinfo | name= NAME | accessdate= DATE }}

Using "id" parameter:

{{Cricinfo | id= ID }}
{{Cricinfo | id= ID | name= NAME }}
{{Cricinfo | id= ID | name= NAME | accessdate= DATE }}

Using "ref" parameter:

{{Cricinfo | ref= REF }}
{{Cricinfo | ref= REF | name= NAME }}
{{Cricinfo | ref= REF | name= NAME | accessdate= DATE }}

Using "id" from Wikidata

ସମ୍ପାଦନା

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

Usage:

{{Cricinfo}}
Sachin Tendulkar ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Usage with accessdate parameter:

{{Cricinfo | accessdate= 25 February 2017 }}
Sachin Tendulkar ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Using "id" parameter

ସମ୍ପାଦନା

URL:

http://www.espncricinfo.com/ci/content/player/35320.html

Usage:

{{Cricinfo | id= 35320 | name= Sachin Tendulkar }}
Sachin Tendulkar ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Usage with accessdate parameter:

{{Cricinfo | id= 35320 | name= Sachin Tendulkar | accessdate= 25 February 2017 }}
Sachin Tendulkar ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Using "ref" parameter

ସମ୍ପାଦନା

URL:

http://www.espncricinfo.com/pakistan/content/player/39343.html

Usage:

{{Cricinfo | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }}
Zafar Ali Stadium ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Usage with ".html" in ref parameter:

{{Cricinfo | ref= pakistan/content/ground/59011.html | name= Zafar Ali Stadium }}
Zafar Ali Stadium ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ

Usage with accessdate parameter:

{{Cricinfo | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}
Zafar Ali Stadium ଇ.ଏସ.ପି.ଏନ.କ୍ରିକଇନଫୋରୁ
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cricinfo in articles based on its TemplateData.

TemplateData for Cricinfo

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.

Template parameters

ParameterDescriptionTypeStatus
idid

The "id" parameter should contain the ID number in the URL for the player's profile. Example: 35320 is the "id" in http://www.espncricinfo.com/ci/content/player/35320.html. It is required when not using the "ref" parameter or the Wikidata property.

Default
Wikidata property P2697
Numberoptional
refref

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 "http://www.espncricinfo.com/" and ".html". Example: pakistan/content/ground/59011 is the "ref" portion of http://www.espncricinfo.com/pakistan/content/ground/59011.html. It is required when not using the "id" parameter or the Wikidata property.

Stringoptional
namename

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)".

Default
{{PAGENAMEBASE}}
Stringoptional
accessdateaccessdate

The "accessdate" parameter may be used to document the date when the link was accessed or retrieved. This parameter is optional.

Dateoptional
check-wikidatacheck-wikidata

Set "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
no
Stringoptional
  • Category:Cricinfo maintenance (୦) – handles multiple maintenance issues using category sort keys:
    • 1: pages using template with unnamed parameter 1
    • 2: pages using template with unnamed parameter 2
    • Diff: pages using template with "id" number different than number in Wikidata property
    • MissingID: pages using template with "id" or "ref" missing and Wikidata property does not exist

Other ESPN external link templates: