Template:Cycling Archives: Difference between revisions
update URL |
add archive URL - site was down and now the domain name is expiring |
||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P1409}} |
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P1409}} |
||
| [http://www.cyclingarchives.com/coureurfiche.php?coureurid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1409}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at ''Cycling Archives'' ( |
| [{{#if: {{{archive|}}} | https://web.archive.org/web/{{{archive}}}/ | https://web.archive.org/web/2023/ }}http://www.cyclingarchives.com/coureurfiche.php?coureurid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1409}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at ''Cycling Archives'' (archived){{#if: {{{accessdate|}}} |. Retrieved {{{accessdate}}}.}}<includeonly>{{EditAtWikidata|pid=P1409|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P1409|value={{{id|{{{1|}}}}}}|category=Cycling Archives template with ID|namespaces=0|nocatsame=1}} |
||
| <span class="error">{{[[Template:Cycling Archives|Cycling Archives]]}} template missing ID and not present in Wikidata.</span>{{preview warning|1=to find the ID, see the [http://www.cyclingarchives.com/ Cycling Archives] website or try this [https://www.google.com/search?q={{urlencode:{{Remove accents|{{PAGENAMEBASE}}}}}}+site%3Awww.cyclingarchives.com%2Fcoureurfiche.php Google search]}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Cycling Archives template missing ID and not in Wikidata]]}} |
| <span class="error">{{[[Template:Cycling Archives|Cycling Archives]]}} template missing ID and not present in Wikidata.</span>{{preview warning|1=to find the ID, see the [http://www.cyclingarchives.com/ Cycling Archives] website or try this [https://www.google.com/search?q={{urlencode:{{Remove accents|{{PAGENAMEBASE}}}}}}+site%3Awww.cyclingarchives.com%2Fcoureurfiche.php Google search]}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Cycling Archives template missing ID and not in Wikidata]]}} |
Latest revision as of 02:11, 10 November 2024
{{{name}}} at Cycling Archives (archived)
This template is used on approximately 4,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:Cycling Archives displays an external link to a cyclist's page at the Cycling Archives website (CyclingArchives.com). It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{Cycling Archives | ID }}
{{Cycling Archives | ID | NAME }}
- Named parameters
{{Cycling Archives | id= ID }}
{{Cycling Archives | id= ID | name= NAME }}
{{Cycling Archives | id= ID | name= NAME | accessdate= DATE }}
{{Cycling Archives | id= ID | name= NAME | archive= NUMBER }}
- Using Wikidata property
{{Cycling Archives}}
{{Cycling Archives | name= NAME }}
{{Cycling Archives | name= NAME | accessdate= DATE }}
{{Cycling Archives | name= NAME | archive= NUMBER }}
Examples
Unnamed parameters
- Usage
* {{Cycling Archives | 5689 | Cadel Evans }}
* {{Cycling Archives | 5689 | Cadel Evans |archive= 20240519142806 }}
- Output
-
- Cadel Evans at Cycling Archives (archived)
- Cadel Evans at Cycling Archives (archived)
- URLs
- https://web.archive.org/web/2023/http://www.cyclingarchives.com/coureurfiche.php?coureurid=5689
- https://web.archive.org/web/20240519142806/http://www.cyclingarchives.com/coureurfiche.php?coureurid=5689
Named parameters
- Usage
* {{Cycling Archives |id= 13500 |name= Ellen van Dijk |accessdate= 9 June 2024 }}
* {{Cycling Archives |id= 13500 |name= Ellen van Dijk |accessdate= 9 June 2024 |archive= 20240608231148 }}
- Output
-
- Ellen van Dijk at Cycling Archives (archived). Retrieved 9 June 2024.
- Ellen van Dijk at Cycling Archives (archived). Retrieved 9 June 2024.
- URLs
- https://web.archive.org/web/2023/http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500
- https://web.archive.org/web/20240608231148/http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500
No parameters and Wikidata property not defined
- Usage
* {{Cycling Archives}}
- Output
-
- {{Cycling Archives}} template missing ID and not present in Wikidata.
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. 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 website (CyclingArchives.com). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID number in the URL, such as 5689 in http://www.cyclingarchives.com/coureurfiche.php?coureurid=5689. This parameter is optional if Wikidata property P1409 exists, but required if not.
| Number | optional |
Name | name 2 | 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 date when the Cycling Archives profile was last accessed. This parameter is optional. | Date | optional |
Internet Archive date/time | archive | A number indicating the date and time of an archive at the Internet Archive website, such as 20240608231148 in https://web.archive.org/web/20240608231148/http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500 (2024-06-08 23:11:48 archive of http://www.cyclingarchives.com/coureurfiche.php?coureurid=13500).
| Number | optional |
Tracking categories
- template with ID
- Category:Cycling Archives template with ID different from Wikidata (1)
- Category:Cycling Archives template with ID not in Wikidata (15)
- template missing ID
See also
- Cycling Archives external link templates and Wikidata properties
- Template:Cycling Archives race
- Template:Cycling Archives race report which uses Wikidata property Cycling Archives race ID (archived) (P2330)
- Wikidata property Cycling Archives team ID (archived) (P2331)
- ProCyclingStats external link templates and Wikidata properties
- Template:ProCyclingStats which uses Wikidata property ProCyclingStats cyclist ID (P1663)
- Template:ProCyclingStats race which uses Wikidata property ProCyclingStats race ID (P2327)
- Template:ProCyclingStats team which uses Wikidata property ProCyclingStats team ID (P2328)
- CQ Ranking external link templates and Wikidata properties
- Template:CQ Ranking which uses Wikidata properties CQ Ranking male cyclist ID (P1541) and CQ Ranking female cyclist ID (P2709)
- Wikidata properties CQ Ranking men's race ID (P2648) and CQ Ranking women's race ID (P2708)
- Wikidata property CQ Ranking men's team URL (P2649)
- CycleBase external link templates and Wikidata properties
- Template:CycleBase which uses Wikidata property CycleBase cyclist ID (P4508)