Difference between revisions of "Template:Cycling Archives race report/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: update)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 25: Line 25:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.cyclingarchives.com/ritfiche.php?ritid=102714 http://www.cyclingarchives.com/ritfiche.php?ritid={{hilite|102714}}]</tt>
+
: <kbd>[http://www.cyclingarchives.com/ritfiche.php?ritid=102714 http://www.cyclingarchives.com/ritfiche.php?ritid={{hilite|102714}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 102714 | 1989 Tour de France }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 102714 | 1989 Tour de France }}</code>
Line 33: Line 33:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.cyclingarchives.com/ritfiche.php?ritid=3549 http://www.cyclingarchives.com/ritfiche.php?ritid={{hilite|3549}}]</tt>
+
: <kbd>[http://www.cyclingarchives.com/ritfiche.php?ritid=3549 http://www.cyclingarchives.com/ritfiche.php?ritid={{hilite|3549}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 3549 | name= 1997 Amstel Gold Race }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 3549 | name= 1997 Amstel Gold Race }}</code>

Revision as of 06:55, 5 August 2018

Template:Uses Wikidata Template:Tracks Wikidata

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.

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:

http://www.cyclingarchives.com/ritfiche.php?ritid=102714

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:

http://www.cyclingarchives.com/ritfiche.php?ritid=3549

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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P2330
Numberoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist

See also

Cycling Archives templates
Other cycling race templates