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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(→‎Examples: update)
blackwiki>Zyxw
m (Since <tt> is obsolete in HTML5, replace with <kbd> – see HTML element#tt and Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 23: Line 23:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URLs:''
 
''URLs:''
: Old: <tt>[http://theahl.com/stats/player.php?id=2080 http://theahl.com/stats/player.php?id={{hilite|2080}}]</tt>
+
: Old: <kbd>[http://theahl.com/stats/player.php?id=2080 http://theahl.com/stats/player.php?id={{hilite|2080}}]</kbd>
: New: <tt>[http://theahl.com/stats/player/2080/jordan-henry http://theahl.com/stats/player/{{hilite|2080}}/jordan-henry]</tt>
+
: New: <kbd>[http://theahl.com/stats/player/2080/jordan-henry http://theahl.com/stats/player/{{hilite|2080}}/jordan-henry]</kbd>
: New: <tt>[http://theahl.com/stats/player/2080 http://theahl.com/stats/player/{{hilite|2080}}]</tt>
+
: New: <kbd>[http://theahl.com/stats/player/2080 http://theahl.com/stats/player/{{hilite|2080}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 35: Line 35:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URLs:''
 
''URLs:''
: Old: <tt>[http://theahl.com/stats/player.php?id=1853 http://theahl.com/stats/player.php?id={{hilite|1853}}]</tt>
+
: Old: <kbd>[http://theahl.com/stats/player.php?id=1853 http://theahl.com/stats/player.php?id={{hilite|1853}}]</kbd>
: New: <tt>[http://theahl.com/stats/player/2080/chris-blight http://theahl.com/stats/player/{{hilite|2080}}/chris-blight]</tt>
+
: New: <kbd>[http://theahl.com/stats/player/2080/chris-blight http://theahl.com/stats/player/{{hilite|2080}}/chris-blight]</kbd>
: New: <tt>[http://theahl.com/stats/player/2080 http://theahl.com/stats/player/{{hilite|2080}}]</tt>
+
: New: <kbd>[http://theahl.com/stats/player/2080 http://theahl.com/stats/player/{{hilite|2080}}]</kbd>
  
 
''Usage:''
 
''Usage:''

Revision as of 05:11, 5 August 2018

Template:Uses Wikidata

Template:AHL profile displays an external link to an ice hockey player's official American Hockey League (AHL) profile and statistics page. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{AHL profile | ID }}
{{AHL profile | ID | NAME }}

Named parameters:

{{AHL profile | id= ID }}
{{AHL profile | id= ID | name= NAME }}

Using Wikidata property P3651:

{{AHL profile}}
{{AHL profile | name= NAME }}

Examples

Unnamed parameters

URLs:

Old: http://theahl.com/stats/player.php?id=2080
New: http://theahl.com/stats/player/2080/jordan-henry
New: http://theahl.com/stats/player/2080

Usage:

* {{AHL profile | 2080 | Jordan Henry }}

Output:

Named parameters

URLs:

Old: http://theahl.com/stats/player.php?id=1853
New: http://theahl.com/stats/player/2080/chris-blight
New: http://theahl.com/stats/player/2080

Usage:

* {{AHL profile | id= 1853 | name= Chris Blight }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{AHL profile}}

Output:

Tracking categories

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 AHL profile

This template displays an external link to an ice hockey player's official American Hockey League (AHL) profile and statistics page. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

ID number found in URL of the player's official AHL page. Example: 2080 for URL http://theahl.com/stats/player.php?id=2080 or http://theahl.com/stats/player/2080/jordan-henry. This parameter is optional if Wikidata property P3651 exists, but required if not.

Default
Wikidata property P3651
Numberoptional
namename 2

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

Default
{{PAGENAMEBASE}}
Stringoptional

See also

Ice hockey player external link templates:

External links