Template:Icon: Difference between revisions

Content deleted Content added
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..."
 
No edit summary
 
Line 1:
[[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, or a data table,. orYou amust UIinclude elementthe withoutfull alteringfile linename heights.with Itits automaticallyextension assumes(e.g., the.svg, file is an <code>.svg</code>png).
 
=== Usage ===
 
'''Standard Usage'''
Provide the exact file name minusincluding the extension, but do not include the ".svgFile:" extensionprefix.
* '''Code:''' <code><nowiki>{{Icon|belgium-flag.svg}}</nowiki></code>
* '''Behavior:''' Renders <code>File:belgium-flag.svg</code> at 16px.
 
'''Corporate or Project Icons (Any Format)'''
* '''Code:''' <code><nowiki>{{Icon|axa-brain-logo.png}}</nowiki></code>
* '''Behavior:''' Renders <code>File:axa-brain-logo.svgpng</code> at 16px.
 
'''Custom Size Override'''
If an icon needs to be slightly larger for a specific heading or chart, use the <code>size=</code> parameter.
* '''Code:''' <code><nowiki>{{Icon|belgiumlegal-flagstructure-icon.svg|size=24px}}</nowiki></code>
* '''Behavior:''' Renders the icon at 24px instead of the default 16px.
 
=== Parameters ===
* '''<code>1</code>''' (Required): The full name of the file to be displayed., Do not includeincluding the "File:"extension prefix(e.g., or the "<code>.svg"</code>, extension<code>.png</code>, <code>.jpg</code>).
* '''<code>size</code>''' (Optional): Overrides the default 16px dimension (e.g., <code>12px</code>, <code>20px</code>).
</noinclude>