Difference between revisions of "Icon"

m (ifexist)
m
Line 1: Line 1:
<includeonly><span style="position: relative; top: -2px;">{{#ifexist:File:{{{1}}}|[[File:{{{1}}}|20px]]|{{error|No icon was provided. Add an icon parameter.}}}}</span></includeonly><noinclude>{{Icon/Documentation}}</noinclude>
+
<includeonly><span style="position: relative; top: -2px;">{{#ifexist:File:{{{1}}}|{{!((}}File:{{{1}}}|20px{{!))}}|{{error|No icon was provided. Add an icon parameter.}}}}</span></includeonly><noinclude>{{Icon/Documentation}}</noinclude>

Revision as of 16:30, 24 March 2023

Description

Adds an inline icon.

Usage

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

Parameters

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

No icon was provided. Add an icon parameter.