Template:IconBox

Revision as of 14:14, 15 July 2026 by Vergir (talk | contribs) (Create generic header-icon-text box split out of Template:AbilityInteraction; markup unchanged (with help from vergir-bot LLM))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation [view] [edit] [history] [purge]

Usage

{{IconBox}} displays a box with a colored header, an icon, and a body of text.

Used by {{AbilityInteraction}}.

Parameters

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
titletitle

Text shown in the box header.

Stringrequired
texttext

Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and lists.

Contentoptional
typetype

Header color: positive (green), negative (red), or info (blue).

Suggested values
positive negative info
Stringrequired
iconfileiconfile

File name of the icon image, without the File: prefix.

Example
Healing Booster.png
Stringrequired
linklink

Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.

Example
Healing Booster
Stringrequired
statestate

Set to disabled to gray out the icon, partial to gray out half of it, or enhanced to add a blue glow.

Suggested values
disabled partial enhanced
Stringoptional

Examples

{{IconBox
| type     = positive
| iconfile = Melee Charge.png
| link     = Melee Charge
| title    = Melee
| text     = This ability benefits from Melee damage bonuses.
}}
Melee

This ability benefits from Melee damage bonuses.

Data attributes

The box carries several data attributes:

  • data-iconbox-icon,
  • data-iconbox-title,
  • data-iconbox-state on its wrapper element.
These are used by Module:AbilitySection to apply correct styling to its own elements.