Template:Messagebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
I think I found a messagebox template that 1) makes image templates easy to make. 2) Floats/overlaps correctly with images. Still a bit of a WiP |
Getting better, but still not more better enough. |
||
| Line 1: | Line 1: | ||
<noinclude> | |||
{| style="background: transparent; float:left;" | |||
|<pre>{{Messagebox| | |||
|image_name= | |||
|image_width= | |||
|mouseover= | |||
|header= | |||
|message_text= | |||
|categories= | |||
|justification= | |||
|bgcolor= | |||
|border= | |||
}} | |||
</pre> | |||
|} | |||
</noinclude> | |||
<includeonly><center> | <includeonly><center> | ||
{| cellspacing="0" | {| cellspacing="0" | ||
|- | |- | ||
| style="padding:0;" |<div style="width:100%;padding:.5em; background:#{{{bgcolor|efefff}}}; border:thin solid #{{{border|9f9fff}}}; width: 80%;text-align:{{{justification|center}}};margin:auto;">[[Image:{{{image_name|Movie frenzy.png}}}|left|{{{image_width| | | style="padding:0;" |<div style="width:100%;padding:.5em; background:#{{{bgcolor|efefff}}}; border:thin solid #{{{border|9f9fff}}}; width: 80%;text-align:{{{justification|center}}};margin:auto;">[[Image:{{{image_name|Movie frenzy.png}}}|left{{ #if: {{{image_width|}}}|{{!}}{{{image_width|}}}px|}}{{ #if: {{{mouseover|}}} |{{!}}{{{mouseover|}}}|}}]] | ||
<span style="font-size:125%;font-weight:900;">{{{header|Header Title (optional)}}}</span><hr/> | {{ #if: {{{header|}}} |<span style="font-size:125%;font-weight:900;"> | ||
{{{message_text|Your message text goes here. Generally speaking, you should have more than 1 line of text in order to force the thing to lay out correctly.}}}</div> | {{{header|Header Title (optional)}}}</span><hr/>|}} | ||
{{{message_text|Your message text goes here. Generally speaking, you should have more than 1 line of text in order to force the thing to lay out correctly.}}} | |||
</div> | |||
|} | |} | ||
</center> | </center>{{{categories|}}}</includeonly> | ||
<noinclude> | <noinclude> | ||
{{Messagebox}} | {{Messagebox}} | ||


