There is no spoon

Difference between revisions of "Template:Ambox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
Line 8: Line 8:
 
<tr>
 
<tr>
 
<td class="ambox-image">
 
<td class="ambox-image">
{{#ifeq:{{{image}}}|none
+
{{#if:{{{image|}}}|<div style="width:52px;">{{{image}}}</div>
  | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
+
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
+
    | delete  = [[Image:Icon delete.png|40px]]
+
    | style    = [[Image:Broom icon.svg|40px]]
+
    | merge    = [[Image:Merge-split-transwiki default.svg]]
+
    | notice  = [[Image:Info non-talk.png|40px]]
+
    | blank    = [[Image:No image.svg]]
+
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
+
  }}</div>
+
 
}}</td>
 
}}</td>
 
<td class="ambox-text">{{{text}}}</td>
 
<td class="ambox-text">{{{text}}}</td>

Revision as of 11:03, 21 February 2008

[edit] Documentation

Usage

An article message box is usually not used directly, but included through other templates.

Syntax

{{ambox
| type       = message type
| style      = CSS style
| image      = left side image
| text       = message text
| imageright = right side image
}}

This displays a box similar to the one below:

Only the text parameter is required. The image and imageright parameters should actually be image links.

Predefined message types

Any type value not specified here falls back to the 'notice' style.