Template:Cmbox: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.) |
meta>Davidgothberg 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> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- No image | | <!-- 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 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> | |||
}} | }} | ||
</tr> | </tr> |
Revision as of 04:06, 25 May 2008
{{{text}}} |