{{{name}}} at ProCyclingStats
This template uses Lua: |
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
editUnnamed 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
editUnnamed parameters
editUsage:
{{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:
Named parameters
editUsage:
{{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:
No parameters and Wikidata property not defined
editUsage:
{{ProCyclingStats race}}
Output:
- {{ProCyclingStats race}} template missing ID and not present in Wikidata.
Parameters
editThe 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
editTemplateData 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| String | optional |
Name | name 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)".
| String | optional |
Access date | accessdate | The "accessdate" parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.
| Date | optional |
Tracking categories
edit- template with ID
- Category:ProCyclingStats race template with ID different from Wikidata (9)
- Category:ProCyclingStats race template with ID not in Wikidata (0)
- template missing ID
See also
edit- ProCyclingStats templates
- Template:ProCyclingStats which uses Wikidata property ProCyclingStats cyclist ID (P1663)
- Template:ProCyclingStats team which uses Wikidata property ProCyclingStats team ID (P2328)
- Other cycling race templates
- Template:Cycling Archives race
- Template:Cycling Archives race report which uses Wikidata property Cycling Archives race ID (archived) (P2330)