Difference between revisions of "Template:Item icon"

From Isleward Wiki
Jump to navigation Jump to search
(test item icon)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{icon|{{{1|Missing.png}}}}}}|20px|link={{{link|{{{1|none}}}}}}]] {{{name|{{{1}}}}}}
+
<includeonly><span style="background-color:#2D2136;display:inline-block;width:32px;height:32px">[[File:{{#replace:{{{icon|{{{1|Missing}}}.png}}}|File:|}}|32px|link={{{link|{{{1|none}}}}}}]]</span> [[{{{1}}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
 +
 
 +
== Usage ==
 +
<pre>{{item icon|<item name>}}</pre>
 +
 
 +
=== Parameters ===
 +
; ''parameter 1''
 +
: Item to link to
 +
; ''parameter 2''
 +
: Link text, defaults to the item name
 +
; icon
 +
: Icon to use
 +
 
 +
== Examples ==
 +
 
 +
* {{item icon|Sun Carp}}
 +
* {{item icon|Facemask}}
 +
* {{item icon|Snowflake}}
 +
 
 +
</noinclude>

Latest revision as of 20:48, 22 July 2022


Usage[edit]

{{item icon|<item name>}}

Parameters[edit]

parameter 1
Item to link to
parameter 2
Link text, defaults to the item name
icon
Icon to use

Examples[edit]