Difference between revisions of "Template:KHL profile/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updates for use of Wikidata property, misc formatting)
imported>Crazy1880
(Tracking categories)
Line 42: Line 42:
 
''Output:''
 
''Output:''
 
: {{ {{BASEPAGENAME}} }}
 
: {{ {{BASEPAGENAME}} }}
 +
 +
== Tracking categories ==
 +
* {{clc|KHL profile not in Wikidata}}
 +
* {{clc|KHL profile different from Wikidata}}
 +
* {{clc|KHL profile same as Wikidata}}
  
 
== TemplateData ==
 
== TemplateData ==

Revision as of 11:03, 13 January 2018

Template:Uses Wikidata

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

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

Unnamed parameters

URL:

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

Usage:

{{KHL profile | 3950 | Anton Babchuk }}

Output:

Anton Babchuk profile and statistics at KHL.ruScript error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters

URL:

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

Usage:

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

Output:

Jaromir Jagr profile and statistics at KHL.ruScript error: No such module "EditAtWikidata".Template:WikidataCheck

No parameters and Wikidata property not defined

Usage:

{{KHL profile}}

Output:

Template:PAGENAMEBASE profile and statistics at KHL.ruScript error: No such module "EditAtWikidata".Template:WikidataCheck

Tracking categories

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 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

Ice hockey player external link templates: