Template:Ambox: Difference between revisions

From RealCTY
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 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: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|50px]]
    | blank   = [[Image:Realcty_logo_20060831.png]]
      | delete
    | #default = {{{image|[[Image:Realcty_logo_20060831.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 15:18, 19 July 2008