Difference between revisions of "Template:DEL profile/doc"
imported>Djsasso |
imported>Zyxw (update usage and examples) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[ice hockey]] player's official [[Deutsche Eishockey Liga|DEL]] profile and statistics page. | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[ice hockey]] player's official [[Deutsche Eishockey Liga|DEL]] profile and statistics page. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. |
== Usage == | == Usage == | ||
Unnamed parameters: | Unnamed parameters: | ||
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | |
Named parameters: | Named parameters: | ||
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | |
== TemplateData == | == TemplateData == | ||
{{TemplateDataHeader}} | {{TemplateDataHeader}} | ||
<templatedata>{ | <templatedata>{ | ||
| − | "description": "This template displays an external link to an ice hockey player's official DEL | + | "description": "This template displays an external link to an ice hockey player's official DEL profile and statistics page. It is intended for use in the external links section of an article.", |
"params": { | "params": { | ||
"1": { | "1": { | ||
| Line 22: | Line 22: | ||
"description": "ID number found in URL of the player's official DEL page. Example: 7090293 for http://www.del.org/de/spieler/portraits/page/233----.html?p=7090293", | "description": "ID number found in URL of the player's official DEL page. Example: 7090293 for http://www.del.org/de/spieler/portraits/page/233----.html?p=7090293", | ||
"type": "number", | "type": "number", | ||
| − | |||
"required": true | "required": true | ||
}, | }, | ||
| Line 29: | Line 28: | ||
"aliases": ["name"], | "aliases": ["name"], | ||
"description": "Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).", | "description": "Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).", | ||
| + | "default": "{{PAGENAME}}", | ||
"type": "string", | "type": "string", | ||
| − | |||
"required": false | "required": false | ||
} | } | ||
| Line 36: | Line 35: | ||
== Examples == | == Examples == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | === Unnamed parameters === | |
| − | + | ''URL:'' | |
| − | ** | + | : <tt>[https://www.del.org/?p=7090293 https://www.del.org/?p={{hilite|7090293}}]</tt> |
| − | + | ''Usage:'' | |
| − | ** | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 7090293 }}</code> |
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 7090293 | Dimitri Pätzold }}</code> | ||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | 7090293 }} | ||
| + | :* {{{{BASEPAGENAME}} | 7090293 | Jordan Henry }} | ||
| + | |||
| + | === Named parameters === | ||
| + | ''URL:'' | ||
| + | : <tt>[https://www.del.org/?p=6220525 https://www.del.org/?p={{hilite|6220525}}]</tt> | ||
| + | ''Usage:'' | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 6220525 }}</code> | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 6220525 | name= Dimitrij Kotschnew }}</code> | ||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | id= 6220525 }} | ||
| + | :* {{{{BASEPAGENAME}} | id= 6220525 | name= Dimitrij Kotschnew }} | ||
== See also == | == See also == | ||
| Line 64: | Line 72: | ||
** {{tl|Legendsofhockey}} | ** {{tl|Legendsofhockey}} | ||
** {{tl|TSN-NHL profile}} | ** {{tl|TSN-NHL profile}} | ||
| − | <includeonly> | + | |
| − | <!-- Categories | + | <includeonly>{{sandbox other|| |
| + | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Ice hockey external link templates]] | [[Category:Ice hockey external link templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | + | }}</includeonly> | |
| − | </includeonly> | ||
Revision as of 17:06, 22 May 2018
| This is a documentation subpage for Template:DEL profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:DEL profile displays an external link to an ice hockey player's official DEL profile and statistics page. It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{DEL profile | ID }}{{DEL profile | ID | NAME }}
Named parameters:
{{DEL profile | id= ID }}{{DEL profile | id= ID | name= NAME }}
TemplateData
TemplateData for DEL profile
This template displays an external link to an ice hockey player's official DEL profile and statistics page. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | 1 id | ID number found in URL of the player's official DEL page. Example: 7090293 for http://www.del.org/de/spieler/portraits/page/233----.html?p=7090293 | Number | required |
| Name | 2 name | Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).
| String | optional |
Examples
Unnamed parameters
URL:
Usage:
* {{DEL profile | 7090293 }}* {{DEL profile | 7090293 | Dimitri Pätzold }}
Output:
- Template:PAGENAMEBASE's profile and statistics at DEL.org (in German)
- Jordan Henry's profile and statistics at DEL.org (in German)
Named parameters
URL:
Usage:
* {{DEL profile | id= 6220525 }}* {{DEL profile | id= 6220525 | name= Dimitrij Kotschnew }}
Output:
- Template:PAGENAMEBASE's profile and statistics at DEL.org (in German)
- Dimitrij Kotschnew's profile and statistics at DEL.org (in German)
See also
Ice hockey player external link templates:
- Official league websites:
- {{AHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- {{KHL profile}}
- {{NHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{Hockeydb}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}