FANDOM


Usage

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

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
This is a picture of Lyrium Dust

Example 2

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
2

Example 3

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
Ico potent lyrium potion
Rgt ico lyriumdust
4
Rgt ico flask
1
Rgt ico distill agnt
2
Rgt ico conc agnt
2
Skl ico herbalism 4

See also


Community content is available under CC-BY-SA unless otherwise noted.