Template:Mbox: Difference between revisions

From Nubious
Nubious (talk | contribs)
Added additional arguments
Nubious (talk | contribs)
m Spacing
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="background-color:{{{bg|#f8f8ff}}};border:1px solid {{{border|#daa520}}};padding:10px;display:flex;color:{{{fg|#000000}}}">
<div style="background-color:{{{bg|#f8f8ff}}};border:1px solid {{{border|#daa520}}};padding:10px;display:flex;color:{{{fg|#000000}}}";margin-bottom:5px;>
{{#if: {{{icon|}}} | <div style="margin:5px;font-size:24px;">{{icon | {{{icon}}} }}</div> | }}
{{#if: {{{icon|}}} | <div style="margin:5px;font-size:24px;color:{{{iconcolor|#ff0000}}}">{{icon | {{{icon}}} }}</div> | }}
<div style="margin:5px;">{{#if: {{{title|}}} | <b>{{{title}}}</b><br/> |}}{{{1|}}}</div></div>
<div style="margin:5px;">{{#if: {{{title|}}} | <b>{{{title}}}</b><br/> |}}{{{1|}}}</div></div>
[[Category:Article stubs]]</includeonly><noinclude>
[[Category:Article stubs]]</includeonly><noinclude>
Line 18: Line 18:
| border || (Optional) Border color
| border || (Optional) Border color
|-
|-
| || All other content is displayed as text
| iconcolor || (Optional) Icon color, Default is RED
|-
|
|| All other content is displayed as text
|}
|}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 05:36, 15 October 2024

Argument Description
icon (Optional) An Icon to display in the message box
title (Optional) A Title to display in the message box
fg (Optional) Foreground Color
bg (Optional) Background Color
border (Optional) Border color
iconcolor (Optional) Icon color, Default is RED
All other content is displayed as text
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Mbox/doc to edit this documentation. (How does this work?)