This is a documentation subpage for Template:Eurohockey. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses the Wikidata property:
This template uses Lua: |
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
editUnnamed parameters
edit- Usage
* {{Eurohockey | 8470-teemu-selnne | Teemu Selänne }}
* {{Eurohockey | 8470 | Teemu Selänne }}
Named parameters
edit- Usage
* {{Eurohockey | id= 10689-jaromir-jagr | name= Jaromír Jágr }}
* {{Eurohockey | id= 10689 | name= Jaromír Jágr }}
No parameters and Wikidata property not defined
edit- Usage
* {{Eurohockey}}
- Output
-
- {{Eurohockey}} template missing ID and not present in Wikidata.
TemplateData
editThis 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 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.
| String | optional |
name | name 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)".
| String | optional |
Tracking categories
edit- template with ID
- ID is converted to numeric value before comparison with Wikidata
- 8470-teemu-selnne → 8470
- 8470 → 8470
- Category:Eurohockey template with ID same as Wikidata (2)
- Category:Eurohockey template with ID different from Wikidata (1)
- Category:Eurohockey template with ID not in Wikidata (0)
- template missing ID
- Category:Eurohockey template using Wikidata (1)
- Category:Eurohockey template missing ID and not in Wikidata (0)
See also
edit- {{Ice hockey stats}}