Template:ProCyclingStats team/doc
| This is a documentation subpage for Template:ProCyclingStats team. It may contain usage information, categories and other content that is not part of the original template page. |
| File:Lua-Logo.svg | This template uses Lua: |
Template:ProCyclingStats team displays an external link to a cycling team's page at the ProCyclingStats web site (procyclingstats.com). It is intended for use in the external links section of an article.
Usage
[edit source]Omit the ID to use the Wikidata property.
Omit the NAME to use Wikipedia article name as link text.
{{ProCyclingStats team | ID | NAME }}
{{ProCyclingStats team | ID | NAME | accessdate= DATE }}
{{ProCyclingStats team | id= ID | name= NAME }}
{{ProCyclingStats team | id= ID | name= NAME | accessdate= DATE }}
Examples
[edit source]Unnamed parameters
[edit source]- Usage
{{ProCyclingStats team | ag2r-la-mondiale-2015 | Ag2r-La Mondiale (2015) }}{{ProCyclingStats team |1= 1060&season=2015 |2= Ag2r-La Mondiale (2015) }}
- Output
- Ag2r-La Mondiale (2015) at ProCyclingStats
- Ag2r-La Mondiale (2015) at ProCyclingStats
- Current URLs
- https://www.procyclingstats.com/team/ag2r-la-mondiale-2015
- https://www.procyclingstats.com/team/1060&season=2015
- https://www.procyclingstats.com/team.php?id=ag2r-la-mondiale-2015
- https://www.procyclingstats.com/team.php?id=1060&season=2015
Named parameters
[edit source]- Usage
{{ProCyclingStats team |id= topsport-vlaanderen-baloise-2014 |name= Topsport Vlaanderen-Baloise (2014) |accessdate= 29 June 2015 }}{{ProCyclingStats team |id= 1453&season=2014 |name= Topsport Vlaanderen-Baloise (2014) |accessdate= 29 June 2015 }}
- Output
- Topsport Vlaanderen-Baloise (2014) at ProCyclingStats. Retrieved 29 June 2015.
- Topsport Vlaanderen-Baloise (2014) at ProCyclingStats. Retrieved 29 June 2015.
- Current URL
- https://www.procyclingstats.com/team/topsport-vlaanderen-baloise-2014
- https://www.procyclingstats.com/team/1453&season=2014
- https://www.procyclingstats.com/team.php?id=topsport-vlaanderen-baloise-2014
- https://www.procyclingstats.com/team.php?id=1453&season=2014
No parameters and Wikidata property not defined
[edit source]- Usage
{{ProCyclingStats team}}- Output
- ProCyclingStats team/doc at ProCyclingStatsLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Parameters
[edit source]The id parameter (or unnamed parameter 1) should contain the ID portion the URL for the cycling team's page at the ProCyclingStats web site. Examples: ag2r-la-mondiale-2015 is the ID portion of https://www.procyclingstats.com/team/ag2r-la-mondiale-2015 and 1060&season=2015 is the ID portion of https://www.procyclingstats.com/team/1060&season=2015. This parameter is optional if Wikidata property P2328 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 team. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cycling team)".
The accessdate parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.
TemplateData
[edit source]TemplateData for ProCyclingStats team
This template displays an external link to a cycling team'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 portion of the URL. Examples: ag2r-la-mondiale-2015 is the ID portion of https://www.procyclingstats.com/team/ag2r-la-mondiale-2015 and 1060&season=2015 is the ID portion of https://www.procyclingstats.com/team/1060&season=2015. This parameter is optional if Wikidata property P2328 exists, but required if not.
| String | optional |
| Name | name 2 | The link text, which should be the name of the team.This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cycling team)".
| String | optional |
| Access Date | accessdate | The date when the ProCyclingStats profile was last accessed. This parameter is optional.
| Date | optional |
Tracking categories
[edit source]- template with ID
- Category:ProCyclingStats team template with ID different from Wikidata (35)
- Category:ProCyclingStats team template with ID not in Wikidata (24)
- template missing ID
See also
[edit source]- Template:ProCyclingStats which uses Wikidata property (P1663)
- Template:ProCyclingStats race which uses Wikidata property (P2327)