Template:Ombox: Difference between revisions

Updating to use the classes in MediaWiki:Common.css. The 30 days CSS caching has passed.
(Added "{{pp-template|small=yes}}".)
(Updating to use the classes in MediaWiki:Common.css. The 30 days CSS caching has passed.)
Line 1:
<table class="plainlinks" style="margin:ombox 4px 10%; border-collapse: collapse; background: #f9f9f9;
{{#switch:{{{type|}}}
| speedy = border: 2px solid #b22222; background: #fee;ombox-speedy
| delete = border: 2px solid #b22222;ombox-delete
| content = border: 1px solid #f28500;ombox-content
| style = border: 1px solid #f4c430;ombox-style
| move = border: 1px solid #9932cc;ombox-move
| protection = border: 2px solid #bba;ombox-protection
| notice <!-- notice = default -->
| #default = border: 1px solid #aaa;ombox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="ombox-image">
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
| {{{image}}}
Line 28:
}}</td>
}}
<td class="ombox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td styleclass="border: none; padding: 2px 0.9em 2px 0px; textombox-align: center;imageright"> {{{imageright}}} </td>
}}
</tr>