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