Vorlage:Cmbox: Unterschied zwischen den Versionen
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 | <table class="metadata plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb; | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = margin: | | 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 | <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 | <td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| <td | | <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td> | ||
}} | }} | ||
</tr> | </tr> |