Jump to content

Template:Flagicon: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
 
Line 1: Line 1:
<span class="flagicon" style="white-space:nowrap;">[[File:{{{image|Flag of {{{1}}}.svg}}}|16px|link=|class=noviewer|text-bottom]]&nbsp;[[{{{1}}}]]</span><noinclude>
<span class="flagicon" style="white-space:nowrap;">[[File:{{{image|Flag of {{{1}}}.svg}}}|16px|link=|class=noviewer|text-bottom]]&nbsp;{{{1}}}</span><noinclude>
== Documentation ==
== Documentation ==
This template displays a uniform 16px inline icon followed by a linked name. By default, it assumes the image is named <code>Flag of [Name].svg</code>. It is designed to sit cleanly within a line of text or a data table without altering line heights.
This template displays a uniform 16px inline icon followed by a linked name. By default, it assumes the image is named <code>Flag of [Name].svg</code>. It is designed to sit cleanly within a line of text or a data table without altering line heights.

Latest revision as of 18:31, 6 March 2026

[[File:Flag of {{{1}}}.svg|16px|link=|class=noviewer|text-bottom]] {{{1}}}

Documentation

This template displays a uniform 16px inline icon followed by a linked name. By default, it assumes the image is named Flag of [Name].svg. It is designed to sit cleanly within a line of text or a data table without altering line heights.

Usage

Standard Usage (Geographic) If the image follows the standard naming convention, you only need to provide the name.

  • Code: {{Flagicon|France}}
  • Behavior: Looks for File:Flag of France.svg and creates a link to the France page.

Custom Image Usage (Organizations/Specific Files) If the logo or icon does not follow the standard naming convention, use the image= parameter to override it.

  • Code: {{Flagicon|Insurer BRAIN|image=legal-structure-icon.svg}}
  • Behavior: Uses File:legal-structure-icon.svg and creates a link to the Insurer BRAIN page.

Parameters

  • 1 (Required): The name of the entity. This acts as both the text label and the target for the wikilink. It also sets the default image search.
  • image (Optional): The exact file name (including the extension, like .svg) to be displayed, overriding the default flag search. Do not include the "File:" prefix.