Template:Icon

From AIE Wiki
Revision as of 18:24, 31 July 2009 by Galadeon (talk | contribs) (Created page with '{{documentation}} <includeonly><onlyinclude><div style="position: relative; float: {{{float|left}}}; margin: {{{margin|0.3em}}}; font-size: {{#switch:{{{size|{{{3}}}}}}|1=1.4|2=…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
File:Template-info.png Template documentation[view] [edit] [history] [purge]
Description
Creates an item icon with a stack count overlay.
Syntax
{{Icon|icon graphic|stack count}}

The icon graphic will link to [[File:<icon graphic>.png]].

Example
{{Icon|INV_Potion_49|5}}
Result

Advanced parameters

There are a number of advanced, named parameters not listed above and strongly not recommended for general use:

|float=
float of the icon itself
|margin=
margin of the icon itself
|ext=
file extension of the icon itself (if not .png)
|size=
from 1 (the default) to 4 (the smallest).
|width= and |height=
instead of |size=, in pixels
|blacknum=true
to display the stack number in black font instead of white font

Advanced examples

{{Icon|INV_Potion_49|1|size=1}} up to size=4
{{Icon|Spell Holy AuraMastery|5|blacknum=true}}