Terraria Wiki

This template defines the table "Items_new". View table.

This template is i18n-ready, means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
Lua logo.svg
This template uses Module:Iteminfo, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about Lua.

This template is used for displaying the infobox for an item. It is one of the most important and most powerful infobox templates.


While the template is extremely versatile, its main functionality is to display the standard infobox.

The data which is to be displayed can be manually entered when calling the template, but thanks to {{iteminfo}}, the vast majority of data is generated automatically. To enable automatic data, use the parameter Sablon:Code and set it to the ID of the item (alternatively: auto=yes and either id=<item ID>, name=<item name>, or nothing else – the latter two methods will cause the template to automatically generate the ID using {{itemNameFromId}}, with the last method using the page title for name reference). This way, all relevant item parameters are set automatically. See the table below for affected parameters. However, they can still be overridden and manually entered parameters always take precedence over the automatic ones.

Basic parameters

  • The dollar sign (Sablon:Code) is used to signify that the word after it is the name of a template parameter.
  • All parameters which have a default value listed can usually be omitted. Note that this does not mean that parameters which do not have a default value listed should always be filled in.


#no-border-bottom td{
#medium-border-top td{
 border-top:2px #AFCFE2 solid;


Parameter Description Auto Example Default value
(if omitted)
{{item infobox
Box-related parameters
| boxwidth Width of the infobox 27em 21em Number with unit. Default is Sablon:Code or stretching to image width
| float Position of the infobox left right
| css
| style
CSS style affecting the entire infobox Any Sablon:Code or Sablon:Code properties defined here will override the template's Sablon:Code and Sablon:Code parameters, respectively.
| auto Enables automatic data 465 Can also be Sablon:Code (see text above).
| id ID of the item Yes 465 The automatic data gathering for Sablon:Code is based on this.
| name Name of the item Yes Wood Page name Will be displayed as heading of the infobox.
| lname Localized name of the item Yes Legno
(Italian for "Wood")
{{tr|$name}} Will be displayed as heading of the infobox; only to be used if Sablon:Code is not existent in the {{tr}} database of the specific language.
| namesub Name sub-heading Additional information directly underneath the title of the infobox; rarely useful for item infoboxes.
Image-related parameters
| imagealt Complete custom control over the entire image display [[File:Wood.png]] Overrides all image parameters in this parameter category.
| ext File extension of Sablon:Code gif png
| image Main image of the inventory icon or equipped item/set Wood.png $name.$ext
| imageold Variant image of the older versions Compass (old).png $name (old) Default value: First checks for the Sablon:Code and then for the Sablon:Code.
| imageplaced Image of the placed item Wood (placed).png $name (placed)
| imageequipped Image of the equipped item/set Shackle (equipped).png $name (equipped)
| imagefemale Image of the female equipped item/set Robe (equipped) female.png $name female.$ext
| imageoldalt Complete custom control over the "old" image display [[File:Compass (old).png]]
| imageplacedalt Complete custom control over the "placed" image display [[File:Wood (placed).png]]
| imageequippedalt Complete custom control over the "equipped" image display [[File:Shackle (equipped).png]]
| imagebreak Arranges multiple images in rows rather than in columns yes Causes the main/"old", "placed", "equipped", and "female" images to all take up a separate row, with small horizontal bars in between (example: Book). Note that the main and "old" images will always be displayed in the same row. Also note that this effect is enabled regardless of what Sablon:Code is set to (i.e, setting it to Sablon:Code will also enable it – so refrain from doing that).
| imageinfo Prevents the internal usage of {{image}} no Setting it to Sablon:Code will cause the template to use the standard Sablon:Code syntax instead of {{image}}. {{image}} will increase the expensive function count, so if there are many item infoboxes on one page, the expensive function count limit may be exceeded. Using imageinfo=no can reduce the count to avoid exceeding it. In the vast majority of cases, this is not necessary.
Statistics-related parameters
| autoswing Auto-use capability Yes yes Displays Autoswing, Autofire, or Auto-use in the top-right corner of the infobox. Hover text is determined by Sablon:Code ("Autoswing" for melee, "Autofire" for ranged and magic, and "Auto-use" for anything else).
| stack Maximum possible stack size Yes[1] 99 1 max quantity of this item that can be stacked in a single inventory slot
| pick Pickaxe power Yes 100 Without percentage sign (Sablon:Code)! If any of the three parameters is used, all three symbols will always be displayed: Pickaxe icon.png Hammer icon.png Axe icon.png
| hammer Hammer power Yes 75
| axe Axe power Yes 50
| pickreq Required pickaxe power for destroying No 150 Without percentage sign (Sablon:Code)!
| hammerreq Required hammer power for destroying No 80 Without percentage sign (Sablon:Code)! Prints the following behind it: "(csak nehézmódban)"
| type
| type2)
Classification and categorization Yes eg. Weapon, Tool, Furniture, etc. "/" separated. e.g. Weapon / Tool. "Crafting material" will be auto added if needed.
| bait Bait power Yes Without percentage sign (Sablon:Code)!
| damage Damage Yes[1]
| damagetype Damage type Yes melee, ranged, magic, summon, or thrown
| knockback Knockback Yes[1] If more than one value needed, you should wrap the values with {{kb}}, e.g. {{kb|7.5}}/{{kb|6}}.
| defense Defense Yes[1]
| tileboost Tile range boost Yes
| bonus Miscellaneous bonuses No
| setbonus Set bonus No For armor sets, where Sablon:Code contains Sablon:Code. If possible, {{gameText}} should be used here.
| placeable Placeable Yes yes/no
| width Width when placed No In tiles.
| height Height when placed No In tiles.
| consumable Consumable Yes true: (found in source code) leaves player's inventory with Használat/Támadás, includes placeable items
| mana Mana cost Yes[1]
| mheal Mana restoration Yes[1]
| hheal Health restoration Yes[1]
| critical Critical strike chance Yes[1] if no value is entered and the main Type is "Weapon", a default value of 4% is displayed
| body slot Body slot No
| use Use time Yes
| velocity
| sspeed)
Velocity Yes
| toolspeed Tool speed Yes[1]
| tooltip Tooltip Yes[1]
| rare Rarity Yes[1] eg. '1' for Blue, '2' for Green, 'q' for Amber (quest), 'rainbow' for expert-exclusive.
| buy Buy value Yes[1] enter using the coin template ({{coin}}). Use buy=y/yes/true/show to enable display of buy price (disabled by default, since many items that can be sold cannot be bought).
| sell Sell value Yes[1] also enter using coin template
| value Value Yes Mostly used internally. Will not be displayed directly, but serves as the base for Sablon:Code and Sablon:Code.
Buff- & Debuff-related parameters
| bufftype Type of the status effect Yes Mostly used internally. Can be Sablon:Code or Sablon:Code.
| idbuff Buff ID Yes
| buff Buff provided Yes
| bufflink Buff link target Yes
| bufftip Buff tooltip Yes
| duration Buff duration Yes[1]
| debuff Debuff inflicted No you can use shortcut: "[name] / [duration] / [chance(optional)]" for debuff/debuffduration/debuffchance.
| debufflink Debuff link target No
| debufftip Debuff tooltip No
| debuffchance Debuff chance No
| debuffduration Debuff duration No
Mount-related parameter
| idmount Mount ID Yes
Projectile-related parameters
| idprojectile
| shoot)
Projectile ID Yes Can be a comma-separated list for multiple IDs.
| projectilename Projectile name Yes
| projectileimage Projectile image Yes
| projectileblock Projectile images arrangement No Operates similarly to Sablon:Code.
ID-related parameters
| showids Display of ID section No no ID section is not hidden by default.
| idshow Vanity item ID No
| idtile Tile ID Yes
| idtileshow Vanity tile ID No
| idtilesub Tile sub-ID Yes Internally known as Sablon:Code in Terraria.
| idwall Wall ID Yes
| idbuffshow Vanity buff ID No
Back-end-related parameters
| cate Toggles categorization No no Set to Sablon:Code to force categorization when it is disabled by default (on non-mainspace pages). Set to Sablon:Code to disable categorization.
| listexclude Toggles categorization No yes no Set to Sablon:Code to disable categorization. Overrides cate=yes, but not cate=no.
| cargo Toggles cargo data storage No no Set to Sablon:Code to force cargo data storage when it is disabled by default (on non-mainspace pages). Set to Sablon:Code to disable cargo data storage. Note that setting it to anything else (e.g. Sablon:Code) also disables cargo data storage, so please stick to the unambiguous Sablon:Code.
| listcat Categorization Yes Supplemental category names to include the current item in a DPL list, e.g. Sablon:Code causes the item to display at the Arrows page. Separate multiple categories with a slash character (Sablon:Code). The following categories will be added automatically:
  • Vendor items, if buy=true or Sablon:Code contains Sablon:Code/Sablon:Code/Sablon:Code.
  • Craftable items, if this item is the result of any recipe.
  • swords, if | listcat contains Sablon:Code/Sablon:Code.
  • Minecart track items, if this item is cart track item.
  • Arrows, Coins, Bullets, Sands, Darts, Rockets, Solutions, or Flares, if this item is that kind of ammo.
  • hamaxes, hammers, chainsaws, axes, drills, pickaxes,if this item is that type of tool.
  • weapon items, if this item has Sablon:Code in its | type and is with damage.
  • melee weapons, ranged weapons... if this item has Sablon:Code in its | type and is with that type of damage.
