Template:Icon box: Difference between revisions
No edit summary |
add class property |
||
Line 1: | Line 1: | ||
<includeonly><table role="{{{role|text container}}}" style="color: {{{color|inherit}}}; background-color: {{{background|inherit}}}; border: {{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|#eaecf0}}}; margin: 4px {{#if: {{{margin|}}}|10%|0}}; border-collapse: collapse;"><tr> | <includeonly><table role="{{{role|text container}}}" {{#if: {{{class|}}}|class="{{{class}}}" }} style="color: {{{color|inherit}}}; background-color: {{{background|inherit}}}; border: {{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|#eaecf0}}}; margin: 4px {{#if: {{{margin|}}}|10%|0}}; border-collapse: collapse;"><tr> | ||
<td style="padding: 2px 0 2px 0.9em; text-align: center; line-height: 1;"><span style="white-space: nowrap;">{{{box-icons}}}</span></td> | <td style="padding: 2px 0 2px 0.9em; text-align: center; line-height: 1;"><span style="white-space: nowrap;">{{{box-icons}}}</span></td> | ||
<td style="padding: {{{padding|0.35em}}} 0.9em; width: 100%;">{{{box-text}}}</td> | <td style="padding: {{{padding|0.35em}}} 0.9em; width: 100%;">{{{box-text}}}</td> | ||
Line 70: | Line 70: | ||
"autovalue": "false", | "autovalue": "false", | ||
"suggested": true | "suggested": true | ||
}, | |||
"class": { | |||
"label": "HTML class", | |||
"description": "HTML class/classes to add to the box, space-separated.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 84: | Line 89: | ||
"border-width", | "border-width", | ||
"padding", | "padding", | ||
"role" | "role", | ||
"class" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |