Template:IconBox/doc: Difference between revisions

Vergir (talk | contribs)
m update doc
Vergir (talk | contribs)
Document the "enhanced" state (with help from vergir-bot LLM)
 
(One intermediate revision by the same user not shown)
Line 39: Line 39:
},
},
"state": {
"state": {
"description": "Set to disabled to gray out the icon, or partial to gray out half of it.",
"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",
"type": "string",
"suggestedvalues": [ "disabled", "partial" ]
"suggestedvalues": [ "disabled", "partial", "enhanced" ]
}
}
},
},
Line 48: Line 48:
}
}
</templatedata>
</templatedata>
== 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.


== Examples ==
== Examples ==
Line 76: Line 67:
| text    = This ability benefits from Melee damage bonuses.
| 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>
<noinclude>[[Category:Template documentation]]</noinclude>