Wiki leren/Ambox
This is the {{ambox}} or article message box meta-template.
It is used to build article message box templates. It offers several different colours, uses default images if no image parameter is given and it has some other features.
This meta-template uses the ambox CSS classes in MediaWiki:Common.css. The classes can also be used directly in a wikitable if special functionality is needed. See the how-to guide for that.
Usage
Simple usage example:
{{ambox | text = Some text.}}
![]() |
Some text. |
Complex example:
{{ambox | type = style | small = left | image = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]] | smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]] | textstyle = color: red; font-weight: bold; font-style: italic; | text = Text for a big box, for the top of articles. | smalltext = Text for the top of article sections. }}
20px | Text for the top of article sections. |
But you are not really supposed to use red bold italic text.
Article message box types
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
![]() |
type=speedy – Speedy deletion issues, such as {{db-g1}} and {{db-g3}}. |
![]() |
type=delete – Deletion issues, such as {{afd}} and {{prod}}. |
![]() |
type=content – Content issues, such as {{POV}} and {{globalize}}. |
![]() |
type=style – Style issues, such as {{cleanup}} and {{wikify}}. |
![]() |
type=notice – Article notices, such as {{current}} and {{inuse}}. |
![]() |
type=move – Merge, split and transwiki proposals, such as {{split}} and {{copy to wiktionary}}. |
![]() |
type=protection – Protection notices, such as {{pp-vandalism}} and {{pp-semi-protected}}. |
Other images
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 = [[File:Unbalanced scales.svg|40px|link=|alt=]] This image is often used for {{POV}} and similar issues. |
![]() |
type = style image = [[File:Wikitext.svg|50px|link=|alt=]] This image is often used for {{wikify}} etc. |
![]() |
type = move image = [[File:Merge-arrows.svg|50px|link=|alt=]] This image is used for {{merge}} etc. |
More examples
Some other parameter combinations.
![]() |
No type and no image given (default) |
No type and image=none – No image is used and the text uses the whole message box area. |
image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]] imageright = [[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]] |
This article or section documents a current spaceflight.
Content may change as the mission progresses. |