Jump to content

Template:Ice hockey stats/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Line 15: Line 15:
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl= |elite= |espn= |euro= |hr= |legendsm= |legendstype= |legends= |hockeydb= |tsn= }}</code>
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl= |elite= |espn= |euro= |hr= |legendsm= |legendstype= |legends= |hockeydb= |tsn= }}</code>


*legendsm= is for Hall of Fame Members. When using this parameter please also use legendstype= which can be either Player, Builder or Official
Add the page ID's after the equals sign to properly direct the links that you desire to have. If you do not specify an ID, the site will not be shown.
*legends= is for all other players.



To add ice hockey links based the properties stored in an article's [[Wikidata]] item, use:
To add ice hockey links based the properties stored in an article's [[Wikidata]] item, use:

Revision as of 16:19, 28 July 2017

Template:Ice hockey stats displays external links to multiple websites containing an ice hockey player's statistics. It is intended for use in the external links section of an article.

Usage

To use this template, copy and paste this text to an ice hockey player's external links section:

* {{Ice hockey stats |nhl= |elite= |espn= |euro= |hr= |legendsm= |legendstype= |legends= |hockeydb= |tsn= }}

  • legendsm= is for Hall of Fame Members. When using this parameter please also use legendstype= which can be either Player, Builder or Official
  • legends= is for all other players.


To add ice hockey links based the properties stored in an article's Wikidata item, use:

* {{Ice hockey stats}}

Examples

Example for Eric Staal:

* {{Ice hockey stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796-eric-staal |hr=s/staaler01 |legends=20889 |hockeydb=55283 |tsn=eric-staal }}

Example for Bobby Orr:

* {{Ice hockey stats |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |legendstype=Player |hockeydb=4085 }}

To find a player's ID, find the player's page on a website and locate a string of numbers or letters in the URL similar to the ones above. That is the player's ID.

Parameters

Parameter Website Standalone template Wikidata property URL
|nhl= NHL.com {{NHL profile}} P3522 https://www.nhl.com/player/{{{nhl}}}
|elite= EliteProspects.com {{Eliteprospects}} P2481 http://www.eliteprospects.com/player.php?player={{{elite}}}&lang=en
|espn= ESPN.com {{ESPN NHL}} P3687 http://www.espn.com/nhl/player/_/id/{{{espn}}}
|euro= Eurohockey.com {{Eurohockey}} P2601 http://www.eurohockey.com/player/{{{euro}}}.html
|hr= Hockey-Reference.com {{Hockey-reference}} P3598 http://www.hockey-reference.com/players/{{{hr}}}.html
|legendsm=
|legendstype=Player
|legendstype=Builder
|legendstype=Official
LegendsOfHockey.net
(Hall of Fame)
{{Legendsmember}} http://www.legendsofhockey.net/LegendsOfHockey/jsp/LegendsMember.jsp?type={{{legendstype}}}&mem={{{legendsm}}}&list=ByName#photo
|legends= LegendsOfHockey.net
(other players)
{{Legendsofhockey}} http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends}}}
|hockeydb= HockeyDB.com {{Hockeydb}} P2602 http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb}}}
|tsn= TSN.ca {{TSN-NHL profile}} http://www.tsn.ca/nhl/player-bio/{{{tsn}}}