Template:AFL player/doc

This template is used to implement other templates for specific AFL teams such as Template:Adelplayer (Adelaide Football Club) and Template:Brisplayer (Brisbane Lions) which can be used in the external links sections of the player's Wikipedia article.

Usage
With Club parameter only:

With id and name parameters:

With link and alt parameters:

Optional: id or link parameters
This parameter may be used specify the portion of the URL specific to an individual player, such as tom-jonas in http://www.portadelaidefc.com.au/player-profile/. It defaults to the Wikipedia article name, without any disambiguation such as "(footballer)", converted to lower case and with a hyphen added after the first word. If used in the article for Tom Jonas, the default value is tom-jonas (which is correct, therefore this parameter would be optional). If used in the article for Cam Ellis-Yolmen, the default value is cam-ellis-yolmen (which is not correct, so the template must be called with cameron-ellisyolmen or cameron-ellisyolmen).

Optional: name or alt parameters
This parameter may be used to specify the anchor text used for the external link, which should be the name of the player. It defaults to the Wikipedia article name, without any disambiguation such as "(footballer)". If used in an article named "Tom Jonas (footballer)", the default would be Tom Jonas. This parameter is always optional unless the anchor text should be different than the article name. For example, in the article "Cam Ellis-Yolmen" the template could be called with Cameron Ellis-Yolmen or Cameron Ellis-Yolmen.

Using id and name parameters
URL:
 * http://www.portadelaidefc.com.au/player-profile/

Possible usage:

Suggested usage:



Using link and alt parameters
URL:
 * http://www.afc.com.au/player-profile/

Possible usage:

Suggested usage:



Using default values
If used in the article for Tom Jonas, this template automatically generates the correct ID tom-jonas and the following links would work:
 * Possible usage:
 * Suggested usage:
 * Suggested usage:

If used in the article for Cam Ellis-Yolmen, this template automatically generates an incorrect ID cam-ellis-yolmen. The correct ID cameron-ellisyolmen must be specified via the "id" or "link" parameters:
 * Possible usage:
 * Suggested usage:
 * Suggested usage:
 * Suggested usage:

Templates and modules used

 * Template:First word, implemented with Module:String
 * Template:Remove first word, implemented with Module:String