Jump to content

Template:ProCyclingStats race/doc

From Wikipedia, the free encyclopedia

Template:ProCyclingStats race displays an external link to a cycling race's page at the ProCyclingStats web site (procyclingstats.com). It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{ProCyclingStats race | ID }}
{{ProCyclingStats race | ID | NAME }}
{{ProCyclingStats race | ID | NAME | accessdate= DATE }}

Named parameters:

{{ProCyclingStats race | id= ID }}
{{ProCyclingStats race | id= ID | name= NAME }}
{{ProCyclingStats race | id= ID | accessdate= DATE }}
{{ProCyclingStats race | id= ID | name= NAME | accessdate= DATE }}

Using Wikidata property ProCyclingStats race ID (P2327):

{{ProCyclingStats race}}
{{ProCyclingStats race | name= NAME }}
{{ProCyclingStats race | accessdate= DATE }}
{{ProCyclingStats race | name= NAME | accessdate= DATE }}

Examples

[edit]

Unnamed parameters

[edit]

Usage:

{{ProCyclingStats race | 149964 | 2015 Tour de France }}
{{ProCyclingStats race | tour-de-france/2015 | 2015 Tour de France }}

Output:

2015 Tour de France at ProCyclingStats
2015 Tour de France at ProCyclingStats

Current URLs:

https://www.procyclingstats.com/race.php?id=149964
https://www.procyclingstats.com/race/tour-de-france/2015

Former URL:

https://www.procyclingstats.com/race/Tour_de_France_2015

Named parameters

[edit]

Usage:

{{ProCyclingStats race | id= 149877 | name= 2015 E3 Harelbeke | accessdate= 29 June 2015 }}
{{ProCyclingStats race | id= e3-harelbeke/2015 | name= 2015 E3 Harelbeke | accessdate= 29 June 2015 }}

Output:

2015 E3 Harelbeke at ProCyclingStats. Retrieved 29 June 2015.
2015 E3 Harelbeke at ProCyclingStats. Retrieved 29 June 2015.

Current URLs:

https://www.procyclingstats.com/race.php?id=149877
https://www.procyclingstats.com/race/e3-harelbeke/2015

Former URL:

https://www.procyclingstats.com/race/E3_Harelbeke_2015

No parameters and Wikidata property not defined

[edit]

Usage:

{{ProCyclingStats race}}

Output:

{{ProCyclingStats race}} template missing ID and not present in Wikidata.

Parameters

[edit]

The id parameter (or unnamed parameter 1) should contain the ID portion the URL for the cycling race's page at the ProCyclingStats web site. Examples: 149964 is the ID portion of https://www.procyclingstats.com/race.php?id=149964 and tour-de-france/2015 is the ID portion of https://www.procyclingstats.com/race/tour-de-france/2015. This parameter is optional if Wikidata property P2327 exists, but required if not.

The name parameter (or unnamed parameter 2) may be used to specify the link text, which should be the name of the race. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cycling race)".

The accessdate parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ProCyclingStats race in articles based on its TemplateData.

TemplateData for ProCyclingStats race

This template displays an external link to a cycling race's page at the ProCyclingStats web site (procyclingstats.com). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Examples: 149964 is the ID portion of https://www.procyclingstats.com/race.php?id=149964 and tour-de-france/2015 is the ID portion of https://www.procyclingstats.com/race/tour-de-france/2015. This parameter is optional if Wikidata property P2327 exists, but required if not.

Default
Wikidata property P2327
Stringoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the race. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cycling race)".

Default
{{PAGENAMEBASE}}
Stringoptional
Access dateaccessdate

The "accessdate" parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.

Default
Dateoptional

Tracking categories

[edit]
template with ID
template missing ID

See also

[edit]
ProCyclingStats templates
Other cycling race templates