InventoryIcon
Talk1
6,750pages on
this wiki
this wiki
Template page
Contents |
Usage
Edit
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
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]]
This is a picture of Lyrium Dust
Example 2
Edit
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}}
Example 3
Edit
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 |
|---|---|---|---|
See also
Edit
- {{IconMini}} for a small icon.
- {{IconMed}} for a medium icon.
- {{IconMiniWTooltip}} for a smaller icon with the item tooltip.
- {{ItemTooltip}} for the item tooltip.
Documentation transcluded from Template:InventoryIcon/doc.