Terraria Wiki
Advertisement
Terraria Wiki
3,710
个页面
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 文档 以下文档内容来自模板: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 右键点击.

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}} 踩上时爆炸 FAIL! (expected: Explodes when stepped on)
{{itemTooltip|3006}} 吸取敌人的生命 FAIL! (expected: Drains life from enemies )
{{itemTooltip| 3006 }} 吸取敌人的生命 FAIL! (expected: Drains life from enemies )
{{itemTooltip|757}} Terra Blade has no tooltip.
{{itemTooltip|2999}} 右键点击可拥有更多仆从 FAIL! (expected: Right click to have more minions) There is a "<right>" in the raw tooltip.
{{itemTooltip|2999|right={{key|open}}}} 打开/激活可拥有更多仆从 FAIL! (expected: 打开/激活 to have more minions) Use 打开/激活 for "<right>".
{{itemTooltip|2999|right= Right click }} Right click可拥有更多仆从 FAIL! (expected: Right click to have more minions )
{{itemTooltip|3006|lang=es}} Absorbe vida de los enemigos i18n support.
Advertisement