Terraria Wiki
探索
首页
所有页面
交互式地图
基础
物品
武器
工具
盔甲
配饰
药水
矿石
家具
物块
背景墙
时装物品
角色
NPC
敌怪
Boss
小动物
宠物
仆从
生物群落
事件
游戏玩法
困难模式
经典模式
专家模式
大师模式
旅行模式
多人模式
机制
制作
房屋
增益
怪物图鉴
成就
钓鱼
修饰语
指南
入门
通关攻略
职业设置
制作101
游戏进程
维护世界纯净度
NPC 快乐度
刷资源
赚钱
基地
进阶
游戏机制
生物群落蔓延
日夜更替
游戏控制
运气
月相
NPC 生成
设置
世界种子
世界大小
玩家机制
仇恨
伤害减免
死亡
防御
掉落伤害
生命
生命再生
魔力
移动速度
生成
战斗机制
攻击速度
自动挥舞
暴击
伤害
击退
射速
物品机制
挖矿速度
镐力
放置
稀有度
工具提示
使用时间
价值
模组
资源包
创意工坊中心
tModLoader
物品栏编辑器
地图查看器
数据 ID
泰拉瑞亚链接
官方网站
官方论坛
官方 Wiki 中文语言包
泰拉瑞亚 Twitter
泰拉瑞亚 Facebook
泰拉瑞亚 Instagram
泰拉瑞亚 Subreddit
Wiki 社区
帮助
样式指南
规则
视频政策
最近更改
社区专页
Wiki 翻译与样式指南
管理员告示板
Wiki Discord
FANDOM
游戏
电影
电视
wiki
探索wiki
社区中心
创建wiki
尚未注册?
注册
登录
登录
注册
Terraria Wiki
3,761
个页面
探索
首页
所有页面
交互式地图
基础
物品
武器
工具
盔甲
配饰
药水
矿石
家具
物块
背景墙
时装物品
角色
NPC
敌怪
Boss
小动物
宠物
仆从
生物群落
事件
游戏玩法
困难模式
经典模式
专家模式
大师模式
旅行模式
多人模式
机制
制作
房屋
增益
怪物图鉴
成就
钓鱼
修饰语
指南
入门
通关攻略
职业设置
制作101
游戏进程
维护世界纯净度
NPC 快乐度
刷资源
赚钱
基地
进阶
游戏机制
生物群落蔓延
日夜更替
游戏控制
运气
月相
NPC 生成
设置
世界种子
世界大小
玩家机制
仇恨
伤害减免
死亡
防御
掉落伤害
生命
生命再生
魔力
移动速度
生成
战斗机制
攻击速度
自动挥舞
暴击
伤害
击退
射速
物品机制
挖矿速度
镐力
放置
稀有度
工具提示
使用时间
价值
模组
资源包
创意工坊中心
tModLoader
物品栏编辑器
地图查看器
数据 ID
泰拉瑞亚链接
官方网站
官方论坛
官方 Wiki 中文语言包
泰拉瑞亚 Twitter
泰拉瑞亚 Facebook
泰拉瑞亚 Instagram
泰拉瑞亚 Subreddit
Wiki 社区
帮助
样式指南
规则
视频政策
最近更改
社区专页
Wiki 翻译与样式指南
管理员告示板
Wiki Discord
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
Item infobox/doc
模板页面
返回页面
| ←
Template:Item infobox/doc
登录以编辑
查看历史
讨论 (0)
因为以下原因,您没有权限编辑本页:
您没有权限编辑
Template
命名空间内的页面。
您可以查看和复制此页面的源代码。
=== Basic parameters === ; Notes: * The dollar sign ({{code|$}}) is used to signify that the word after it is the name of a template parameter. * All parameters which have a default value listed can usually be omitted. Note that this does not mean that parameters which do not have a default value listed should always be filled in. {| class="terraria lined" ! align=left | Parameter ! align=left | Description ! align=left | <abbr title="Generated automatically when using the "auto" parameter">Auto</abbr> ! align=left | Example ! align=left | Default value<br/>{{note|if omitted|paren=y}} ! align=left | Note |- class="infob-doc-no-border-b" | colspan=6 | <code>{{(}}item infobox</code> |- ! colspan=6 | {{anchor|toc=4|Box-related parameters}} Box-related parameters |- | width=13% | <code>| boxwidth</code> || width=16% | Width of the infobox || width=3% | || width=7% | <code>27em</code> || width= 7% | <code>21em</code> || width=45% | Number with unit. Default is {{code|21em}} or stretching to image width |- | <code>| float</code> || Position of the infobox || || <code>left</code> || <code>right</code> || |- | <code>| css</code><br/> or<br/><code>| style</code> || CSS style affecting the entire infobox || || || || Any {{code|width}} or {{code|float}} properties defined here will override the template's {{code|$boxwidth}} and {{code|$float}} parameters, respectively. |- | <code>| auto</code> || Enables automatic data || || <code>465</code> || || Can also be {{code|yes}} (see text above). |- | <code>| id</code> || ID of the item || {{yes}} || <code>465</code> || || The automatic data gathering for {{code|$tooltip}} is based on this. |- | <code>| name</code> || Name of the item || {{yes}} || <code>Wood</code> || <code>Page name</code> || Will be displayed as heading of the infobox. |- | <code>| lname</code> || Localized name of the item || {{yes}} || <code>Legno</code><br/>{{note|Italian for "Wood"|small=y|paren=y}} || <code>{{tl|tr|$name}}</code> || Will be displayed as heading of the infobox; only to be used if {{code|$name}} is not existent in the <code>{{tl|tr}}</code> database of the specific language. |- | <code>| showenglishname</code> || Display of English name of this item || || <code>yes</code><br/><code>no</code> || || Defaults to {{code|no}} for languages that have an in-game translation ({{code|en}}, {{#lstmap:de,es,fr,it,pl,pt,ru,zh|,|@|<esc>{{code|@}} ({{langInfo|@|name}})</esc>}}), and to {{code|yes}} for all other languages. |- class="infob-doc-no-border-b" | <code>| namesub</code> || Name sub-heading || || || || Additional information directly underneath the title of the infobox; rarely useful for item infoboxes. |- ! colspan=6 | {{anchor|toc=4|Image-related parameters}} Image-related parameters |- | <code>| imagealt</code> || Complete custom control over the entire image display || || <code><nowiki>[[File:Wood.png]]</nowiki></code> || || Overrides ''all'' image parameters in this parameter category (except for {{code|$imagebreak}}). If intending to manually reproduce the gray border that the infobox places automatically between {{code|$image}}, {{code|$imageold}}. etc., a simple <code><hr/></code> should ''not'' be used. Instead, enclose the different images that should be separated in <code><li></code> tags (except for the first image). The {{code|$imagebreak}} parameter will also still work as expected in this case and create vertical breaks at the separators. See [[Special:Permalink/1096777|Sensors]] for a simple example and [[Special:Permalink/1089259#Types|Fish Bowls]] for a more elaborate, fully customized example. |- | <code>| ext</code> || File extension of {{code|$image}} || || <code>gif</code> || <code>png</code> || |- | <code>| image</code> || Main image of the inventory icon or equipped item/set || || <code>Wood.png</code> || <code>$name.$ext</code> || |- | <code>| imageold</code> || Variant image of the older versions || || <code>Compass (old).png</code> || <code>$name (old)</code> || rowspan=3 | Default value: First checks for the {{code|.gif}} and then for the {{code|.png}}. Due to the way the automatic image detection is handled internally, it will likely fail on items whose name contains a dot (e.g. [[S.D.M.G.]]). It is necessary to explicitly specify the image in that case. (This applies to all image-related parameters.) |- | <code>| imageplaced</code> || Image of the placed item || || <code>Wood (placed).png</code> || <code>$name (placed)</code> |- | <code>| imageequipped</code> || Image of the equipped item/set || || <code>Shackle (equipped).png</code> || <code>$name (equipped)</code> |- | <code>| imagefemale</code> || Image of the female equipped item/set || || <code>Robe (equipped) female.png</code> || <code>$name female.$ext</code> || |- | <code>| imageoldalt</code> || Complete custom control over the "old" image display || || <code><nowiki>[[File:Compass (old).png]]</nowiki></code> || || |- | <code>| imageplacedalt</code> || Complete custom control over the "placed" image display || || <code><nowiki>[[File:Wood (placed).png]]</nowiki></code> || || |- | <code>| imageequippedalt</code> || Complete custom control over the "equipped" image display || || <code><nowiki>[[File:Shackle (equipped).png]]</nowiki></code> || || |- | <code>| imagebreak</code> || Arranges multiple images in rows rather than in columns || || <code><nowiki>yes</nowiki></code> || || Causes the main/"old", "placed", "equipped", and "female" images to all take up a separate row, with small horizontal bars in between (example: [[Book]]). Note that the main and "old" images will always be displayed in the same row. Also note that this effect is enabled regardless of what {{code|$imagebreak}} is set to (i.e, setting it to {{code|no}} will also enable it – so refrain from doing that). |- | <code>| imagemode</code> || Controls image selection || || <code>placed/equipped</code> || <code>full</code> || If set to {{code|full}} (which will only be the default for the {{code|infobox}} {{code|$view}}), the template will attempt to display all different types of images mentioned above. If not set to {{code|full}}, it will only attempt to display the main image (which will be the case for other {{code|$view}}s by default, e.g. {{code|table}}), for performance reasons. It is possible, however, to enable (attempted) display of certain image types even if the mode is not {{code|full}}: Set the parameter to {{code|old}}, {{code|placed}}, {{code|equipped}}, or any combination of these three to cause the template to fetch these images as well. |- class="infob-doc-no-border-b" | <code>| imageinfo</code> || Prevents the internal usage of <code>{{tl|image}}</code> || || <code>no</code> || || Setting it to {{code|no}} will cause the template to use the standard {{code|<nowiki>[[File:]]</nowiki>}} syntax instead of <code>{{tl|image}}</code>. <code>{{tl|image}}</code> will increase the expensive function count, so if there are many item infoboxes on one page, the expensive function count limit may be exceeded. Using <code>imageinfo=no</code> can reduce the count to avoid exceeding it. In the vast majority of cases, this is not necessary. |- ! colspan=6 | {{anchor|toc=4|Statistics-related parameters}} Statistics-related parameters |- | <code>| autoswing</code> || [[Auto-use]] capability || {{yes}} || <code>yes</code> || || Displays [[File:Auto icon.png|18px|Autoswing, Autofire, or Auto-use]] in the top-right corner of the infobox. Hover text is determined by {{code|$damagetype}} ("Autoswing" for [[melee]], "Autofire" for [[ranged]] and [[magic]], and "Auto-use" for anything else). |- | <code>| stack</code> || Maximum possible stack size || {{yes}}<ref name=x/> || <code>99</code> || <code>1</code> || Maximum quantity of this item that can be stacked in a single inventory slot. |- | <code>| pick</code> || [[Pickaxe power]] || {{yes}}<ref name=x/> || <code>100</code> || || rowspan=3 | Without percentage sign ({{code|%}}), unless more complex wikitext is used. If any of the three parameters is used, all three symbols will always be displayed: [[File:Pickaxe icon.png|16px]] [[File:Hammer icon.png|16px]] [[File:Axe icon.png|16px]] |- | <code>| hammer</code> || Hammer power || {{yes}}<ref name=x/> || <code>75</code> || |- | <code>| axe</code> || Axe power || {{yes}}<ref name=x/> || <code>50</code> || |- | <code>| pickreq</code> || Required pickaxe power for destroying || {{no}} || <code>150</code> || || Without percentage sign ({{code|%}})! |- | <code>| hammerreq</code> || Required hammer power for destroying || {{no}} || <code>80</code> || || Without percentage sign ({{code|%}})! Prints the following behind it: "{{note|small=y|{{l10n|item_infobox|hammerreq_note}}}}" |- | <code>| type</code><br/> (deprecated:<br/><code>| type2</code>) || Classification and categorization || {{yes}} || <code>Weapon/Tool</code> || || Broad classifications like "Weapon", "Tool", "Furniture", etc. Separate multiple values with a slash ({{code|/}}). Many types, such as "Crafting material", will be added automatically. |- | <code>| fishing</code> || [[Fishing]] power || {{yes}}<ref name=x/> || || || Without percentage sign ({{code|%}})! |- | <code>| bait</code> || [[Bait]] power || {{yes}} || || || Without percentage sign ({{code|%}})! |- | <code>| damage</code> || [[Damage]] || {{yes}}<ref name=x/> || || || |- | <code>| damagetype</code> || Damage type || {{yes}}<ref name=x/> || || || Possible values: {{code|melee}}, {{code|ranged}}, {{code|magic}}, {{code|summon}}, and {{code|throwing}}. The infobox will automatically categorize the page in the appropriate [[:Category:Weapon types|weapon type category]], but only for the automatically generated damage type. For any additional, manually added damage type, a <code>|listcat=<damage type> weapons</code> will be necessary. |- | <code>| knockback</code> || [[Knockback]] || {{yes}}<ref name=x/> || <code>@@@@ / {{(}}kb|5{{)}}</code> || || If more than one value is needed, wrap the individual values with {{tl|kb}} in order to ensure correct styling. The {{code|@@@@}} string does not need {{tl|nl=y|kb}}. |- | <code>| defense</code> || [[Defense]] || {{yes}}<ref name=x/> || || || |- | <code>| tileboost</code> || Tile range boost || {{yes}} || || || |- | <code>| bonus</code> || Miscellaneous bonuses || {{no}} || || || |- | <code>| setbonus</code> || [[Set bonus]] || {{yes}}<ref name=x/> || || || For armor sets, where {{code|$type}} contains {{code|Set}}. Note that because this parameter is only sensible for set item infoboxes – which don't use {{code|$auto}} since it doesn't work with sets – its data will always be generated automatically (instead of only when {{code|$auto}} is set). Set this parameter to an empty value to hide the automatically generated set bonus. |- | <code>| placeable</code> || [[Placeable]] || {{yes}} || <code>yes</code> || <code>no</code> || |- | <code>| width</code> || Width when placed || {{no}} || || || rowspan=2 | In tiles. Defaults to {{code|1}} for [[blocks]]. |- | <code>| height</code> || Height when placed || {{no}} || || |- | <code>| consumable</code> || [[:Category:Consumable items|Consumable]] || {{yes}} || || || True if the item leaves the player's inventory with {{key|use}}; includes placeable items. It is found in the game's source code. |- | <code>| mana</code> || [[Mana]] cost || {{yes}}<ref name=x/> || || || |- | <code>| mheal</code> || Mana restoration || {{yes}}<ref name=x/> || || || |- | <code>| hheal</code> || [[Health]] restoration || {{yes}}<ref name=x/> || || || |- | <code>| critical</code> || [[Critical strike chance]] || {{yes}}<ref name=x/> || <code>11</code> || || Without percentage sign ({{code|%}}), unless more complex wikitext is used. If no value is entered and the main {{code|$type}} is {{code|Weapon}}, a default value of {{code|4}} will be used. |- | <code>| body slot</code> || Body slot || {{yes}} || || || |- | <code>| use</code> || [[Use time]] || {{yes}}<ref name=x/> || <code>@@@@ / {{(}}ut|30{{)}}</code> || || If more than one value is needed, wrap the individual values with {{tl|ut}} in order to ensure correct styling. The {{code|@@@@}} string does not need {{tl|nl=y|ut}}. |- | <code>| velocity</code><br/> (deprecated:<br/><code>| sspeed</code>) || [[Velocity]] || {{yes}}<ref name=x/> || || || |- | <code>| toolspeed</code> || [[Tool speed]] || {{yes}}<ref name=x/> || || || |- | <code>| tooltip</code> || [[Tooltip]] || {{yes}}<ref name=x/> || || || |- | <code>| rare</code> || [[Rarity]] || {{yes}}<ref name=x/> || <code>@@@@ / {{(}}rare|0{{)}}</code> || || Use the {{tl|rare}} template. |- | <code>| research</code> || [[Research]] required || {{yes}} || <code>5</code> || || |- | <code>| buy</code> || Buy value || {{yes}}<ref name=x/> || || || Enter the value using the coin template ({{tl|coin}}). If using {{code|$auto}}, use <code>buy=''y/yes/true/show''</code> to enable display of automatic buy price (disabled by default, since many items that can be sold cannot be bought). Alternatively, add {{code|buy}}, {{code|buyable}}, or {{code|vendor}} to {{code|$tags}}. |- | <code>| sell</code> || Sell value || {{yes}}<ref name=x/> || || || Also enter the value using the coin template. |- class="infob-doc-no-border-b" | <code>| value</code> || [[Value]] || {{yes}} || || || Mostly used internally. Will not be displayed directly, but serves as the base for {{code|$buy}} and {{code|$sell}}. It can be used to suppress buy and sell value display entirely by setting it to a blank value (<code>|value=</code>). |- ! colspan=6 | {{anchor|toc=4|Buff- & debuff-related parameters}} Buff- & debuff-related parameters |- | <code>| buff</code> || [[Buff]] provided || {{yes}} || || || Name of the buff. As a shortcut for {{code|$buffduration}} and {{code|$buffchance}}, they can be appended to this value, separated with a slash: <code>| buff = <name> / <duration> / <chance></code>. Chance may also be omitted. |- | <code>| idbuff</code> || [[Buff IDs|Buff ID]] || {{yes}} || || || |- | <code>| bufflink</code> || Buff link target || {{yes}} || || || |- | <code>| bufftip</code> || Buff tooltip || {{yes}} || || || |- | <code>| buffchance</code> || Buff chance || {{yes}} || || || |- | <code>| buffduration</code> || Buff duration || {{yes}}<ref name=x/> || || || Enter the value using the {{tl|duration}} template. |- | <code>| buff''<n>''</code> || Additional buff provided || {{no}} || || || rowspan=6 style="border-bottom:0;" | Can be continued nearly infinitely, e.g. <code>buff2</code>, <code>buff3</code>, etc. |- | <code>| idbuff''<n>''</code> || Buff ID || {{no}} || || |- | <code>| bufflink''<n>''</code> || Buff link target || {{no}} || || |- | <code>| bufftip''<n>''</code> || Buff tooltip || {{no}} || || |- | <code>| buffchance''<n>''</code> || Buff chance || {{no}} || || |- class="infob-doc-no-border-b" | <code>| buffduration''<n>''</code> || Buff duration || {{no}} || || |- class="infob-doc-medium-border-t" | <code>| debuff</code> || [[Debuff]] inflicted || {{yes}} || || || Name of the debuff. As a shortcut for {{code|$debuffduration}} and {{code|$debuffchance}}, they can be appended to this value, separated with a slash: <code>| debuff = <name> / <duration> / <chance></code>. Chance may also be omitted. |- | <code>| iddebuff</code> || [[Buff IDs|Debuff ID]] || {{yes}} || || || |- | <code>| debufflink</code> || Debuff link target || {{yes}} || || || |- | <code>| debufftip</code> || Debuff tooltip || {{yes}} || || || |- | <code>| debuffchance</code> || Debuff chance || {{yes}} || || || |- | <code>| debuffduration</code> || Debuff duration || {{yes}}<ref name=x/> || || || Enter the value using the {{tl|duration}} template. |- | <code>| debuff''<n>''</code> || Additional debuff provided || {{no}} || || || rowspan=6 style="border-bottom:0;" | Can be continued nearly infinitely, e.g. <code>debuff2</code>, <code>debuff3</code>, etc. |- | <code>| iddebuff''<n>''</code> || Debuff ID || {{no}} || || |- | <code>| debufflink''<n>''</code> || Debuff link target || {{no}} || || |- | <code>| debufftip''<n>''</code> || Debuff tooltip || {{no}} || || |- | <code>| debuffchance''<n>''</code> || Debuff chance || {{no}} || || |- class="infob-doc-no-border-b" | <code>| debuffduration''<n>''</code> || Debuff duration || {{no}} || || |- ! colspan=6 | {{anchor|toc=4|Sound-related parameters}} Sound-related parameters |- | <code>| sounduse</code> || Use [[:Category:Sound effects|sound effect]] || {{yes}} || <code>Item_1.wav</code> || || Can be a comma-separated list for multiple sounds. Caption is "{{l10n|item_infobox|th:use}}". |- | <code>| sound1</code> || Custom additional sound effect || || || || Can be a comma-separated list for multiple sounds. |- | <code>| soundcaption1</code> || Caption for the sound effect || || || || |- | <code>| sound2</code> || Custom additional sound effect || || || || Can be a comma-separated list for multiple sounds. |- | <code>| soundcaption2</code> || Caption for the sound effect || || || || |- | <code>| sound''<n>''</code> || Custom additional sound effect || || || || rowspan=2 style="border-bottom:0;" | Can be continued nearly infinitely. Sounds will only be displayed if there is a <code>sound''<n>''</code> parameter with a corresponding <code>soundcaption''<n>''</code> parameter. |- class="infob-doc-no-border-b" | <code>| soundcaption''<n>''</code> || Caption for the sound effect || || || |- ! colspan=6 | {{anchor|toc=4|Mount-related parameter}} Mount-related parameter |- class="infob-doc-no-border-b" | <code>| idmount</code> || [[Mount IDs|Mount ID]] || {{yes}} || || || |- ! colspan=6 | {{anchor|toc=4|Projectile-related parameters}} Projectile-related parameters |- | <code>| idprojectile</code><br/> (deprecated:<br/><code>| shoot</code>) || [[Projectile IDs|Projectile ID]] || {{yes}} || || || Can be a comma-separated list for multiple IDs. |- | <code>| projectilename</code> || Projectile name || {{yes}} || || || |- | <code>| projectileimage</code> || Projectile image || {{yes}} || || || |- class="infob-doc-no-border-b" | <code>| projectileblock</code> || Projectile images arrangement || {{no}} || || || Operates similarly to {{code|$imagebreak}}. |- ! colspan=6 | {{anchor|toc=4|ID-related parameters}} ID-related parameters |- | <code>| showids</code> || Display of ID section || {{no}} || <code>no</code> || || ID section is not hidden by default. |- | <code>| idshow</code> || Vanity item ID || {{no}} || || || |- | <code>| idtile</code> || [[Tile IDs|Tile ID]] || {{yes}} || || || |- | <code>| idtileshow</code> || Vanity tile ID || {{no}} || || || |- | <code>| idtilesub</code> || Tile sub-ID || {{yes}} || || || Internally known as {{code|placeStyle}} in ''[[Terraria]]''. |- | <code>| idwall</code> || [[Wall IDs|Wall ID]] || {{yes}} || || || |- | <code>| idarmor</code> || [[Armor IDs|Armor ID]] || {{yes}} || || || |- | <code>| idbuffshow</code> || Vanity buff ID || {{no}} || <code>170–172</code> || || rowspan=4 style="border-bottom:0;" | The values of these parameters require to be escaped, i.e., wikitext like templates or parser functions will need to be wrapped with <code><esc></code> and <code></esc></code>. |- | <code>| idbuffshow''<n>''</code> || Vanity buff ID || {{no}} || <code><nowiki>1007 <esc>{{3DS}}</esc></nowiki></code> || |- | <code>| iddebuffshow</code> || Vanity debuff ID || {{no}} || || |- class="infob-doc-no-border-b" | <code>| iddebuffshow''<n>''</code> || Vanity debuff ID || {{no}} || || |- ! colspan=6 | {{anchor|toc=4|Back-end-related parameters}} Back-end-related parameters |- | <code>| cate</code> || Toggles categorization || {{no}} || <code>no</code> || || Set to {{code|yes}} to force categorization when it is disabled by default (on non-[[gphelp:Namespaces|mainspace]] pages). Set to {{code|no}} to disable categorization. |- | <code>| listexclude</code> || Toggles categorization || {{no}} || <code>yes</code> || <code>no</code> || Set to {{code|yes}} to disable categorization. Overrides <code>cate=yes</code>, but not <code>cate=no</code>. |- | <code>| cargo</code> || Toggles cargo data storage || {{no}} || <code>no</code> || || Set to {{code|force}} to force [[mw:Extension:Cargo|cargo]] data storage when it is disabled by default (on non-mainspace pages). Set to {{code|no}} to disable cargo data storage. Note that setting it to anything else (e.g. {{code|yes}}) also disables cargo data storage, so please stick to the unambiguous {{code|no}}. |- | <code>| listcat</code> || Categorization || {{yes}} || || || Supplemental category names to include the current item in a [[DPL]] list, e.g. {{code|arrows}} causes the item to display at the [[Arrows]] page. Separate multiple categories with a slash character ({{code|/}}). The following categories will be added automatically: * [[:Category:Vendor items|Vendor items]], if <code>buy=true</code> or {{code|$tags}} contains {{code|buy}}/{{code|buyable}}/{{code|vendor}}. * [[:Category:Craftable items|Craftable items]], if this item is the result of any recipe. * [[:Category:Swords|Swords]], if {{code|$listcat}} contains {{code|broadswords}} or {{code|shortswords}}. * [[:Category:Minecart track items|Minecart track items]], if this item is cart track item. * [[:Category:Arrows|Arrows]], [[:Category:Coins|Coins]], [[:Category:Bullets|Bullets]], [[:Category:Sands|Sands]], [[:Category:Darts|Darts]], [[:Category:Rockets|Rockets]], or [[:Category:Flares|Flares]], if this item is that kind of ammo. * [[:Category:Hamaxes|Hamaxes]], [[:Category:Hammers|Hammers]], [[:Category:chainsaws|Chainsaws]], [[:Category:Axes|Axes]], [[:Category:Drills|Drills]], or [[:Category:Pickaxes|Pickaxes]], if this item is that type of tool. * [[:Category:Weapon items|Weapon items]], if this item is a weapon or tool and deals damage. * [[:Category:Weapon types|<Damage type> weapons]], if this item is a weapon. |- | <code>| tag</code><br/> or<br/><code>| tags</code> || Categorization || {{yes}} || || || Supplemental category names to appropriately categorize the item. Can contain any of the following (separate multiple with a slash character ({{code|/}}): * {{code|buy}}/{{code|buyable}}/{{code|vendor}} (implies <code>buy=yes</code>) ** <code>vendor:<NPC name></code> * {{code|hardmodeonly}}/{{code|hardmode}} (implies <code>hardmode=yes</code>) * {{code|allversions}} (implies <code>allversions=yes</code>) * {{code|dd2}} (means that this item is to be purchased with {{item|Defender Medal|mode=image}}.) * {{code|drop}} (implies <code>listcat=drop items</code>) * {{code|loot}} (implies <code>listcat=loot items</code>) * {{code|plunder}} (implies <code>listcat=plunder items</code>) ** <code>plunder:<location></code> * {{code|fished}} (implies <code>listcat=fished items</code>) * {{code|unobtainable}} (implies <code>listcat=unobtainable items</code>) * {{code|developer}} (implies <code>listcat=developer items</code>). * {{code|storage}} (implies <code>listcat=storage items</code>). * {{code|informational}} (implies <code>listcat=informational items</code>). * {{code|quest rewards}} (implies <code>listcat=quest rewards</code>). * {{code|light source}} (implies <code>listcat=light source items</code>). * {{code|novelty}} (implies <code>listcat=novelty items</code>). * {{code|mechanism}} (implies <code>listcat=mechanism items</code>). * {{code|potion ingredients}} (implies <code>listcat=potion ingredients</code>). * {{code|bag loot}}/{{code|bagloot}} (implies <code>listcat=bag loot items</code>). * {{code|treasure bag loot}} (implies <code>listcat=Treasure Bag loot items</code>). * {{code|minion}} (implies <code>type=weapon</code> and <code>listcat=minion summon items</code>). * {{code|sentry}} (implies <code>type=weapon</code> and <code>listcat=sentry summon items</code>). All other values will have no effect. All tags will be stored to cargo for querying. |- | <code>| allversions</code> || Platform version availability || {{yes}} || || || Set to {{code|yes}} to assert that the item is available on all platforms of ''[[Terraria]]''. This is only to be used if no <code>{{tl|exclusive}}</code> banner is on the page. If omitted and if {{code|$tags}} does not contain {{code|allversions}}, it will be detected automatically based on the result of <code>{{tl|eversions|''<item name>''}}</code> (but only if {{code|$id}} or {{code|$auto}} are set). Categorizes the page in all five [[:Category:Version content|version content]] categories (with the exception of [[:Category:Japanese console content]]), if {{code|yes}} is determined. |- | <code>| hardmode</code> || Hardmode-exclusivity || {{yes}} || <code>yes</code> || || Set to {{code|yes}} to assert that the item is not available in [[pre-Hardmode]], but only becomes available in [[Hardmode]]. Categorizes the page in [[:Category:Hardmode-only items]]. |}
返回
Template:Item infobox/doc
。
Follow on IG
TikTok
Join Fan Lab