Template:Icon
[[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.svgat 16px.
Corporate or Project Icons
- Code:
{{Icon|axa-brain-logo}} - Behavior: Renders
File:axa-brain-logo.svgat 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).