Modèle:MsgBox : Différence entre versions

De Casio Universal Wiki
Aller à : navigation, rechercher
(nom d'utilisateur retiré)
(Structure minimale : Titre)
Ligne 25 : Ligne 25 :
 
----
 
----
 
Il y a un seul paramètre obligatoire, le titre.
 
Il y a un seul paramètre obligatoire, le titre.
<pre>{{MsgBox|titre=Salut !}}</pre>
+
<pre>{{MsgBox |title=Salut !}}</pre>
'''Resultat:'''{{MsgBox|titre=Salut !}}
+
'''Resultat:'''{{MsgBox |title=Salut !}}
 
<br/>
 
<br/>
 +
 
=== Text ===
 
=== Text ===
 
----
 
----

Version du 12 juin 2012 à 17:41

La MsgBox vous permet d'écrire un message sur une page pour informer les utilisateurs. Comme ce message:

Cette page est protégée
Car elle est utilisée sur beaucoup de pages.

MsgBox Prêt à l'emploi

Ce type de MsgBox est près a être utilisé. Vous avez juste besoin d'écrire leurs nom pour qu'ils apparessent. Veuillez de préférence utiliser ce type de MsgBox plutôt que les Personnalisées: Liste des MsgBox ReadyToUse.

MsgBox personnalisée

Structure minimale : Titre


Il y a un seul paramètre obligatoire, le titre.

{{MsgBox |title=Salut !}}

Resultat:

Salut !


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 !|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

Icon


You can change the icon in any image imported into the wiki, the recomended size is 35x35px.To change the icon, add the parameter "icon" as below:

{{MsgBox|title=Hello !|icon=nameOfIcon}}

Here is the list of recommended icon:

Name of icon Icon
Template_MsgBox_blueInfo.png Fichier:Template MsgBox blueInfo.png
Template_MsgBox_orangeWarning.png Fichier:Template MsgBox orangeWarning.png
Template_MsgBox_redSerious.png Fichier:Template MsgBox redSerious.png
Template_MsgBox_Pen.png Fichier:Template MsgBox Pen.png

Colors of background and border


You can change the color of the border and background by adding the parameters "BorderColor" and "BgColor". You can use color names like "red" or "blue", or the hex value that you can recover on this site on the top: "#?????". Remember to write the # for this to work. Example:

{{MsgBox|title=Hello !|BgColor=#00FF44|BorderColor=#FF00AE}}

Result:

Hello !

Style of title and text


You can change the style of the title and text. To this add the parameters "TitleStyle" and "TextStyle". Complete them with CSS. Example:

{{MsgBox|title=Hello !|text=Yeeah|TitleStyle=color:#00FF44;text-decoration:underline;|TextStyle=border:solid Red 1px;}}

Result:

Hello !
Yeeah