Template:Nhlprofile

{{{name}}}'s NHL player profile

Documentation icon Template documentation[view] [edit] [history] [purge]

Template:Nhlprofile 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

Unnamed parameters:

{{Nhlprofile | ID }}
{{Nhlprofile | ID | NAME }}

Named parameters:

{{Nhlprofile | id= ID }}
{{Nhlprofile | id= ID | name= NAME }}

Using Wikidata property P3522:

{{Nhlprofile}}
{{Nhlprofile | name= NAME }}

Examples

Unnamed parameters

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:

{{Nhlprofile | 8448974 | Eddie Shack }}

Output:

8448974 Eddie Shack 's NHL player profile

Named parameters

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:

{{Nhlprofile | id= 8471675 | name= Sidney Crosby }}

Output:

Sidney Crosby's NHL player profile

No parameters and Wikidata property not defined

Usage:

{{Nhlprofile}}

Output:

Nhlprofile's NHL player profile

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 Nhlprofile

<templatedata> {

 "description": "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.",
 "params": {
   "id": {
     "label": "Player ID",
     "aliases": ["1"], 
     "description": "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.",
     "type": "number",
     "required": false,
     "default": "Wikidata property P3522"
   },
   "name": {
     "label": "Player name",
     "aliases": ["2"], 
     "description": "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)\".",
     "type": "string",
     "required": false,
     "default": "Nhlprofile"
   }
 },
 "paramOrder": [
   "id",
   "name"
 ]

} </templatedata>

See also

Ice hockey player external link templates:

External links