Jump to content

Template:Eurohockey/doc

From Wikipedia, the free encyclopedia

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

[edit]
Unnamed parameters
{{Eurohockey | ID }}
{{Eurohockey | ID | NAME }}
Named parameters
{{Eurohockey | id= ID }}
{{Eurohockey | id= ID | name= NAME }}
Using Wikidata property
{{Eurohockey}}
{{Eurohockey | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]
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

[edit]
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

[edit]
Usage
* {{Eurohockey}}
Output
  • {{Eurohockey}} 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:Eurohockey in articles based on its TemplateData.

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 portion of the URL, such as 8470-teemu-selnne in 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 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

[edit]
template with ID
ID is converted to numeric value before comparison with Wikidata
8470-teemu-selnne → 8470
8470 → 8470
template missing ID

See also

[edit]