Jump to content

Template:World Triathlon/doc

From Wikipedia, the free encyclopedia

Template:World Triathlon displays an external link to an athlete's profile at triathlon.org, the official website of World Triathlon, formerly known as the International Triathlon Union or ITU. World Triathlon is the international governing body for the sport of triathlon and its related multisports (including duathlon, aquathlon and other nonstandard variations such as cross triathlon and winter triathlon). The template is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{World Triathlon | ID }}
{{World Triathlon | ID | NAME }}

Named parameters:

{{World Triathlon | id= ID }}
{{World Triathlon | id= ID | name= NAME }}

Using Wikidata property P3604:

{{World Triathlon}}
{{World Triathlon | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]

URLs:

https://www.triathlon.org/athletes/profile/7776
https://www.triathlon.org/athletes/profile/flora_duffy
https://www.triathlon.org/athletes/profile/7776/flora_duffy

Usage:

* {{World Triathlon | 7776 | Flora Duffy }}
* {{World Triathlon | flora_duffy | Flora Duffy }}
* {{World Triathlon | 7776/flora_duffy | Flora Duffy }}

Output:

Named parameters

[edit]

URLs:

https://www.triathlon.org/athletes/profile/11402
https://www.triathlon.org/athletes/profile/mario_mola
https://www.triathlon.org/athletes/profile/11402/mario_mola

Usage:

* {{World Triathlon | id= 11402 | name= Mario Mola }}
* {{World Triathlon | id= mario_mola | name= Mario Mola }}
* {{World Triathlon | id= 11402/mario_mola | name= Mario Mola }}

Output:

No parameters and Wikidata property not defined

[edit]

Usage:

* {{World Triathlon}}

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:World Triathlon in articles based on its TemplateData.

TemplateData for World Triathlon

This template displays an external link to an athlete's profile at triathlon.org, the official website of World Triathlon, formerly known as the International Triathlon Union or ITU. World Triathlon is the international governing body for the sport of triathlon and its related multisports (including duathlon, aquathlon and other nonstandard variations such as cross triathlon and winter triathlon). The template 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: 7776 is the ID portion of https://www.triathlon.org/athletes/profile/7776, or flora_duffy in https://www.triathlon.org/athletes/profile/flora_duffy, or 7776/flora_duffy in https://www.triathlon.org/athletes/profile/7776/flora_duffy. This parameter is optional if Wikidata property P3604 exists, but required if not.

Default
Wikidata property P3604 (numeric ID)
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 "(triathlete)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

[edit]
[edit]