Template:Cycling Archives/doc
| This is a documentation subpage for Template:Cycling Archives. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
Template:Cycling Archives displays an external link to a cyclist's page at the Cycling Archives web site (www.CyclingArchives.com). It is intended for use in the External links section of an article.
Contents
Usage
Unnamed parameters:
{{Cycling Archives|ID}}{{Cycling Archives|ID|NAME}}{{Cycling Archives|ID|NAME|accessdate=DATE}}
Named parameters:
{{Cycling Archives|id=ID}}{{Cycling Archives|id=ID|name=NAME}}{{Cycling Archives|id=ID|name=NAME|accessdate=DATE}}
Using Wikidata property P1409:
{{Cycling Archives}}{{Cycling Archives|name=NAME}}{{Cycling Archives|name=NAME|accessdate=DATE}}
Parameters
The id parameter (or unnamed parameter 1) should contain the ID portion the URL for the cyclist's page at the Cycling Archives web site. Examples: 5689 is the ID portion of http://www.cyclingarchives.com/coureurfiche.php?coureurid=5689; 13500 is the ID portion of http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500. This parameter is optional if Wikidata property P1409 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 cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".
The accessdate parameter may be used to specify the date when the Cycling Archives profile was last accessed. This parameter is optional.
TemplateData
TemplateData for Cycling Archives
This template displays an external link to a cyclist's page at the Cycling Archives web site (www.CyclingArchives.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: 5689 is the ID portion of http://www.cyclingarchives.com/coureurfiche.php?coureurid=5689; 13500 is the ID portion of http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500. This parameter is optional if Wikidata property P1409 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 cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".
| String | optional |
| Access date | accessdate | The "accessdate" parameter may be used to specify the date when the Cycling Archives profile was last accessed. This parameter is optional.
| Date | optional |
Examples
Unnamed parameters
URL:
Usage:
{{Cycling Archives | 5689 | Cadel Evans }}
Output:
- Cadel Evans at Cycling ArchivesScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
Usage:
{{Cycling Archives |id= 13500 |name= Ellen van Dijk |accessdate= 30 March 2013 }}
Output:
- Ellen van Dijk at Cycling Archives. Retrieved 30 March 2013.Script error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
{{Cycling Archives}}
Output:
- Template:PAGENAMEBASE at Cycling ArchivesScript error: No such module "EditAtWikidata".Template:WikidataCheck
Tracking categories
- "id" parameter exists
- Category:Cycling Archives ID (cyclist) not in Wikidata (0)
- Category:Cycling Archives ID (cyclist) different from Wikidata (0)
- Category:Cycling Archives ID (cyclist) same as Wikidata (0)
- "id" parameter does not exist
- Category:Cycling Archives cyclist template using Wikidata (0)
- Category:Cycling Archives cyclist template missing ID (0)
See also