Template:Drop infobox/doc

来自Terraria Wiki
跳到导航 跳到搜索

This template is used to display an overview of entities that drop a given item. Despite the name, it also includes Chests and grab bags as "drop sources". Its data is generated automatically, based on the Drops Cargo table, but it is possible to add information manually.

Usage

All parameters are optional.

{{ drop infobox | <item name or ID> | item = <item name> | id = <item ID> | title = <infobox header> | collapsible = n/no | collapsed = y/yes/n/no | float = left/right | width = <infobox width> | css/style = <custom styling> | <manual information> }}

First unnamed parameter, item, id

Specify the item in question; defaults to the page name. Only one out of these should be used.

title

Set a custom header of the infobox.

collapsible

Remove the collapsibility from the infobox.

collapsed

Force the initial state; defaults to y if there are more than five entities in the infobox, and to n otherwise.

float

Float attribute of the infobox.

wrap

Entities will use {{item|<name>|wrap=y}} by default, this can be turned off by |wrap=no.

width

Width of the infobox, with unit.

css/style

Additional custom styling.

Second/third/fourth/... unnamed parameters

Used for manually passing information, ad infinitum. These work quite similarly to the parameters used for storing drop information in {{npc infobox}}, as they are passed in groups of three as well: entity, quantity, and rate.

| <entity name 1> | <quantity 1> | <rate 1>
| <entity name 2> | <quantity 2> | <rate 2>
| ...
| <entity name n> | <quantity n> | <rate n>

By default, these will be displayed above the automatically generated information. There is a special parameter value to control the position of the auto info within the manual info: @@@@. It will be replaced by the auto data in the output.

| <entity name 1> | <quantity 1> | <rate 1> <!-- this row will be displayed above the auto data -->
| <entity name 2> | <quantity 2> | <rate 2> <!-- this row as well -->
| @@@@ || <!-- this row will be replaced by all automatically generated rows -->
| <entity name 3> | <quantity 3> | <rate 3> <!-- this row will be displayed below the auto data -->
| <entity name 4> | <quantity 4> | <rate 4> <!-- this row as well -->

Examples

