Zum Inhalt springen

Vorlage:Cmbox: Unterschied zwischen den Versionen

111 Bytes hinzugefügt ,  vor 16 Jahren
New version from the /sandbox. No more double borders in several browsers. Allows large right side images. Does not use the ambox classes at all anymore.
imported>Davidgothberg
(Added {{pp-semi-template|small=yes}}.)
imported>Davidgothberg
(New version from the /sandbox. No more double borders in several browsers. Allows large right side images. Does not use the ambox classes at all anymore.)
Zeile 1: Zeile 1:
<table class="metadata plainlinks ambox" style="margin: 0px 10%; border: 1px solid #aaa;  
<table class="metadata plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb;  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
   | speedy    = margin: 3px 10%; border: 4px solid #b22222; background: #FFDBDB;
   | speedy    = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
   | delete    = background: #FFDBDB;
   | delete    = background: #FFDBDB;
   | content    = background: #FFE7CE;
   | content    = background: #FFE7CE;
Zeile 11: Zeile 11:
}} {{{style|}}}">
}} {{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
   | <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
   | <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
Zeile 26: Zeile 26:
   }}</div>
   }}</div>
}}</td>
}}</td>
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
   | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
   | <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
Anonymer Benutzer