Difference between revisions of "Template:HockeyDB/doc"
imported>Zyxw (update for removal of unused parameters) |
imported>Zyxw (misc formatting) |
||
| Line 16: | Line 16: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| − | Using [[Wikidata]] property {{Property| | + | Using [[Wikidata]] property {{Property|2602}}: |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| + | |||
| + | == Examples == | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| Line 79: | Line 81: | ||
== See also == | == See also == | ||
Ice hockey player external link templates: | Ice hockey player external link templates: | ||
| + | * {{tl|Ice hockey stats}} | ||
* Official league websites: | * Official league websites: | ||
** {{tl|AHL profile}} | ** {{tl|AHL profile}} | ||
Revision as of 08:42, 18 September 2018
| This is a documentation subpage for Template:HockeyDB. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:HockeyDB displays an external link to ice hockey player's statistics at HockeyDB.com. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{HockeyDB | ID }}{{HockeyDB | ID | NAME }}
Named parameters:
{{HockeyDB | id= ID }}{{HockeyDB | id= ID | name= NAME }}
Using Wikidata property Template:Property:
{{HockeyDB}}{{HockeyDB | name= NAME }}
Examples
Unnamed parameters
URL:
Usage:
* {{HockeyDB | 73288 | Sidney Crosby }}
Output:
- Sidney Crosby career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
* {{HockeyDB | id= 203186 | name= Amanda Leveille }}
Output:
- Amanda Leveille career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
* {{HockeyDB}}
Output:
- Template:PAGENAMEBASE career statistics at The Internet Hockey DatabaseScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for HockeyDB
This template displays an external link to ice hockey player's statistics at HockeyDB.com. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | Player's ID number in the URL. Example: 73288 is the ID in http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288. This parameter is optional if Wikidata property P2602 exists, but required if not.
| Number | optional |
| name | name 2 | Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).
| String | optional |
See also
Ice hockey player external link templates:
- {{Ice hockey stats}}
- Official league websites:
- {{AHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- {{NHL profile}}
- {{KHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}
- {{CapFriendly}}