Code Result
{{drop infobox|Gel|title=Entities dropping {{item|Gel}}}}
Entities dropping 凝胶凝胶
Classic mode icon.png 经典
Expert mode icon.png 专家
Master mode icon.png 大师
实体数量几率
丛林史莱姆Jungle Slime.png丛林史莱姆1-21-3100%
僵尸
(史莱姆僵尸)
Slimed Zombie.png僵尸
(史莱姆僵尸)
1–2100%
僵尸
(大史莱姆僵尸)
Slimed Zombie.png僵尸
(大史莱姆僵尸)
1–2100%
僵尸
(小史莱姆僵尸)
Slimed Zombie.png僵尸
(小史莱姆僵尸)
1–2100%
僵尸
(武装史莱姆僵尸)
Armed Slimed Zombie.png僵尸
(武装史莱姆僵尸)
1–2100%
冰雪史莱姆Ice Slime.gif冰雪史莱姆1–2100%
史莱姆之母Mother Slime.gif史莱姆之母1–2100%
史莱姆宝宝Baby Slime.png史莱姆宝宝1-21-3100%
夜明史莱姆Illuminant Slime.gif夜明史莱姆1–2100%
小史莱姆Slimeling.png小史莱姆1–2100%
尖刺丛林史莱姆Spiked Jungle Slime.png尖刺丛林史莱姆1–2100%
尖刺冰雪史莱姆Spiked Ice Slime.png尖刺冰雪史莱姆1–21–3100%
尖刺史莱姆Spiked Slime.png尖刺史莱姆1–2100%
弹力史莱姆Bouncy Slime.png弹力史莱姆1–2100%
彩虹史莱姆Rainbow Slime.gif彩虹史莱姆1–20100%
恶翅史莱姆
(无翅膀)
Corrupt Slime.png恶翅史莱姆
(无翅膀)
1-21-3100%
毒泥Toxic Sludge.gif毒泥1–2100%
水晶史莱姆Crystal Slime.png水晶史莱姆1–2100%
沙史莱姆Sand Slime.png沙史莱姆2–3100%
猩红史莱姆Crimslime.png猩红史莱姆2–4100%
粉史莱姆Pinky.gif粉史莱姆1–2100% (前代主机版、和3DS版)
紫史莱姆Purple Slime.gif紫史莱姆2–5100%
红史莱姆Red Slime.gif红史莱姆2–5100%
绿史莱姆Green Slime.gif绿史莱姆1–2100%
暗影史莱姆Shadow Slime.png暗影史莱姆6–7100%
腐化史莱姆Corrupt Slime.png腐化史莱姆2–4100%
灵能腹足怪Spectral Gastropod.png灵能腹足怪10-25100%
腹足怪Gastropod.png腹足怪5-10100%
蓝史莱姆Blue Slime.png蓝史莱姆1–2100%
雨伞史莱姆Umbrella Slime.png雨伞史莱姆2-597.78%
飞翔史莱姆Heavenly Slime.png飞翔史莱姆1–2100%
黄史莱姆Yellow Slime.gif黄史莱姆2–5100%
黑史莱姆Black Slime.gif黑史莱姆2–5100%
{{drop infobox|Beetle Husk|collapsible=n
|@@@@||
|{{item|Lihzahrd}}|2|{{master|100%}} #master
|{{item|Lihzahrd|note=(Crawler form)|wrap=y|image=Lihzahrd (crawler).png}}|20–24|{{modes||50%|75%}} #expert
}}
来自 来自 来自
Classic mode icon.png 经典
Expert mode icon.png 专家
Master mode icon.png 大师
实体数量几率
宝藏袋(电脑版、主机版、和移动版)
(石巨人)
宝藏袋(石巨人)宝藏袋
(石巨人)
(电脑版、主机版、和移动版)
18–23100%
石巨人石巨人石巨人4–8100%
丛林蜥蜴丛林蜥蜴2100%
丛林蜥蜴丛林蜥蜴(Crawler form)20–2450%75%
{{lang/set|fr}} Set language to French
{{drop infobox|Soul of Fright|alt=f}}
Obtenue par Obtenue par Obtenue par
Classic mode icon.png Classique
Expert mode icon.png Expert
Master mode icon.png Maître
EntitéQté.Taux
宝藏袋(电脑版、主机版、和移动版)
(机械骷髅王)
宝藏袋(机械骷髅王)宝藏袋
(机械骷髅王)
(versions Bureau, Console et Mobile)
25–40100 %
机械骷髅王Skeletron Prime.png机械骷髅王25–40100 %
{{drop infobox|Sailfish Boots|alt=fp}}
Obtenues par Obtenues par
Classic mode icon.png Classique
Expert mode icon.png Expert
Master mode icon.png Maître
EntitéQté.Taux
木匣木匣木匣11/40 (2,5 %)
珍珠木匣(电脑版、主机版、和移动版)珍珠木匣珍珠木匣(versions Bureau, Console et Mobile)1199/8000 (2,49 %)
秘银匣(电脑版、主机版、和移动版)秘银匣秘银匣(versions Bureau, Console et Mobile)14,19 %
铁匣铁匣铁匣1133/3125 (4,26 %)
{{drop infobox|Sailfish Boots|alt=fp|wrap=no}}
Obtenues par Obtenues par
Classic mode icon.png Classique
Expert mode icon.png Expert
Master mode icon.png Maître
EntitéQté.Taux
木匣木匣木匣11/40 (2,5 %)
珍珠木匣(电脑版、主机版、和移动版)珍珠木匣珍珠木匣(versions Bureau, Console et Mobile)1199/8000 (2,49 %)
秘银匣(电脑版、主机版、和移动版)秘银匣秘银匣(versions Bureau, Console et Mobile)14,19 %
铁匣铁匣铁匣1133/3125 (4,26 %)