Difference between revisions of "Template:DEL profile/doc"

From blackwiki
Jump to navigation Jump to search
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''|''NAME''<nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''<nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
  
 
Named parameters:
 
Named parameters:
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|name=''NAME''<nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''<nowiki>}}</nowiki></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 (Deutsche Eishockey Liga) profile and statistics page.",
+
"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",
    "default": "",
 
 
     "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",
    "default": "{{PAGENAME}}",
 
 
     "required": false
 
     "required": false
 
   }
 
   }
Line 36: Line 35:
  
 
== Examples ==
 
== Examples ==
Unnamed parameters:
 
* Usage: <code><nowiki>{{</nowiki>DEL profile | 7090293 | Dimitri Pätzold<nowiki>}}</nowiki></code>
 
** Result: {{DEL profile | 7090293 | Dimitri Pätzold}}
 
* Usage: <code><nowiki>{{</nowiki>DEL profile|7090293<nowiki>}}</nowiki></code>
 
** Result: {{DEL profile|7090293}}
 
  
Named parameters:
+
=== Unnamed parameters ===
* Usage: <code><nowiki>{{</nowiki>DEL profile |id= 6220525 |name= Dimitrij Kotschnew<nowiki>}}</nowiki></code>
+
''URL:''
** Result: {{DEL profile |id= 6220525 |name= Dimitrij Kotschnew}}
+
: <tt>[https://www.del.org/?p=7090293 https://www.del.org/?p={{hilite|7090293}}]</tt>
* Usage: <code><nowiki>{{</nowiki>DEL profile|id=6220525<nowiki>}}</nowiki></code>
+
''Usage:''
** Result: {{DEL profile|id=6220525}}
+
: <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 go here, and interwikis go in Wikidata -->
+
<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

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

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 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.

Template parameters

ParameterDescriptionTypeStatus
ID1 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

Numberrequired
Name2 name

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

URL:

https://www.del.org/?p=7090293

Usage:

* {{DEL profile | 7090293 }}
* {{DEL profile | 7090293 | Dimitri Pätzold }}

Output:

Named parameters

URL:

https://www.del.org/?p=6220525

Usage:

* {{DEL profile | id= 6220525 }}
* {{DEL profile | id= 6220525 | name= Dimitrij Kotschnew }}

Output:

See also

Ice hockey player external link templates: