Difference between revisions of "Template:Ambox"

From CSLabsWiki
Line 12: Line 12:
 
| <!-- no image cell -->
 
| <!-- no image cell -->
 
| <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}}
 
| <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}}
| serious = [[Wikipedia:Image:Stop hand nuvola.svg|40px]]
+
| serious = [[Image:Stop hand nuvola.svg|40px]]
| content = [[Wikipedia:Image:Emblem-important.svg|40px]]
+
| content = [[Image:Emblem-important.svg|40px]]
| style = [[Wikipedia:Image:Broom icon.svg|40px]]
+
| style = [[Image:Broom icon.svg|40px]]
| merge = [[Wikipedia:Image:Merge-split-transwiki default.svg]]
+
| merge = [[Image:Merge-split-transwiki default.svg]]
| notice = [[Wikipedia:Image:Info non-talk.png|40px]]
+
| notice = [[Image:Info non-talk.png|40px]]
| growth = [[Wikipedia:Image:N write green black.svg|40px]]
+
| growth = [[Image:N write green black.svg|40px]]
 
| blank = <!-- empty image cell -->
 
| blank = <!-- empty image cell -->
| #default = {{{image|[[Wikipedia:Image:Info non-talk.png|40px]]}}}
+
| #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
 
}}</td>
 
}}</td>
 
}}
 
}}

Revision as of 19:32, 2 October 2007

[view] [edit] Template documentation

Usage

The "type" option defaults to "notice". "Image" and "Imageright" are optional.

{{ambox
| type  = serious / content / style / merge / notice
| image = none / blank / [[Image:Some image.png|40px]]
| imageright = [[Image:Some image.png|40px]]
| text  = The message body text. 
}}

Default Images and Possible Uses


Technical

If you need to use special characters in the text parameter then you need to escape them like this:

{{ambox
| text  = <div>
Equal sign = and a start and end brace { } work fine as they are. 
But here is a pipe {{!}} and two end braces }}. 
And now a pipe and end braces |}}.
</div>
}}