| tag
| tags
Categorization Yes Supplemental category names to appropriately categorize the item. Can contain any of the following (separate multiple with a slash character (Sablon:Code):
  • Sablon:Code/Sablon:Code/Sablon:Code (equal to buy=yes)
  • Sablon:Code/Sablon:Code (equal to hardmode=yes)
  • Sablon:Code (equal to allversions=yes)
  • Sablon:Code (means that this item is to be purchased with Védelmezőmedál.)
  • Sablon:Code (equal to listcat=drop items)
  • Sablon:Code (equal to listcat=loot items)
  • Sablon:Code (equal to listcat=plunder items)
  • Sablon:Code (equal to listcat=fished items)
  • Sablon:Code (equal to listcat=unobtainable items)
  • Sablon:Code (equal to listcat=developer items).
  • Sablon:Code (equal to listcat=storage items).
  • Sablon:Code (equal to listcat=informational items).
  • Sablon:Code (equal to listcat=quest rewards).
  • Sablon:Code (equal to listcat=light source items).
  • Sablon:Code (equal to listcat=novelty items).
  • Sablon:Code (equal to listcat=mechanism items).
  • Sablon:Code (equal to listcat=potion ingredients).
  • Sablon:Code/Sablon:Code (equal to listcat=bag loot items).
  • Sablon:Code (equal to listcat=Treasure Bag loot items).
  • Sablon:Code (equal to type=weapon and listcat=minion summon items).
  • Sablon:Code (equal to type=weapon and listcat=sentry summon items).

All other values will have no effect. All tags will be stored to cargo for querying.

| allversions Platform version availability Yes Set to Sablon:Code to assert that the item is available on all platforms of Terraria. This is only to be used if no {{exclusive}} banner is on the page. If omitted and if Sablon:Code does not contain Sablon:Code, it will be detected automatically based on the result of {{eversions|<item name>}} (even though Sablon:Code might not be set!). Categorizes the page in all five version content categories (with the exception of Category:Japanese console content), if Sablon:Code is determined.
| hardmode Hardmode-exclusivity Yes yes Set to Sablon:Code to assert that the item is not available in pre-Hardmode, but only becomes available in Hardmode. Categorizes the page in Category:Hardmode-only items.

See also


  1. 1,00 1,01 1,02 1,03 1,04 1,05 1,06 1,07 1,08 1,09 1,10 1,11 1,12 1,13 Any occurrence of the string @@@@ in the parameter value will be replaced by the automatically generated data. This can be used to mix automatic and manual data.