Template:Legendsofhockey/doc
This is a documentation subpage for Template:Legendsofhockey. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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.
Usage
[edit]- 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 HHOF.com NHL player ID (P3567)
{{Legendsofhockey }}
{{Legendsofhockey | name= NAME }}
{{Legendsofhockey | name= NAME | archive= NUMBER }}
Examples
[edit]Unnamed parameters
[edit]- 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
-
- Eddie Shack biography at Legends of Hockey (archived)
Named parameters
[edit]- 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
-
- Sidney Crosby biography at Legends of Hockey (archived)
No parameters and Wikidata property not defined
[edit]Usage:
* {{Legendsofhockey}}
Output:
- {{Legends of Hockey}} template missing ID and not present in Wikidata.
TemplateData
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Player ID | id 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 or http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279. This parameter is optional if Wikidata property P3567 exists, but required if not.
| Number | optional |
Player name | name 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)".
| String | optional |
archive | archive | 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. | Number | optional |
See also
[edit]- {{Legendsmember}} for NHL players inducted into the Hockey Hall of Fame
External link
[edit]- NHL player search at Hockey Hall of Fame at the Wayback Machine (archived 2021-06-27)