Zum Inhalt springen

Vorlage:Cmbox: Unterschied zwischen den Versionen

Updating to use "mbox-*" class names instead of "cmbox-*". See Template talk:Mbox#Simpler to use class names.
imported>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.)
imported>Davidgothberg
(Updating to use "mbox-*" class names instead of "cmbox-*". See Template talk:Mbox#Simpler to use class names.)
Zeile 13: Zeile 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}}}
Zeile 28: Zeile 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>
Anonymer Benutzer