Difference between revisions of "Template:Ambox"

From RealCTY
Jump to navigation Jump to search
(New page: <table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}} | serious = ambox-serious | content = ambox-content | style = ambox-style | merge = ambox...)
 
 
(8 intermediate revisions by the same user not shown)
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
 +
| green      = ambox-green
 +
| dkgreen   = ambox-dkgreen
 +
| attention  = ambox-attention
 +
| 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:Stop hand nuvola.svg|40px]]
+
  | &nbsp;
    | content = [[Image:Emblem-important.svg|40px]]
+
  | {{#if:{{{image|}}}
    | style   = [[Image:Broom icon.svg|40px]]
+
    | {{{image}}}
    | merge   = [[Image:Merge-split-transwiki default.svg]]
+
    | {{#switch:{{{type|}}}
    | notice  = [[Image:Info non-talk.png|40px]]
+
      | speedy     = [[Image:Realcty_logo_20060831.png|50px]]
    | blank   = [[Image:No image.svg]]
+
      | delete
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
+
      | serious   = [[Image:Realcty_logo_20060831.png|50px]]
   }}</div>
+
      | content   = [[Image:Realcty_logo_20060831.png|50px]]
}}</td>
+
      | style     = [[Image:Realcty_logo_20060831.png|50px]]
<td class="ambox-text">{{{text}}}</td>
+
      | move
{{#if:{{{imageright|}}}|
+
      | merge     = [[Image:Realcty_logo_20060831.png|50px]]
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
      | protection = [[Image:Realcty_logo_20060831.png|50px]]
 +
      | green      = [[Image:Realcty_logo_20060831.png|50px]]
 +
      | dkgreen   = [[Image:Realcty_logo_20060831.png|50px]]
 +
      | attention  = [[Image:Realcty_logo_20060831.png|50px]]
 +
      | notice          <!-- notice = default -->
 +
      | #default   = [[Image:Realcty_logo_20060831.png|50px]]
 +
      }}
 +
    }}
 +
   }}</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>

Latest revision as of 16:18, 19 July 2008