Template:DatabaseOlympics/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks Wikidata

Template:DatabaseOlympics displays an external link to an Olympic athlete's profile at databaseOlympics.com. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{DatabaseOlympics | ID }}
{{DatabaseOlympics | ID | NAME }}
Named parameters
{{DatabaseOlympics | id= ID }}
{{DatabaseOlympics | id= ID | name= NAME }}
{{DatabaseOlympics | id= ID | name= NAME | archive= NUMBER }}
Using Wikidata property Template:Property
{{DatabaseOlympics }}
{{DatabaseOlympics | name= NAME }}
{{DatabaseOlympics | name= NAME | archive= NUMBER }}

Examples

Unnamed parameters

URL
http://www.databaseolympics.com/players/playerpage.htm?ilkid=MCCORJOE01 (archived)
Usage
* {{DatabaseOlympics | MCCORJOE01 | Joe McCormick }}
Output

Named parameters

URL
http://www.databaseolympics.com/players/playerpage.htm?ilkid=WRIGHJOS02 (archived)
Usage
* {{DatabaseOlympics |id= WRIGHJOS02 |name= Joseph Wright |archive= 20160303211305}}
Output

No ID in template or Wikidata

Usage
* {{DatabaseOlympics}}
Output

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 DatabaseOlympics

This template displays an external link to an Olympic athlete's profile at databaseOlympics.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. Example: MCCORJOE01 is the ID portion of http://www.databaseolympics.com/players/playerpage.htm?ilkid=MCCORJOE01. This parameter is optional if Wikidata property P3520 exists, but required if not.

Default
Wikidata property P3520
Stringoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".

Default
{{PAGENAMEBASE}}
Stringoptional
archivearchive

Number representing the date/time in an Internet Archive URL, such as 20160303211305 in https://web.archive.org/web/20160303211305/http://www.databaseolympics.com/players/playerpage.htm?ilkid=WRIGHJOS02.

Numberoptional

Tracking categories

Templates and modules used