Template:AHL profile/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks 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:

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

Tracking categories

See also

Ice hockey player external link templates:

External links