Template:Olympic Channel/doc

From Simple English Wikipedia, the free encyclopedia

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[change source]

Unnamed parameters:

{{Olympic Channel | ID }}
{{Olympic Channel | ID | NAME }}

Named parameters:

{{Olympic Channel | id= ID }}
{{Olympic Channel | id= ID | name= NAME }}

Using Wikidata property Olympics.com athlete ID (P5815):

{{Olympic Channel }}
{{Olympic Channel | name= NAME }}

Examples[change source]

Unnamed parameters[change source]

Usage:

* {{Olympic Channel | marie-dorin-habert | Marie Dorin Habert }}

Output:

URL:

https://www.olympicchannel.com/en/athletes/detail/marie-dorin-habert/

Named parameters[change source]

Usage:

* {{Olympic Channel |id= patrick-stevens-1 |name= Patrick Stevens }}

Output:

URL:

https://www.olympicchannel.com/en/athletes/detail/patrick-stevens-1/

No ID in template or Wikidata[change source]

Usage:

* {{Olympic Channel}}

Output:

TemplateData[change source]

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

TemplateData for Olympic Channel

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.

Template parameters

ParameterDescriptionTypeStatus
idid 1

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.

Default
Wikidata property P5815
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

Related templates[change source]