Template:Mbox: Difference between revisions
From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação m Refix |
Load TemplateStyles restoring the colours lost with the Fandom theme variables |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude><templatestyles src="Template:Mbox/styles.css"/><!-- | ||
<div role="note"> | |||
--><div role="note"> | |||
{| role="presentation" class="va-mbox" style="border-left: 10px solid {{{color|{{{Color|grey}}}}}}; {{{style|{{{Style|}}}}}}" | {| role="presentation" class="va-mbox" style="border-left: 10px solid {{{color|{{{Color|grey}}}}}}; {{{style|{{{Style|}}}}}}" | ||
|- | |- | ||
| Line 51: | Line 52: | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | -->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | ||
--></onlyinclude> | --></onlyinclude><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Page management templates| ]] | [[Category:Page management templates| ]]</noinclude> | ||
Latest revision as of 18:03, 8 August 2026
header?
content?
|
This template depends on CSS
|
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
content
Text content of the box.
header
Bold text to be displayed as the box header.
(default: "middle")
alignEnables the header, content and note to be aligned vertically as a group. Options are those listed for CSS vertical-align
(default: "gray")
colorColor of left border. Accepts standard HTML color names or RGB hex triplets. For the wiki's color conventions see "Colors" below.
(default: "Mbox default.png")
imageImage to be displayed in the box.
note
Small text to be displayed below
content.(default: "60x55px")
pxSize of
image.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 notice
Example notices serve example purposes.
|
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:
Example notice
Example notices serve example purposes.
Example notices are not really useful.
|


