Difference between revisions of "Template:Eliteprospects/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(udpate)
imported>Pigsonthewing
m (→‎TemplateData: update)
Line 28: Line 28:
 
     "type": "number",
 
     "type": "number",
 
     "default": "",
 
     "default": "",
     "required": true
+
     "required": false
 
   },
 
   },
 
   "2": {
 
   "2": {

Revision as of 14:33, 31 July 2016

Template:Uses Wikidata


Template:Eliteprospects displays an external link to an ice hockey player's profile at EliteProspects.com.

Usage

No parameters
(Uses ID from Wikidata, and page name)
{{Eliteprospects}}
Unnamed parameters
{{Eliteprospects|ID|NAME}}
{{Eliteprospects|ID}}
Named parameters
{{Eliteprospects|id=ID|name=NAME}}
{{Eliteprospects|id=ID}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Eliteprospects

This template displays an external link to an ice hockey player's profile at EliteProspects.com.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

Player's ID number in the URL. Example: 2092 is the ID in http://www.eliteprospects.com/player.php?player=2092&lang=en

Default
Numberoptional
Name2 name title

Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).

Default
{{PAGENAME}}
Stringoptional

Examples

Unnamed parameters

Usage:

  • {{Eliteprospects | 2092 | Tomi Kallio }}

Output:

URL:

Named parameters

name

Usage:

  • {{Eliteprospects |id= 9678 |name= Wayne Gretzky }}

Output:

URL:

title

Usage:

  • {{Eliteprospects |id= 8627 |title= Jaromír Jágr }}

Output:

URL:

See also

Ice hockey player external link templates: