Template:ItemInternalNameFromId

From Terraria Wiki
Jump to navigation Jump to search
This template uses Lua.
This template uses Module:ItemNames, a script written in the Lua programming language. To learn more about Lua, see Terraria Wiki:Lua.
Template-info.svg Documentation The documentation below is transcluded from Template:ItemInternalNameFromId/doc. (edit | history)

This template returns the internal name of an item based on its item ID, as defined in Terraria's source code.

Usage

{{ itemInternalNameFromId | <item ID> }}

First unnamed parameter

ID of the item. If empty or invalid, the template will return an empty string.

Examples

Code Result
{{ItemInternalNameFromId|1}} IronPickaxe
{{ItemInternalNameFromId|1553}} SDMG
{{ItemInternalNameFromId| 1553 }} SDMG
{{ItemInternalNameFromId|7000}}
{{ItemInternalNameFromId|}}

See also