Difference between revisions of "Template:AustralianFootball/doc"
imported>Zyxw (update examples) |
imported>Zyxw (updates for template accepting a numeric parameter) |
||
Line 27: | Line 27: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
− | + | ; URLs | |
− | : < | + | : <kbd>[http://australianfootball.com/players/player//14011 http://australianfootball.com/players/player//{{hilite|14011}}]</kbd> |
− | : < | + | : <kbd>[http://australianfootball.com/players/player/brendan+fevola/14011 http://australianfootball.com/players/player/{{hilite|brendan+fevola/14011}}]</kbd> |
+ | : <kbd>[http://australianfootball.com/players/player/brendan%2Bfevola/14011 http://australianfootball.com/players/player/{{hilite|brendan%2Bfevola/14011}}]</kbd> | ||
− | Usage: | + | ; Usage |
+ | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 14011 | Brendan Fevola }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brendan+fevola/14011 | Brendan Fevola }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brendan+fevola/14011 | Brendan Fevola }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brendan%2Bfevola/14011 | Brendan Fevola }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brendan%2Bfevola/14011 | Brendan Fevola }}</code> | ||
− | + | ; Output | |
+ | : {{{{BASEPAGENAME}} | 14011 | Brendan Fevola }} | ||
: {{{{BASEPAGENAME}} | brendan+fevola/14011 | Brendan Fevola }} | : {{{{BASEPAGENAME}} | brendan+fevola/14011 | Brendan Fevola }} | ||
: {{{{BASEPAGENAME}} | brendan%2Bfevola/14011 | Brendan Fevola }} | : {{{{BASEPAGENAME}} | brendan%2Bfevola/14011 | Brendan Fevola }} | ||
=== Named parameters: id, name === | === Named parameters: id, name === | ||
− | + | ; URLs | |
− | : < | + | : <kbd>[http://australianfootball.com/players/player//13940 http://australianfootball.com/players/player//{{hilite|13940}}]</code> |
− | : < | + | : <kbd>[http://australianfootball.com/players/player/nathan+brown/13940 http://australianfootball.com/players/player/{{hilite|nathan+brown/13940}}]</code> |
+ | : <kbd>[http://australianfootball.com/players/player/nathan%2Bbrown/13940 http://australianfootball.com/players/player/{{hilite|nathan%2Bbrown/13940}}]</code> | ||
− | Usage: | + | ; Usage |
− | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= nathan+brown/13940 | name= Nathan | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 13940 | name= Nathan Brown (born 1976) }}</code> |
− | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= nathan%2Bbrown/13940 | name= Nathan | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= nathan+brown/13940 | name= Nathan Brown (born 1976) }}</code> |
+ | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= nathan%2Bbrown/13940 | name= Nathan Brown (born 1976) }}</code> | ||
− | + | ; Output | |
− | : {{{{BASEPAGENAME}} | id= nathan+brown/13940 | name= Nathan | + | : {{{{BASEPAGENAME}} | id= 13940 | name= Nathan Brown (born 1976) }} |
− | : {{{{BASEPAGENAME}} | id= nathan%2Bbrown/13940 | name= Nathan | + | : {{{{BASEPAGENAME}} | id= nathan+brown/13940 | name= Nathan Brown (born 1976) }} |
+ | : {{{{BASEPAGENAME}} | id= nathan%2Bbrown/13940 | name= Nathan Brown (born 1976) }} | ||
=== Named parameters: alt, ref === | === Named parameters: alt, ref === | ||
− | + | ; URLs | |
− | : < | + | : <kbd>[http://australianfootball.com/players/player//13726 http://australianfootball.com/players/player//{{hilite|13726}}]</kbd> |
− | : < | + | : <kbd>[http://australianfootball.com/players/player/nathan+brown/13726 http://australianfootball.com/players/player/{{hilite|nathan+brown/13726}}]</kbd> |
+ | : <kbd>[http://australianfootball.com/players/player/nathan%2Bbrown/13726 http://australianfootball.com/players/player/{{hilite|nathan%2Bbrown/13726}}]</kbd> | ||
− | Usage: | + | ; Usage |
− | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= nathan+brown/13726 | alt= Nathan | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= 13726 | alt= Nathan Brown (born 1978) }}</code> |
− | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= nathan%2Bbrown/13726 | alt= Nathan | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= nathan+brown/13726 | alt= Nathan Brown (born 1978) }}</code> |
+ | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= nathan%2Bbrown/13726 | alt= Nathan Brown (born 1978) }}</code> | ||
− | + | ; Output | |
− | : {{{{BASEPAGENAME}} | ref= nathan+brown/13726 | alt= Nathan | + | : {{{{BASEPAGENAME}} | ref= 13726 | alt= Nathan Brown (born 1978) }} |
− | : {{{{BASEPAGENAME}} | ref= nathan%2Bbrown/13726 | alt= Nathan | + | : {{{{BASEPAGENAME}} | ref= nathan+brown/13726 | alt= Nathan Brown (born 1978) }} |
+ | : {{{{BASEPAGENAME}} | ref= nathan%2Bbrown/13726 | alt= Nathan Brown (born 1978) }} | ||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
− | + | ; Usage | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
− | + | ; Output | |
: {{ {{BASEPAGENAME}} }} | : {{ {{BASEPAGENAME}} }} | ||
Line 81: | Line 90: | ||
"label": "id", | "label": "id", | ||
"aliases": ["ref", "1"], | "aliases": ["ref", "1"], | ||
− | "description": "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 | + | "description": "This parameter should contain the ID portion of the URL. Example: 14011 or brendan+fevola/14011 is the ID portion of http://australianfootball.com/players/player/brendan+fevola/14011. It is optional if Wikidata property P3546 exists, but required if not.", |
"type": "string", | "type": "string", | ||
"required": false, | "required": false, |
Revision as of 04:11, 2 November 2017
![]() | This is a documentation subpage for Template:AustralianFootball. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
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.
Contents
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
- URLs
- http://australianfootball.com/players/player//14011
- http://australianfootball.com/players/player/brendan+fevola/14011
- http://australianfootball.com/players/player/brendan%2Bfevola/14011
- Usage
{{AustralianFootball | 14011 | Brendan Fevola }}
{{AustralianFootball | brendan+fevola/14011 | Brendan Fevola }}
{{AustralianFootball | brendan%2Bfevola/14011 | Brendan Fevola }}
- Output
- Template:PAGENAMEBASE/14011 Brendan Fevola at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Brendan Fevola at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Brendan Fevola at AustralianFootball.comScript error: No such module "EditAtWikidata".
Named parameters: id, name
- URLs
- http://australianfootball.com/players/player//13940
- http://australianfootball.com/players/player/nathan+brown/13940
- http://australianfootball.com/players/player/nathan%2Bbrown/13940
- Usage
{{AustralianFootball | id= 13940 | name= Nathan Brown (born 1976) }}
{{AustralianFootball | id= nathan+brown/13940 | name= Nathan Brown (born 1976) }}
{{AustralianFootball | id= nathan%2Bbrown/13940 | name= Nathan Brown (born 1976) }}
- Output
- Template:PAGENAMEBASE/13940 Nathan Brown (born 1976) at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Nathan Brown (born 1976) at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Nathan Brown (born 1976) at AustralianFootball.comScript error: No such module "EditAtWikidata".
Named parameters: alt, ref
- URLs
- http://australianfootball.com/players/player//13726
- http://australianfootball.com/players/player/nathan+brown/13726
- http://australianfootball.com/players/player/nathan%2Bbrown/13726
- Usage
{{AustralianFootball | ref= 13726 | alt= Nathan Brown (born 1978) }}
{{AustralianFootball | ref= nathan+brown/13726 | alt= Nathan Brown (born 1978) }}
{{AustralianFootball | ref= nathan%2Bbrown/13726 | alt= Nathan Brown (born 1978) }}
- Output
- Template:PAGENAMEBASE/13726 Nathan Brown (born 1978) at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Nathan Brown (born 1978) at AustralianFootball.comScript error: No such module "EditAtWikidata".
- Nathan Brown (born 1978) 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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id ref 1 | This parameter should contain the ID portion of the URL. Example: 14011 or brendan+fevola/14011 is the ID portion of http://australianfootball.com/players/player/brendan+fevola/14011. It is optional if Wikidata property P3546 exists, but required if not.
| String | optional |
name | name 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)".
| String | optional |