Modèle:MsgBox : Différence entre versions

De Casio Universal Wiki
Aller à : navigation, rechercher
m (Text)
m (Icon)
Ligne 54 : Ligne 54 :
 
  | {{MsgBox|title=Voici le thème rouge|theme=rouge}}
 
  | {{MsgBox|title=Voici le thème rouge|theme=rouge}}
 
  |}
 
  |}
=== Icon ===
+
=== Icône ===
 
----
 
----
 
Vous pouvez changer l’icône en n'importe quelle image importée sur le wiki. La taille recommandé est de 45x35px. Pour changer l’icône, ajoutez le paramétré "icon" comme ci-dessous:
 
Vous pouvez changer l’icône en n'importe quelle image importée sur le wiki. La taille recommandé est de 45x35px. Pour changer l’icône, ajoutez le paramétré "icon" comme ci-dessous:
Ligne 75 : Ligne 75 :
 
  | [[file:Template_MsgBox_stylo.png]]
 
  | [[file:Template_MsgBox_stylo.png]]
 
  |}
 
  |}
 +
 
=== Colors of background and border ===
 
=== Colors of background and border ===
 
----
 
----

Version du 12 juin 2012 à 22:42

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


Vous pouvez ajouter du texte sous le titre

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

Resultat:

Hello !
World !


Theme


vous pouvez changer les thème de la MsgBox. Pour changer les thème, ajoutez le paramétré "theme" comme ci-dessous:

{{MsgBox|title=Hello !|theme=NomDuTheme}}

Il y a actuelement 3 thèmes, remplacez "NomDuTheme" par l'un d'entre eux:

Nom du thème Resultat
bleu
(thème par défaut)
Voici le thème bleu
orange
Voici le thème orange
rouge
Voici le thème rouge

Icône


Vous pouvez changer l’icône en n'importe quelle image importée sur le wiki. La taille recommandé est de 45x35px. Pour changer l’icône, ajoutez le paramétré "icon" comme ci-dessous:

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

Voici la liste des icônes recommandés:

Nom de l'icône Icone
Template_MsgBox_bleuInfo.png Template MsgBox bleuInfo.png
Template_MsgBox_orangeAttention.png Template MsgBox orangeAttention.png
Template_MsgBox_rougeSerieux.png Template MsgBox rougeSerieux.png
Template_MsgBox_stylo.png Template MsgBox stylo.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