Template:ProCyclingStats
{{{name}}} at ProCyclingStats
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
Template:ProCyclingStats displays an external link to a rider's page at the ProCyclingStats website (procyclingstats.com). It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{ProCyclingStats | ID }}
{{ProCyclingStats | ID | NAME }}
{{ProCyclingStats | ID | NAME | access-date=DATE }}
Named parameters:
{{ProCyclingStats | id=ID}}
{{ProCyclingStats | id=ID | name=NAME }}
{{ProCyclingStats | id=ID | name=NAME | access-date=DATE }}
Using Wikidata property (P1663):
{{ProCyclingStats}}
{{ProCyclingStats | name=NAME }}
{{ProCyclingStats | name=NAME | access-date=DATE }}
Examples
Unnamed parameters
Usage:
* {{ProCyclingStats | 140846 | Fabian Cancellara }}
* {{ProCyclingStats | fabian-cancellara | Fabian Cancellara }}
Output:
- Fabian Cancellara at ProCyclingStats
- Fabian Cancellara at ProCyclingStats
Current URLs:
- https://www.procyclingstats.com/rider/140846
- https://www.procyclingstats.com/rider/fabian-cancellara
- https://www.procyclingstats.com/rider.php?id=140846
- https://www.procyclingstats.com/rider.php?id=fabian-cancellara
Former URLs:
- https://www.procyclingstats.com/rider/Fabian_Cancellara (archive)
- https://www.procyclingstats.com/rider.php?id=Fabian_Cancellara (archive)
Named parameters
Usage:
* {{ProCyclingStats |id= 140857 |name= Ellen van Dijk |access-date= 29 June 2015 }}
* {{ProCyclingStats |id= ellen-van-dijk |name= Ellen van Dijk |access-date= 29 June 2015 }}
Output:
- Ellen van Dijk at ProCyclingStats. Retrieved 29 June 2015.
- Ellen van Dijk at ProCyclingStats. Retrieved 29 June 2015.
Current URLs:
- https://www.procyclingstats.com/rider/140857
- https://www.procyclingstats.com/rider/ellen-van-dijk
- https://www.procyclingstats.com/rider.php?id=140857
- https://www.procyclingstats.com/rider.php?id=ellen-van-dijk
Former URLs:
- https://www.procyclingstats.com/rider/Ellen_van_Dijk (archive)
- https://www.procyclingstats.com/rider.php?id=Ellen_van_Dijk (archive)
No parameters and Wikidata property not defined
Usage:
* {{ProCyclingStats}}
Output:
- ProCyclingStats at ProCyclingStats
Parameters
The id
parameter (or unnamed parameter 1
) should contain the ID portion the URL for the rider's page at the ProCyclingStats web site. Examples: 140857 is the ID portion of https://www.procyclingstats.com/rider/140857 or https://www.procyclingstats.com/rider.php?id=140857; ellen-van-dijk is the ID portion of https://www.procyclingstats.com/rider/ellen-van-dijk or https://www.procyclingstats.com/rider.php?id=ellen-van-dijk. This parameter is optional if Wikidata property P1663 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 rider. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".
The access-date
parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.
TemplateData
TemplateData for ProCyclingStats
<templatedata> {
"description": "This template displays an external link to a rider's page at the ProCyclingStats website (procyclingstats.com). It is intended for use in the external links section of an article.", "params": { "id": { "label": "ID", "aliases": ["1"], "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Examples: 140857 is the ID portion of https://www.procyclingstats.com/rider/140857 or https://www.procyclingstats.com/rider.php?id=140857; ellen-van-dijk is the ID portion of https://www.procyclingstats.com/rider/ellen-van-dijk or https://www.procyclingstats.com/rider.php?id=ellen-van-dijk. This parameter is optional if Wikidata property P1663 exists, but required if not.", "type": "string", "default": "Wikidata property P1663", "required": false }, "name": { "label": "Name", "aliases": ["2"], "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the rider. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(cyclist)\".", "type": "string", "default": "ProCyclingStats", "required": false }, "access-date": { "label": "Access date", "aliases": ["accessdate"], "description": "The \"access-date\" parameter may be used to specify the date when the ProCyclingStats profile was last accessed. This parameter is optional.", "type": "date", "default": "", "required": false } }, "paramOrder": [ "id", "name", "access-date" ]
} </templatedata>
Tracking categories
- template with ID
- Category:ProCyclingStats template with ID different from Wikidata (0)
- Category:ProCyclingStats template with ID not in Wikidata (0)
- Category:ProCyclingStats template using ID not matching pattern (0)
- template missing ID
See also
- ProCyclingStats external link templates and Wikidata properties
- Template:ProCyclingStats team which uses Wikidata property (P2328)
- Template:ProCyclingStats race which uses Wikidata property (P2327)
- Cycling Archives external link templates and Wikidata properties
- Template:Cycling Archives which uses Wikidata property (P1409)
- Template:Cycling Archives race
- Template:Cycling Archives race report which uses Wikidata property (P2330)
- Wikidata property (P2331)
- CQ Ranking external link templates and Wikidata properties
- Template:CQ Ranking which uses Wikidata properties (P1541) and (P2709)
- Wikidata properties (P2648) and (P2708)
- Wikidata property (P2649)
- CycleBase external link templates and Wikidata properties
- Template:CycleBase which uses Wikidata property (P4508)
External links
The above documentation is transcluded from Template:ProCyclingStats/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |