Difference between revisions of "Icon"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (25x25 file default) |
||
Line 1: | Line 1: | ||
<includeonly><span style="{{#if:{{{3|}}}||position: relative; top: -2px;}}"><!-- icon formatting when default size | <includeonly><span style="{{#if:{{{3|}}}||position: relative; top: -2px;}}"><!-- icon formatting when default size | ||
-->{{#ifexist:File:{{{1}}}<!-- if file exists | -->{{#ifexist:File:{{{1}}}<!-- if file exists | ||
− | -->|{{!((}}File:{{{1}}}{{!}}{{{3| | + | -->|{{!((}}File:{{{1}}}{{!}}{{{3|25}}}px{{!}}link={{{2|}}}{{!))}}<!-- add file with size and link |
-->|{{error|No icon was provided. Add an icon parameter.}}}}<!-- handle non-existent file | -->|{{error|No icon was provided. Add an icon parameter.}}}}<!-- handle non-existent file | ||
--></span></includeonly><noinclude>{{Icon/Documentation}}</noinclude> | --></span></includeonly><noinclude>{{Icon/Documentation}}</noinclude> |
Revision as of 17:46, 12 January 2024
Description
Adds an inline icon.
Usage
{{Icon|<icon name>|<link>|<size>}}
Parameters
Errors
No icon was provided. Add an icon parameter.