Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
meta>Davidgothberg
Making the left image cell handle any image size. Adding hard-coded cell paddings due to the 31 days CSS caching. See talk page.
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="mbox-image"><div style="width: 52px;">
| <td class="mbox-image" style="padding: 2px 0 2px 0.9em;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 26: Line 26:
     | #default  = [[Image:Cmbox notice.png|40x40px]]
     | #default  = [[Image:Cmbox notice.png|40x40px]]
     }}
     }}
   }}</div></td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="padding: 0.25em 0.9em; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
| <td class="mbox-imageright" style="padding: 2px 0.9em 2px 0;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 17:11, 3 October 2008