Open main menu

Changes

Template:Ombox

657 bytes removed, 20:11, 15 September 2008
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.
<table class="plainlinks ombox {{#switchifeq:{{{typesmall|}}}| speedy = ombox-speedyyes| delete = {{ombox-delete/core | content small = ombox-contentyes | style type = ombox-style{{{type| move = ombox-move}}} | protection image = ombox-protection| notice <!-- notice = default -->| {{#default = ombox-notice}}" style="if:{{{stylesmallimage|}}}"><tr>| {{{#ifeq:smallimage}}} | {{{image|}}}|none}} | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td styleimageright ="border: none; padding: 0px; width: 1px;"></td>| <td class="ombox-image"> {{#if:{{{imagesmallimageright|}}} | {{{imagesmallimageright}}} | {{#switch:{{{typeimageright|}}}}} | speedy style = [[Image:Imbox speedy deletion.png{{{style|40x40px]] }}} | delete textstyle = [[Image:Imbox deletion.png{{{textstyle|40x40px]] }}} | content text = [[Image{{#if:Imbox content.png{{{smalltext|40x40px]] }}}| style = [[Image:Imbox style.png{{{smalltext}}} |40x40px]]{{{text}}} }} | move = [[Image:Imbox move.png|40x40px]] }} | protection = [[Image:Imbox protection.png|40x40px]]{{ombox/core | notice <!-- notice type = default --> {{{type| #default = [[Image:Imbox notice.png|40x40px]] }}} | image = {{{image|}}</td>}}<td class="ombox-text" style | imageright ="{{{textstyleimageright|}}}"> | style = {{{textstyle|}}} </td> | textstyle = {{#if:{{{imagerighttextstyle|}}} | <td classtext ="ombox-imageright"> {{{imagerighttext}}} </td> }}</tr></table>}}<noinclude>
{{pp-template|small=yes}}
{{Documentationdocumentation}}<!-- Add categories and inter-wikis interwikis to the /doc subpage, not here! -->
</noinclude>
Anonymous user