Template:Ombox/core: Difference between revisions

Add class parameter
(add style="vertical-align:middle" to class="mbox-imageright")
(Add class parameter)
Line 1: Line 1:
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = border: 2px solid #b22222; background: #fee;  <!--ombox-speedy-->
| speedy    = ombox-speedy
| delete    = border: 2px solid #b22222; <!--ombox-delete-->
| delete    = ombox-delete
| content    = border: 1px solid #f28500; <!--ombox-content-->
| content    = ombox-content
| style      = border: 1px solid #f4c430; <!--ombox-style-->
| style      = ombox-style
| move      = border: 1px solid #9932cc; <!--ombox-move-->
| move      = ombox-move
| protection = border: 2px solid #bba; <!--ombox-protection-->
| protection = ombox-protection
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = border: 1px solid #aaa; <!--ombox-notice-->
| #default  = ombox-notice
}}" style="{{{style|}}}">
}} {{{class|}}}" 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 class="mbox-empty-cell"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="mbox-image" style="vertical-align:middle">
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 19: Line 19:
     | speedy    = Imbox speedy deletion.png
     | speedy    = Imbox speedy deletion.png
     | delete    = Imbox deletion.png
     | delete    = Imbox deletion.png
     | content    = Information icon.png <!-- Imbox content.png -->
     | content    = Imbox content.png
     | style      = Imbox style.png
     | style      = Edit-clear.svg
     | move      = Imbox move.png
     | move      = Imbox move.png
     | protection = Imbox protection.png
     | protection = Imbox protection.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Information icon.png
     | #default  = Imbox notice.png
     }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]]
     }} | {{#ifeq:{{{small|}}}|yes
    | 30x30px
    | 40x40px
    }}|link=|alt=]]
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="font-size:8pt;{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class="mbox-imageright" style="vertical-align:middle"> {{{imageright}}} </td>
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   }}
   }}
}}
}}
0

edits