Jump to content

Template:Ice hockey stats/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
document all parameters
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!-- Categories where indicated at the bottom of this page; interwikis at Wikidata -->
{{Wikidata property|P3522}}
{{Wikidata property|P3522}}
{{Wikidata property|P2481}}
{{Wikidata property|P2481}}
{{Wikidata property|P3687}}
{{Wikidata property|P2601}}
{{Wikidata property|P2601}}
{{Wikidata property|P3598}}
{{Wikidata property|P3598}}
{{Wikidata property|P3567}}
{{Wikidata property|P2602}}
{{Wikidata property|P2602}}

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


<pre>{{Ice Hockey Stats |nhl= |elite= |espn= |euro= |hr= |hockeydb= |legendsm= |legends= |legendstype= |tsn= }}</pre>
<pre>{{Ice Hockey Stats |nhl= |elite= |espn= |euro= |hr= |legendsm= |legendstype= |legends= |hockeydb= |tsn= }}</pre>


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.
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.


=== Example ===
*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.

== Example ==
Example for [[Eric Staal]]:
Example for [[Eric Staal]]:
* <code><nowiki>{{Ice Hockey Stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796-eric-staal |hr=s/staaler01.html |hockeydb=55283 |tsn=eric-staal }}</nowiki></code>

<code><nowiki>{{Ice Hockey Stats |nhl=8470595 |elite=3656 |espn=2378|euro=491796-eric-staal |hr=s/staaler01.html |hockeydb=55283 |tsn=eric-staal }}</nowiki></code>

{{Ice Hockey Stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796-eric-staal |hr=s/staaler01.html |hockeydb=55283 |tsn=eric-staal }}
{{Ice Hockey Stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796-eric-staal |hr=s/staaler01.html |hockeydb=55283 |tsn=eric-staal }}

Example for [[Bobby Orr]]:
* <code><nowiki>{{Ice Hockey Stats |nhl=8450070 |legendsm=P197902 |legendstype=Player |hockeydb=4085 }}</nowiki></code>
{{Ice Hockey Stats |nhl=8450070 |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 [[Uniform Resource Locator|URL]] similar to the ones above. That is the player's ID.
To find a player's ID, find the player's page on a website and locate a string of numbers or letters in the [[Uniform Resource Locator|URL]] similar to the ones above. That is the player's ID.

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


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 14:26, 24 February 2017

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= }}

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.

Example

Example for Eric Staal:

  • {{Ice Hockey Stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796-eric-staal |hr=s/staaler01.html |hockeydb=55283 |tsn=eric-staal }}

Biographical information and career statistics from NHL.com, or Eliteprospects.com, or ESPN.com, or Eurohockey.com, or Hockey-Reference.com, or The Internet Hockey Database, or TSN.ca

Example for Bobby Orr:

  • {{Ice Hockey Stats |nhl=8450070 |legendsm=P197902 |legendstype=Player |hockeydb=4085 }}

Biographical information and career statistics from NHL.com, or Legends of Hockey, or The Internet Hockey Database

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 http://www.nhl.com/ice/player.htm?id={{{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}}}
|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}} P3567 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}}}