Module:Iteminfo/doc

This module is used to dynamically and reliably obtain an item's stats. It takes its data directly from the source code, facilitating display of stats without having to change them in case of updates.

It provides the functionality for. Usually, that template should be called in articles instead of this module. It features additional utilities like output formatting and parameter aliases.

The module's code is currently synchronized with version of Terraria.

All stats
or

Item ID, can be 1 through. Please note that the following IDs are deprecated and thus invalid: 2772 through 2775, 2777 through 2780, 2782 through 2785, 2881, 3273, 3340 through 3346, 3462 through 3465, 3750, 3847 through 3851, 3861, and 3862.
 * id

The prefix for the output variable, default is. For example, the default variable name for value is. If you used, the variable name would be. When you use this method, the module sets a number of DPL variables which you can then retrieve by using, for instance. This method is used in favor of Lua scripts due to DPL's better speed.
 * prefix (optional)

Single stat
or

Item ID, can be 1 through. Please note that the following IDs are deprecated and thus invalid: 2772 through 2775, 2777 through 2780, 2782 through 2785, 2881, 3273, 3340 through 3346, 3462 through 3465, 3750, 3847 through 3851, 3861, and 3862.
 * id

Stat name, see the table below for possible values.
 * stat (optional)

If you are not sure if the ID you specified is valid, please check. It will be the ID if it is valid, and blank if the ID is invalid.

All return fields are listed below. Please note that not all of them are used – see note info of each row. And please also refer to these tModLoader and tConfig documentations.

Note: You can get the item name from the Item ID by using ItemNameFromId.

de:Modul:Iteminfo fr:Module:Iteminfo zh:模块:Iteminfo