Template:Cmbox: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.))
(Giving the "image=none" case more correct handling, the empty cell now much thinner giving the text less left padding.)
Line 11: Line 11:
}} {{{style|}}}">
}} {{{style|}}}">
<tr>
<tr>
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <div style="width:52px;">
| <td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;"><div style="width: 52px;">
{{#if:{{{image|}}}
{{#if:{{{image|}}}
| {{{image}}}
| {{{image}}}
Line 27: Line 26:
| #default = [[Image:Cmbox notice.png|40x40px]]
| #default = [[Image:Cmbox notice.png|40x40px]]
}}
}}
}}</div>
}}</div></td>
}}</td>
}}
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 04:06, 25 May 2008