Template:AHL profile/doc

It is intended for use in the external links section of an article.

Usage
Unnamed parameters:

Named parameters:

Using Wikidata property P3651:

Unnamed parameters
URLs:
 * Old: http://theahl.com/stats/player.php?id=
 * New: http://theahl.com/stats/player//jordan-henry
 * New: http://theahl.com/stats/player/

Usage:

Output:

Named parameters
URLs:
 * Old: http://theahl.com/stats/player.php?id=
 * New: http://theahl.com/stats/player//chris-blight
 * New: http://theahl.com/stats/player/

Usage:

Output:

No parameters and Wikidata property not defined
Usage:

Output:

TemplateData
{ "description": "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.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "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.", "type": "number", "required": false, "default": "Wikidata property P3651" },   "name": { "label": "name", "aliases": ["2"], "description": "Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).", "type": "string", "required": false, "default": "" } },  "paramOrder": [ "id", "name" ] }