Template:Ambox/doc
![]() | This is a documentation subpage for Template:Ambox. It contains usage information, categories and other content that is not part of the original page. |
Usage
Displays a message box on an article.
Example
{{Ambox
| type = serious
| text = Serious message
| style = width:70%
| textstyle = color:blue;
}}
![]() |
Serious message |
Parameters
type
The type affects the colour of the left border and the image that shows by default (though this can be customised).
![]() |
|type=serious
|
![]() |
|type=content
|
![]() |
|type=style
|
![]() |
|type=merge
|
![]() |
|type=notice
|
image (optional)
Displays an image to the left of the message box. By default, the image that matches the type will be displayed. This parameter will accept either a predefined type (e.g. |image=merge
) or a link to an image (e.g. |image=[[File:ImageNameHere.jpg|40px]]
).
No image will be shown if |image=blank
is specified.
text
The text of the message.
style
CSS code to be applied to the entire message box (e.g. width).
textstyle
CSS code to be applied only to the text.
imageright
The same as image, but displayed to the right and hidden by default. Also allows for predefined types or custom images. If this parameter is used, one may also want to use |image=blank
to hide the default image on the left.