Template:Cricketarchive/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Template:Cricketarchive 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.

Usage[edit]

Using "id" parameter:

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

Using "ref" parameter:

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

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Cricketarchive

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.

Template parameters

Parameter Description Type Status
id id

The "id" parameter should contain the ID number in the URL for the player's profile. Example: 1933 is the "id" in http://www.cricketarchive.com/Archive/Players/1/1933/1933.html.

Default
Example
empty
Auto value
empty
Number required
ref ref

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.cricketarchive.com/" and ".html". Example: Archive/Grounds/22/1547 is the "ref" portion of http://www.cricketarchive.com/Archive/Grounds/22/1547.html.

Default
Example
empty
Auto value
empty
String optional
name name

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}}
Example
empty
Auto value
empty
String optional
accessdate accessdate

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

Default
Example
empty
Auto value
empty
Date optional

Examples[edit]

Using "id" parameter[edit]

URL:

http://www.cricketarchive.com/Archive/Players/1/1933/1933.html

Usage:

{{Cricketarchive | id= 1933 | name= Sachin Tendulkar }}
Sachin Tendulkar at CricketArchive (subscription required)

Usage with accessdate parameter:

{{Cricketarchive | id= 1933 | name= Sachin Tendulkar | accessdate= 25 February 2017 }}
"Sachin Tendulkar". CricketArchive. Retrieved 25 February 2017. (subscription required)

Using "ref" parameter[edit]

URL:

http://www.cricketarchive.com/Archive/Grounds/22/1547.html

Usage:

{{Cricketarchive | ref= Archive/Grounds/22/1547 | name= Zafar Ali Stadium }}
Zafar Ali Stadium at CricketArchive (subscription required)

Usage with ".html" in ref parameter:

{{Cricketarchive | ref= Archive/Grounds/22/1547.html | name= Zafar Ali Stadium }}
Zafar Ali Stadium at CricketArchive (subscription required)

Usage with accessdate parameter:

{{Cricketarchive | ref= Archive/Grounds/22/1547 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}
"Zafar Ali Stadium". CricketArchive. Retrieved 25 February 2017. (subscription required)

Tracking category[edit]

See also[edit]