Template:Item stats table

From Terraria Wiki
Jump to navigation Jump to search
This template uses Lua.
This template uses Module:Iteminfo, a script written in the Lua programming language. To learn more about Lua, see Terraria Wiki:Lua.
Important.svg

CAUTION: Terraria Wiki code is complex!!!

If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.

Template-info.svg Documentation The documentation below is transcluded from Template:Item stats table/doc. (edit | history)

This template displays all stats of an item, as defined in Terraria's source code. See Module:Iteminfo for the meaning of these stats and interpretation of their values.

Usage

{{ item stats table | id = <item ID> | <item ID or name> | collapsible = y/yes | collapsed = n/no | class = <custom table class(es)> | style/css = <custom table styling> }}

id

Item ID of the item in question.

First unnamed parameter

As an alternative to $id: item ID or name. Using $id directly is preferable because it is faster. If both $id and this parameter are specified, then $id takes precedence.

collapsible, collapsed

$collapsible makes the table collapsible and collapses it by default. With |collapsed=no, it is made collapsible but expanded by default.

class, style/css

Custom CSS class(es) and styling of the table.

Examples

Code Result
{{item stats table|collapsible=yes|Terra Blade}}
Terra Blade (ID: 757)
Stat Value
accessory
active 1
alpha 0
ammo 0
autoReuse 1
axe 0
backSlot -1
bait 0
balloonSlot -1
beardSlot -1
bodySlot -1
buffTime 0
buffType 0
buy
cartTrack
channel
consumable
craftable 1
createTile -1
createWall -1
crit 0
damage 85
DD2Summon
defense 0
dye 0
expert
faceSlot -1
fishingPole 0
flame
frontSlot -1
glowMask -1
hairDye -1
hammer 0
handOffSlot -1
handOnSlot -1
hasVanityEffects
headSlot -1
healLife 0
healMana 0
height 30
holdStyle 0
instanced
internalName TerraBlade
isAShopItem
knockBack 6.5
lavaWet
legSlot -1
lifeRegen 0
magic
makeNPC 0
mana 0
manaIncrease 0
material 1
maxStack 1
mech
melee 1
mountType -1
name Terra Blade
neckSlot -1
netID 757
noMelee 1
notAmmo
noUseGraphic
noWet
paint 0
paintCoating 0
pick 0
placeStyle 0
potion
prefix 0
questItem
ranged
rare 8
rarity 0
reuseDelay 0
sacrifices 1
scale 1
sentry
shieldSlot -1
shoeSlot -1
shoot 985
shootsEveryUse 1
shootSpeed 12
shopCustomPrice
shopSpecialCurrency -1
stringColor
summon
tileBoost 0
tileWand -1
tooltipContext -1
type 757
uniqueStack
useAmmo 0
useAnimation 18
UseSound Item_1
useStyle 1
useTime 18
useTurn
value 1000000
vanity
waistSlot -1
wet
wetCount 0
width 30
wingSlot -1
{{item stats table|collapsible=yes|id=757}}
Terra Blade (ID: 757)
Stat Value
accessory
active 1
alpha 0
ammo 0
autoReuse 1
axe 0
backSlot -1
bait 0
balloonSlot -1
beardSlot -1
bodySlot -1
buffTime 0
buffType 0
buy
cartTrack
channel
consumable
craftable 1
createTile -1
createWall -1
crit 0
damage 85
DD2Summon
defense 0
dye 0
expert
faceSlot -1
fishingPole 0
flame
frontSlot -1
glowMask -1
hairDye -1
hammer 0
handOffSlot -1
handOnSlot -1
hasVanityEffects
headSlot -1
healLife 0
healMana 0
height 30
holdStyle 0
instanced
internalName TerraBlade
isAShopItem
knockBack 6.5
lavaWet
legSlot -1
lifeRegen 0
magic
makeNPC 0
mana 0
manaIncrease 0
material 1
maxStack 1
mech
melee 1
mountType -1
name Terra Blade
neckSlot -1
netID 757
noMelee 1
notAmmo
noUseGraphic
noWet
paint 0
paintCoating 0
pick 0
placeStyle 0
potion
prefix 0
questItem
ranged
rare 8
rarity 0
reuseDelay 0
sacrifices 1
scale 1
sentry
shieldSlot -1
shoeSlot -1
shoot 985
shootsEveryUse 1
shootSpeed 12
shopCustomPrice
shopSpecialCurrency -1
stringColor
summon
tileBoost 0
tileWand -1
tooltipContext -1
type 757
uniqueStack
useAmmo 0
useAnimation 18
UseSound Item_1
useStyle 1
useTime 18
useTurn
value 1000000
vanity
waistSlot -1
wet
wetCount 0
width 30
wingSlot -1
{{item stats table|id=757}}
Terra Blade (ID: 757)
Stat Value
accessory
active 1
alpha 0
ammo 0
autoReuse 1
axe 0
backSlot -1
bait 0
balloonSlot -1
beardSlot -1
bodySlot -1
buffTime 0
buffType 0
buy
cartTrack
channel
consumable
craftable 1
createTile -1
createWall -1
crit 0
damage 85
DD2Summon
defense 0
dye 0
expert
faceSlot -1
fishingPole 0
flame
frontSlot -1
glowMask -1
hairDye -1
hammer 0
handOffSlot -1
handOnSlot -1
hasVanityEffects
headSlot -1
healLife 0
healMana 0
height 30
holdStyle 0
instanced
internalName TerraBlade
isAShopItem
knockBack 6.5
lavaWet
legSlot -1
lifeRegen 0
magic
makeNPC 0
mana 0
manaIncrease 0
material 1
maxStack 1
mech
melee 1
mountType -1
name Terra Blade
neckSlot -1
netID 757
noMelee 1
notAmmo
noUseGraphic
noWet
paint 0
paintCoating 0
pick 0
placeStyle 0
potion
prefix 0
questItem
ranged
rare 8
rarity 0
reuseDelay 0
sacrifices 1
scale 1
sentry
shieldSlot -1
shoeSlot -1
shoot 985
shootsEveryUse 1
shootSpeed 12
shopCustomPrice
shopSpecialCurrency -1
stringColor
summon
tileBoost 0
tileWand -1
tooltipContext -1
type 757
uniqueStack
useAmmo 0
useAnimation 18
UseSound Item_1
useStyle 1
useTime 18
useTurn
value 1000000
vanity
waistSlot -1
wet
wetCount 0
width 30
wingSlot -1

See also