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 edit

Unnamed parameters edit

URL
https://www.hockey-reference.com/players/k/kanepa01.html
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

URL
https://www.hockey-reference.com/players/s/staaler01.html
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 edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Hockey-reference in articles based on its TemplateData.

TemplateData 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.

Template parameters

ParameterDescriptionTypeStatus
Player IDid 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.

Default
Wikidata property P3598
Stringoptional
Player 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

See also edit