Difference between revisions of "Template:Fba/doc"
imported>S.A. Julio (→Examples: example) |
imported>S.A. Julio (add) |
||
| Line 10: | Line 10: | ||
*''size'' (optional) – Can be used to change the flag icon size (use sparingly!) | *''size'' (optional) – Can be used to change the flag icon size (use sparingly!) | ||
*''name'' (optional) – Can be used to change the wikilink display text | *''name'' (optional) – Can be used to change the wikilink display text | ||
| − | ** | + | **Setting the parameter to {{para|name|full}} will display the full association name instead of the country |
| + | **Setting the parameter to {{para|name|code}} will display the association code instead of the country name | ||
*''old'' (optional) - When given a value (e.g. "<code>yes</code>"/"<code>y</code>"/"<code>1</code>"), will link to the country's former football association (only applies to Brunei and Kenya) | *''old'' (optional) - When given a value (e.g. "<code>yes</code>"/"<code>y</code>"/"<code>1</code>"), will link to the country's former football association (only applies to Brunei and Kenya) | ||
| Line 19: | Line 20: | ||
*<code><nowiki>{{fba|GER|name=GER}}</nowiki></code> → {{fba|GER|name=GER}} | *<code><nowiki>{{fba|GER|name=GER}}</nowiki></code> → {{fba|GER|name=GER}} | ||
*<code><nowiki>{{fba|ESP|name=full}}</nowiki></code> → {{fba|ESP|name=full}} | *<code><nowiki>{{fba|ESP|name=full}}</nowiki></code> → {{fba|ESP|name=full}} | ||
| + | *<code><nowiki>{{fba|Mexico|name=code}}</nowiki></code> → {{fba|Mexico|name=code}} | ||
==Parameters== | ==Parameters== | ||
Latest revision as of 20:20, 9 May 2020
| 40px | This is a documentation subpage for Template:Fba. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Description
{{fb|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national football association article. The list of article titles of the national football associations is located at Template:Fba/list.
- Parameters
- nation – Use either the name of the nation or the three-letter country code as used by FIFA
- variant (optional) – Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
- size (optional) – Can be used to change the flag icon size (use sparingly!)
- name (optional) – Can be used to change the wikilink display text
- Setting the parameter to
|name=fullwill display the full association name instead of the country - Setting the parameter to
|name=codewill display the association code instead of the country name
- Setting the parameter to
- old (optional) - When given a value (e.g. "
yes"/"y"/"1"), will link to the country's former football association (only applies to Brunei and Kenya)
Examples
{{fba|Argentina}}→ 23x15px Argentina{{fba|ENG}}→ 23x15px England{{fba|Italy|1861}}→ 23x15px Italy{{fba|GER|name=GER}}→ 23x15px GER{{fba|ESP|name=full}}→ 23x15px Royal Spanish Football Federation{{fba|Mexico|name=code}}→ 23x15px MEX
Parameters
TemplateData for Fba
Produces a flag icon attached to a wikilinked national football association article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Nation | 1 | Use either the name of the nation or the three-letter country code as used by FIFA
| String | required |
| Flag variant | variant 2 | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
| String | optional |
| Icon size | size | Can be used to change the flag icon size (use sparingly!) | Unknown | optional |
| Link text | name | Can be used to change the wikilink display text | Unknown | optional |
| Old | old | When given a value (e.g. "yes"/"y"/"1"), will link to the country's former football association (only applies to Brunei and Kenya) | Unknown | optional |
See also
- Template:fbaicon – for rendering the flag on its own, with a wikilink to the national association team page.
- Template:fb – for linking to men's national football teams