Difference between revisions of "Template:Fbu/doc"

From blackwiki
Jump to navigation Jump to search
imported>Black Falcon
m (→‎See also: updated link to category)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(14 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{fbu|age|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<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==
*<tt><nowiki>{{fbu|21|Netherlands}}</nowiki></tt> → {{fbu|21|Netherlands}}
+
*<code><nowiki>{{fbu|21|Netherlands}}</nowiki></code> → {{fbu|21|Netherlands}}
*<tt><nowiki>{{fbu|20|Brazil}}</nowiki></tt> → {{fbu|20|Brazil}}
+
*<code><nowiki>{{fbu|20|Brazil}}</nowiki></code> → {{fbu|20|Brazil}}
*<tt><nowiki>{{fbu|21|ENG}}</nowiki></tt> → {{fbu|21|ENG}}
+
*<code><nowiki>{{fbu|21|ENG}}</nowiki></code> → {{fbu|21|ENG}}
*<tt><nowiki>{{fbu|20|COL}}</nowiki></tt> → {{fbu|20|COL}}
+
*<code><nowiki>{{fbu|20|COL}}</nowiki></code> → {{fbu|20|COL}}
*<tt><nowiki>{{fbu|21|Romania|1965}}</nowiki></tt> → {{fbu|21|Romania|1965}}
+
*<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: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|{{PAGENAME}}]]
+
[[Category:Association football flag templates]]
[[Category:Flag template system|{{PAGENAME}}]]
+
[[Category:Flag template system]]
 
+
}}</includeonly>
[[sr:Шаблон:Fbu]]
 
</includeonly>
 

Latest revision as of 17:02, 24 May 2020

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

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Age1

Specifies the age limit

Example
21
Numberrequired
Nation2

Use either the name of the nation or the three-letter country code as used by FIFA

Example
Argentina
Stringrequired
Variant3

Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.

Example
1861
Stringoptional
Icon sizesize

Can be used to change the flag icon size (use sparingly!)

Unknownoptional
Link textname

Can be used to change the wikilink display text

Unknownoptional

Maintenance categories

See also