Template:Eurohockey/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks Wikidata

Template:Eurohockey displays an external link to an ice hockey player's profile at Eurohockey.com. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{Eurohockey | ID }}
{{Eurohockey | ID | NAME }}

Named parameters:

{{Eurohockey | id= ID }}
{{Eurohockey | id= ID | name= NAME }}

Using Wikidata property P2601:

{{Eurohockey}}
{{Eurohockey | name= NAME }}

Examples

Unnamed parameters

URL:

http://www.eurohockey.com/player/8470-teemu-selnne.html

Usage:

* {{Eurohockey | 8470-teemu-selnne | Teemu Selänne }}
* {{Eurohockey | 8470 | Teemu Selänne }}

Output:

Named parameters

URL:

http://www.eurohockey.com/player/10689-jaromir-jagr.html

Usage:

* {{Eurohockey | id= 10689-jaromir-jagr | name= Jaromír Jágr }}
* {{Eurohockey | id= 10689 | name= Jaromír Jágr }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{Eurohockey}}

Output:

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 Eurohockey

This template displays an external link to an ice hockey player's profile at Eurohockey.com. 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: 8470-teemu-selnne is the ID portion of http://www.eurohockey.com/player/8470-teemu-selnne.html. This parameter is optional if Wikidata property P2601 exists, but required if not.

Default
Wikidata property P2601
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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(ice hockey)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist

See also