Template:Mbox: Difference between revisions

From Nubious
Nubious (talk | contribs)
First version of a message box template
 
Nubious (talk | contribs)
m Spacing
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="background-color:#f8f8ff;border:1px solid #daa520;padding:10px;display:flex;"><div style="margin:5px;">X</div><div style="margin:5px;">SUBTITLE/CONTENT</div></div>
<div style="background-color:{{{bg|#f8f8ff}}};border:1px solid {{{border|#daa520}}};padding:10px;display:flex;color:{{{fg|#000000}}}";margin-bottom:5px;>
[[Category:Article stubs]]
{{#if: {{{icon|}}} | <div style="margin:5px;font-size:24px;color:{{{iconcolor|#ff0000}}}">{{icon | {{{icon}}} }}</div> | }}
</includeonly>
<div style="margin:5px;">{{#if: {{{title|}}} | <b>{{{title}}}</b><br/> |}}{{{1|}}}</div></div>
<noinclude>
[[Category:Article stubs]]</includeonly><noinclude>
----
{| class="wikitable"
''This template will categorize articles that include it into [[:Category:Article stubs]].''
|-
! 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
|}
[[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?)