[edit · purge]
Template documentation (for the template shown above, sometimes hidden or invisible)

Usage[edit source]

This template adds a small border around the icon, prettifying it. To use this template on an article, copy the following code and simply start filling the blanks with information.

{{InventoryIcon
|icon=(REQUIRED)
|link=(REQUIRED)
|name=(OPTIONAL)
|size=(OPTIONAL) the size of the icon, default is 42
|margin-top=(OPTIONAL) margin on the top
|margin-left=(OPTIONAL) margin on the left
|margin-right=(OPTIONAL) margin on the right
|margin-bottom=(OPTIONAL) margin on the bottom
|quantity=(OPTIONAL)
}}

Example 1[edit source]

For example, this is a small icon, suitable as a non-descript additional to a table row

{{InventoryIcon|icon=rgt_ico_lyriumdust.png|link=Lyrium Dust|size=24|margin-right=0.6em}} This is a picture of [[Lyrium Dust]]
Rgt ico lyriumdust.png
This is a picture of Lyrium Dust

Example 2[edit source]

Another example of a larger icon with a list of quantity to indicate quantity

{{InventoryIcon|icon=rgt_ico_flask.png|link=Distillation Agent|quantity=2|size=32|margin-right=0.5em}}
Rgt ico flask.png
2

Example 3[edit source]

Another example of multiple usage of the icon, perhaps useful for a lookup table. See Template:RecipeTableRow for the code of this row.

{{RecipeTableHeader|
{{:Potent Lyrium Potion Recipe|style=recipetable}}
}}
Recipe Makes Ingredients Required skill
Rcp ico herbalism 4.png
Ico potent lyrium potion.png
Rgt ico lyriumdust.png
4
Rgt ico flask.png
1
Rgt ico distill agnt.png
2
Rgt ico conc agnt.png
2
Skl ico herbalism 4.png

See also[edit source]

Documentation transcluded from Template:InventoryIcon/doc.
Community content is available under CC-BY-SA unless otherwise noted.