Terraria Wiki
Terraria Wiki
K (Typografie.)
(Aktualisiert (+UseSound).)
Zeile 6: Zeile 6:
 
-->{{l10n/register|GetItemInfo|de<!--
 
-->{{l10n/register|GetItemInfo|de<!--
 
-->|noValue=Kein Wert<!--
 
-->|noValue=Kein Wert<!--
  +
-->}}<!--
  +
-->{{l10n/register|GetItemInfo|fr<!--
  +
-->|noValue=Aucune valeur<!--
 
-->}}<!--
 
-->}}<!--
 
-->{{l10n/register|GetItemInfo|pl<!--
 
-->{{l10n/register|GetItemInfo|pl<!--
Zeile 79: Zeile 82:
 
-->{{#vardefine:_item_stat_alias:reusedelay|reuseDelay}}<!--
 
-->{{#vardefine:_item_stat_alias:reusedelay|reuseDelay}}<!--
 
-->{{#vardefine:_item_stat_alias:shootspeed|shootSpeed}}<!--
 
-->{{#vardefine:_item_stat_alias:shootspeed|shootSpeed}}<!--
  +
-->{{#vardefine:_item_stat_alias:sound|UseSound}}<!--
  +
-->{{#vardefine:_item_stat_alias:sounduse|UseSound}}<!--
 
-->{{#vardefine:_item_stat_alias:stack|maxStack}}<!--
 
-->{{#vardefine:_item_stat_alias:stack|maxStack}}<!--
 
-->{{#vardefine:_item_stat_alias:stringcolor|stringColor}}<!--
 
-->{{#vardefine:_item_stat_alias:stringcolor|stringColor}}<!--
Zeile 95: Zeile 100:
 
-->{{#vardefine:_item_stat_alias:uniquestack|uniqueStack}}<!--
 
-->{{#vardefine:_item_stat_alias:uniquestack|uniqueStack}}<!--
 
-->{{#vardefine:_item_stat_alias:use delay|reuseDelay}}<!--
 
-->{{#vardefine:_item_stat_alias:use delay|reuseDelay}}<!--
  +
-->{{#vardefine:_item_stat_alias:use sound|UseSound}}<!--
 
-->{{#vardefine:_item_stat_alias:use style|useStyle}}<!--
 
-->{{#vardefine:_item_stat_alias:use style|useStyle}}<!--
 
-->{{#vardefine:_item_stat_alias:use time|useAnimation}}<!--
 
-->{{#vardefine:_item_stat_alias:use time|useAnimation}}<!--
Zeile 100: Zeile 106:
 
-->{{#vardefine:_item_stat_alias:useanimation|useAnimation}}<!--
 
-->{{#vardefine:_item_stat_alias:useanimation|useAnimation}}<!--
 
-->{{#vardefine:_item_stat_alias:usedelay|reuseDelay}}<!--
 
-->{{#vardefine:_item_stat_alias:usedelay|reuseDelay}}<!--
  +
-->{{#vardefine:_item_stat_alias:usesound|UseSound}}<!--
 
-->{{#vardefine:_item_stat_alias:usestyle|useStyle}}<!--
 
-->{{#vardefine:_item_stat_alias:usestyle|useStyle}}<!--
 
-->{{#vardefine:_item_stat_alias:usetime|useAnimation}}<!--
 
-->{{#vardefine:_item_stat_alias:usetime|useAnimation}}<!--
Zeile 175: Zeile 182:
 
-->|useAnimation=<!--
 
-->|useAnimation=<!--
 
-->{{#var:value}}<!-- Note that for swords with autoswing, the use time is useAnimation-1, so what this returns is wrong for those weapons
 
-->{{#var:value}}<!-- Note that for swords with autoswing, the use time is useAnimation-1, so what this returns is wrong for those weapons
  +
-->|UseSound=<!--
  +
-->{{#arraydefine:usesounds|{{#var:value}}}}<!--
  +
-->{{#arrayprint:usesounds||@|{{sound||@.wav}}}}<!--
 
-->|useStyle=<!--
 
-->|useStyle=<!--
 
-->{{#switch:{{#var:value}}<!--
 
-->{{#switch:{{#var:value}}<!--

Version vom 7. Dezember 2019, 19:08 Uhr

Diese Vorlage ist synchronisiert-lokalisiert, d. h. sie ist mit der Version des englischen Terraria Wikis identisch. Änderungen an dieser Vorlage sollten zunächst dort vorgenommen werden.
Siehe Vorlage:GetItemInfo/l10n für die Lokalisierung dieser Vorlage.
Diese Vorlage verwendet Lua.
Diese Vorlage verwendet Modul:Iteminfo, ein Skript, das in der Programmiersprache Lua verfasst wurde. Siehe Terraria Wiki:Lua, um mehr über Lua zu erfahren.
Template-info Dokumentation Die folgende Dokumentation stammt von der Seite Vorlage:GetItemInfo/Dokumentation. (bearbeiten | Versionsgeschichte)
Siehe auch die englische Vorlagenseite: Template:GetItemInfo. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.
Important Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

This template is used to dynamically and reliably display an item's stats. It is based on Module:Iteminfo, which takes its data directly from the source code. This facilitates displaying stats without having to change them in case of updates. {{iteminfo}} can be used as a shortcut for this template.

Usage

{{ iteminfo | <ID or name of the item> | <specific stat>| format=y/yes (optional) | raw=y/yes (optional) }}

First unnamed parameter

Name or ID of the item

Second unnamed parameter

Specific stat to be displayed; see the tables below for valid values. If it is omitted, a box with all stats (using {{iteminfo/all}}) will be output.

Original raw variable name Alias Note
case-sensitive if raw=yes,
case-insensitive otherwise
type id / item id / itemId Item ID of the item
internalName internal name Internal name of the item.
DD2Summon If set, it means this item is an item related to the Armee des Alten, and the buy price will be calculated using Defender Medals instead of Gold Coins. 10000*1 Verteidigermedaille = 1.
accessory acc If set, this is an accessory item.
ammo AmmoID (used in field useAmmo) not only, e.g. 353, 154
autoReuse auto / autoSwing If set, this item is capable of autoswing.
axe axe power / axePower Axe Power.
bait bait power / baitPower Bait power.
buffTime buffDuration / buff duration Time the buff this item grants will be in effect.
buffType buffId / buff id Buff ID of the buff this item grants.
buff / buff name / buffName Name of the buff this item grants.
cartTrack Is set for Minecart Tracks.
channel If set, means that the item can/needs be used continuously ("channeling cast", different from autoswing, though!) Is set for Flails and Yoyos, Chainsaws and Drills, Magic Missile and its upgrades, Dirt Rod, Piranha Gun, Chlorophyte Jackhammer, Laser Machinegun, Charged Blaster Cannon, Flying Knife, Medusa Head, Arkhalis, Portal Gun, Vortex Beater, Phantasm, The Grand Design, Last Prism, Sleepy Octopod, Ghastly Glaive, Phantom Phoenix, Sky Dragon's Fury. Is also set for certain Pet/Light Pet/Mount summoning items, since they will continuously be in effect.
consumable Is set for items that are consumables (which means all items in Category:Consumable items). Note that this is distinct from the ingame concept "Consumable"! See Category:Consumable items for clarification. If this attribute is set to True, then one item from the stack is removed each time the item is used.
createTile tile / tileId / tile id Tile ID of the tile this item produces when placed.
placeStyle tile sub id / tile subid / tileSubId Sub ID of the Tile ID.
createWall wall / wallId / wall id Wall ID of the wall this item produces when placed.
crit critical Critical strike chance of the item.
damage dmg Base damage of the item.
defense Defense this item grants.
dye If non-zero, this is a dye item.
expert If set, this item will be displayed as Rainbow Rarity.
fishingPole fishingPower / fishing power Fishing Power of the item.
flame Set for each kind of Torch and for Water, Peace, Platinum, and regular Candle. Interestingly, it is also set for Brand of the Inferno.
hairDye hair dye 0 for Hair Dye Remover and positive number for other Hair Dyes.
hammer hammer power / hammerPower Hammer power.
healLife Amount of Health Points this item restores when used.
healMana Amount of Mana this item restores when used.
holdStyle Can only be a value between 0 and 3. Is set to 1 for each kind of Torch and Water, Peace, Platinum, and regular Candle, Sticky, Bouncy, Spelunker and regular Glowstick, Ale, Unicorn on a Stick, Flare Gun, Marshmallow on a Stick, Nebula Arcanum. Is set to 2 for Breathing Reed, Umbrella. Is set to 3 for Magical Harp.
knockBack kb Knockback value of the item.
lifeRegen Can only be 0 or 1. Is set to 1 for Band of Regeneration and Charm of Myths.
makeNPC If non-zero, will spawn NPC when used. The value is the NPC ID of the spawned NPC.
mana Amount of Mana this item consumes upon use.
maxStack stack Maximum stack limit.
mech If set, this is a mechanism item. Whether this item shows wires when held.
melee damagetype If set, this item deals melee damage.
magic If set, this item deals magic damage.
ranged If set, this item deals ranged damage.
summon If set, this item deals summon damage.
thrown If set, this item deals thrown damage.
mountType mount / mountid / mount id Mount ID of the mount this item summons when used.
noMelee Whether this item is allowed to deal damage with its sprite. Typically set to true for a ranged weapon, which would rely on its projectiles to deal damage, instead.
noUseGraphic Whether this item's sprite is drawn while it is in use. Thrown weapons like Dynamite uses this, because it is immediately tossed to the ground to create the illusion of being used.
noWet If set, the item cannot be held/placed underwater: Unicorn on a Stick, every kind of Candle and every kind of Torch (without Cursed and Ichor Torch). However, is also set for Timers which can be placed underwater.
notAmmo Is only set for Coins, Ale, Wire. Aside from Wire, these share the trait of not being able to be put in the ammo slot of the inventory, even though there are used as ammunition. Wire can be placed in that slot, though.
paint If not 0, it means the item is Paint. The value is some sort of internal "Paint ID", ranging from 1 (Red Paint) to 30 (Negative Paint).
pick pick power / pickPower / pickaxe / pickaxe power / pickaxePower Pickaxe power.
potion If set, no other items with this attribute may be used until the cooldown elapses. This applies to healing items and Mushrooms.
rare rarity Rarity of the item. Not valid if expert is set, as that makes the item have the Seltenheitsstufe: Regenbogen rarity.
reuseDelay usedelay / use delay The time in frames before this item may be used again, commonly called "Use Delay". There are 60 frames in one second. Currently only set for Clockwork Assault Rifle, Medusa Head, Last Prism, Sky Fracture, and Betsy's Wrath.
sentry If set, this item is a sentry summon item.
shoot projectileId / projectile id If non-zero, this is the Projectile ID of the projectile fired by the item.
shootSpeed velocity Velocity of the projectile fired by the item.
stringColor The color type of Strings, only for String items.
tileBoost Range bonus.
tileWand tile wand Item ID of the block this Block-placing wand places.
questItem Is only set for Quest Fish.
uniqueStack Is only set for Quest Fish. See Fishing#Fishing Quests for details regarding the special quality of these items.
useAmmo Type of ammunition this item uses.
useAnimation use / usetime / use time Use time of the item.
useStyle use style Use style of the item.
useTime tool speed / toolspeed Tool speed for tools, (internal) use time for others. How long it takes to use the item, in frames. While the item is in use, you cannot take other actions.
useTurn Whether the player will turn to face the direction the player is moving when the item is used. For example, a sword would make you face left or right, but a spear would not.
value buy / price Buy value. If DD2Summon is set, it will display the price in Defender Medals. Note that this might output a value even if the item cannot be bought!
sell / value Sell value.
vanity If set, this item is a vanity item.
format = y/yes

Use this parameter to wrap the variable in the magic word {{formatnum:}} (documentation). Only available when using a second unnamed parameter.

raw = y/yes

Use this parameter to output the value exactly as it exists in the source code. See Module:Iteminfo for information about how to interpret the output values. Only available when using a second unnamed parameter. Requires the second unnamed parameter to constitute an original variable name, i.e. no aliases are allowed. format is still applicable. Renders the second unnamed parameter case-sensitive.

Examples

Specific stats

  • The Regeneration Potion grants the [[{{iteminfo|Regeneration Potion|buff}}]] buff for {{iteminfo|289|buff duration}} and can be sold for {{iteminfo|Regeneration Potion|sell}}.
results in:
The Regeneration Potion grants the [[]] buff for
{{duration}}: Ungültige Sekundeneingabe oder Rundungsniveau!
Fehler im Ausdruck: Unerwarteter Operator <0 Sekunden and can be sold for Fehler im Ausdruck: Unerkanntes Wort „kein“.
  • {{iteminfo|Ballista Cane|price}} results in: 0
  • {{iteminfo|Ballista Cane|sell}} results in: Fehler im Ausdruck: Unerkanntes Wort „kein“

All stats

Use {{iteminfo/all}} or {{getItemInfo/all}} to display a box with all available stats of an item. Takes only one parameter – the ID or name of the item.

  • {{iteminfo/all|Terra Blade}} results in:
Terraklinge (ID = 757) Info:
type: 757
name: Terra Blade
internalName: TerraBlade
DD2Summon:
material: 1
accessory:
alpha: 0
ammo: 0
autoReuse: 1
axe: 0
backSlot: -1
bait: 0
balloonSlot: -1
bodySlot: -1
buffTime: 0
buffType: 0
canBePlacedInVanityRegardlessOfConditions:
cartTrack:
channel:
consumable:
craftable: 1
createTile: -1
placeStyle: 0
createWall: -1
crit: 0
damage: 115
defense: 0
dye: 0
expert:
faceSlot: -1
fishingPole: 0
flame:
frontSlot: -1
glowMask: -1
hairDye: -1
hammer: 0
handOffSlot: -1
handOnSlot: -1
headSlot: -1
healLife: 0
healMana: 0
holdStyle: 0
knockBack: 6.5
legSlot: -1
lifeRegen: 0
makeNPC: 0
mana: 0
maxStack: 1
mech:
melee: 1
magic:
ranged:
summon:
thrown:
mountType: -1
neckSlot: -1
netID: 757
noMelee:
noUseGraphic:
noWet:
notAmmo:
paint: 0
pick: 0
potion:
questItem:
rare: 8
reuseDelay: 0
sacrifices: 1
scale: 1.1
sentry:
shieldSlot: -1
shoeSlot: -1
shoot: 132
shootSpeed: 12
shopCustomPrice:
stringColor:
tileBoost: 0
tileWand: -1
uniqueStack:
useAmmo: 0
useAnimation: 14
useStyle: 1
UseSound: Item_1
useTime: 14
useTurn:
value: 1000000
vanity:
waistSlot: -1
wingSlot: -1