Open main menu

Changes

Template:Ombox

546 bytes added, 22:59, 29 May 2008
Copying from the /sandbox. This version is derived from the imbox since the imbox code is much closer to the needs of the ombox than the ambox is. See talk page for explanation/discussion.
<table class="metadata plainlinks messagebox" style="margin: 3px 10%; border-collapse: collapse; background: #f9f9f9;{{#switch:{{{type|}}}| speedy = border: 2px solid #b22222; background: #fee;| delete = border: 2px solid #b22222;| content = border: 1px solid #f28500;| style = border: 1px solid #f4c430;| move = border: 1px solid #9932cc;| protection = border: 2px solid #bba;| notice <!-- notice = default -->| #default = border: 1px solid #aaa;}} {{{style|}}}">
<tr>
<td class="ambox-image">
{{#ifeq:{{{image|}}}|none
| <!-- No image cell; empty cell . Cell with some width or padding necessary for text cell to have 100% width . --><td style="border: none; padding: 1px;"></td> | <div td style="widthborder: none; padding: 2px 0px 2px 0.9em; text-align:52pxcenter;"> {{#switchif:{{{image|}}} |{{{type|image}}} | {{#switch:{{{type|}}} | speedy = [[Image:Ambox Imbox speedy deletion.png|40x40px]] | delete | serious = [[Image:Ambox Imbox deletion.png|40x40px]] | content = [[Image:Ambox Imbox content.png|40x40px]] | style = [[Image:Ambox Imbox style.png|40x40px]] | move | merge = [[Image:Ambox Imbox move.png|40x40px]] | protection = [[Image:Ambox Imbox protection.png|40x40px]] | notice = [[Image:Ambox <!-- notice.png|40x40px]] | blank = &nbsp;default --> | #default = {{{image|[[Image:Ambox Imbox notice.png|40x40px]]} }} }}</divtd>}}</td><td class="ambox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}
| <td classstyle="amboxborder: none; padding: 2px 0.9em 2px 0px; text-imageright"><div style="widthalign:52pxcenter;"> {{{imageright}}} </div></td>
}}
</tr>
</table><noinclude>
 
<!-- {{pp-template|small=yes}} -->
{{Documentation}}
<!-- Add categories and interwikis inter-wikis to the /doc subpage, not here! -->
</noinclude>
Anonymous user