Template:HockeyDB/doc
| This is a documentation subpage for Template:HockeyDB. It contains usage information, categories and other content that is not part of the original template page. |
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
TemplateData for HockeyDB
This template displays an external link to an ice hockey player's or team's statistics at HockeyDB.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | 1 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.
| Number | required |
| Name | 2 name title | Name of player or team. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).
| String | optional |
| Team | team | If team=yes, the template will display team statistics instead of individual player statistics.
| String | optional |
Examples
Player
Usage: {{Hockeydb | 73288 | Sidney Crosby }}
- Output: Sidney Crosby career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288
Usage: {{Hockeydb |id= 73288 |name= Sidney Crosby }}
- Output: Sidney Crosby career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288
Usage: {{Hockeydb |id= 73288 |title= Sidney Crosby }}
- Output: Template:PAGENAMEBASE career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288
Team
Usage: {{Hockeydb | 690 | Colorado Avalanche |team= yes }}
- Output: Colorado Avalanche career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690
Usage: {{Hockeydb |id= 690 |name= Colorado Avalanche |team= yes }}
- Output: Colorado Avalanche career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690
Usage: {{Hockeydb |id= 690 |title= Colorado Avalanche |team= yes }}
- Output: Template:PAGENAMEBASE career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
- URL: http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690
See also
Ice hockey player external link templates:
- Official league websites:
- {{AHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- {{NHL profile}}
- {{KHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}