Difference between revisions of "Template:Fbicon/doc"

From blackwiki
Jump to navigation Jump to search
imported>Clyde1998
(Created page with '{{documentation subpage}} ==Description== <code><nowiki>{{fb|nation|variant|size=optional}}</nowiki></code> Produces a flag icon to the wikilinked national foot...')
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<code><nowiki>{{fb|nation|variant|size=optional}}</nowiki></code>
+
<code><nowiki>{{fbicon|nation|variant|size=optional}}</nowiki></code>
  
 
Produces a flag icon to the wikilinked national football team article.
 
Produces a flag icon to the wikilinked national football team article.
Line 8: Line 8:
 
*''variant'' (optional)&nbsp;– Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]].
 
*''variant'' (optional)&nbsp;– Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]].
 
*''size'' (optional)&nbsp;– Can be used to change the flag icon size (use sparingly!)
 
*''size'' (optional)&nbsp;– Can be used to change the flag icon size (use sparingly!)
*''align'' (optional)&nbsp;- Set to "yes"/"y"/"1" to align country names in vertical lists
 
  
 
==Examples==
 
==Examples==
Line 14: Line 13:
 
*<code><nowiki>{{fbicon|ENG}}</nowiki></code> → {{fbicon|ENG}}
 
*<code><nowiki>{{fbicon|ENG}}</nowiki></code> → {{fbicon|ENG}}
 
*<code><nowiki>{{fbicon|Italy|1861}}</nowiki></code> → {{fbicon|Italy|1861}}
 
*<code><nowiki>{{fbicon|Italy|1861}}</nowiki></code> → {{fbicon|Italy|1861}}
*<code><nowiki>{{fbicon|GER|name=GER}}</nowiki></code> → {{fbicon|GER|name=GER}}
+
*<code><nowiki>{{fbicon|USA|1776}}</nowiki></code> → {{fbicon|USA|1776}}
  
 
==Parameters==
 
==Parameters==
{{TemplateDataHeader}}
+
{{TemplateData header}}
  
 
<templatedata>
 
<templatedata>
Line 28: Line 27:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
},
 
"align": {
 
"label": "Align",
 
"description": "Set to \"yes\"/\"y\"/\"1\" to align country names in vertical lists",
 
"type": "unknown"
 
 
},
 
},
 
"variant": {
 
"variant": {
Line 46: Line 40:
 
"label": "Icon size",
 
"label": "Icon size",
 
"description": "Can be used to change the flag icon size (use sparingly!)"
 
"description": "Can be used to change the flag icon size (use sparingly!)"
},
+
}
 
},
 
},
 
"description": "Produces a flag icon attached to a wikilinked national football team article.",
 
"description": "Produces a flag icon attached to a wikilinked national football team article.",
 
"paramOrder": [
 
"paramOrder": [
 
"1",
 
"1",
"align",
 
 
"variant",
 
"variant",
"size",
+
"size"
 
],
 
],
 
"format": "inline"
 
"format": "inline"
Line 68: Line 61:
 
*[[:Category:National association football teams]]
 
*[[:Category:National association football teams]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Association football flag templates]]
 
[[Category:Association football flag templates]]
 
[[Category:Flag template system]]
 
[[Category:Flag template system]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:22, 25 April 2020

Description

{{fbicon|nation|variant|size=optional}}

Produces a flag icon to the 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!)

Examples

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 Fbicon

Produces a flag icon attached to a wikilinked national football team article.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Nation1

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

Example
Argentina
Stringrequired
Flag variantvariant 2

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

See also