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
Line 4: Line 4:
| {{ #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> }}
|}
|}
<table style="width:100%;">
<tr>
<td style="width:10px; background-color:{{{color}}};">
</td>
<td style="background-color:f0f0f0; border-top:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc">
{|
|-
| {{ #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> }}
|}
</td>
</tr>
</table>
<noinclude>
<noinclude>
==Preview==
==Preview==

Revision as of 02:43, 1 March 2012

Preview

{{{text}}}
{{{text}}}

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.