Documentation
[purge]
This template is used to create infoboxes to all the game items, blocks and structures.
Copy/paste code
This code should contain mostly everything you need, just copy/paste it, and delete unused attributes (depending on the item).
{{item infobox | desc = | type = | armor = | agility = | damage = | hitRate = | accuracy = | range = | lumbering = | mining = | comfort = | durability = | disassemb = | placeable = | light = | mana = | mheal = | mregen = | hheal = | feeding = | effectTime = | price = | tech = | size = | drops = | droppedBy = }}
Click 'Expand' for a list of all available parameters:
{{item infobox | name = | image = | image1 = | image2 = | imgWidth = | desc = | type = | type2 = | type3 = | armor = | agility = | damage = | hitRate = | accuracy = | range = | lumbering = | mining = | comfort = | durability = | disassemb = | placeable = | light = | light_intensity = | mana = | mheal = | mregen = | hheal = | feeding = | effectTime = | price = | tech = | size = | drops = | droppedBy = }}
Usage
- Everything is optional, except the
type
attribute. - You can add
type2
andtype3
attributes. See an example. - You can add a
name
andimage1
. Fill these values if the PAGENAME macro is not adequate (if the page name has a disambig qualifier for example). - You can add a second image with a
image2
attribute. See an example. - You can use
imgWidth
to reduce the image size, in case the original size is too big for the infobox. Never use this parameter to increase the image, as it will result in a poor quality/low resolution image being displayed. The default is the original image size. desc
is the inventory item description.- Use
|disassemb={{No}}
if the item cannot be disassembled. As most of the items can be, it's not that necessary to use this parameter if it would be filled with the positive value. - Fill the
placeable
attribute with {{Yes}} and {{No}} templates, for better rendering. hheal
andmheal
are respectively the amount of health or mana that will be regained from this item.mregen
is similar to "mheal" but used for the regeneration of mana points per minute.effectTime
is the length/duration of the buffs mentioned by other parameters (likeagility
).- Use
drops
to list the dropping resources from dug blocks, destroyed structures, or killed monsters. - Use
droppedBy
to list the creatures or structures that may drop that item when killed or destroyed. tech
is the name of the tech that unlocks the item.price
is the price per unit in the Goblin Shop (total price divided by the number of item bought).- Use
hitRate
for some melee weapons with a Hit Rate Bonus. - Do not use any link format, every link needed will be automatically transformed (such as the
tech
name). - The
size
of the structure (like crafting stations) should be typed with any combination between 1x1 and 6x6.
Example
{{item infobox | name = Leather Boots | desc = The most common dwarven footwear. | type = Armor | armor = {{Pv|5}} | agility = {{Nv|-1%}} | price = 3 | tech = Advanced Armor }}
Leather Boots | |
---|---|
The most common dwarven footwear. | |
Statistics | |
Type | Armor |
Armor | 5 |
Agility | -1% |
Price | 3 |
Tech needed | Advanced Armor |