Template:Olympedia
{{{name}}} at Olympedia
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
Unnamed parameters:
{{Olympedia | ID }}
{{Olympedia | ID | NAME }}
Named parameters:
{{Olympedia | id= ID }}
{{Olympedia | id= ID | name= NAME }}
Using Wikidata property (P8286):
{{Olympedia}}
{{Olympedia | name= NAME }}
Examples
ID in template
Usage in the article Laura Dahlmeier, with article name as link text:
* {{Olympedia | 127804 }}
* {{Olympedia | id= 127804 }}
Usage with name parameter as link text:
* {{Olympedia | 127804 | Laura Dahlmeier }}
* {{Olympedia | id= 127804 | name= Laura Dahlmeier }}
Output:
- Laura Dahlmeier at Olympedia
URL:
ID in Wikidata
Usage in the article Steven Redgrave:
* {{Olympedia}}
* {{Olympedia | name= Steven Redgrave }}
Output:
- Steven Redgrave at Olympedia
URL:
No ID in template or Wikidata
Usage:
* {{Olympedia}}
Output:
- Olympedia at Olympedia
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 Olympedia
<templatedata> {
"description": "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.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 127804 is the ID portion of https://www.olympedia.org/athletes/127804. This parameter is optional if Wikidata property P8286 exists, but required if not.", "type": "number", "required": false, "default": "Wikidata property P8286" }, "name": { "label": "name", "aliases": ["2"], "description": "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)\".", "type": "string", "required": false, "default": "Olympedia" } }, "paramOrder": [ "id", "name" ]
} </templatedata>
Related pages
- {{Sports reference}}, for archived external links
- {{Cite sports-reference}}, for archived links used as a reference
Other websites
The above documentation is transcluded from Template:Olympedia/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. |