Template:Message Box: Difference between revisions

From Future Worlds Center Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:
<table style="width:100%;">
<table style="width:100%;">
<tr>
<tr>
<td style="width:10px; background-color:{{{color}}};">
<td style="width:9px; background-color:{{{color}}};">
</td>
</td>
<td style="background-color:f0f0f0; border-top:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc">
<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;"
{| style="width:100%;background-color:f0f0f0;"
|-  
|-  

Revision as of 01:48, 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.