Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2451d5e2efe51f9

Jump to content

Template:AFL player/doc

From Wikipedia, the free encyclopedia

Template:AFL player displays an external link to an Australian rules football player's page at the website for a club in the Australian Football League (AFL). 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

[edit]

With club parameter only:

{{AFL player | club= }}

With id and name parameters:

{{AFL player | club= | id= }}
{{AFL player | club= | name= }}
{{AFL player | club= | id= | name= }}

With link and alt parameters:

{{AFL player | club= | link= }}
{{AFL player | club= | alt= }}
{{AFL player | club= | link= | alt= }}

Parameters

[edit]

Required: club parameter

[edit]
|Club=NameWebsiteTemplate
ADEAdelaide Football Clubwww.afc.com.au{{Adelplayer}}
BRIBrisbane Lionswww.lions.com.au{{Brisplayer}}
CARCarlton Football Clubwww.carltonfc.com.au{{Carlplayer}}
COLCollingwood Football Clubwww.collingwoodfc.com.au{{Collplayer}}
ESSEssendon Football Clubwww.essendonfc.com.au{{Essplayer}}
FREFremantle Football Clubwww.fremantlefc.com.au{{Fremplayer}}
GCGold Coast Sunswww.goldcoastfc.com.au{{GCplayer}}
GEEGeelong Football Clubwww.geelongcats.com.au{{Geelplayer}}
GWSGreater Western Sydney Giantswww.gwsgiants.com.au{{GWSplayer}}
HAWHawthorn Football Clubwww.hawthornfc.com.au{{Hawplayer}}
MELMelbourne Football Clubwww.melbournefc.com.au{{Melbplayer}}
NMNorth Melbourne Football Clubwww.nmfc.com.au{{NMplayer}}
PORPort Adelaide Football Clubwww.portadelaidefc.com.au{{Portplayer}}
RICRichmond Football Clubwww.richmondfc.com.au{{Richplayer}}
STKSt Kilda Football Clubwww.saints.com.au{{Stkplayer}}
SYDSydney Swanswww.sydneyswans.com.au{{Sydplayer}}
WBDWestern Bulldogswww.westernbulldogs.com.au{{Wbplayer}}
WCEWest Coast Eagleswww.westcoasteagles.com.au{{Wceplayer}}
[edit]

This parameter may be used specify the portion of the URL specific to an individual player, such as tom-jonas in https://www.portadelaidefc.com.au/player-profile/tom-jonas. 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 |id=cameron-ellisyolmen or |link=cameron-ellisyolmen).

Optional: name or alt parameters

[edit]

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 |name=Cameron Ellis-Yolmen or |alt=Cameron Ellis-Yolmen.

Examples

[edit]

Using id and name parameters

[edit]

URL:

https://www.portadelaidefc.com.au/player-profile/tom-jonas

Possible usage:

* {{AFL player | club = POR | id= tom-jonas | name= Tom Jonas }}

Suggested usage:

* {{Portplayer | id= tom-jonas | name= Tom Jonas }}
[edit]

URL:

https://www.afc.com.au/player-profile/cameron-ellisyolmen

Possible usage:

* {{AFL player | club = ADE | link= cameron-ellisyolmen | alt= Cameron Ellis-Yolmen }}

Suggested usage:

* {{Adelplayer | link= cameron-ellisyolmen | alt= Cameron Ellis-Yolmen }}

Using default values

[edit]

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:
* {{AFL player|club=POR}}
Suggested usage:
* {{Portplayer}}

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:
* {{AFL player|club=ADE|id=cameron-ellisyolmen}}
* {{AFL player|club=ADE|link=cameron-ellisyolmen}}
Suggested usage:
* {{Adelplayer|id=cameron-ellisyolmen}}
* {{Adelplayer|link=cameron-ellisyolmen}}

Templates and modules used

[edit]