Difference between revisions of "Template:Message box"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<center><div style="text-align: center; margin: 0 10% 1em 10%;">
+
<center><div style="text-align: center;">
 
{| class="notice noprint" id="{{{id}}}" style="background: {{{backgroundcolor}}}; border: 1px solid #aaa; padding: 0.1em; margin: 0.5em auto;"
 
{| class="notice noprint" id="{{{id}}}" style="background: {{{backgroundcolor}}}; border: 1px solid #aaa; padding: 0.1em; margin: 0.5em auto;"
 
|-
 
|-
| valign="middle" style="padding: 0.1em" | [[Image:{{{image}}}|45px| ]]
+
| valign="middle" style="padding: 0.1em" | {{#if:{{{image|}}} | [[Image:{{{image}}} {{!}} {{{size}}}px]] |}}
| style="padding: 0.1em" | '''{{{heading}}}'''<br><div style="font-size: 90%; text-align: center">{{{message}}}</div>
+
| style="padding: 0.1em" | '''{{{heading}}}'''<br><div style="font-size: 90%; text-align: center; margin: 0 2% 1em 2%;">{{{message}}}</div>
 
|}
 
|}
 
</div></center>
 
</div></center>
 +
<noinclude>
 +
==Usage==
 +
<pre>
 +
{{Message box
 +
| image = (optional)
 +
| size = (optional; required if image)
 +
| backgroundcolor =
 +
| heading =
 +
| message =
 +
}}
 +
</pre></noinclude>

Latest revision as of 20:30, 17 August 2017

{{{heading}}}
{{{message}}}

Usage

{{Message box
| image = (optional)
| size = (optional; required if image)
| backgroundcolor = 
| heading = 
| message = 
}}