模板: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 %)