Jump to content

Template:Icon

From Insurer Brain
Revision as of 18:36, 6 March 2026 by Wikilah admin (talk | contribs) (Created page with "[[File:{{{1}}}.svg|{{{size|16px}}}|link=|class=noviewer|text-bottom]]<noinclude> == Documentation == This template displays a standalone, scalable inline SVG icon. It is designed to sit cleanly within a line of text, a data table, or a UI element without altering line heights. It automatically assumes the file is an <code>.svg</code>. === Usage === '''Standard Usage''' Provide the exact file name minus the ".svg" extension. * '''Code:''' <code><nowiki>{{Icon|belgium-fl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Documentation

This template displays a standalone, scalable inline SVG icon. It is designed to sit cleanly within a line of text, a data table, or a UI element without altering line heights. It automatically assumes the file is an .svg.

Usage

Standard Usage Provide the exact file name minus the ".svg" extension.

  • Code: {{Icon|belgium-flag}}
  • Behavior: Renders File:belgium-flag.svg at 16px.

Corporate or Project Icons

  • Code: {{Icon|axa-brain-logo}}
  • Behavior: Renders File:axa-brain-logo.svg at 16px.

Custom Size Override If an icon needs to be slightly larger for a specific heading or chart, use the size= parameter.

  • Code: {{Icon|belgium-flag|size=24px}}
  • Behavior: Renders the icon at 24px instead of the default 16px.

Parameters

  • 1 (Required): The name of the file to be displayed. Do not include the "File:" prefix or the ".svg" extension.
  • size (Optional): Overrides the default 16px dimension (e.g., 12px, 20px).