Difference between revisions of "Template:Cycling Archives race report"
imported>Zyxw (if no ID in template and using ID from Wikidata, use {{EditAtWikidata}} to display edit link) |
imported>Zyxw m (update tracking) |
||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2330}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2330}} | ||
− | | [http://www.cyclingarchives.com/ritfiche.php?ritid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2330}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }} results] at ''Cycling Archives''<includeonly>{{EditAtWikidata|pid=P2330|{{{1|{{{id|}}}}}}}}</includeonly> | + | | [http://www.cyclingarchives.com/ritfiche.php?ritid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2330}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }} results] at ''Cycling Archives''<includeonly>{{EditAtWikidata|pid=P2330|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P2330|value={{{id|{{{1|}}}}}}|category=Cycling Archives race template with ID|namespaces=0|nocatsame=1}} |
− | | <span class="error">{{[[Template:Cycling Archives race report|Cycling Archives race report]]}} template missing ID and not present in Wikidata.</span> | + | | <span class="error">{{[[Template:Cycling Archives race report|Cycling Archives race report]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Cycling Archives race template missing ID and not in Wikidata]]}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | {{Documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | ||
</noinclude> | </noinclude> |
Latest revision as of 19:27, 1 May 2019
{{{name}}} results at Cycling ArchivesTemplate:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata
![]() | This template uses Lua: |
Template:Cycling Archives race report displays an external link to a cycling race page at the Cycling Archives website (CyclingArchives.com). It is intended for use in the external links section of an article.
This template is used for articles such as 1989 Tour de France or 1997 Amstel Gold Race; see Template:Cycling Archives race for articles such as Tour de France or Amstel Gold Race.
Contents
Usage
Unnamed parameters:
{{Cycling Archives race report | ID }}
{{Cycling Archives race report | ID | NAME }}
Named parameters:
{{Cycling Archives race report | id= ID }}
{{Cycling Archives race report | id= ID | name= NAME }}
Using Wikidata property P2330:
{{Cycling Archives race report}}
{{Cycling Archives race report | name= NAME }}
Examples
Unnamed parameters
URL:
Usage:
{{Cycling Archives race report | 102714 | 1989 Tour de France }}
Output:
- 1989 Tour de France results at Cycling ArchivesScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
Usage:
{{Cycling Archives race report | id= 3549 | name= 1997 Amstel Gold Race }}
Output:
- 1997 Amstel Gold Race results at Cycling ArchivesScript error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
{{Cycling Archives race report}}
Output:
- Template:PAGENAMEBASE results at Cycling ArchivesScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for Cycling Archives race report
This template displays an external link to a cycling race 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" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Examples: 102714 is the ID portion of http://www.cyclingarchives.com/ritfiche.php?ritid=102714. This parameter is optional if Wikidata property P2330 exists, but required if not.
| Number | 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)".
| String | optional |
Tracking categories
- template with ID
- Category:Cycling Archives race template with ID different from Wikidata (0)
- Category:Cycling Archives race template with ID not in Wikidata (0)
- template missing ID
See also
- Cycling Archives templates
- Template:Cycling Archives which uses Wikidata property Template:Wpl
- Template:Cycling Archives race
- Other cycling race templates
- Template:ProCyclingStats race which uses Wikidata property Template:Wpl
The above documentation is transcluded from Template:Cycling Archives race report/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. |