Jump to content

Template:Flagicon: Difference between revisions

From Insurer Brain
Content deleted Content added
Created page with "<span class="flagicon" style="white-space:nowrap;">[[File:{{{image|Flag of {{{1}}}.svg}}}|16px|link=|class=noviewer|text-bottom]] [[{{{1}}}]]</span><noinclude> == 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. === Usage === '''Standard Usage (Geog..."
 
No edit summary
Line 12: Line 12:
'''Custom Image Usage (Organizations/Specific Files)'''
'''Custom Image Usage (Organizations/Specific Files)'''
If the logo or icon does not follow the standard naming convention, use the <code>image=</code> parameter to override it.
If the logo or icon does not follow the standard naming convention, use the <code>image=</code> parameter to override it.
* '''Code:''' <code><nowiki>{{Flagicon|AXA BRAIN|image=legal-structure-icon.svg}}</nowiki></code>
* '''Code:''' <code><nowiki>{{Flagicon|Insurer BRAIN|image=legal-structure-icon.svg}}</nowiki></code>
* '''Behavior:''' Uses <code>File:legal-structure-icon.svg</code> and creates a link to the [[AXA BRAIN]] page.
* '''Behavior:''' Uses <code>File:legal-structure-icon.svg</code> and creates a link to the Insurer BRAIN page.


=== Parameters ===
=== Parameters ===

Revision as of 18:27, 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.