Template:ItemTooltip

From Terraria Wiki
Jump to navigation Jump to 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.

left (optional)

Replacement for "<left>" in the tooltip. Default is Left click.

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|lang=en}} Explodes when stepped on
{{itemTooltip|3006|lang=en}} Drains life from enemies
{{itemTooltip| 3006 |lang=en}} Drains life from enemies
{{itemTooltip|757|lang=en}} Terra Blade has no tooltip.
{{itemTooltip|2999|lang=en}} Right click to have more minions There is a "<right>" in the raw tooltip.
{{itemTooltip|2999|right={{key|open}}|lang=en}} Open / Activate to have more minions Use Open / Activate for "<right>".
{{itemTooltip|2999|right= Right click |lang=en}} Right click to have more minions
{{itemTooltip|3006|lang=es}} Absorbe vida de los enemigos i18n support.