Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Template
:
IconBox/doc
Give feedback
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
== Usage == {{tl|IconBox}} displays a box with a colored header, an icon, and a body of text. Used by {{tl|AbilityInteraction}}. == Parameters == <templatedata> { "description": "", "params": { "title": { "description": "Text shown in the box header.", "type": "string", "required": true }, "type": { "description": "Header color: positive (green), negative (red), or info (blue).", "type": "string", "required": true, "suggestedvalues": [ "positive", "negative", "info" ] }, "iconfile": { "description": "File name of the icon image, without the File: prefix.", "type": "string", "example": "Healing Booster.png", "required": true }, "link": { "description": "Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.", "type": "string", "example": "Healing Booster", "required": true }, "text": { "description": "Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and lists.", "type": "content" }, "state": { "description": "Set to disabled to gray out the icon, partial to gray out half of it, or enhanced to add a blue glow.", "type": "string", "suggestedvalues": [ "disabled", "partial", "enhanced" ] } }, "paramOrder": [ "title", "text", "type", "iconfile", "link", "state" ], "format": "block" } </templatedata> == Examples == <pre> {{IconBox | type = positive | iconfile = Melee Charge.png | link = Melee Charge | title = Melee | text = This ability benefits from Melee damage bonuses. }} </pre> {{IconBox | type = positive | iconfile = Melee Charge.png | link = Melee Charge | title = Melee | text = This ability benefits from Melee damage bonuses. }} == Data attributes == The box carries several data attributes: * {{code|data-iconbox-icon}}, * {{code|data-iconbox-title}}, * {{code|data-iconbox-state}} on its wrapper element. These are used by [[Module:AbilitySection]] to apply correct styling to its own elements. <noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Pages included on this page:
Template:Code
(
edit
)
Template:IconBox
(
edit
)
Template:IconBox/styles.css
(
edit
)
Template:Tl
(
edit
)