Plantilla:Drop infobox

De Terraria Wiki
Ir a la navegación Ir a la búsqueda
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 Plantilla:Drop infobox/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Plantilla: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 [[File:Gel.png]] [[Gel]]}}
Entities dropping Gel.png Gel
Classic Mode.png Classic
Expert Mode.png Expert
Master Mode.png Master
EntidadQty.Ratio
Slime amarilloYellow Slime.pngSlime amarillo2–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
}}
Obtenido de Obtenido de
Classic Mode.png Classic
Expert Mode.png Expert
Master Mode.png Master
EntidadQty.Ratio
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
L'objet « Error de Lua en package.lua en la línea 80: module 'Module:Tr/loaddata-fr' not found.Soul of Fright » n'est lâché par aucune entité.
{{drop infobox|Sailfish Boots|alt=fp}}
Obtenues par Obtenues par
L'objet « Error de Lua en package.lua en la línea 80: module 'Module:Tr/loaddata-fr' not found.Sailfish Boots » n'est lâché par aucune entité.
{{drop infobox|Sailfish Boots|alt=fp|wrap=no}}
Obtenues par Obtenues par
L'objet « Error de Lua en package.lua en la línea 80: module 'Module:Tr/loaddata-fr' not found.Sailfish Boots » n'est lâché par aucune entité.