Difference between revisions of "Template:Ambox"

From RealCTY
Jump to navigation Jump to search
m (Protected "Template:Ambox" [edit=sysop:move=sysop])
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
+
<table class="metadata plainlinks ambox  
  | serious = ambox-serious
+
{{#switch:{{{type|}}}
  | content = ambox-content
+
| speedy    = ambox-speedy
  | style   = ambox-style
+
| delete        <!-- delete = serious -->
  | merge   = ambox-merge
+
| serious   = ambox-delete
  | notice  = ambox-notice
+
| content   = ambox-content
  | #default = ambox-notice
+
| style     = ambox-style
}}">
+
| move          <!-- move = merge -->
 +
| merge     = ambox-move
 +
| protection = ambox-protection
 +
| notice       <!-- notice = default -->
 +
| #default   = ambox-notice
 +
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
<td class="ambox-image">
+
{{#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; empty cell necessary for text cell to have 100% width -->
+
| <td class="ambox-image"><div style="width: 52px;">
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
+
  {{#ifeq:{{{image|}}}|blank
     | serious  = [[Image:Realcty_logo_20060831.png|40px]]
+
  | &nbsp;
    | content  = [[Image:Realcty_logo_20060831.png|40px]]
+
  | {{#if:{{{image|}}}
    | style   = [[Image:Realcty_logo_20060831.png|40px]]
+
    | {{{image}}}
    | merge    = [[Image:Realcty_logo_20060831.png|40px]]
+
     | {{#switch:{{{type|}}}
    | notice  = [[Image:Realcty_logo_20060831.png|40px]]
+
      | speedy    = [[Image:Realcty_logo_20060831.png|40px]]
    | blank    = [[Image:Realcty_logo_20060831.png]]
+
      | delete
    | #default = {{{image|[[Image:Realcty_logo_20060831.png|40px]]}}}
+
      | serious    = [[Image:Realcty_logo_20060831.png|40px]]
   }}</div>
+
      | content   = [[Image:Realcty_logo_20060831.png|40px]]
}}</td>
+
      | style      = [[Image:Realcty_logo_20060831.png|40px]]
<td class="ambox-text">{{{text}}}</td>
+
      | move
{{#if:{{{imageright|}}}|
+
      | merge      = [[Image:Realcty_logo_20060831.png|40px]]
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
      | protection = [[Image:Realcty_logo_20060831.png|40px]]
 +
      | notice          <!-- notice = default -->
 +
      | #default   = [[Image:Realcty_logo_20060831.png|40px]]
 +
      }}
 +
    }}
 +
   }}</div></td>
 +
}}
 +
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 +
{{#if:{{{imageright|}}}
 +
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
 
}}
 
}}
 
</tr>
 
</tr>
 
</table>
 
</table>

Revision as of 14:22, 1 July 2008