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.
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: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