Difference between revisions of "Template:Fb/doc"
Jump to navigation
Jump to search
imported>GKFX (Add templatedata) |
|||
| Line 16: | Line 16: | ||
*<code><nowiki>{{fb|Italy|1861}}</nowiki></code> → {{fb|Italy|1861}} | *<code><nowiki>{{fb|Italy|1861}}</nowiki></code> → {{fb|Italy|1861}} | ||
*<code><nowiki>{{fb|GER|name=GER}}</nowiki></code> → {{fb|GER|name=GER}} | *<code><nowiki>{{fb|GER|name=GER}}</nowiki></code> → {{fb|GER|name=GER}} | ||
| + | |||
| + | ==Parameters== | ||
| + | {{TemplateDataHeader}} | ||
| + | |||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Nation", | ||
| + | "description": "Use either the name of the nation or the three-letter country code as used by FIFA", | ||
| + | "example": "Argentina", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "align": { | ||
| + | "label": "Align", | ||
| + | "description": "Set to \"yes\"/\"y\"/\"1\" to align country names in vertical lists", | ||
| + | "type": "unknown" | ||
| + | }, | ||
| + | "variant": { | ||
| + | "aliases": [ | ||
| + | "2" | ||
| + | ], | ||
| + | "label": "Flag variant", | ||
| + | "description": "Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.", | ||
| + | "example": "1861", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "size": { | ||
| + | "label": "Icon size", | ||
| + | "description": "Can be used to change the flag icon size (use sparingly!)" | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "Link text", | ||
| + | "description": "Can be used to change the wikilink display text" | ||
| + | } | ||
| + | }, | ||
| + | "description": "Produces a flag icon attached to a wikilinked national football team article.", | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "align", | ||
| + | "variant", | ||
| + | "size", | ||
| + | "name" | ||
| + | ], | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
==See also== | ==See also== | ||
Revision as of 18:00, 8 September 2017
| This is a documentation subpage for Template:Fb. 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 team article.
- 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
- align (optional) - Set to "yes"/"y"/"1" to align country names in vertical lists
Examples
{{fb|Argentina}}→ File:Flag of Argentina.svg Argentina{{fb|ENG}}→ File:Flag of England.svg England{{fb|Italy|1861}}→
Italy{{fb|GER|name=GER}}→ File:Flag of Germany.svg GER
Parameters
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 Fb
Produces a flag icon attached to a wikilinked national football team 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 |
| Align | align | Set to "yes"/"y"/"1" to align country names in vertical lists | Unknown | optional |
| 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 |
See also
- Template:fb-rt – for rendering the flag on the right
- Template:fb-big – for rendering a larger flag, with the team name underneath the flag
- Template:fbu – for under-NN national teams (i.e. under-20, under-21, etc.)
- Template:fbw – for women's national teams
- Category:National association football teams