Difference between revisions of "Template:Ice hockey stats/doc"

From blackwiki
Jump to navigation Jump to search
imported>Djsasso
imported>Zyxw
m (update table formatting and URLs)
Line 23: Line 23:
  
 
* {{{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |legends=20889 |hockeydb=55283 |tsn=eric-staal }}
 
* {{{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |legends=20889 |hockeydb=55283 |tsn=eric-staal }}
 +
* {{{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |legends=20889 |legendsm=XXXX |hockeydb=55283 |tsn=eric-staal }}
  
 
Example for [[Bobby Orr]]:
 
Example for [[Bobby Orr]]:
Line 40: Line 41:
 
! URL
 
! URL
 
|-
 
|-
| {{para|nhl}}
+
| '''{{para|nhl}}'''
 
| [http://www.nhl.com/ NHL.com]
 
| [http://www.nhl.com/ NHL.com]
 
| {{tl|NHL profile}}
 
| {{tl|NHL profile}}
 
| [[d:Property:P3522|P3522]]
 
| [[d:Property:P3522|P3522]]
| <small><tt>https://www.nhl.com/player/{{{nhl}}}</tt></small>
+
| https://www.nhl.com/player/{{{nhl}}}
 
|-
 
|-
| {{para|elite}}
+
| '''{{para|elite}}'''
 
| [http://www.eliteprospects.com/ EliteProspects.com]
 
| [http://www.eliteprospects.com/ EliteProspects.com]
 
| {{tl|Eliteprospects}}
 
| {{tl|Eliteprospects}}
 
| [[d:Property:P2481|P2481]]
 
| [[d:Property:P2481|P2481]]
| <small><tt>http://www.eliteprospects.com/player.php?player={{{elite}}}&lang=en</tt></small>
+
| http://www.eliteprospects.com/player.php?player={{{elite}}}&lang=en
 
|-
 
|-
| {{para|espn}}
+
| '''{{para|espn}}'''
 
| [http://www.espn.com/nhl/ ESPN.com]
 
| [http://www.espn.com/nhl/ ESPN.com]
 
| {{tl|ESPN NHL}}
 
| {{tl|ESPN NHL}}
 
| [[d:Property:P3687|P3687]]
 
| [[d:Property:P3687|P3687]]
| <small><tt>http://www.espn.com/nhl/player/_/id/{{{espn}}}</tt></small>
+
| http://www.espn.com/nhl/player/_/id/{{{espn}}}
 
|-
 
|-
| {{para|euro}}
+
| '''{{para|euro}}'''
 
| [http://www.eurohockey.com/ Eurohockey.com]
 
| [http://www.eurohockey.com/ Eurohockey.com]
 
| {{tl|Eurohockey}}
 
| {{tl|Eurohockey}}
 
| [[d:Property:P2601|P2601]]
 
| [[d:Property:P2601|P2601]]
| <small><tt>http://www.eurohockey.com/player/{{{euro}}}.html</tt></small>
+
| http://www.eurohockey.com/player/{{{euro}}}.html
 
|-
 
|-
| {{para|hr}}
+
| '''{{para|hr}}'''
 
| [https://www.hockey-reference.com/ Hockey-Reference.com]
 
| [https://www.hockey-reference.com/ Hockey-Reference.com]
 
| {{tl|Hockey-reference}}
 
| {{tl|Hockey-reference}}
 
| [[d:Property:P3598|P3598]]
 
| [[d:Property:P3598|P3598]]
| <small><tt>https://www.hockey-reference.com/players/{{{hr}}}.html</tt></small>
+
| https://www.hockey-reference.com/players/{{{hr}}}.html
 
|-
 
|-
| {{para|legendsm}}
+
| '''{{para|legendsm}}'''
| [http://www.legendsofhockey.net/ LegendsOfHockey.net]<br/>(Hall of Fame)
+
| [https://www.hhof.com HHOF.com/LegendsOfHockey]<br/>(Hall of Fame members)
 
| {{tl|Legendsmember}}
 
| {{tl|Legendsmember}}
 
| <!--no Wikidata property (yet) -->
 
| <!--no Wikidata property (yet) -->
| <small><tt>http://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}}&list=ByName</tt></small>
+
| https://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}}
 
|-
 
|-
| {{para|legends}}
+
| '''{{para|legends}}'''
| [http://www.legendsofhockey.net/ LegendsOfHockey.net]<br/>(other players)
+
| [https://www.hhof.com HHOF.com/LegendsOfHockey]<br/>(other NHL players)
 
| {{tl|Legendsofhockey}}
 
| {{tl|Legendsofhockey}}
| [[d:Property:P3567|P3567]]<br>Not automatically used in template as this parameter and the Hall of Fame one can't be used at same time
+
| [[d:Property:P3567|P3567]] {{efn|Wikidata property P3567 is not automatically used in the template at this time.}}
| <small><tt>http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends}}}</tt></small>
+
| https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends}}}
 
|-
 
|-
| {{para|hockeydb}}
+
| '''{{para|hockeydb}}'''
 
| [http://www.hockeydb.com/ HockeyDB.com]
 
| [http://www.hockeydb.com/ HockeyDB.com]
 
| {{tl|Hockeydb}}
 
| {{tl|Hockeydb}}
 
| [[d:Property:P2602|P2602]]
 
| [[d:Property:P2602|P2602]]
| <small><tt>http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb}}}</tt></small>
+
| http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb}}}
 
|-
 
|-
| {{para|tsn}}
+
| '''{{para|tsn}}'''
 
| [https://www.tsn.ca/ TSN.ca]
 
| [https://www.tsn.ca/ TSN.ca]
 
| {{tl|TSN-NHL profile}}
 
| {{tl|TSN-NHL profile}}
 
| <!--no Wikidata property (yet)-->
 
| <!--no Wikidata property (yet)-->
| <small><tt>https://www.tsn.ca/nhl/player-bio/{{{tsn}}}</tt></small>
+
| https://www.tsn.ca/nhl/player-bio/{{{tsn}}}
 
|}
 
|}
 +
{{notelist}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 04:26, 12 March 2020

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

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 https://www.hockey-reference.com/players/{{{hr}}}.html
|legendsm= HHOF.com/LegendsOfHockey
(Hall of Fame members)
{{Legendsmember}} https://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}}
|legends= HHOF.com/LegendsOfHockey
(other NHL players)
{{Legendsofhockey}} P3567 [lower-alpha 1] https://www.hhof.com/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}} https://www.tsn.ca/nhl/player-bio/{{{tsn}}}
  1. Wikidata property P3567 is not automatically used in the template at this time.