Template:Olympedia
| This template is used on approximately 19,000 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:Olympedia displays an external link to an Olympic athlete's profile at Olympedia.org. It is intended for use in the external links section of an article.
Usage
[edit]Omit the ID to use the Wikidata property.
- Article name as link text
{{Olympedia | ID }}{{Olympedia | id= ID }}
- Parameter as link text
{{Olympedia | ID | NAME }}{{Olympedia | id= ID | name= NAME }}
Examples
[edit]ID in template
[edit]- Usage in the article Thiago Pereira, with article name as link text
* {{Olympedia | 103160 }}* {{Olympedia | id= 103160 }}
- Usage with name parameter as link text
* {{Olympedia | 103160 | Thiago Pereira }}* {{Olympedia | id= 103160 | name= Thiago Pereira }}
- Output
ID in Wikidata
[edit]- Usage in the article Emma McKeon
* {{Olympedia}}* {{Olympedia | name= Emma McKeon }}
- Output
No ID in template or Wikidata
[edit]- Usage
* {{Olympedia}}
- Output
-
- {{Olympedia}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Olympedia
This template displays an external link to an Olympic athlete's profile at Olympedia.org. 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 103160 in https://www.olympedia.org/athletes/103160. This parameter is optional if Wikidata property P8286 exists, but required if not.
| Number | optional |
| Name | name 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)".
| String | optional |
Tracking categories
[edit]- template with ID
- Category:Olympedia template with ID different from Wikidata (0)
- Category:Olympedia template with ID not in Wikidata (0)
- template missing ID
See also
[edit]- {{Sports reference}}, for archived external links
- {{Cite sports-reference}}, for archived links used as a reference
- {{InterSportStats}}, for non-Olympic medalists and competitors