Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.)
meta>Davidgothberg
(Updating to use "mbox-*" class names instead of "cmbox-*". See Template talk:Mbox#Simpler to use class names.)
Line 13: Line 13:
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <td class="cmbox-image"><div style="width: 52px;">
| <td class="mbox-image"><div style="width: 52px;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 28: Line 28:
   }}</div></td>
   }}</div></td>
}}
}}
<td class="cmbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="cmbox-imageright"> {{{imageright}}} </td>
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 03:04, 26 September 2008