Vorlage:Imbox: Unterschied zwischen den Versionen

Updating to use "mbox-*" class names instead of "imbox-*". 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 "imbox-*". See Template talk:Mbox#Simpler to use class names.)
Zeile 15: Zeile 15:
{{#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="imbox-image">
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Zeile 32: Zeile 32:
   }}</td>
   }}</td>
}}
}}
<td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="imbox-imageright"> {{{imageright}}} </td>
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
{{#if:{{{below|}}}
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="imbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
}}
</table><noinclude>
</table><noinclude>


{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{Documentation}}
{{documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>
Anonymer Benutzer