Difference between revisions of "Template:Fbu/doc"
Jump to navigation
Jump to search
imported>Dale Arnett (→See also: Added the women's counterpart.) |
imported>Jonesey95 |
||
| (12 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
==Description== | ==Description== | ||
| − | < | + | <code><nowiki>{{fbu|age|nation|variant|size=optional|name=optional}}</nowiki></code> |
Produces a flag icon attached to a wikilinked national under-''NN'' (e.g. under-20, under-21, etc.) football team article. | Produces a flag icon attached to a wikilinked national under-''NN'' (e.g. under-20, under-21, etc.) football team article. | ||
| Line 12: | Line 12: | ||
==Examples== | ==Examples== | ||
| − | *< | + | *<code><nowiki>{{fbu|21|Netherlands}}</nowiki></code> → {{fbu|21|Netherlands}} |
| − | *< | + | *<code><nowiki>{{fbu|20|Brazil}}</nowiki></code> → {{fbu|20|Brazil}} |
| − | *< | + | *<code><nowiki>{{fbu|21|ENG}}</nowiki></code> → {{fbu|21|ENG}} |
| − | *< | + | *<code><nowiki>{{fbu|20|COL}}</nowiki></code> → {{fbu|20|COL}} |
| − | *< | + | *<code><nowiki>{{fbu|21|Romania|1965}}</nowiki></code> → {{fbu|21|Romania|1965}} |
| + | {{TemplateDataHeader}} | ||
| + | |||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Age", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "description": "Specifies the age limit", | ||
| + | "example": "21" | ||
| + | }, | ||
| + | "2": { | ||
| + | "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 | ||
| + | }, | ||
| + | "3": { | ||
| + | "label": "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", | ||
| + | "2", | ||
| + | "3", | ||
| + | "size", | ||
| + | "name" | ||
| + | ], | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
| + | ==Maintenance categories== | ||
| + | *{{clc|Pages using Fbu template with missing parameter}} – for instances of the template missing the second unnamed parameter | ||
==See also== | ==See also== | ||
*[[Template:Fb]] — for main national football teams | *[[Template:Fb]] — for main national football teams | ||
*[[Template:Fbwu]] — for women's national age-grade football teams | *[[Template:Fbwu]] — for women's national age-grade football teams | ||
| + | *[[Template:fbo]] — for national Olympic football teams | ||
*[[:Category:European national under-21 association football teams]] | *[[:Category:European national under-21 association football teams]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| − | [[Category:Association football templates | + | [[Category:Association football flag templates]] |
| − | [[Category:Flag template system | + | [[Category:Flag template system]] |
| − | + | }}</includeonly> | |
| − | |||
| − | </includeonly> | ||
Latest revision as of 17:02, 24 May 2020
| This is a documentation subpage for Template:Fbu. It contains usage information, categories and other content that is not part of the original template page. |
Description
{{fbu|age|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national under-NN (e.g. under-20, under-21, etc.) football team article.
- Parameters
- nation — Use either the name of the nation or the three-letter country code as used by FIFA
- age — Specifies the age limit (e.g. "20", "21", etc.)
- 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
Examples
{{fbu|21|Netherlands}}→
Netherlands{{fbu|20|Brazil}}→
Brazil{{fbu|21|ENG}}→
England{{fbu|20|COL}}→
Colombia{{fbu|21|Romania|1965}}→
Romania
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 Fbu
Produces a flag icon attached to a wikilinked national football team article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Age | 1 | Specifies the age limit
| Number | required |
| Nation | 2 | Use either the name of the nation or the three-letter country code as used by FIFA
| String | required |
| Variant | 3 | 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 |
Maintenance categories
- Category:Pages using Fbu template with missing parameter (3) – for instances of the template missing the second unnamed parameter
See also
- Template:Fb — for main national football teams
- Template:Fbwu — for women's national age-grade football teams
- Template:fbo — for national Olympic football teams
- Category:European national under-21 association football teams