Difference between revisions of "Template:Ice hockey stats"
imported>Elegie (Use more up-to-date HTTPS URL for the NHL link in order to provide increased user privacy/security) |
imported>Zyxw (Use Wikidata properties if ID not specified but is available at Wikidata. Tested with /sandbox.) |
||
| Line 1: | Line 1: | ||
| − | * Career statistics and player information from {{#if:{{{nhl<includeonly>|</includeonly>}}} | + | * Career statistics and player information from {{#if:{{{nhl<includeonly>|{{#property:P3522}}</includeonly>}}} |
| − | |[https://www.nhl.com/player/{{{nhl}}} NHL.com]{{#if:{{{elite<includeonly>|</includeonly>}}}{{{espn|}}}{{{euro|}}}{{{hr|}}}{{{legendsm|}}}{{{legends|}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[https://www.nhl.com/player/{{{nhl<includeonly>|{{#property:P3522}}</includeonly>}}} NHL.com]{{#if:{{{elite<includeonly>|{{#property:P2481}}</includeonly>}}}{{{espn|{{#property:P3687}}}}}{{{euro|{{#property:P2601}}}}}{{{hr|{{#property:P3598}}}}}{{{legendsm|}}}{{{legends|{{#property:P3567}}}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{elite<includeonly>|</includeonly>}}} | + | }}{{#if:{{{elite<includeonly>|{{#property:P2481}}</includeonly>}}} |
| − | |[http://www.eliteprospects.com/player.php?player={{{elite}}}&lang=en Eliteprospects.com]{{#if:{{{espn<includeonly>|</includeonly>}}}{{{euro|}}}{{{hr|}}}{{{legendsm|}}}{{{legends|}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[http://www.eliteprospects.com/player.php?player={{{elite<includeonly>|{{#property:P2481}}</includeonly>}}}&lang=en Eliteprospects.com]{{#if:{{{espn<includeonly>|{{#property:P3687}}</includeonly>}}}{{{euro|{{#property:P2601}}}}}{{{hr|{{#property:P3598}}}}}{{{legendsm|}}}{{{legends|{{#property:P3567}}}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{espn<includeonly>|</includeonly>}}} | + | }}{{#if:{{{espn<includeonly>|{{#property:P3687}}</includeonly>}}} |
| − | |[http://www.espn.com/nhl/player/_/id/{{{espn}}} ESPN.com]{{#if:{{{euro<includeonly>|</includeonly>}}}{{{hr|}}}{{{legendsm|}}}{{{legends|}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[http://www.espn.com/nhl/player/_/id/{{{espn<includeonly>|{{#property:P3687}}</includeonly>}}} ESPN.com]{{#if:{{{euro<includeonly>|{{#property:P2601}}</includeonly>}}}{{{hr|{{#property:P3598}}}}}{{{legendsm|}}}{{{legends|{{#property:P3567}}}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{euro<includeonly>|</includeonly>}}} | + | }}{{#if:{{{euro<includeonly>|{{#property:P2601}}</includeonly>}}} |
| − | |[http://www.eurohockey.com/player/{{{euro}}}.html Eurohockey.com]{{#if:{{{hr<includeonly>|</includeonly>}}}{{{legendsm|}}}{{{legends|}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[http://www.eurohockey.com/player/{{{euro<includeonly>|{{#property:P2601}}</includeonly>}}}.html Eurohockey.com]{{#if:{{{hr<includeonly>|{{#property:P3598}}</includeonly>}}}{{{legendsm|}}}{{{legends|{{#property:P3567}}}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{hr<includeonly>|</includeonly>}}} | + | }}{{#if:{{{hr<includeonly>|{{#property:P3598}}</includeonly>}}} |
| − | |[http://www.hockey-reference.com/players/{{{hr}}}{{#ifeq:{{Str rightc|{{{hr}}}|5}}|.html||.html}} Hockey-Reference.com]{{#if:{{{legendsm<includeonly>|</includeonly>}}}{{{legends|}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[http://www.hockey-reference.com/players/{{{hr<includeonly>|{{#property:P3598}}</includeonly>}}}{{#ifeq:{{Str rightc|{{{hr|{{#property:P3598}}}}}|5}}|.html||.html}} Hockey-Reference.com]{{#if:{{{legendsm<includeonly>|</includeonly>}}}{{{legends|{{#property:P3567}}}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
}}{{#if:{{{legendsm<includeonly>|</includeonly>}}} | }}{{#if:{{{legendsm<includeonly>|</includeonly>}}} | ||
| − | |[http://www.legendsofhockey.net/LegendsOfHockey/jsp/LegendsMember.jsp?type={{{legendstype}}}&mem={{{legendsm}}}&list=ByName#photo Legends of Hockey]{{#if:{{{legends<includeonly>|</includeonly>}}}{{{hockeydb|}}}{{{tsn|}}} | + | |[http://www.legendsofhockey.net/LegendsOfHockey/jsp/LegendsMember.jsp?type={{{legendstype}}}&mem={{{legendsm}}}&list=ByName#photo Legends of Hockey]{{#if:{{{legends<includeonly>|{{#property:P3567}}</includeonly>}}}{{{hockeydb|{{#property:P2602}}}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{legends<includeonly>|</includeonly>}}} | + | }}{{#if:{{{legends<includeonly>|{{#property:P3567}}</includeonly>}}} |
| − | |[http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends}}} Legends of Hockey]{{#if:{{{hockeydb<includeonly>|</includeonly>}}}{{{tsn|}}} | + | |[http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends<includeonly>|{{#property:P3567}}</includeonly>}}} Legends of Hockey]{{#if:{{{hockeydb<includeonly>|{{#property:P2602}}</includeonly>}}}{{{tsn|}}} |
|, or | |, or | ||
}} | }} | ||
| − | }}{{#if:{{{hockeydb<includeonly>|</includeonly>}}} | + | }}{{#if:{{{hockeydb<includeonly>|{{#property:P2602}}</includeonly>}}} |
| − | |[http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb}}} The Internet Hockey Database]{{#if:{{{tsn<includeonly>|</includeonly>}}} | + | |[http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb<includeonly>|{{#property:P2602}}</includeonly>}}} The Internet Hockey Database]{{#if:{{{tsn<includeonly>|</includeonly>}}} |
|, or | |, or | ||
}} | }} | ||
Revision as of 11:12, 25 April 2017
- Career statistics and player information from NHL.com, or Eliteprospects.com, or ESPN.com, or Eurohockey.com, or Hockey-Reference.com, or Legends of Hockey, or Legends of Hockey, or The Internet Hockey Database, or TSN.ca
Template:Uses Wikidata Template:Uses Wikidata Template:Uses Wikidata Template:Uses Wikidata Template:Uses Wikidata Template:Uses Wikidata
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 add ice hockey links based the properties stored in an article's Wikidata item, copy and paste this text to an ice hockey player's external links section:
* {{Ice hockey stats}}
To use this template with manual values follow the examples below.
Examples
Example for Eric Staal:
* {{Ice hockey stats |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |legends=20889 |hockeydb=55283 |tsn=eric-staal }}
- Career statistics and player information from NHL.com, or Eliteprospects.com, or ESPN.com, or Eurohockey.com, or Hockey-Reference.com, or Legends of Hockey, or The Internet Hockey Database, or TSN.ca
Example for Bobby Orr:
* {{Ice hockey stats |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |hockeydb=4085 }}
- Career statistics and player information from NHL.com, or Eliteprospects.com, or ESPN.com, or Eurohockey.com, or Hockey-Reference.com, or Legends of Hockey, 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
- ↑ Wikidata property P3567 is not automatically used in the template at this time.
| The above documentation is transcluded from Template:Ice hockey stats/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |