Jump to content

Template:Ice hockey stats/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m top: {{High-use}}
 
(32 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
<!--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 -->
== Usage ==
{{Uses Wikidata|P3522}}
To use this template, copy and paste this text to a ice hockey player's external links section:
{{Uses Wikidata|P2481}}
{{Uses Wikidata|P3687}}
{{Uses Wikidata|P2601}}
{{Uses Wikidata|P3598}}
{{Uses Wikidata|P2602}}


'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays external links to multiple websites containing an [[ice hockey]] player's statistics. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
<pre>{{Ice Hockey Stats |nhl= |elite= |espn= |euro= |hr= |hockeydb= |legendsm= |legends= |tsn= }}</pre>


== Usage ==
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.
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:


<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}}<!-- -->}}</code>
*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 use this template with manual values follow the examples below.
== Example ==

== Examples ==
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>{{</nowiki>{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |hockeydb=55283 |tsn=eric-staal }}</code>


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

Example for [[Bobby Orr]]:

<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |hockeydb=4085 }}</code>

* {{{{BASEPAGENAME}} |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |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 ==
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
{| class="wikitable sortable"
! Parameter
! Website
! Standalone template
! Wikidata property
! URL
|-
| '''{{para|nhl}}'''
| [http://www.nhl.com/ NHL.com]
| {{tl|NHL profile}}
| [[d:Property:P3522|P3522]]
| https://www.nhl.com/player/{{{nhl}}}
|-
| '''{{para|elite}}'''
| [http://www.eliteprospects.com/ EliteProspects.com]
| {{tl|Eliteprospects}}
| [[d:Property:P2481|P2481]]
| http://www.eliteprospects.com/player.php?player={{{elite}}}&lang=en
|-
| '''{{para|espn}}'''
| [http://www.espn.com/nhl/ ESPN.com]
|
| [[d:Property:P3687|P3687]]
| http://www.espn.com/nhl/player/_/id/{{{espn}}}
|-
| '''{{para|euro}}'''
| [http://www.eurohockey.com/ Eurohockey.com]
| {{tl|Eurohockey}}
| [[d:Property:P2601|P2601]]
| http://www.eurohockey.com/player/{{{euro}}}.html
|-
| '''{{para|hr}}'''
| [https://www.hockey-reference.com/ Hockey-Reference.com]
| {{tl|Hockey-reference}}
| [[d:Property:P3598|P3598]]
| https://www.hockey-reference.com/players/{{{hr}}}.html
|-
| '''{{para|legendsm}}'''
| [https://www.hhof.com HHOF.com/LegendsOfHockey]<br/>(Hall of Fame members)
| {{tl|Legendsmember}}
| <!--no Wikidata property (yet) -->
| https://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}}
|-
| '''{{para|hockeydb}}'''
| [http://www.hockeydb.com/ HockeyDB.com]
| {{tl|Hockeydb}}
| [[d:Property:P2602|P2602]]
| http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid={{{hockeydb}}}
|-
| '''{{para|tsn}}'''
| [https://www.tsn.ca/ TSN.ca]
| {{tl|TSN-NHL profile}}
| <!--no Wikidata property (yet)-->
| https://www.tsn.ca/nhl/player-bio/{{{tsn}}}
|}
{{notelist}}

<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:People and person external link templates]]
[[Category:People and person external link templates]]
[[Category:Ice hockey external link templates]]
[[Category:Ice hockey external link templates]]
[[Category:Templates containing multiple external links‎]]
[[Category:External link templates using Wikidata]]
}}</includeonly>
}}</includeonly>

Latest revision as of 19:25, 26 December 2023

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

[edit]

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

[edit]

Example for Eric Staal:

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

Example for Bobby Orr:

* {{Ice hockey stats |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |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

[edit]
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 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}}}
|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}}}