From Dark and Darker Wiki

< Template:Iconbox

Revision as of 20:33, 18 March 2024 by Raw Salad (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Displays an image centered upon a box colored by rarity.

Template parameters

ParameterDescriptionTypeStatus
Namename 1

Name of the character/item/weapon

Stringrequired
Rarityrarity

Options: -1, 1, 2, 3, 4, 5, 6, 7

Numbersuggested
Sizesize

Size with px to set width, eg."30px" Size with xpx to set height, eg."x30px"

Stringsuggested
Amountamount

Shows a number on the bottom right corner

Numbersuggested
Image Overrideimage

If not set, uses the image that matches the name

Stringsuggested
Caption Overridecaption

If not set, uses the specified name. Always links to the name. Use "no" to hide the caption

Stringsuggested
Top Texttop

Shown above the caption

Stringsuggested
Prevent Line Breaks?nobr

If enabled, removes the line break, putting the icon and text on a single line. Use 1 to enable

Booleansuggested
Max Widthmaxwidth

If set, constrains the box to the specified width. If not set, uses max-width:initial.

Example
60px
Stringsuggested