Difference between revisions of "Template:Fbu/doc"

From blackwiki
Jump to navigation Jump to search
imported>S.A. Julio
m (→‎See also: adjust)
imported>Tom Morris
(adding TemplateData)
Line 17: Line 17:
 
*<tt><nowiki>{{fbu|20|COL}}</nowiki></tt> → {{fbu|20|COL}}
 
*<tt><nowiki>{{fbu|20|COL}}</nowiki></tt> → {{fbu|20|COL}}
 
*<tt><nowiki>{{fbu|21|Romania|1965}}</nowiki></tt> → {{fbu|21|Romania|1965}}
 
*<tt><nowiki>{{fbu|21|Romania|1965}}</nowiki></tt> → {{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": {
 +
"aliases": [
 +
"Variant"
 +
],
 +
"label": "Species an alternate (historical) flag to use"
 +
},
 +
"align": {
 +
"label": "Align",
 +
"description": "Set to \"yes\"/\"y\"/\"1\" to align country names in vertical lists",
 +
"type": "unknown"
 +
},
 +
"variant": {
 +
"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",
 +
"2",
 +
"3",
 +
"align",
 +
"variant",
 +
"size",
 +
"name"
 +
],
 +
"format": "inline"
 +
}
 +
</templatedata>
  
 
==Maintenance categories==
 
==Maintenance categories==

Revision as of 13:45, 18 November 2019

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
Species an alternate (historical) flag to use3 Variant

no description

Unknownoptional
Alignalign

Set to "yes"/"y"/"1" to align country names in vertical lists

Unknownoptional
Flag variantvariant

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