Cogito, ergo sum
Difference between revisions of "Template:Ambox"
From Unreal Wiki, The Unreal Engine Documentation Site
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}} | <table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}} | ||
− | | | + | | serious = ambox-serious |
+ | | content = ambox-content | ||
| style = ambox-style | | style = ambox-style | ||
− | | | + | | info = ambox-info |
− | + | ||
| #default = ambox-notice | | #default = ambox-notice | ||
}}"> | }}"> | ||
<tr> | <tr> | ||
<td class="ambox-image"> | <td class="ambox-image"> | ||
− | {{# | + | {{#if:{{{image|}}}|<div style="width:52px;">{{{image}}}</div> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}</td> | }}</td> | ||
<td class="ambox-text">{{{text}}}</td> | <td class="ambox-text">{{{text}}}</td> |
Latest revision as of 08:48, 4 March 2008
{{{text}}} |
[edit] Documentation
Usage[edit]
An article message box is usually not used directly, but included through other templates.
Syntax[edit]
{{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:
left side image
|
message text |
right side image
|
Only the text parameter is required. The image and imageright parameters should actually be image links.
Predefined message types[edit]
Any type value not specified here falls back to the 'notice' style.
serious |
content |
style |
notice |
info |