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.
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[edit source]

{{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[edit source]

Code Result Note
{{itemTooltip|937}} Explodes when stepped on
{{itemTooltip|3006}} Drains life from enemies
{{itemTooltip| 3006 }} Drains life from enemies
{{itemTooltip|757}} Terra Blade has no tooltip.
{{itemTooltip|2999}} 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 Use Open / Activate for "<right>".
{{itemTooltip|2999|right= Right click }} Right click to have more minions
{{itemTooltip|3006|lang=es}} Absorbe vida de los enemigos i18n support.

Note[edit source]

The template takes its data from the tooltip databases (Template:ItemTooltip/db-<lang>), such as Template:ItemTooltip/db-de for the German tooltips.