Template:Olympic Channel/doc
This is a documentation subpage for Template:Olympic Channel. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Olympic Channel displays an external link to an athlete's profile at the Olympic Channel website. It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{Olympic Channel | ID }}
{{Olympic Channel | ID | NAME }}
Named parameters:
{{Olympic Channel | id= ID }}
{{Olympic Channel | id= ID | name= NAME }}
Using Wikidata property (P5815):
{{Olympic Channel }}
{{Olympic Channel | name= NAME }}
Examples
Unnamed parameters
Usage:
* {{Olympic Channel | marie-dorin-habert | Marie Dorin Habert }}
Output:
- Marie Dorin Habert at the Olympic Channel
URL:
Named parameters
Usage:
* {{Olympic Channel |id= patrick-stevens-1 |name= Patrick Stevens }}
Output:
- Patrick Stevens at the Olympic Channel
URL:
No ID in template or Wikidata
Usage:
* {{Olympic Channel}}
Output:
- Olympic Channel/doc at the Olympic Channel
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 Olympic Channel
<templatedata> {
"description": "This template displays an external link to an athlete's profile at the Olympic Channel website. 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: marie-dorin-habert is the ID portion of https://www.olympicchannel.com/en/athletes/detail/marie-dorin-habert/. This parameter is optional if Wikidata property P5815 exists, but required if not.", "type": "string", "required": false, "default": "Wikidata property P5815" }, "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": "Olympic Channel/doc" } }, "paramOrder": [ "id", "name" ]
} </templatedata>
Related templates
- {{IOC profile}}