This is a documentation subpage for Template:Hockey-reference. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Hockey-reference displays an external link to an ice hockey player's profile at Hockey-Reference.com. It is intended for use in the external links section of an article.
Usage
edit- Unnamed parameters
{{Hockey-reference | ID }}
{{Hockey-reference | ID | NAME }}
- Named parameters
{{Hockey-reference | id= ID }}
{{Hockey-reference | id= ID | name= NAME }}
- Using Wikidata property
{{Hockey-reference}}
{{Hockey-reference | name= NAME }}
Examples
editUnnamed parameters
edit- Usage
{{Hockey-reference | k/kanepa01 | Patrick Kane }}
{{Hockey-reference | k/kanepa01.html | Patrick Kane }}
- Output
- Patrick Kane at Hockey-Reference.com
- Patrick Kane at Hockey-Reference.com
Named parameters
edit- Usage
{{Hockey-reference | id= s/staaler01 | name= Eric Staal }}
- Output
- Eric Staal at Hockey-Reference.com
No parameters and Wikidata property not defined
edit- Usage
{{Hockey-reference}}
- Output
- {{Hockey-reference}} template missing ID and not present in Wikidata.
TemplateData
editTemplateData for Hockey-reference
This template displays an external link to an ice hockey player's profile at Hockey-Reference.com. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Player ID | id 1 | The ID portion of the URL for the player's profile, such as k/kanepa01 in https://www.hockey-reference.com/players/k/kanepa01.html. This parameter is optional if Wikidata property P3598 exists, but required if not.
| String | optional |
Player 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 |
See also
edit- {{Ice hockey stats}}