Template:Ice hockey stats/doc: Difference between revisions
No edit summary |
document all parameters |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!--Categories where indicated at the bottom of this page |
<!-- 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= | |
<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. |
||
⚫ | |||
*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 for [[Eric Staal]]: |
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 }} |
{{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
This is a documentation subpage for Template:Ice hockey stats. It may contain usage information, categories and other content that is not part of the original template page. |
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