Template:Mbox/doc

From Workers & Resources: Soviet Republic Official Wiki
< Template:Mbox
Revision as of 00:09, 4 March 2023 by workers-resources-fandom>Abominação (Created page with "<noinclude>{{documentationpage}}</noinclude>{{Template dependencies|css=MediaWiki:Common.css}} Meta-template for building message boxes (used for article management templates, for example). ==Usage== <pre> {{Mbox |color =gray |image =Mbox_default.png |header =Example header |content =Example text }} </pre> ===Parameters=== {{Docparam|name=content|req=yes|default=|desc= Text content of the box. }} {{Docparam|name=header|req=yes|default=|desc= Bold text to be d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Meta-template for building message boxes (used for article management templates, for example).

Usage

{{Mbox
|color   =gray
|image   =Mbox_default.png
|header  =Example header
|content =Example text
}}

Parameters

Yes
content
Text content of the box.
Yes
header
Bold text to be displayed as the box header.
Neutral
(default: "middle")
align
Enables the header, content and note to be aligned vertically as a group. Options are those listed for CSS vertical-align
Neutral
(default: "gray")
color
Color of left border. Accepts standard HTML color names or RGB hex triplets. For the wiki's color conventions see "Colors" below.
Neutral
(default: "Mbox default.png")
image
Image to be displayed in the box.
Neutral
note
Small text to be displayed below content.
Neutral
(default: "60x55px")
px
Size of image.
Neutral
style
Additional CSS to be applied to the box. To ensure a standardized and professional look across all {{mbox}}-based templates, this should only be used very sparingly.

Colors

Color Should be used for Examples
red serious issues {{Delete}}
orange content issues {{Cleanup}}, {{Missing data}}, {{Outdated}}, {{Review}}, {{Wikify}}, {{Upcoming}}
blue template issues {{Infobox incomplete}}, {{Infobox needed}}, {{Missing data}}, {{Navbox needed}}
purple organization issues {{Merge}}, {{Move}}, {{Split}}
yellow file issues {{Badimage}}, {{Image needed}}, {{Unused file}}, {{Audio needed}}
green stub color {{Stub}}, {{Section}}
gray default color

Examples

Example 1

{{Mbox
|color   =black
|header  =Example notice
|content =Example notices serve example purposes.
}}

results in:

Example 2

{{Mbox
|color   =#F1B82F
|image   =Mbox delete.png
|header  =Example notice
|content =Example notices serve example purposes.
|note    =Example notices are not really useful.
}}

results in: