Template:Legendsofhockey/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Zyxw at 22:12, 4 January 2025 (formatting). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Legendsofhockey 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.

Unnamed parameters
{{Legendsofhockey | ID }}
{{Legendsofhockey | ID | NAME }}
Named parameters
{{Legendsofhockey | id= ID }}
{{Legendsofhockey | id= ID | name= NAME }}
{{Legendsofhockey | id= ID | name= NAME | archive= NUMBER }}
Using Wikidata property
{{Legendsofhockey}}
{{Legendsofhockey | name= NAME }}
{{Legendsofhockey | name= NAME | archive= NUMBER }}

Examples

[edit source]

Unnamed parameters

[edit source]
URLs
http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279 (archived)
https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279 (archived)
Usage
* {{Legendsofhockey | 14279 | Eddie Shack }}
Output

Named parameters

[edit source]
URLs
http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player=21614 (archived)
https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=21614 (archived)
Usage
* {{Legendsofhockey | id= 21614 | name= Sidney Crosby |archive= 20210712125013 }}
Output

No parameters and Wikidata property not defined

[edit source]
Usage
* {{Legendsofhockey}}
Output

TemplateData

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

TemplateData for Legendsofhockey

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 number in the URL, such as 14279 in https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279 or http://www.legendsofhockey.net/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 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
Internet Archive date/timearchive

A number representing the date/time in an Internet Archive URL, such as 20210712125013 in https://web.archive.org/web/20210712125013/https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=21614.

Numberoptional

See also

[edit source]
[edit source]