टेम्पलेट:Cmbox: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
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.
लाइन 1:
<table class="metadata plainlinks ambox" style="margin: 0px-1px 10%; border: 1px solid #aaa; background: #fbfbfb;
{{#switch:{{{type|}}}
| speedy = margin: 3px1px 10%; border: 4px solid #b22222; background: #FFDBDB;
| delete = background: #FFDBDB;
| content = background: #FFE7CE;
लाइन 11:
}} {{{style|}}}">
<tr>
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
<td class="ambox-image">
{{#ifeq:{{{image|}}}|none
| <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
लाइन 26:
}}</div>
}}</td>
<td class="ambox-text" style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}
| <td class="ambox-imageright"><div style="widthborder:52px none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </div></td>
}}
</tr>