Template:Mbox: Difference between revisions

From Nubious
Nubious (talk | contribs)
mNo edit summary
Nubious (talk | contribs)
Added additional arguments
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="background-color:#f8f8ff;border:1px solid #daa520;padding:10px;display:flex;">
<div style="background-color:{{{bg|#f8f8ff}}};border:1px solid {{{border|#daa520}}};padding:10px;display:flex;color:{{{fg|#000000}}}">
{{#if: {{{icon|}}} | <div style="margin:5px;font-size:24px;">{{icon | {{{icon}}} }}</div> | }}
{{#if: {{{icon|}}} | <div style="margin:5px;font-size:24px;">{{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>
[[Category:Article stubs]]</includeonly><noinclude>
<noinclude>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 12: Line 11:
|-
|-
| title || (Optional) A Title 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
|-
|-
| || All other content is displayed as text
| || All other content is displayed as text
|}
|}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
{Documentation}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 05:27, 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
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?)