Template:Drop infobox/doc

From Infernum 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> | icons = <icons next to the title> | 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.

icons

Codes for the icons you want to display next to the title separated with /. The following options are supported:

npc adds Bestiary Boss Enemy.png
item, bag, crate, or other add Bestiary Item Spawn.png
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 | icons = npc / bag
| Devourer | 1 | {{chance|1/9|mode=p}}
| 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 (Queen Slime) | 1-10 / {{expert|2-20}} | 5% / {{expert|7.5%}} / {{master|10%}}
}}
Obtained from Obtained from Obtained from
EntityQty.Rate
DevourerDevourer11/9 (11.11%)
ZombieZombie(only in Hardmode)1-10 / 2-20 Expert Mode5% / 7.5% Expert Mode / 10% Master Mode
ZombieZombie1-10100%
Treasure Bag (Queen Slime)Treasure Bag(Queen Slime)1-10 / 2-20 Expert Mode5% / 7.5% Expert Mode / 10% Master Mode