Predefinição:ItemNameFromId

Fonte: Terraria Wiki
Saltar para a navegação Saltar para a pesquisa
Template-info.svg Documentação A documentação que segue é transcluída de Predefinição:ItemNameFromId/doc. (editar | histórico)

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, will return empty string.

lang

Language code. Default is {{lang|}}. Currently we have 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 target language. This ensures that it is exactly the same as in the game, and is usually faster. And as with 1.4.0.2, l10n for these laguages are imcompleted, so it will use EN version as fallback for inexist entries.

Examples

Code result
{{ItemNameFromId|1}} Picareta de Ferro FAIL! (expected: Iron Pickaxe )
{{ItemNameFromId|1553}} M.G.E. FAIL! (expected: S.D.M.G.)
{{ItemNameFromId| 1553 }} M.G.E. FAIL! (expected: S.D.M.G. )
{{ItemNameFromId|}}
{{ItemNameFromId|4888}} Gaiola do Coelhinho de Âmbar FAIL! (expected: Amber Bunny Cage )
{{ItemNameFromId|1|lang=it}} Iron Pickaxe FAIL! (expected: Piccone di ferro )
{{ItemNameFromId|4888|lang=it}} Amber Bunny Cage

See also