Template:AFL Tables/doc

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

Usage
Unnamed parameters:

Named parameters (id, name):

Named parameters (ref, alt):

Using Wikidata property P3547:

Parameters
The first parameter ("id" or "ref") is the exact folder and page name used in the URL at the AFL Tables website. This is in the form of FirstInitial/FirstName_LastName, such as B/Brendan_Fevola for http://afltables.com/afl/stats/players/B/Brendan_Fevola.html. Where multiple players have the same name, the usual system is to add a number, such as N/Nathan_Brown0, N/Nathan_Brown1, or N/Nathan_Brown2.

The second parameter ("name" or "alt") is an optional alternative parameter to specify a player's name. If not given it defaults to the Wikipedia article name, without any disambiguation such as (footballer). This parameter is only needed if you want to display text other than the article name.

Unnamed parameters
URL:

Usage:

Result:

Named parameters: id, name
URL:

Usage:

Result:

Named parameters: alt, ref
URL:

Usage:

Result:

No parameters and Wikidata property not defined
Usage:

Output:

TemplateData
{ "description": "This template displays a uniformly formatted external link to an Australian Football League (AFL) player's profile page on the AFL Tables website. It is intended for use in the external links section of an article.", "params": { "id": { "label": "id", "aliases": ["ref", "1"], "description": "This parameter should contain the ID portion of the URL. Example: B/Brendan_Fevola is the ID portion of http://afltables.com/afl/stats/players/B/Brendan_Fevola.html. It is optional if Wikidata property P3547 exists, but required if not.", "type": "string", "required": false, "default": "Wikidata property P3547" },   "name": { "label": "name", "aliases": ["alt", "2"], "description": "This parameter may be used to specify the link text, which should be the name of the player. It is optional and defaults to the Wikipedia article name, without any disambiguation such as \"(footballer)\".", "type": "string", "required": false, "default": "" } },  "paramOrder": [ "id", "name" ] }