Difference between revisions of "Template:HockeyDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>KristofferAG
m (+iw no)
(+ja)
Line 24: Line 24:
  
 
[[fr:Modèle:Hockeydb]]
 
[[fr:Modèle:Hockeydb]]
 +
[[ja:Template:Hockeydb]]
 
[[no:Mal:Hockeydb]]
 
[[no:Mal:Hockeydb]]
 
</includeonly>
 
</includeonly>

Revision as of 13:48, 26 October 2010

Usage

{{Hockeydb|id|name|[team=yes]}}

where:

  • id is the numeric id found in url http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=XXXXX for players or http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=XXX for teams
  • name is the player/team name
  • team=yes is an optional field that will make the template work to display team statistics instead of individual

Example:

{{Hockeydb|73288|Sidney Crosby}}

produces: Sidney Crosby career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".

Team example:

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

produces: Colorado Avalanche career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".