Template:Icon box: Difference between revisions

Created page with "<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: {{{nomargin|}}}|0|10%}}; 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: {{{padding|0.35em}}} 0.9e..."
 
Knuxify (talk | contribs)
make no margin the default, replace nomargin option with margin option
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: {{{nomargin|}}}|0|10%}}; border-collapse: collapse;"><tr>
<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|}}}|0|10%}}; 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>
</tr></table></includeonly><noinclude>
</tr></table></includeonly><!--
 
--><noinclude>
<templatedata>
<templatedata>
{
{
Line 43: Line 45:
"type": "string",
"type": "string",
"autovalue": "#eaecf0"
"autovalue": "#eaecf0"
},
"nomargin": {
"label": "Disable margin",
"description": "If set, removes the margin from the sides of the box.",
"type": "boolean",
"autovalue": "false",
"suggested": true
},
},
"box-icons": {
"box-icons": {
Line 68: Line 63:
"type": "content",
"type": "content",
"required": true
"required": true
},
"margin": {
"label": "Enable margin",
"description": "If set, adds a margin from the sides of the box.",
"type": "boolean",
"autovalue": "false",
"suggested": true
}
}
},
},
Line 75: Line 77:
"box-text",
"box-text",
"box-icons",
"box-icons",
"nomargin",
"margin",
"color",
"color",
"background",
"background",