Template:Drop infobox/doc

From The Stars Above Mod Wiki
Jump to navigation Jump to search

This template is used to display an overview of entities that drop a given item.

Usage

All parameters are optional.

{{ drop infobox | title = <infobox header> | collapsible = n/no | collapsed = y/yes/n/no | float = left/right | width = <infobox width> | css/style = <custom styling> }}

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.

width

Width of the infobox, with unit.

css/style

Additional custom styling.

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>

If the name of entity starts with custom^, the rest parts of the string will be inserted in the row.

Examples

Code Result
{{drop infobox
| Arbitration | 1 | 25%
| custom^{{item|Zombie|note2={{note|small=y|paren=y|only in [[Hardmode]]}}}} | 1-10 / {{expert|2-20}} | 5% / {{expert|7.5%}} / {{master|10%}}
| Zombie | 1-10 | 100%
| Treasure Bag (Arbitration) | 1-10 / {{expert|2-20}} | 5% / {{expert|7.5%}} / {{master|10%}}
}}
Obtained from
EntityQuantityRate
ArbitrationArbitration125%
ZombieZombie(only in Hardmode)1-10 / 2-205% / 7.5% / 10%
ZombieZombie1-10100%
Treasure Bag (Arbitration)Treasure Bag(Arbitration)1-10 / 2-205% / 7.5% / 10%