On Thursday, approximately 10AM UTC, we'll be performing our MediaWiki 1.34 deployment. Please expect some downtime, we apologise in advance for any inconvenience!

Template:Mbox/doc

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search

Display a message box with up to three cells. The message box width is 80% of the available width for a statically placed box. The box can optionally be floated right, in which case the width is 25% of the available width.

Use[edit]

{{Mbox|cell-contents|cell-contents|cell-contents|color=color-name|float=Boolean}}

cell-contents
wikitext to be displayed in the message; displays up to three cells horizontally
color
(optional) one of a predefined set of color names for the left border; valid values are gray, red, rred (red border with red background), orange, oorange, yellow, yyellow, green, ggreen, blue, bblue, indigo, iindigo, violet, vviolet, magenta, and mmagenta; without this option, the border is black
float
(optional, default: false) float a smaller box to the right; any value other than true is treated as false

Examples[edit]

{{Mbox|Text}}
{{Mbox|[[File:Gnome-applications-science.svg|40px|link=]]|Text}}

produces

Text
Gnome-applications-science.svg
Text


{{Mbox|[[File:Gnome-applications-science.svg|40px|link=]]|
Mary had a little lamb.<br/>
Its fleece was white as snow;<br/>
And everywhere that Mary went<br/>
The lamb was sure to go.
|[[File:Gnome-applications-science.svg|40px|link=]]}}

produces

Gnome-applications-science.svg

Mary had a little lamb.
Its fleece was white as snow;
And everywhere that Mary went
The lamb was sure to go.

Gnome-applications-science.svg


{{Mbox|Default}}
{{Mbox|Gray|color=gray}}
{{Mbox|Red|color=red}}
{{Mbox|RRed|color=rred}}
{{Mbox|Orange|color=orange}}
{{Mbox|OOrange|color=oorange}}
{{Mbox|Yellow|color=yellow}}
{{Mbox|YYellow|color=yyellow}}
{{Mbox|Green|color=green}}
{{Mbox|GGreen|color=ggreen}}
{{Mbox|Blue|color=blue}}
{{Mbox|BBlue|color=bblue}}
{{Mbox|Indigo|color=indigo}}
{{Mbox|IIndigo|color=iindigo}}
{{Mbox|Violet|color=violet}}
{{Mbox|VViolet|color=vviolet}}
{{Mbox|Magenta|color=magenta}}
{{Mbox|MMagenta|color=mmagenta}}
{{Mbox|Float|float=true}}
{{Mbox|Float Gray|color=gray|float=true}}

produces

Default
Gray
Red
RRed
Orange
OOrange
Yellow
YYellow
Green
GGreen
Blue
BBlue
Indigo
IIndigo
Violet
VViolet
Magenta
MMagenta
Float
Float Gray