Template:Ombox: Difference between revisions

    m>Davidgothberg
    (Added "{{pp-template|small=yes}}".)
    m>Davidgothberg
    (Updating to use the classes in MediaWiki:Common.css. The 30 days CSS caching has passed.)
    Line 1: Line 1:
    <table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f9f9f9;
    <table class="plainlinks ombox
    {{#switch:{{{type|}}}
    {{#switch:{{{type|}}}
    | speedy    = border: 2px solid #b22222; background: #fee;
    | speedy    = ombox-speedy
    | delete    = border: 2px solid #b22222;
    | delete    = ombox-delete
    | content    = border: 1px solid #f28500;
    | content    = ombox-content
    | style      = border: 1px solid #f4c430;
    | style      = ombox-style
    | move      = border: 1px solid #9932cc;
    | move      = ombox-move
    | protection = border: 2px solid #bba;
    | protection = ombox-protection
    | notice          <!-- notice = default -->
    | notice          <!-- notice = default -->
    | #default  = border: 1px solid #aaa;
    | #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 style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
    | <td class="ombox-image">
       {{#if:{{{image|}}}
       {{#if:{{{image|}}}
       | {{{image}}}
       | {{{image}}}
    Line 28: Line 28:
       }}</td>
       }}</td>
    }}
    }}
    <td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
    <td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
    {{#if:{{{imageright|}}}
    {{#if:{{{imageright|}}}
    | <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
    | <td class="ombox-imageright"> {{{imageright}}} </td>
    }}
    }}
    </tr>
    </tr>