Requires stylings:
div.msgbox {
display: flex;
border: 1px solid #CCC;
box-sizing: border-box;
align-items: center;
width: auto;
padding: .5em .8em;
margin: 0 auto;
margin-bottom: 1em;
}
div.msgbox + div.msgbox {
border-top: none;
margin-top: -1em;
}
:not(div.msgbox) + div.msgbox,
div.msgbox:first-of-type {
border-top-right-radius: .15em;
border-top-left-radius: .15em;
}
div.msgbox #msgbox-iconimage,
div.msgbox #msgbox-image {
margin: 0 1.5em 0 .5em;
}
div.msgbox-mini {
padding: .5em;
margin: 0 0;
margin-bottom: 1em;
}
div.msgbox-mini #msgbox-icon {
align-self: flex-start;
}
div.msgbox-mini #msgbox-iconimage,
div.msgbox-mini #msgbox-image {
margin: 0 .5em 0 .5em;
}
div.msgbox-mini #msgbox-text {
font-size: small;
}
/* Various styling for message boxes, based on colours/styling from [[Template:Msgbox]] */
div.mw-warning-with-logexcerpt,
.errorbox {
background: #FCC;
border: 1px solid #CCC;
border-left: 4px solid #FAA;
}
.warningbox {
background: #FFC;
border: 1px solid #CCC;
border-left: 4px solid #DD8;
}
.successbox {
background: #DFD;
border: 1px solid #CCC;
border-left: 4px solid #9C9;
}
.successbox strong p {
margin: 0;
}
div.mw-warning-with-logexcerpt,
.errorbox,
.warningbox,
.successbox {
display: block;
padding: .5em .8em;
margin-bottom: 1em;
}
Normal
It has been suggested that this page be moved somewhere else.
If this move affects many pages or may potentially be controversial, do not move the page until a consensus is reached. [discuss]
If this move affects many pages or may potentially be controversial, do not move the page until a consensus is reached. [discuss]
When moving, be sure to use the appropriate tool instead of simply copying and pasting the page's contents, to preserve edit history.
This article's name is unofficial.
An official name is yet to be given to the subject matter and may change at any time.
This user page is a work in progress.
Please help in the creation of this user page by expanding or improving it.
The talk page may contain suggestions.
The talk page may contain suggestions.
This feature is exclusive to Java Edition.
Section
This section's name is unofficial.
An official name is yet to be given to the subject matter and may change at any time.
This section is a work in progress.
Please help in the creation of this section by expanding or improving it.
The talk page may contain suggestions.
The talk page may contain suggestions.
This feature is exclusive to Java Edition.
This template is used to add consistent styling to message boxes.
Basic usage
{{:User:ItsPlantseed/Sandbox/Template
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
Will result in:
This is a normal message box
With helpful and descriptive subtext
Mini usage
{{:User:ItsPlantseed/Sandbox/Template
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}
Will result in:
This is a mini message box with an information icon using Template:CommentSprite
Advanced usage
{{:User:ItsPlantseed/Sandbox/Template
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link and some custom CSS
| discuss = 1
| linkshere = 1
| css = box-shadow: 0px 0px 25px #888;
}}
Will result in:
{{:User:ItsPlantseed/Sandbox/Template
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image = Bot.png
| css = box-shadow: 10px 10px 2px #888;
}}
Will result in:
This is a blue message box [discuss]
It has a discuss link, some custom CSS and a custom image
A custom image size can also be specified with "imagewidth", for example: imagewidth = 50px
Advanced mini usage
{{:User:ItsPlantseed/Sandbox/Template
| mini = 1
| image = Bot.png
| bgcol = #eef
| linecol = #ddf
| css = box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}
Will result in: This is a mini message box, it is using similar settings as the box used in the advanced example above.
This can also have a custom image size.