Ce modèle permet d'insérer des boîtes de message sur les pages.
Seuls les paramètres de la doc ont été traduits !
Sommaire
Utilisation
{{msgbox | mini = Mini mode | petit = Mini mode | petite = Mini mode | class = Classes for the template | type = Notice type | fondcol = Custom background color | lignecol = Custom line color | largeur = Custom width | float = Custom alignment | flottant = Custom alignment | icône = Icon from Template:CommentSprite | imagecss = Custom image CSS | image = Extra image | imagetextbefore = Text before the image | imagetextafter = Text after the image | tailleimage = Image size | titre = Template title | discuter = Discuss button | discuterPage = Talk page link | discussAnchor = Talk page section specification | discuterAncre = Talk page section specification | linkshere = Links button to Special:WhatLinksHere | texte = Template text | css = Custom CSS }}
Ancien : récupérer les descriptions
Paramètre | Fonction | Valeur par défaut |
---|---|---|
mini |
À indiquer pour afficher une petite boîte alignée à gauche | aucune |
icône |
Si mini est indiqué, permet d'utiliser directement une icône du modèle {{CommentSprite}} . |
aucune |
image |
Nom de l'image utilisée comme icône dans la partie gauche de la boîte | aucune |
imagelien |
Lien de l'image | aucune (pas de lien) |
fondcol |
Couleur du fond | #FFFFCC |
lignecol |
Couleur du contour | #616161 |
css |
Code CSS qui sera appliqué à la boîte | aucune |
largeur |
Largeur de la boîte | aucune |
titre |
Texte du titre de la boîte | aucune |
texte |
Texte du contenu de la boîte | aucune |
nouveau : les paramètres ont été traduits
Message boxes are used to create most templates present on the wiki. The following table shows a description of the parameter usage of this template.
Paramètre | Description | Type | Statut | |
---|---|---|---|---|
Mini mode | mini petit petite | Changes the message box size to one that is more suited to an article section. | Booléen | facultatif |
Type | type | Message box notice category. See [[#Types]].
| Chaîne | facultatif |
Class | class | Adds class to the template. | Chaîne | suggéré |
Background color | fondcol | Changes the background color.
| Chaîne | facultatif |
Line color | lignecol | Changes the line color. | Chaîne | facultatif |
Width | largeur | Changes the template width.
| Chaîne | facultatif |
Alignment | float flottant flottante | Changes the template position. | Chaîne | facultatif |
Icon | icône | Adds an icon from Template:CommentSprite. Incompatible with the {{{image}}} parameter and its derivatives. | Chaîne | facultatif |
Image CSS customization | imagecss | Further customization of an image on the message box with CSS. | Chaîne | facultatif |
Image | image | Adds an image icon to the template. Incompatible with the {{{icon}}} parameter. | Fichier | facultatif |
Additional text | imagetextbefore | Adds a text before/above the image. | Chaîne | facultatif |
Additional text | imagetextafter | Adds a text after/below the image. | Chaîne | facultatif |
Image size | tailleimage | Changes the image size if the {{{image}}} parameter is set.
| Chaîne | facultatif |
Title | titre | Adds a title to the template. | Chaîne | suggéré |
Discuss button? | discuter | Adds a button named [Discuss] that links to the talk page of the page where the message box is used. | Booléen | facultatif |
Talk page link customization | discuterPage | Changes the [Discuss] button to link to a custom talk page. | Page | facultatif |
Talk page section specification | discuterAncre discussAnchor | Makes the [Discuss] button to link to a specific section of the talk page. | Chaîne | facultatif |
Links button? | linkshere | Adds a button named [Links] that links to Special:WhatLinksHere which lists the page usage of the current page. | Booléen | facultatif |
Text | texte | Adds text to the template. | Contenu | suggéré |
CSS customization | css | Further customization of the message box with CSS. | Chaîne | facultatif |
On peut utiliser {{{type}}}
avec les mots ou directement {{{class}}}
avec msg-couleur
Types
Colors are used to indicate the type of message box:
Criteria | Type = | Color displayed |
---|---|---|
Unclassified templates (default) | ||
Warning for disclaimer/deletion of a page | delete
|
|
Suggesting a page to be moved/split/merged | move
|
|
Notice for content issues of a page | content
|
|
Notice for style issues of a page | style
|
|
Information regarding the status of a page | notice
|
|
Details about editions and/or versions | edition
|
|
Unused/custom purposes | other
|
Types et classes possibles
| style | display| présentation | presentation = msgbox-jaune | minor | mineur | mineure | minor-issue | content | contenu | issue = msgbox-orange | major | major-issue | majeur | majeure | major-issue | supprimer | suppression | delete = msgbox-rouge | organization | title | organisation | titre | déplacer | déplacement | move = msgbox-violette | details | parity | edition | détails | parité | édition | à venir | upcoming = msgbox-bleue | notice | note | info = msgbox-verte | autre | other = msgbox-magenta
Exemples
Basique
{{msgbox |type=notice |titre = Ceci est une boîte de message normale |texte = avec un commentaire clair et utile. }}
affichera :
Mini
{{msgbox |mini = 1 |icône = 8 |texte = Ceci est une mini-boîte de message avec une icône informative utilisant le modèle {{m|CommentSprite}}. }}
affichera :
{{CommentSprite}}
.Avancé
{{msgbox |fondcol = #eef |lignecol = #ddf |titre = Ceci est une boîte de message bleue. |texte = Elle a un lien pour accéder à la page de discussion, une largeur et un CSS personnalisés. |discuter = 1 |largeur = 340px |css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
affichera :
{{msgbox |fondcol = #eef |lignecol = #ddf |titre = Ceci est une boîte de message bleue. |texte = Elle a un lien pour accéder à la page de discussion, un CSS et une image personnalisés. |discuter = 1 |image = Bot.png |css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
affichera :
La taille de l'image peut être spécifiée avec « tailleimage » (32px par défaut), par exemple |tailleimage = 50px
.
Mini avancé
{{msgbox |mini = 1 |image = Bot.png |fondcol = #eef |lignecol = #ddf |css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; |texte = Ceci est une mini-boîte de message avec une icône personnalisée. }}
affichera :
La taille de l'image peut aussi être personnalisée (16px par défaut).