如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
见 Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南
Template:ItemTooltip
This template displays the tooltip of an item by its ID.
Usage
{{ itemTooltip | <item ID> | left = <text> (optional) | right = <text> (optional) | grapple = <text> (optional) | lang = <language code> (optional) }}
- First unnamed parameter
- left
Custom replacement for <left> in the tooltip. The default replacement is 左键点击.
- right
Custom replacement for <right> in the tooltip. The default replacement is 右键点击.
- grapple
Custom replacement for {InputTrigger_Grapple} in the tooltip. The default replacement is "抓钩".
- lang
Language code, one of the following 11 (as in-game): de (German), en (English), es (Spanish), fr (French), it (Italian), ja (Japanese), ko (Korean), pl (Polish), pt (Portuguese), ru (Russian), zh (Chinese). All other languages will use the English database. If this parameter is omitted, it defaults to {{lang}}.
Examples
| Code | Result | Note |
|---|---|---|
{{itemTooltip|937}} |
踩踏或接收到信号时爆炸 FAIL! (expected: Explodes when stepped on or signalled) | |
{{itemTooltip|3006}} |
吸取敌人的生命 FAIL! (expected: Drains life from enemies ) | |
{{itemTooltip| 3006 }} |
吸取敌人的生命 FAIL! (expected: Drains life from enemies ) | |
{{itemTooltip|757}} |
The Terra Blade (ID 757) has no tooltip. | |
{{itemTooltip|1774}} |
右键点击打开 FAIL! (expected: Right click to open) | The tooltip contains <right>, which was automatically replaced by the default 右键点击 here.
|
{{itemTooltip|1774|right={{key|open}}}} |
⚷ 打开/激活打开 FAIL! (expected: ⚷ 打开/激活 to open) | Using ⚷ 打开/激活 for <right>.
|
{{itemTooltip|1774|right= Double tap }} |
Double tap打开 FAIL! (expected: Double tap to open ) | |
{{itemTooltip|3623|grapple=the "Grapple" key}} |
按the "Grapple" key发射抓钩 FAIL! (expected: Press the "Grapple" key to launch hook ) | Using a custom string for the {InputTrigger_Grapple} placeholder.
|
{{itemTooltip|3006|lang=es}} |
Absorbe vida de los enemigos | Internationalization is supported. |