Шаблон:Drop infobox

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
Цей шаблон i18n-ready, що означає, що його легко локалізувати для різних мов. Будь ласка, ознайомтеся з i18n та l10n для шаблонів, щоб дізнатися більше.
Див. «Шаблон:Drop infobox/l10n» для локалізації цього шаблону.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:Drop infobox/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

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
Гель не випадає із жодної сутності.
{{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 Майстер
СутністьК-стьШанс
ЯщірЯщір2100%
ЯщірЯщір(Crawler form)20–2450%75%
{{lang/set|fr}} Set language to French
{{drop infobox|Soul of Fright|alt=f}}
Obtenue par Obtenue par
Classic mode icon.png Classique
Expert mode icon.png Expert
Master mode icon.png Maître
EntitéQté.Taux
Скелетрон ПраймSkeletron Prime.pngСкелетрон Прайм20-40100 %
{{drop infobox|Sailfish Boots|alt=fp}}
Obtenues par Obtenues par
L'objet « Помилка Lua у package.lua у рядку 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 « Sailfish Boots » n'est lâché par aucune entité.