Template:ItemTooltip/doc

From Terraria Wiki
Jump to navigation Jump to search

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.