Zum Inhalt springen

Vorlage:Ambox: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
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 "ambox-*". 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="ambox-image"><div style="width: 52px;">
| <td class="mbox-image"><div style="width: 52px;">
   {{#ifeq:{{{image|}}}|blank
   {{#ifeq:{{{image|}}}|blank
   | &nbsp;
   | &nbsp;
Zeile 35: Zeile 35:
   }}</div></td>
   }}</div></td>
}}
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
}}
</tr>
</tr>

Version vom 27. September 2008, 18:03 Uhr

Vorlage:Pp-template

Dokumentation für die Vorlage {{Ambox}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]
Für die Vorlage {{Ambox}} gibt es noch keine Dokumentation. Du kannst sie aber anlegen.
Hinweise