Difference between revisions of "Template:MsgBox"

From Casio Universal Wiki
Jump to: navigation, search
Line 9: Line 9:
 
</td><td>
 
</td><td>
 
<div {{#if:{{{TitleStyle|}}}| style="{{{TitleStyle}}}"}} id="TemplateMsgBoxTitle">{{{title|{{{1|<span class="error">Error : « title » is missing</span>}}}}}}</div>
 
<div {{#if:{{{TitleStyle|}}}| style="{{{TitleStyle}}}"}} id="TemplateMsgBoxTitle">{{{title|{{{1|<span class="error">Error : « title » is missing</span>}}}}}}</div>
<div {{#if:{{{TextStyle|}}}| style="{{{TextStyle}}}"}} id="TemplateMsgBoxText">{{{text|{{{2}}}}}}</div>
+
<div {{#if:{{{TextStyle|}}}| style="{{{TextStyle}}}"}} id="TemplateMsgBoxText">{{{text|{{{2|}}}}}}</div>
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 22: Line 22:
 
=== simple call ===
 
=== simple call ===
 
To make a simple call to MsgBox, you just need to specify the title:
 
To make a simple call to MsgBox, you just need to specify the title:
<pre>{{MsgBox|title=Hello !}}
+
<pre>{{MsgBox|title=Hello !}}</pre>
 
+
Result:{{MsgBox|title=Hello !}}
</pre>
 
 
<!--
 
<!--
 
|BgColor          = Blue
 
|BgColor          = Blue

Revision as of 14:30, May 23, 2012

The MsgBox allow you to write a message on a page so that other users are aware of information was about this page. As this message:

This page is protected
Because it is used on many pages.

MsgBox ReadyToUse

This type of MsgBox are ready to be used. There just needs to write their names so that they appear. Prefer this type of MsgBox rather than personalized : list of MsgBox ReadyToUse.

Personalized MsgBox

simple call

To make a simple call to MsgBox, you just need to specify the title:

{{MsgBox|title=Hello !}}

Result:

Hello !