Difference between revisions of "Template:ESPN NHL/doc"
imported>Zyxw (misc formatting) |
imported>Zyxw (note module used) |
||
| Line 2: | Line 2: | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{Uses Wikidata|P3687}} | {{Uses Wikidata|P3687}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[National Hockey League]] (NHL) player's profile at [http://www.espn.com/ ESPN.com]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[National Hockey League]] (NHL) player's profile at [http://www.espn.com/ ESPN.com]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 23: | Line 24: | ||
''URL:'' | ''URL:'' | ||
: <kbd>[http://www.espn.com/nhl/player/_/id/386 http://www.espn.com/nhl/player/_/id/{{hilite|386}}]</kbd> | : <kbd>[http://www.espn.com/nhl/player/_/id/386 http://www.espn.com/nhl/player/_/id/{{hilite|386}}]</kbd> | ||
| + | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 386 | Marián Hossa }}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 386 | Marián Hossa }}</code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
:* {{{{BASEPAGENAME}} | 386 | Marián Hossa }} | :* {{{{BASEPAGENAME}} | 386 | Marián Hossa }} | ||
| Line 31: | Line 34: | ||
''URL:'' | ''URL:'' | ||
: <kbd>[http://www.espn.com/nhl/player/_/id/3024816 http://www.espn.com/nhl/player/_/id/{{hilite|3024816}}]</kbd> | : <kbd>[http://www.espn.com/nhl/player/_/id/3024816 http://www.espn.com/nhl/player/_/id/{{hilite|3024816}}]</kbd> | ||
| + | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 3024816 | name= Austin Czarnik <nowiki>}}</nowiki></code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 3024816 | name= Austin Czarnik <nowiki>}}</nowiki></code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
:* {{{{BASEPAGENAME}} | id= 3024816 | name= Austin Czarnik }} | :* {{{{BASEPAGENAME}} | id= 3024816 | name= Austin Czarnik }} | ||
| Line 39: | Line 44: | ||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
:* {{ {{BASEPAGENAME}} }} | :* {{ {{BASEPAGENAME}} }} | ||
Revision as of 12:00, 12 October 2018
| 40px | This is a documentation subpage for Template:ESPN NHL. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:ESPN NHL displays an external link to a National Hockey League (NHL) player's profile at ESPN.com. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{ESPN NHL | ID }}{{ESPN NHL | ID | NAME }}
Named parameters:
{{ESPN NHL | id= ID }}{{ESPN NHL | id= ID | name= NAME }}
Using Wikidata property Template:Property:
{{ESPN NHL}}{{ESPN NHL | name= NAME }}
Examples
Unnamed parameters
URL:
Usage:
* {{ESPN NHL | 386 | Marián Hossa }}
Output:
- Marián Hossa at ESPN.comScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
* {{ESPN NHL | id= 3024816 | name= Austin Czarnik }}
Output:
- Austin Czarnik at ESPN.comScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
* {{ESPN NHL}}
Output:
- Template:PAGENAMEBASE at ESPN.comScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for ESPN NHL
This template displays an external link to a National Hockey League (NHL) player's profile at ESPN.com. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the player's profile. Example: 386 is the ID portion of http://www.espn.com/nhl/player/_/id/386. This parameter is optional if Wikidata property P3687 exists, but required if not.
| Number | optional |
| Player name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(ice hockey)".
| String | optional |
See also
- {{Ice hockey stats}}
Other ESPN external link templates:
- {{ESPN FC}}
- {{ESPN NFL}}
- {{ESPNcricinfo}}
- {{ESPNscrum}}