Difference between revisions of "Template:Item icon"

From Isleward Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="item-icon">[[File:{{{icon|{{{1|Missing}}}.png}}}|32px|link={{{link|{{{1|none}}}}}}]]</span> [[{{{2|{{{1}}}}}}]]</includeonly><noinclude>
+
<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 ==
 
== Usage ==
 
<pre>{{item icon|<item name>}}</pre>
 
<pre>{{item icon|<item name>}}</pre>
  
== Parameters ==
+
=== Parameters ===
 
; ''parameter 1''
 
; ''parameter 1''
 
: Item to link to
 
: Item to link to
Line 11: Line 11:
 
; icon
 
; icon
 
: Icon to use
 
: Icon to use
 +
 +
== Examples ==
 +
 +
* {{item icon|Sun Carp}}
 +
* {{item icon|Facemask}}
 +
* {{item icon|Snowflake}}
  
 
</noinclude>
 
</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]