Template:EnemyStats2/Infoboxes

From Darkest Dungeon Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

Renders infoboxes for multiple enemies and wraps them in a tabber.

Usage

The template accepts rows of arguments in following form

|label|enemy name
|-
|label|enemy name
|-
|label|enemy name
...

specifying the labels for the tab and the enemies to be retrieved from the database.

It also imposes a maximum width of 300px on the content, because tabber currently has a problem where it has an extremely large width (the combined width of all the tabs) as opposed to the width of the currently displayed element.

Output is also wrapped in a ResponsiveFloat to better adjust positioning between web and mobile.

Examples

Regular vs. Ignited

{{EnemyStats2/Infoboxes
|Regular|Librarian
|-
|Ignited|Librarian (Ignited)
}}

Multi-Part Enemies

{{EnemyStats2/Infoboxes
|Regret |Latch of Regret
|-
|Lamentation |Bolt of Lamentation
|-
|Wasting |Padlock of Wasting
|-
|Despair |Shackle of Despair
}}

Technical Notes

See the comments on Module:EnemyStats2/Infoboxes/doc. I'm not sure this is a very good piece of code, or that it's a good design pattern.

See Also