Simple usage example:
{{ambox | text = Some text.}}
Complex example:
{{ambox | type = style | image = [[Image:Icon apps query.svg|38px]] | style = width: 400px; color: red; font-weight: bold; font-style: italic | text = The message body text. }}
The message body text. |
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.
type = content image = [[Image:Unbalanced scales.svg|40px]] This image is often used for {{POV}} and similar issues. |
Some other parameter combinations.
List of all parameters:
{{ambox | type = serious / content / style / merge / growth / notice | image = none / blank / [[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | style = Cascading Style Sheets value | text = The message body text. }}
type
image
[[Image:Unbalanced scales.svg|40px]]
imageright
[[Image:Nuvola apps bookcase.png|40px]]
style
...
text
If you need to use special characters in the text parameter then you need to escape them like this:
{{ambox | text =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|}} .
This template uses CSS classes for most of its looks, thus it is fully skinnable.
Internally this meta template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta templates since wiki markup has several drawbacks. For instance it makes it harder to use parser functions and special characters in parameters.
For more technical details see the talk page and the "See also" links below.
Pendokumenan di atas ditransklusikan daripada Templat:Ambox/doc. (sunting | sejarah) Para penyunting boleh membuat percubaan di laman kotak pasir (sunting | beza) dan kes ujian (cipta) templat ini. Sila letakkan kategori di sublaman /doc. Sublaman templat ini. |