Template:Ombox: ke revisions ke biich ke antar

Content deleted Content added
imported>Davidgothberg
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.
imported>Davidgothberg
Adding the "small=yes" functionality. Now using {{ombox/core}} with hard-coded small styles due to the CSS caching, but it also has the "ombox-small" class so it can be skinned.
Rekha 1:
{{#switchifeq:{{{typesmall|}}}|yes
<table class="plainlinks ombox
| {{ombox/core
{{#switch:{{{type|}}}
| small = yes
| speedy = ombox-speedy
| delete | type = ombox-delete{{{type|}}}
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| content = ombox-content
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| style = ombox-{{{style|}}}
| move = ombox-move
| textstyle = {{{textstyle|}}}
| protection = ombox-protection
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
| notice <!-- notice = default -->
}}
| #default = ombox-notice
| {{ombox/core
}}" style="{{{style|}}}">
| {{#switch:type = {{{type|}}}
<tr>
{{#ifeq: | image = {{{image|}}}|none
{{#if: | imageright = {{{imageright|}}}
| <!-- 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>
}}" | style =" {{{style|}}}">
| <td class="ombox-image">
| textstyle = {{#if:{{{imagetextstyle|}}}
| text = {{{imagetext}}}
}}
| {{#switch:{{{type|}}}
</table>}}<noinclude>
| 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}}
{{Documentationdocumentation}}
<!-- Add categories and inter-wikisinterwikis to the /doc subpage, not here! -->
</noinclude>