Difference between revisions of "Template:Ambox"

From CSLabsWiki
(Added usage.)
(Using new template doc)
Line 27: Line 27:
   
 
<noinclude>
 
<noinclude>
  +
{{template doc}}
==Usage==
 
Type defaults to notice. Image and Imageright are optional.
 
 
<pre>
 
{{ambox
 
| type = serious / content / style / merge / growth / notice
 
| image = none / blank / [[Image:Some image.svg|40px]]
 
| imageright = [[Image:Some image.svg|40px]]
 
| text = The message body text.
 
}}
 
</pre>
 
 
</noinclude>
 
</noinclude>

Revision as of 00:34, 6 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>
}}