Difference between revisions of "Template:Message box"

m (Removed bottom margin)
m (Fixing it up)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center><div style="text-align: center; margin: 0 10% 1em 0;">
+
<center><div style="text-align: center; margin: 0 10%;">
 
{| 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="top" style="padding: 0.1em" | [[Image:{{{image}}}|45px| ]]
+
| style="padding: 0.1em" | [[file:{{{image}}}|frameless|{{{image_size}}}]]
 
| 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">{{{message}}}</div>
 
|}
 
|}
</div></center><noinclude>
+
</div></center>
[[Category:Template templates]]
+
<noinclude>
 +
{{/doc}}
 +
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 01:29, 7 March 2022

[[file:{{{image}}}|frameless|{{{image_size}}}]] {{{heading}}}
{{{message}}}


Usage

{{Message_box
|backgroundcolor = 
|image	= 
|heading = 
|message = 
}}
  • backgroundcolor: Box background color (default may depend on skin)
  • image: Name of image (do not use "Image:" or "File:" heading)
  • heading: Heading text
  • message or text: Message text

See also