Terraria Wiki

Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
Terraria Wiki
Template-info.svg Documentation The documentation below is transcluded from Template:ItemNameFromId/doc. (edit | history)

This template returns the name of an item based on its item ID.

Usage

{{ itemNameFromId | <item ID> (optional) | lang = <lang> (optional) }}

First unnamed parameter

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

lang

Language code. Default is {{lang|}}. Currently, there are 9 languages (as in game): en/es/it/de/fr/zh/pl/pt/ru.

Note: For those 9 languages, it is recommended to use {{itemNameFromId|<id>|lang=<lang>}} instead of {{tr|{{itemNameFromId|<id>|lang=en}}}} to get the name of the item in the target language. This ensures that it is exactly the same as in the game, and it is usually faster.

Examples

Code Result
{{ItemNameFromId|1}} Iron Pickaxe
{{ItemNameFromId|1553}} S.D.M.G.
{{ItemNameFromId| 1553 }} S.D.M.G.
{{ItemNameFromId|}}
{{ItemNameFromId|4888}} Amber Bunny Cage
{{ItemNameFromId|1|lang=it}} Piccone di ferro

Subpages

There are numerous supplemental subpages which are mainly used for store data:


See also

Advertisement