Template:Drop infobox

From Terraria Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Drop infobox/l10n for the localization of this template.
This template uses the Cargo extension.
This template uses Extension:Cargo, an integral part of the wiki's back-end.
  • This template queries the table "Drops". View table.
Template-info.svg Documentation The documentation below is transcluded from Template:Drop infobox/doc. (edit | history)

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 GelGel
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
EntityQty.Rate
Baby SlimeBaby Slime.gifBaby Slime1–2100%
Black SlimeBlack Slime.gifBlack Slime2–5100%
Blue SlimeBlue Slime.gifBlue Slime1–2100%
Bouncy Slime(Desktop, Console and Mobile versions)Bouncy Slime.gifBouncy Slime(Desktop, Console and Mobile versions)1–2100%
Corrupt SlimeCorrupt Slime.gifCorrupt Slime2–4100%
Shadow SlimeShadow Slime.pngShadow Slime6–7100%
CrimslimeCrimslime.gifCrimslime2–4100% (Desktop, Console and Mobile versions)
Crystal Slime(Desktop, Console and Mobile versions)Crystal Slime.gifCrystal Slime(Desktop, Console and Mobile versions)1–2100%
GastropodGastropod.gifGastropod5–10100%
Spectral GastropodSpectral Gastropod.pngSpectral Gastropod10–25100%
Green SlimeGreen Slime.gifGreen Slime1–2100%
Heavenly Slime(Desktop, Console and Mobile versions)Heavenly Slime.gifHeavenly Slime(Desktop, Console and Mobile versions)1–2100%
Ice SlimeIce Slime.gifIce Slime1–2100%
Illuminant SlimeIlluminant Slime.gifIlluminant Slime1–2100%
Jungle SlimeJungle Slime.gifJungle Slime1–2100%
Mother SlimeMother Slime.gifMother Slime1–2100%
PinkyPinky.gifPinky1–2100% (Old-gen console and 3DS versions)
Purple SlimePurple Slime.gifPurple Slime2–5100%
Rainbow SlimeRainbow Slime.gifRainbow Slime1–20100%
Red SlimeRed Slime.gifRed Slime2–5100%
Sand Slime(Desktop, Console and Mobile versions)Sand Slime.gifSand Slime(Desktop, Console and Mobile versions)2–3100%
SlimelingSlimeling.gifSlimeling1–2100%
Slimer
(Without Wings)
Corrupt Slime.gifSlimer
(Without Wings)
1–2100%
Slime
(Bunny Slime)
Bunny Slime.pngSlime
(Bunny Slime)
1–2100%
Slime
(Green Present Slime)
Green Present Slime.pngSlime
(Green Present Slime)
1–2100%
Slime
(Red Present Slime)
Red Present Slime.pngSlime
(Red Present Slime)
1–2100%
Slime
(White Present Slime)
White Present Slime.pngSlime
(White Present Slime)
1–2100%
Slime
(Yellow Present Slime)
Yellow Present Slime.pngSlime
(Yellow Present Slime)
1–2100%
Spiked Ice SlimeSpiked Ice Slime.gifSpiked Ice Slime1–2100%
Spiked Jungle SlimeSpiked Jungle Slime.gifSpiked Jungle Slime1–2100%
Spiked Slime(Desktop, Console and Mobile versions)Spiked Slime.gifSpiked Slime(Desktop, Console and Mobile versions)1–2100%
Toxic SludgeToxic Sludge.gifToxic Sludge1–2100%
Umbrella SlimeUmbrella Slime.gifUmbrella Slime2–697.78%
Yellow SlimeYellow Slime.gifYellow Slime2–5100%
Zombie
(Armed Slimed Zombie)
Armed Slimed Zombie.gifZombie
(Armed Slimed Zombie)
1–2100%
Zombie
(Big Slimed Zombie)
Slimed Zombie.pngZombie
(Big Slimed Zombie)
1–2100%
Zombie
(Slimed Zombie)
Slimed Zombie.gifZombie
(Slimed Zombie)
1–2100%
Zombie
(Small Slimed Zombie)
Slimed Zombie.pngZombie
(Small Slimed Zombie)
1–2100%
{{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
}}
Obtained from Obtained from Obtained from
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
EntityQty.Rate
GolemGolemGolem4–8100%
Treasure Bag(Desktop, Console and Mobile versions)
(Golem)
Treasure Bag (Golem)Treasure Bag
(Golem)
(Desktop, Console and Mobile versions)
18–23100%
LihzahrdLihzahrd2100%
LihzahrdLihzahrd(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
Skeletron PrimeSkeletron Prime head.gifSkeletron Prime25–40100 %
Treasure Bag(Desktop, Console and Mobile versions)
(Skeletron Prime)
Sac de trésors (Grand Squeletron)Sac de trésors
(Grand Squeletron)
(versions Bureau, Console et Mobile)
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
Iron CrateCaisse en ferCaisse en fer1133/3125 (4,26 %)
Mythril Crate(Desktop, Console and Mobile versions)Caisse de mithrilCaisse de mithril(versions Bureau, Console et Mobile)14,19 %
Pearlwood Crate(Desktop, Console and Mobile versions)Caisse de bois perléCaisse de bois perlé(versions Bureau, Console et Mobile)1199/8000 (2,49 %)
Wooden CrateCaisse en boisCaisse en bois11/40 (2,5 %)
{{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
Iron CrateCaisse en ferCaisse en fer1133/3125 (4,26 %)
Mythril Crate(Desktop, Console and Mobile versions)Caisse de mithrilCaisse de mithril(versions Bureau, Console et Mobile)14,19 %
Pearlwood Crate(Desktop, Console and Mobile versions)Caisse de bois perléCaisse de bois perlé(versions Bureau, Console et Mobile)1199/8000 (2,49 %)
Wooden CrateCaisse en boisCaisse en bois11/40 (2,5 %)