Jump to content

Template:Diamond League profile/doc

From Wikipedia, the free encyclopedia

Template:Diamond League profile displays an external link to an athlete's profile at the official website of the Diamond League. The template is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{Diamond League profile | ID }}
{{Diamond League profile | ID | NAME }}

Named parameters:

{{Diamond League profile | id= ID }}
{{Diamond League profile | id= ID | name= NAME }}

Using Wikidata property Diamond League athlete ID (P3923):

{{Diamond League profile}}
{{Diamond League profile | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]

Usage:

* {{Diamond League profile | 14258756 | Mathilde Andraud }}

Output:

URL:

https://www.diamondleague.com/athletes/14258756.html

Named parameters

[edit]

Usage:

* {{Diamond League profile |id= 14195659 |name= Kirani James }}

Output:

URL:

https://www.diamondleague.com/athletes/14195659.html

No parameters and Wikidata property not defined

[edit]

Usage:

{{Diamond League profile}}

Output:

{{Diamond League profile}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Diamond League profile in articles based on its TemplateData.

TemplateData for Diamond League profile

This template ddisplays an external link to an athlete's profile at the official website of the Diamond League. 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. Examples: 14258756 is the ID portion of https://www.diamondleague.com/athletes/14258756.html. This parameter is optional if Wikidata property P3923 exists, but required if not.

Default
Wikidata property P3923
Numberoptional
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

See also

[edit]