Template:HHOF NHL player/doc

From blackwiki
< Template:HHOF NHL player
Revision as of 10:37, 18 September 2018 by imported>Zyxw (use https, misc formatting)
Jump to navigation Jump to search

Template:Uses Wikidata

Template:HHOF NHL player displays an external link to an NHL ice hockey player's profile at the Hockey Hall of Fame website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{HHOF NHL player | ID }}
{{HHOF NHL player | ID | NAME }}

Named parameters:

{{HHOF NHL player | id= ID }}
{{HHOF NHL player | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{HHOF NHL player}}
{{HHOF NHL player | name= NAME }}

Examples

Unnamed parameters

URL:

https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279

Usage:

* {{HHOF NHL player | 14279 | Eddie Shack }}

Output:

Named parameters

URL:

https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=21614

Usage:

* {{HHOF NHL player | id= 21614 | name= Sidney Crosby }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{HHOF NHL player}}

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for HHOF NHL player

This template displays an external link to an NHL ice hockey player's profile at the Hockey Hall of Fame website. 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: 14279 is the ID portion of https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279. This parameter is optional if Wikidata property P3567 exists, but required if not.

Default
Wikidata property P3567
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

External links