Difference between revisions of "Template:MsgBox"
From Casio Universal Wiki
| Line 21: | Line 21: | ||
== Personalized MsgBox == | == Personalized MsgBox == | ||
=== Minimal call : Title === | === Minimal call : Title === | ||
| + | ---- | ||
To make a minimal call to MsgBox, you just need to specify the title: | To make a minimal call to MsgBox, you just need to specify the title: | ||
<pre>{{MsgBox|title=Hello !}}</pre> | <pre>{{MsgBox|title=Hello !}}</pre> | ||
'''Result:'''{{MsgBox|title=Hello !}} | '''Result:'''{{MsgBox|title=Hello !}} | ||
| − | + | <br/> | |
=== 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 !}} | ||
| − | + | <br/> | |
=== Theme === | === Theme === | ||
| + | ---- | ||
You can change the theme of the MsgBox. To change the theme, add the parameter "theme" as below: | You can change the theme of the MsgBox. To change the theme, add the parameter "theme" as below: | ||
<pre>{{MsgBox | <pre>{{MsgBox | ||
Revision as of 17:06, 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) |
| ||
| orange |
| ||
| red |
|