Template:databaseOlympics/doc

From Wikipedia, the free encyclopedia

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[edit]

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 databaseOlympics.com athlete ID (archived) (P3520)
{{databaseOlympics}}
{{databaseOlympics | name= NAME }}
{{databaseOlympics | name= NAME | archive= NUMBER }}

Examples[edit]

Unnamed parameters[edit]

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

Named parameters[edit]

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[edit]

Usage
* {{databaseOlympics}}
Output

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:DatabaseOlympics in articles based on its TemplateData.

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 portion of the URL, such as MCCORJOE01 in 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 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

A 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[edit]

Templates and modules used[edit]