Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:Item infobox

来自Terraria Wiki
跳转至: 导航搜索

此模板定义表格“Items_new”。 查看表格.

This template is i18n-ready, means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
Lua logo.svg
This template uses Module:Iteminfo, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about Lua.
Template-info.svg 文档 以下文档内容来自模板:Item infobox/doc。 (edit | history)

中文翻译入门使用指南[编辑源代码]

按以下步骤使用即可:

  • 复制 EN 版本内的模板调用代码。
  • 预览,检查效果。绝大多数情况下按以上步骤之后即可正常显示中文 item infobox 信息,结束。
  • 若有图片文件问题,检查是否有 name 参数,如无,添加 | name = <英文原名> 的参数调用。(也可以不管三七二十一直接统一添加 | ename = <英文原名> 。)
  • 如果以上预览时依然存在个别英文未翻译的情况,再行参考以下详细模板文档决定如何处理。

Usage[编辑源代码]

  • Everything is optional.(中文版变更:name和ename至少要指定一个!值为英文原名,如果2个参数同时存在,ename覆盖name。)
  • The deprecated sspeed ("shoot speed") param is the same attribute as velocity (which now replaces sspeed).
  • 中文版特有: ename参数,指定原文名称(和ename效果相同,如果同时指定则ename覆盖name)
{{item infobox
| name = custom item name; default = page name
| boxwidth = width of infobox; default = 21em or stretches to image width
| image = inventory image; default = name.png
| imageplaced = placed image; default = name (placed).gif; if no GIF exists, default = name (placed).png
| imagebreak = if yes, placed image is pushed to a new line below the inventory image; default = no
| type = eg. Weapon, Tool, Furniture, etc.
| type2 = secondary type
| damage = damage inflicted per hit
| damageraw = deprecated; use "data-sort-type=number" in Damage column header instead;

(was used if damage had icons and/or formatting, to give an unformatted number for use in sorting lists)

| damagetype = melee, ranged, magic, summon, or thrown
| auto = yes, if weapon/item autoswings/autofires by holding the use key/button
| defense = defense provided
| bonus =
| pick = pickaxe power, without "%"
| axe = axe power, without "%"
| hammer = hammer power, without "%"
| bait = bait power, without "%"
| knockback = knockback inflicted per hit
| placeable = yes/no
| width = width when placed, tiles
| height = height when placed, in tiles
| stack = max quantity of this item that can be stacked in a single inventory slot
| mana = mana cost per use
| mregen = mana regeneration
| mheal = mana heal
| lregen = health (life) regeneration
| hheal = health heal
| tooltip = Tooltip
| consumable = yes/no
| velocity =
| critical = if no value is entered and the main Type is "Weapon", a default value of 4% is displayed
| rare = rarity value, eg. '1' for Blue, '2' for Green, 'q' for Amber (quest), 'rainbow' for expert-exclusive.
| body slot =
| use = use time
| toolspeed =
| tool = tool used to free this item if in its placed form (this field is somewhat deprecated)
| buff = buff provided
| bufftip = buff tooltip
| duration = buff duration
| buy = buy value in coins, enter using coin templates ({{cc}}, {{sc}}, {{gc}}, {{pc}})

Placing // within either the sell value or buy value will return separate lines for Buy and Sell.

| sell = sell value in coins, also enter using coin templates
| id = internal item ID
| idbuff = internal buff ID
| idtile = internal tile ID
| idwall = internal wall ID
| idmount = internal mount ID
| listcat = a supplemental category name to include the current item in a DPL list, eg. "arrows" causes the item to display at Arrows
| listcat2 = identical to listcat: an additional supplemental category name
| listexclude = yes, to exclude the current template from DPL lists
| allversions = yes (only PC/Console/Mobile/3DS content, where no "___ content only" banner is present)
| hardmode = yes, for items that only become available in Hardmode worlds
}}