Template:IconBox/doc: Difference between revisionsGive feedback
Update data attribute names after the iconbox- rename (with help from vergir-bot LLM) |
m update doc |
||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
{{tl|IconBox}} displays a box with a colored header, an icon, and a body of text | {{tl|IconBox}} displays a box with a colored header, an icon, and a body of text. | ||
Used by {{tl|AbilityInteraction}}. | |||
== Parameters == | == Parameters == | ||
| Line 9: | Line 9: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "", | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
| Line 51: | Line 51: | ||
== Data attributes == | == Data attributes == | ||
The box carries {{code|data-iconbox-icon}}, {{code|data-iconbox-title}}, | The box carries several data attributes: | ||
* {{code|data-iconbox-icon}}, | |||
* {{code|data-iconbox-title}}, | |||
* {{code|data-iconbox-state}} on its wrapper element. | |||
[[Module:AbilitySection]] | These are used by [[Module:AbilitySection]] to apply correct styling to its own elements. | ||
== Examples == | == Examples == | ||