Template:Flagicon image/doc: Difference between revisions
Appearance
add {{resbox|18x18px|link= ''Do not use this template to display non-free images, as they are also not permitted in country data templates.''}} |
Deleatur yhe (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 14:46, 9 September 2026
| This is a documentation subpage for Template:Flagicon image. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 52,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template generates an icon for the specified image given in <syntaxhighlight lang="wikitext" inline style="display: none;" />|1=, matching the size, CSS class, and other attributes of images produced by {{Flag icon}}. It can be used for arbitrary images not included in any Category:Country data templates.
Please consider the Manual of Style section on flags before using this template. Use caution when applying this template in infoboxes, as flags are generally discouraged in that context per MOS:INFOBOXFLAG. Additional considerations include avoiding flags used purely for decoration and ensuring historical accuracy. For further guidance, see MOS:FLAGS.
File:Blank.png
Error creating thumbnail: Do not use this template to display non-free images, as they are also not permitted in country data templates.
- Usage
{{flagicon image|image name|size=optional|border=optional|link=optional}}- Examples
{{flagicon image|Red flag.svg}}→ File:Red flag.svg{{flagicon image|Red flag.svg|size=30x20px|link=Japan}}→ File:Red flag.svg{{flagicon image|ICS Alfa.svg|border=}}→ File:ICS Alfa.svg
See also
{{ListFlag}}