Template:NHL profile/doc

From Simple English Wikipedia, the free encyclopedia

Template:NHL profile displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page. It is intended for use in the external links section of an article.

Usage[change source]

Unnamed parameters:

{{NHL profile | ID }}
{{NHL profile | ID | NAME }}

Named parameters:

{{NHL profile | id= ID }}
{{NHL profile | id= ID | name= NAME }}

Using Wikidata property P3522:

{{NHL profile}}
{{NHL profile | name= NAME }}

Examples[change source]

Unnamed parameters[change source]

URLs:

http://www.nhl.com/ice/player.htm?id=8448974
https://www.nhl.com/player/eddie-shack-8448974
https://www.nhl.com/player/8448974

Usage:

{{NHL profile | 8448974 | Eddie Shack }}

Output:

Eddie Shack player profile at NHL.com

Named parameters[change source]

URLs:

http://www.nhl.com/ice/player.htm?id=8471675
https://www.nhl.com/player/sidney-crosby-8471675
https://www.nhl.com/player/8471675

Usage:

{{NHL profile | id= 8471675 | name= Sidney Crosby }}

Output:

Sidney Crosby player profile at NHL.com

No parameters and Wikidata property not defined[change source]

Usage:

{{NHL profile}}

Output:

{{NHL profile}} template missing ID and not present in Wikidata.

TemplateData[change source]

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

TemplateData for NHL profile

This template displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
Player IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the player's profile. Example: 8448974 is the ID portion of http://www.nhl.com/ice/player.htm?id=8448974 or https://www.nhl.com/player/eddie-shack-8448974. This parameter is optional if Wikidata property P3522 exists, but required if not.

Default
Wikidata property P3522
Numberoptional
Player namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also[change source]

Ice hockey player external link templates:

External links[change source]