Template:Mbox

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Mbox/doc.

This is used to create message boxes.

Usage

{{Mbox
 |text =
 |type =
 |image =
 |imageright =
}}

Template parameters

Parameter Description Default Status
text
The text to be displayed. empty required
type
Changes the color depending on the message needed. Each has its own preset image, see #Examples notice optional
image
Override the image (none for no image). Use format: [[File:Commons-emblem-urgent.svg|class=noviewer|45px]] depends on style optional
imageright
Show an image on the right side. empty optional
textstyle
Override default style of text (e.g. alignment - text-align:left; / text-align:right; / text-align:center;). empty optional
style
Override in custom style overrides for the template using CSS. empty optional
lang
Set the language of the text – it's important for right-to-left languages: their image is on the right and imageright is on the left. empty optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.

Examples