Difference between revisions of "Template:HockeyDB/doc"
Jump to navigation
Jump to search
imported>GregorB (+cat) |
imported>Rjd0060 (updating) |
||
| Line 4: | Line 4: | ||
<nowiki>{{</nowiki>Hockeydb|''id''|''name''|[''team=yes'']<nowiki>}}</nowiki> | <nowiki>{{</nowiki>Hockeydb|''id''|''name''|[''team=yes'']<nowiki>}}</nowiki> | ||
where: | where: | ||
| − | *<code>''id''</code> is the numeric id found in url <code><nowiki>http://www.hockeydb.com/ihdb/stats/pdisplay. | + | *<code>''id''</code> is the numeric id found in url <code><nowiki>http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=XXXXX</nowiki></code> for players or <code><nowiki>http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=XXX</nowiki></code> for teams |
*<code>''name''</code> is the player/team name | *<code>''name''</code> is the player/team name | ||
*<code>''team=yes''</code> is an ''optional field'' that will make the template work to display team statistics instead of individual | *<code>''team=yes''</code> is an ''optional field'' that will make the template work to display team statistics instead of individual | ||
Revision as of 04:18, 4 October 2008
| 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. |
Usage
{{Hockeydb|id|name|[team=yes]}}
where:
idis the numeric id found in urlhttp://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=XXXXXfor players orhttp://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=XXXfor teamsnameis the player/team nameteam=yesis 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".