Difference between revisions of "Template:Eliteprospects/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update examples)
imported>Zyxw
m (minor fixes)
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 [[d:Property:P2481|P2481]]:
+
Using [[Wikidata]] property {{Property|P2481}}:
 
: <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>
Line 25: Line 25:
 
''URLs:''
 
''URLs:''
 
: <kbd>[http://www.eliteprospects.com/player.php?player=2092&lang=en http://www.eliteprospects.com/player.php?player={{hilite|2092}}&lang=en]</kbd>
 
: <kbd>[http://www.eliteprospects.com/player.php?player=2092&lang=en http://www.eliteprospects.com/player.php?player={{hilite|2092}}&lang=en]</kbd>
: <kbd>[https://www.eliteprospects.com/player/2092/tomi-kallio https://www.eliteprospects.com/player/{{hilite|2092}}/tomi-ka
+
: <kbd>[https://www.eliteprospects.com/player/2092/tomi-kallio https://www.eliteprospects.com/player/{{hilite|2092}}/tomi-kallio]</kbd>
llio]</kbd>
 
  
 
''Usage:''
 
''Usage:''
Line 35: Line 34:
  
 
=== Named parameters ===
 
=== Named parameters ===
''URL:''
+
''URLs:''
 
: <kbd>[http://www.eliteprospects.com/player.php?player=13346&lang=en http://www.eliteprospects.com/player.php?player={{hilite|13346}}&lang=en]</kbd>
 
: <kbd>[http://www.eliteprospects.com/player.php?player=13346&lang=en http://www.eliteprospects.com/player.php?player={{hilite|13346}}&lang=en]</kbd>
: <kbd>[https://www.eliteprospects.com/player/13346/tomi-kallio https://www.eliteprospects.com/player/{{hilite|13346}}/hayley-wickenheiser]</kbd>
+
: <kbd>[https://www.eliteprospects.com/player/13346/hayley-wickenheiser https://www.eliteprospects.com/player/{{hilite|13346}}/hayley-wickenheiser]</kbd>
  
 
''Usage:''
 
''Usage:''

Revision as of 04:12, 15 September 2018

Template:Uses Wikidata Template:Tracks Wikidata

Template:Eliteprospects displays an external link to an ice hockey player's profile at EliteProspects.com. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{Eliteprospects | ID }}
{{Eliteprospects | ID | NAME }}

Named parameters:

{{Eliteprospects | id= ID }}
{{Eliteprospects | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{Eliteprospects}}
{{Eliteprospects | name= NAME }}

Examples

Unnamed parameters

URLs:

http://www.eliteprospects.com/player.php?player=2092&lang=en
https://www.eliteprospects.com/player/2092/tomi-kallio

Usage:

* {{Eliteprospects | 2092 | Tomi Kallio }}

Output:

Named parameters

URLs:

http://www.eliteprospects.com/player.php?player=13346&lang=en
https://www.eliteprospects.com/player/13346/hayley-wickenheiser

Usage:

* {{Eliteprospects | id= 13346 | name= Hayley Wickenheiser }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{Eliteprospects}}

Output:

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. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
EliteProspects player IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 2092 is the ID portion of http://www.eliteprospects.com/player.php?player=2092&lang=en. This parameter is optional if Wikidata property P2481 exists, but required if not.

Default
Wikidata property P2481
Numberoptional
Player's namename title 2

The "name" parameter (or "title" 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

See also

Ice hockey player external link templates: