Template:KHL profile/doc

From Wikipedia, the free encyclopedia

Template:KHL profile displays an external link to an ice hockey player's official Kontinental Hockey League (KHL) profile and statistics page. It is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters:

{{KHL profile | ID }}
{{KHL profile | ID | NAME }}

Named parameters:

{{KHL profile | id= ID }}
{{KHL profile | id= ID | name= NAME }}

Using Wikidata property P3652:

{{KHL profile}}
{{KHL profile | name= NAME }}

Examples[edit]

Unnamed parameters[edit]

URL:

http://en.khl.ru/players/3950/

Usage:

* {{KHL profile | 3950 | Anton Babchuk }}

Output:

Named parameters[edit]

URL:

http://en.khl.ru/players/13851/

Usage:

* {{KHL profile | id= 13851 | name= Jaromir Jagr }}

Output:

No parameters and Wikidata property not defined[edit]

Usage:

* {{KHL profile}}

Output:

  • {{KHL profile}} template missing ID and not present in Wikidata.

Tracking categories[edit]

TemplateData[edit]

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

TemplateData for KHL profile

This template displays an external link to an ice hockey player's official Kontinental Hockey League (KHL) profile and statistics page. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

ID number found in URL of the player's official KHL page. Example: 3950 for URL http://en.khl.ru/players/3950/. This parameter is optional if Wikidata property P3652 exists, but required if not.

Default
Wikidata property P3652
Numberoptional
namename 2

Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).

Default
{{PAGENAMEBASE}}
Stringoptional

See also[edit]

Ice hockey player external link templates: