Template:HockeyDB/doc

From blackwiki
< Template:HockeyDB
Revision as of 14:24, 3 May 2014 by imported>Zyxw (update documentation, add TemplateData)
Jump to navigation Jump to search

Template:HockeyDB displays an external link to ice hockey player's or team's statistics at HockeyDB.com.

Usage

Player

Unnamed parameters:

  • {{HockeyDB|ID}}
  • {{HockeyDB|ID|NAME}}

Named parameters:

  • {{HockeyDB|id=ID}}
  • {{HockeyDB|id=ID|name=NAME}}

Team

Unnamed parameters:

  • {{HockeyDB|ID|team=yes}}
  • {{HockeyDB|ID|NAME|team=yes}}

Named parameters:

  • {{HockeyDB|id=ID|team=yes}}
  • {{HockeyDB|id=ID|name=NAME|team=yes}}

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 HockeyDB

This template displays an external link to an ice hockey player's or team's statistics at HockeyDB.com.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

Player's or team's ID number in the URL. Player: 73288 is the ID in http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288. Team: 690 is the ID in http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690.

Default
Numberrequired
Name2 name title

Name of player or team. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).

Default
{{PAGENAME}}
Stringoptional
Teamteam

If team=yes, the template will display team statistics instead of individual player statistics.

Default
Stringoptional

Examples

Player

Usage: {{Hockeydb | 73288 | Sidney Crosby }}

Usage: {{Hockeydb |id= 73288 |name= Sidney Crosby }}

Usage: {{Hockeydb |id= 73288 |title= Sidney Crosby }}

Team

Usage: {{Hockeydb | 690 | Colorado Avalanche |team= yes }}

Usage: {{Hockeydb |id= 690 |name= Colorado Avalanche |team= yes }}

Usage: {{Hockeydb |id= 690 |title= Colorado Avalanche |team= yes }}

See also

Ice hockey player external link templates: