Difference between revisions of "Template:Ombox/core"

From FamilySearch Wiki
Jump to navigation Jump to search
(Add class parameter)
(change icon for speedy)
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    = ombox-speedy
+
| speedy    = border: 2px solid #b22222; background: #fee;  <!--ombox-speedy-->
| delete    = ombox-delete
+
| delete    = border: 2px solid #b22222; <!--ombox-delete-->
| content    = ombox-content
+
| content    = border: 1px solid #f28500; <!--ombox-content-->
| style      = ombox-style
+
| style      = border: 1px solid #f4c430; <!--ombox-style-->
| move      = ombox-move
+
| move      = border: 1px solid #9932cc; <!--ombox-move-->
| protection = ombox-protection
+
| protection = border: 2px solid #bba; <!--ombox-protection-->
 
| notice          <!-- notice = default -->
 
| notice          <!-- notice = default -->
| #default  = ombox-notice
+
| #default  = border: 1px solid #aaa; <!--ombox-notice-->
}} {{{class|}}}" style="{{{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 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">
+
| <td class="mbox-image" style="vertical-align:middle">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
 
   | [[Image:{{#switch:{{{type|}}}
 
   | [[Image:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
+
     | speedy    = Icon-warning.png
 
     | delete    = Imbox deletion.png
 
     | delete    = Imbox deletion.png
     | content    = Imbox content.png
+
     | content    = Information icon.png <!-- Imbox content.png -->
     | style      = Edit-clear.svg
+
     | style      = Imbox style.png
 
     | move      = Imbox move.png
 
     | move      = Imbox move.png
 
     | protection = Imbox protection.png
 
     | protection = Imbox protection.png
 
     | notice          <!-- notice = default -->
 
     | notice          <!-- notice = default -->
     | #default  = Imbox notice.png
+
     | #default  = Information icon.png
     }} | {{#ifeq:{{{small|}}}|yes
+
     }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]]
    | 30x30px
 
    | 40x40px
 
    }}|link=|alt=]]
 
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="font-size:8pt;{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
| {{#ifeq:{{{imageright|}}}|none
 
   | <!-- No image. -->
 
   | <!-- No image. -->
   | <td class="mbox-imageright"> {{{imageright}}} </td>
+
   | <td class="mbox-imageright" style="vertical-align:middle"> {{{imageright}}} </td>
 
   }}
 
   }}
 
}}
 
}}

Revision as of 15:43, 15 March 2012

[view] [edit] [history] [purge] Documentation icon Template documentation