Template:Adelplayer/doc
This is a documentation subpage for Template:Adelplayer. It may contain usage information, categories and other content that is not part of the original template page. |
Template:Adelplayer displays an external link to an Australian rules football player's page at AFC.com.au, the official website of the Adelaide Football Club in the Australian Football League (AFL). It is intended for use in the external links section of an article.
Usage
[edit]Unnamed parameters:
{{Adelplayer | ID }}
{{Adelplayer | ID | NAME }}
Named parameters (id, name):
{{Adelplayer | id= ID }}
{{Adelplayer | id= ID | name= NAME }}
Named parameters (link, alt):
{{Adelplayer | link= ID }}
{{Adelplayer | link= ID | alt= NAME }}
No parameters (generates link based on Wikipedia article name, test first to ensure a working link):
{{Adelplayer}}
Parameters
[edit]- 1 (first unnamed parameter)
- id
- link
- Any of these parameters may be used specify the portion of the URL specific to an individual player, such as taylor-walker in http://www.afc.com.au/player-profile/taylor-walker. 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 Taylor Walker (footballer), the default value is taylor-walker (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 this parameter would be used with cameron-ellisyolmen).
- 2 (second unnamed parameter)
- name
- alt
- Any of these parameters 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 Taylor Walker (footballer), the default would be Taylor Walker. 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 might specify the name as Cameron Ellis-Yolmen.
Examples
[edit]Unnamed parameters
[edit]URL:
Usage:
* {{Adelplayer | taylor-walker | Taylor Walker }}
Result:
- Taylor Walker's profile on the official website of the Adelaide Football Club
Named parameters: id, name
[edit]URL:
Usage:
* {{Adelplayer | id= eddie-betts | name= Eddie Betts }}
Result:
- Eddie Betts's profile on the official website of the Adelaide Football Club
Named parameters: link, alt
[edit]URL:
Usage:
* {{Adelplayer | link= cameron-ellisyolmen | alt= Cameron Ellis-Yolmen }}
Result:
- Cameron Ellis-Yolmen's profile on the official website of the Adelaide Football Club
Using default values
[edit]If used in the article for Taylor Walker (footballer), this template automatically generates the correct ID taylor-walker and the following links would work:
* {{Adelplayer}}
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:
* {{Adelplayer | cameron-ellisyolmen }}
See also
[edit]Other templates implemented using {{AFL player}}:
- {{Brisplayer}} for players in the Brisbane Lions
- {{Carlplayer}} for players in the Carlton Football Club
- {{Collplayer}} for players in the Collingwood Football Club
- {{Essplayer}} for players in the Essendon Football Club
- {{Fremplayer}} for players in the Fremantle Football Club
- {{GCplayer}} for players in the Gold Coast Football Club
- {{Geelplayer}} for players in the Geelong Football Club
- {{GWSplayer}} for players in the Greater Western Sydney Giants
- {{Hawplayer}} for players in the Hawthorn Football Club
- {{Melbplayer}} for players in the Melbourne Football Club
- {{NMplayer}} for players in the North Melbourne Football Club
- {{Portplayer}} for players in the Port Adelaide Football Club
- {{Richplayer}} for players in the Richmond Football Club
- {{Stkplayer}} for players in the St Kilda Football Club
- {{Sydplayer}} for players in the Sydney Swans
- {{Wbplayer}} for players in the Western Bulldogs
- {{Wceplayer}} for players in the West Coast Eagles
External links
[edit]- Players page at the official Adelaide Football Club website