Template:Message Box: Difference between revisions
From Future Worlds Center Wiki
Jump to navigationJump to search
m (Protected "Template:Message Box" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table style="width:100%;" border="0" cellspacing="0"> | |||
<tr> | |||
<td style="width:9px; background-color:{{{color}}};"> | |||
</td> | |||
<td style="background-color:f0f0f0; border-ledt:1px solid {{{color}}}; border-top:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc"> | |||
{| style="width:100%;background-color:f0f0f0;" | |||
|- | |- | ||
| {{ #if: {{{text|}}} | <div style="padding:10px">[[File:{{{image}}}|50x42px|link=|alt=]]</div> }} | | {{ #if: {{{text|}}} | <div style="padding:10px">[[File:{{{image}}}|50x42px|link=|alt=]]</div> }} | ||
| {{ #if: {{{text|}}} | <div style="padding-right:10px;color:{{{color}}}; text-align:justify">{{{text}}}</div> }} | | {{ #if: {{{text|}}} | <div style="padding-right:10px;color:{{{color}}}; text-align:justify">{{{text}}}</div> }} | ||
|} | |} | ||
</td> | |||
</tr> | |||
</table> | |||
<noinclude> | <noinclude> | ||
==Preview== | ==Preview== |
Latest revision as of 01:50, 1 March 2012
|
Preview
|
Usage
Copy and paste the code below to create your own message box
{{Message_Box |color=red |image=Alert.png |text={{{text}}} }}
List of Variables
- color : This variable expects from the editor to assign a color code to it. e.g. color=#0000ff which is blue
- image : This variable expects from the editor to assign to it an image's name (including the extension) e.g. image=Alert.png
- text : This variable expects from the editor to assign to it the message. It is better if you leave it as {{{text}}} so the users of your box can choose their own text.