Template:Ice hockey stats/doc: Difference between revisions
m →Examples: remove test |
Tom.Reding (talk | contribs) m →top: {{High-use}} |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{High-use}} |
|||
<!-- Categories where indicated at the bottom of this page; interwikis at Wikidata --> |
<!-- Categories where indicated at the bottom of this page; interwikis at Wikidata --> |
||
{{Uses Wikidata|P3522}} |
{{Uses Wikidata|P3522}} |
||
Line 20: | Line 21: | ||
Example for [[Eric Staal]]: |
Example for [[Eric Staal]]: |
||
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |hockeydb=55283 |tsn=eric-staal }}</code> |
||
* {{{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |
* {{{{BASEPAGENAME}} |nhl=8470595 |elite=3656 |espn=2378 |euro=491796 |hr=s/staaler01 |hockeydb=55283 |tsn=eric-staal }} |
||
Example for [[Bobby Orr]]: |
Example for [[Bobby Orr]]: |
||
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nhl=8450070 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |
<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 |
* {{{{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. |
||
Line 54: | Line 55: | ||
| '''{{para|espn}}''' |
| '''{{para|espn}}''' |
||
| [http://www.espn.com/nhl/ ESPN.com] |
| [http://www.espn.com/nhl/ ESPN.com] |
||
⚫ | |||
| {{tl|ESPN NHL}} |
|||
| [[d:Property:P3687|P3687]] |
| [[d:Property:P3687|P3687]] |
||
| http://www.espn.com/nhl/player/_/id/{{{espn}}} |
| http://www.espn.com/nhl/player/_/id/{{{espn}}} |
||
Line 75: | Line 76: | ||
| <!--no Wikidata property (yet) --> |
| <!--no Wikidata property (yet) --> |
||
| https://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}} |
| https://www.hhof.com/LegendsOfHockey/jsp/LegendsMember.jsp?mem={{{legendsm}}} |
||
⚫ | |||
| '''{{para|legends}}''' |
|||
| [https://www.hhof.com HHOF.com/LegendsOfHockey]<br/>(other NHL players) |
|||
| {{tl|Legendsofhockey}} |
|||
| [[d:Property:P3567|P3567]] {{efn|Wikidata property P3567 is not automatically used in the template at this time.}} |
|||
| https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{{legends}}} |
|||
|- |
|- |
||
| '''{{para|hockeydb}}''' |
| '''{{para|hockeydb}}''' |
||
Line 96: | Line 91: | ||
{{notelist}} |
{{notelist}} |
||
<includeonly>{{ |
<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]] |
Latest revision as of 19:25, 26 December 2023
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. |
This template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 }}
- 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 |elite=19145 |hr=o/orrbo01 |legendsm=P197902 |hockeydb=4085 }}
- Biographical information and career statistics from NHL.com, or Eliteprospects.com, or Hockey-Reference.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
[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}}} |