Template:Ombox: Difference between revisions

1,214 bytes removed ,  3 years ago
m
18 revisions imported from wikipedia:Template:Ombox
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.)
m (18 revisions imported from wikipedia:Template:Ombox)
 
(7 intermediate revisions by 7 users not shown)
Line 1:
{{#invoke:Message box|ombox}}<noinclude>
<table class="plainlinks ombox
{{documentation}}
{{#switch:{{{type|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| speedy = ombox-speedy
| delete = ombox-delete
| content = ombox-content
| style = ombox-style
| move = ombox-move
| protection = ombox-protection
| notice <!-- notice = default -->
| #default = 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: 0px; width: 1px;"></td>
| <td class="ombox-image">
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| speedy = [[Image:Imbox speedy deletion.png|40x40px]]
| delete = [[Image:Imbox deletion.png|40x40px]]
| content = [[Image:Imbox content.png|40x40px]]
| style = [[Image:Imbox style.png|40x40px]]
| move = [[Image:Imbox move.png|40x40px]]
| protection = [[Image:Imbox protection.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Imbox notice.png|40x40px]]
}}
}}</td>
}}
<td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="ombox-imageright"> {{{imageright}}} </td>
}}
</tr>
</table><noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>