Template:AustralianFootball/doc

From blackwiki
< Template:AustralianFootball
Revision as of 14:22, 16 April 2017 by imported>Zyxw (update examples)
Jump to navigation Jump to search

Template:Uses Wikidata

Template:AustralianFootball displays an external link to an Australian rules football player's page at the AustralianFootball.com website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{AustralianFootball | ID }}
{{AustralianFootball | ID | NAME }}

Named parameters (id, name):

{{AustralianFootball | id= ID }}
{{AustralianFootball | id= ID | name= NAME }}

Named parameters (ref, alt):

{{AustralianFootball | ref= ID }}
{{AustralianFootball | ref= ID | alt= NAME }}

Using Wikidata property P3546:

{{AustralianFootball}}
{{AustralianFootball | name= NAME }}
{{AustralianFootball | alt= NAME }}

Examples

Unnamed parameters

URL:

http://australianfootball.com/players/player/brendan+fevola/14011
http://australianfootball.com/players/player/brendan%2Bfevola/14011

Usage:

{{AustralianFootball | brendan+fevola/14011 | Brendan Fevola }}
{{AustralianFootball | brendan%2Bfevola/14011 | Brendan Fevola }}

Result:

Brendan Fevola at AustralianFootball.comScript error: No such module "EditAtWikidata".
Brendan Fevola at AustralianFootball.comScript error: No such module "EditAtWikidata".

Named parameters: id, name

URL:

http://australianfootball.com/players/player/nathan+brown/13940
http://australianfootball.com/players/player/nathan%2Bbrown/13940

Usage:

{{AustralianFootball | id= nathan+brown/13940 | name= Nathan D. Brown }}
{{AustralianFootball | id= nathan%2Bbrown/13940 | name= Nathan D. Brown }}

Result:

Nathan D. Brown at AustralianFootball.comScript error: No such module "EditAtWikidata".
Nathan D. Brown at AustralianFootball.comScript error: No such module "EditAtWikidata".

Named parameters: alt, ref

URL:

http://australianfootball.com/players/player/nathan+brown/13726
http://australianfootball.com/players/player/nathan%2Bbrown/13726

Usage:

{{AustralianFootball | ref= nathan+brown/13726 | alt= Nathan G. Brown }}
{{AustralianFootball | ref= nathan%2Bbrown/13726 | alt= Nathan G. Brown }}

Result:

Nathan G. Brown at AustralianFootball.comScript error: No such module "EditAtWikidata".
Nathan G. Brown at AustralianFootball.comScript error: No such module "EditAtWikidata".

No parameters and Wikidata property not defined

Usage:

{{AustralianFootball}}

Output:

Template:PAGENAMEBASE at AustralianFootball.comScript error: No such module "EditAtWikidata".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for AustralianFootball

This template displays an external link to an Australian rules football player's page at the AustralianFootball.com website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid ref 1

This parameter should contain the ID portion of the URL. Example: brendan+fevola/14011 is the ID portion of http://australianfootball.com/players/player/brendan+fevola/14011 and brendan%2Bfevola/14011 is the ID portion of http://australianfootball.com/players/player/brendan%2Bfevola/14011. It is optional if Wikidata property P3546 exists, but required if not.

Default
Wikidata property P3546
Stringoptional
namename alt 2

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)".

Default
{{PAGENAMEBASE}}
Stringoptional