Difference between revisions of "Template:MsgBox"

From Casio Universal Wiki
Jump to: navigation, search
Line 24: Line 24:
 
<pre>{{MsgBox|title=Hello !}}</pre>
 
<pre>{{MsgBox|title=Hello !}}</pre>
 
'''Result:'''{{MsgBox|title=Hello !}}
 
'''Result:'''{{MsgBox|title=Hello !}}
 +
 
=== Text ===
 
=== Text ===
 
You can add text under the title:
 
You can add text under the title:
 
<pre>{{MsgBox|title=Hello !|text=World !}}</pre>
 
<pre>{{MsgBox|title=Hello !|text=World !}}</pre>
 
'''Result:'''{{MsgBox|title=Hello !|text=World !}}
 
'''Result:'''{{MsgBox|title=Hello !|text=World !}}
 +
 +
=== Theme ===
 +
You can change the theme of the MsgBox. To change the theme, add the parameter "theme" as below:
 +
<pre>{{MsgBox
 +
|title=Hello !
 +
|text=World !
 +
|theme=NameOfTheme}}</pre>
 +
There are currently 3 themes, replace nameOfTheme by one of them:
 +
{|class="wikitable" style="width:100%;text-align:center;"
 +
!scope="col"| Name of theme
 +
!scope="col"| Result
 +
|-
 +
| blue<br/>(default theme)
 +
| {{MsgBox|title=This is blue theme|theme=blue}}
 +
|-
 +
| orange
 +
| {{MsgBox|title=This is orange theme|theme=orange}}
 +
|-
 +
| red
 +
| {{MsgBox|title=This is red theme|theme=red}}
 +
|}
 
<!--
 
<!--
 
|BgColor          = Blue
 
|BgColor          = Blue

Revision as of 17:41, 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

Minimal call : Title

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

{{MsgBox|title=Hello !}}

Result:

Hello !

Text

You can add text under the title:

{{MsgBox|title=Hello !|text=World !}}

Result:

Hello !
World !

Theme

You can change the theme of the MsgBox. To change the theme, add the parameter "theme" as below:

{{MsgBox
|title=Hello !
|text=World !
|theme=NameOfTheme}}

There are currently 3 themes, replace nameOfTheme by one of them:

Name of theme Result
blue
(default theme)
This is blue theme
orange
This is orange theme
red
This is red theme