Difference between revisions of "Template:Ombox"
Jump to navigation
Jump to search
en>Davidgothberg (Added "{{pp-template|small=yes}}".) |
en>Davidgothberg (Updating to use the classes in MediaWiki:Common.css. The 30 days CSS caching has passed.) |
||
| Line 1: | Line 1: | ||
| − | <table class="plainlinks | + | <table class="plainlinks ombox |
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| − | | speedy = | + | | speedy = ombox-speedy |
| − | | delete = | + | | delete = ombox-delete |
| − | | content = | + | | content = ombox-content |
| − | | style = | + | | style = ombox-style |
| − | | move = | + | | move = ombox-move |
| − | | protection = | + | | protection = ombox-protection |
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| − | | #default = | + | | #default = ombox-notice |
| − | }} {{{style|}}}"> | + | }}" style="{{{style|}}}"> |
<tr> | <tr> | ||
{{#ifeq:{{{image|}}}|none | {{#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> | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td> | ||
| − | | <td | + | | <td class="ombox-image"> |
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| Line 28: | Line 28: | ||
}}</td> | }}</td> | ||
}} | }} | ||
| − | <td style=" | + | <td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| − | | <td | + | | <td class="ombox-imageright"> {{{imageright}}} </td> |
}} | }} | ||
</tr> | </tr> | ||
Revision as of 15:07, 5 August 2008
{{#ifeq:|none
|
|
}}
{{#if:
|}}
{{#if:
| {{{image}}}
| {{#switch:
| speedy = 40x40px
| delete = 40x40px
| content = 40x40px
| style = 40x40px
| move = 40x40px
| protection = 40x40px
| notice
| #default = 40x40px
}}
}} | {{{text}}} | {{{imageright}}} |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |