Vorlage:Imbox: Unterschied zwischen den Versionen

160 Bytes hinzugefügt ,  vor 16 Jahren
Adding new version from the /sandbox. Allows large rightside images. Now has all styles hardcoded so no usage of ambox classes at all.
imported>Davidgothberg
(Added {{pp-semi-template|small=yes}}. (Change to full protection when we deploy this template.))
imported>Davidgothberg
(Adding new version from the /sandbox. Allows large rightside images. Now has all styles hardcoded so no usage of ambox classes at all.)
Zeile 1: Zeile 1:
<table class="metadata plainlinks ambox" style="margin: 4px 10%;  
<table class="metadata plainlinks" style="margin: 4px 10%; border-collapse: collapse; border: 1px solid #aaa; background: #fbfbfb;
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
   | speedy    = border: 3px solid #b22222; background: #fee;
   | speedy    = border: 3px solid #b22222; background: #fee;
Zeile 13: Zeile 13:
}} {{{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 30: Zeile 30:
   }}</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