Template:ItemTooltip

From Terraria Wiki
Jump to: navigation, search
This template is i18n-ready, which means it is easy to localize for different languages. Please see i18n & l10n for Templates to learn more.
See Template:ItemTooltip/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:ItemTooltip/doc. (edit | history)

Get the tooltip of an item by its ID.

Usage

{{itemTooltip|<id>|right=<text>|lang=<lang>}}

Unnamed Parameter 1

ID of the item.

right (optional)

Replacement for "<right>" in the tooltip. Default is Right click.

lang (optional)

Language code. Default is {{lang}}. Currently we have 9 languages (as in game): de/en/es/fr/it/pl/pt/ru/zh. All other lang codes will use en database.

Example

Code Result Note
{{itemTooltip|937}} Explodes when stepped on FAIL! (expected: Explodes when stepped on)
{{itemTooltip|3006}} Drains life from enemies FAIL! (expected: Drains life from enemies )
{{itemTooltip| 3006 }} Drains life from enemies FAIL! (expected: Drains life from enemies )
{{itemTooltip|757}} Terra Blade has no tooltip.
{{itemTooltip|2999}} Right click to have more minions FAIL! (expected: Right click to have more minions) There is a "<right>" in the raw tooltip.
{{itemTooltip|2999|right={{key|open}}}} Open / Activate to have more minions FAIL! (expected: Open / Activate to have more minions) Use Open / Activate for "<right>".
{{itemTooltip|2999|right= Right click }} Right click to have more minions FAIL! (expected: Right click to have more minions)
{{itemTooltip|3006|lang=es}} Absorbe vida de los enemigos FAIL! (expected: Absorbe vida de los enemigos ) i18n support.