Difference between revisions of "Icon"

m (25x25 file default)
m
 
Line 2: Line 2:
 
-->{{#ifexist:File:{{{1}}}<!-- if file exists
 
-->{{#ifexist:File:{{{1}}}<!-- if file exists
 
-->|{{!((}}File:{{{1}}}{{!}}{{{3|25}}}px{{!}}link={{{2|}}}{{!))}}<!-- add file with size and link
 
-->|{{!((}}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
+
-->|[[File:{{{1}}}|?]]}}<!-- handle non-existent file
 
--></span></includeonly><noinclude>{{Icon/Documentation}}</noinclude>
 
--></span></includeonly><noinclude>{{Icon/Documentation}}</noinclude>

Latest revision as of 14:32, 31 January 2024

Description[edit]

Adds an inline icon.

Usage[edit]

{{Icon|<icon name>|<link>|<size>}}

Parameters[edit]

Arrow.png1: The icon file name.
Required.
Arrow.png2: The link that opens when the icon is clicked.
Optional.
Arrow.png3: The size of the icon, in pixels.
Optional. Defaults to '20'.

Errors[edit]

No icon was provided. Add an icon parameter.