Difference between revisions of "Template:Eurohockey"

From blackwiki
Jump to navigation Jump to search
imported>Djsasso
imported>Djsasso
(adjust back to match EL style for hockey stat sites)
Line 1: Line 1:
{{Cite web
+
[http://www.eurohockey.com/player/{{{1|{{{id|{{#property:P2601|[[Category:Eurohockey template with no id set]]}}}}}}}}.html {{{2|{{PAGENAME}}}}} profile] at [http://www.eurohockey.com Eurohockey.com]<noinclude>
|url        = http://www.eurohockey.com/player/{{{1|{{{id|{{#property:P2601|[[Category:Eurohockey template with no id set]]}}}}}}}}.html
 
|title      = {{{2|{{PAGENAMEBASE}}}}} profile
 
|website    = Eurohockey.com
 
|accessdate = {{{3|{{{accessdate|}}}}}}
 
}}<noinclude>
 
  
 
{{Uses Wikidata|P2601}}
 
{{Uses Wikidata|P2601}}
{{Cs1 wrapper|base=Cite web}}
 
 
{{documentation}}
 
{{documentation}}
  
 
</noinclude>
 
</noinclude>

Revision as of 16:21, 21 September 2016

Eurohockey profile at Eurohockey.com

Template:Uses Wikidata

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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

Usage

Unnamed parameters:

{{Eurohockey | ID }}
{{Eurohockey | ID | NAME }}

Named parameters:

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

Using Wikidata property P2601:

{{Eurohockey}}
{{Eurohockey | name= NAME }}

Examples

Unnamed parameters

URL:

http://www.eurohockey.com/player/8470-teemu-selnne.html

Usage:

* {{Eurohockey | 8470-teemu-selnne | Teemu Selänne }}
* {{Eurohockey | 8470 | Teemu Selänne }}

Output:

Named parameters

URL:

http://www.eurohockey.com/player/10689-jaromir-jagr.html

Usage:

* {{Eurohockey | id= 10689-jaromir-jagr | name= Jaromír Jágr }}
* {{Eurohockey | id= 10689 | name= Jaromír Jágr }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{Eurohockey}}

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 Eurohockey

This template displays an external link to an ice hockey player's profile at Eurohockey.com. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 8470-teemu-selnne is the ID portion of http://www.eurohockey.com/player/8470-teemu-selnne.html. This parameter is optional if Wikidata property P2601 exists, but required if not.

Default
Wikidata property P2601
Stringoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist

See also