Template:Eurohockey/sandbox
{{{name}}} profile at Eurohockey.com
![]() | This is the template sandbox page for Template:Eurohockey (diff). See also the companion subpage for test cases. |
Template:Uses Wikidata Template:Tracks Wikidata
![]() | 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.
Contents
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:
Usage:
* {{Eurohockey | 8470-teemu-selnne | Teemu Selänne }}
* {{Eurohockey | 8470 | Teemu Selänne }}
Output:
- Teemu Selänne profile at Eurohockey.comScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Teemu Selänne profile at Eurohockey.comScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
Usage:
* {{Eurohockey | id= 10689-jaromir-jagr | name= Jaromír Jágr }}
* {{Eurohockey | id= 10689 | name= Jaromír Jágr }}
Output:
- Jaromír Jágr profile at Eurohockey.comScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Jaromír Jágr profile at Eurohockey.comScript error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
* {{Eurohockey}}
Output:
- Template:PAGENAMEBASE profile at Eurohockey.comScript error: No such module "EditAtWikidata".
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" 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.
| String | optional |
name | name 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)".
| String | optional |
Tracking categories
- "id" parameter exists
- Category:Eurohockey template with ID same as Wikidata (0)
- Category:Eurohockey template with ID different from Wikidata (0)
- Category:Eurohockey template with ID not in Wikidata (0)
- "id" parameter does not exist
- Category:Eurohockey template using Wikidata (0)
- Category:Eurohockey template missing ID and not in Wikidata (0)
See also
- {{Ice hockey stats}}
The above documentation is transcluded from Template:Eurohockey/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |