Difference between revisions of "Template:NHL profile/doc"
(update documentation and categories, add template data) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:12, 22 March 2014
40px | This is a documentation subpage for Template:NHL profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:NHL profile displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page.
Contents
Usage
Unnamed parameters:
{{NHL profile|ID|NAME}}
{{NHL profile|ID}}
Named parameters:
{{NHL profile|id=ID|name=NAME}}
{{NHL profile|id=ID}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
NHL profile
<templatedata>{ "description": "This template displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page.", "params": {
"1": { "label": "ID", "aliases": ["id"], "description": "ID number found in URL of the player's official National Hockey League (NHL) page. Example: 8471675 for URL http://www.nhl.com/ice/player.htm?id=8471675", "type": "number", "default": "", "required": true }, "2": { "label": "Name", "aliases": ["name"], "description": "Name of player. If not given it defaults to the Wikipedia article name, therefore it should be specified when the article name contains disambiguation such as (ice hockey).", "type": "string", "default": "NHL profile/doc", "required": false }
}}</templatedata>
Examples
Unnamed parameters:
- Usage:
{{NHL profile|8471675|Sidney Crosby}}
- Result: Sidney Crosby's player profile at NHL.com
- Usage:
{{NHL profile|8471675}}
- Result: NHL profile/doc's player profile at NHL.com
Named parameters:
- Usage:
{{NHL profile|id=8471675|name=Sidney Crosby}}
- Result: Sidney Crosby's player profile at NHL.com
- Usage:
{{ECHL profile|id=8471675}}
- Result: NHL profile/doc's player profile at NHL.com
See also
Ice hockey player external link templates:
- Official league websites:
- {{AHL profile}}
- {{KHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{Hockeydb}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}