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}}}
== Documentation ==
This template displays a standalone, scalable inline
=== Usage ===
'''Standard Usage'''
Provide the exact file name
* '''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.
'''Custom Size Override'''
If an icon needs to be
* '''Code:''' <code><nowiki>{{Icon|
* '''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
* '''<code>size</code>''' (Optional): Overrides the default 16px dimension (e.g., <code>12px</code>, <code>20px</code>).
</noinclude>
| |||