Template:Ambox/doc

From Star Wars ReExpanded
Jump to navigation Jump to search

Usage

Displays a message box on an article.

Example

{{Ambox
| type  = serious
| text  = Serious message
| style = width:70%
| textstyle = color:blue;
}}

Parameters

type

The type affects the colour of the left border and the image that shows by default (though this can be customised).

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.