Template:HockeyDB/doc
| This is a documentation subpage for Template:HockeyDB. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:HockeyDB displays an external link to ice hockey player's statistics from HockeyDB at HockeyDB.com. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{HockeyDB | ID }}{{HockeyDB | ID | NAME }}
- Named parameters
{{HockeyDB | id= ID }}{{HockeyDB | id= ID | name= NAME }}
- Using Wikidata property
{{HockeyDB}}{{HockeyDB | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{HockeyDB | 73288 | Sidney Crosby }}
- Output
Named parameters
[edit]- Usage
* {{HockeyDB | id= 203186 | name= Amanda Leveille }}
- Output
No parameters and Wikidata property not defined
[edit]- Usage
* {{HockeyDB}}
- Output
- {{HockeyDB}} template missing player ID and not present in Wikidata.
TemplateData
[edit]TemplateData for HockeyDB
This template displays an external link to ice hockey player's statistics at HockeyDB.com. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | The ID number in the URL, such as 73288 in https://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288. This parameter is optional if Wikidata property P2602 exists, but required if not.
| Number | optional |
| Name | name 2 | The link text, which should be th name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).
| String | optional |
See also
[edit]Ice hockey player external link templates:
- {{Ice hockey stats}}
- Official league websites:
- {{AHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- {{NHL profile}}
- {{KHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}