GRealm Wiki
Advertisement
Template-info.png Documentation The documentation below is transcluded from Template:Item infobox/doc. (edit | history)

Usage

  • Everything is optional.
  • The attribute sspeed is the same attribute as velocity (which is a replacement for sspeed).
{{item infobox
| name = custom item name; default = page name
| boxwidth = width of infobox; default = 21em or stretches to image width
| image = inventory image; default = name.png
| imageplaced = placed image; default = name (placed).gif; if no GIF exists, default = name (placed).png
| imagebreak = if yes, placed image is pushed to a new line below the inventory image; default = no
| type = eg. Weapon, Tool, Furniture, etc.
| type2 = secondary type
| damage = damage inflicted per hit
| damageraw = if damage has icons and/or formatting, then use this parameter to give an unformatted number for use in sorting lists
| damagetype = melee, ranged, magic or summon
| auto = yes, if weapon/item autoswings/autofires by holding the use key/button
| defense = defense provided
| bonus =
| pick = pickaxe power, without "%"
| axe = axe power, without "%"
| hammer = hammer power, without "%"
| bait = bait power, without "%"
| knockback = knockback inflicted per hit
| placeable = yes/no
| width = width when placed, tiles
| height = height when placed, in tiles
| stack = max quantity of this item that can be stacked in a single inventory slot
| mana = mana cost per use
| mregen = mana regeneration
| mheal = mana heal
| lregen = health (life) regeneration
| hheal = health heal
| tooltip =
| consumable = yes/no
| velocity =
| critical = if no value is entered and the main Type is "Weapon", a default value of 4% is displayed
| rare = rarity value, eg. '1' for Blue, '2' for Green, 'd' for Teal (donator), 'q' for Amber (quest), 'rainbow' for expert-exclusive.
| body slot =
| use = use time
| toolspeed =
| tool = tool used to free this item if in its placed form (this field is somewhat deprecated)
| buff = buff provided
| bufftip = buff tooltip
| duration = buff duration
| buff2 = second buff provided
| bufftip2 = second buff tooltip
| duration2 = second buff duration
| debuff = debuff inflicted
| debufftip = debuff tooltip
| debuffchance = chance of inflicting the debuff
| debuffduration = debuff duration
| debuff2 = second debuff inflicted
| debufftip2 = second debuff tooltip
| debuffchance2 = chance of inflicting the second debuff
| debuffduration2 = second debuff duration
| buy = buy value in coins, enter using coin templates ({{cc}}, {{sc}}, {{gc}}, {{pc}})

Placing // within either the sell value or buy value will return separate lines for Buy and Sell.

| sell = sell value in coins, also enter using coin templates
| listcat = a supplemental category name to include the current item in a DPL list, eg. "arrows" causes the item to display at Arrows
| listcat2 = identical to listcat: an additional supplemental category name
| listexclude = yes, to exclude the current template from DPL lists
| hardmode = yes, for items that only become available in Hardmode worlds
}}
Advertisement