Modèle:Msgbox

De Terraria Wiki
Aller à la navigation Aller à la recherche
Ce modèle est considéré comme prêt pour i18n, signifiant qu'il est facile à régionaliser pour les différentes langues. Veuillez regarder i18n & l10n pour les modèles (en) pour en apprendre plus.
Voir Modèle:Msgbox/l10n pour la localisation de ce modèle.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Msgbox/doc. (modifier | historique)

This template displays a basic message box.

Usage

All parameters are optional.

{{msgbox
| class = <css classes>
| style/css = <css styles>
| width = <box width>
| image = <personal image choice>
| imagesize = <image size>
| imagelink = <image link>
| imagetext = <image alt text>
| imagealt = <completely custom image display>
| discuss = y/yes
| discusspage = <discuss page>
| discussanchor <discuss section name>
| title = <box title>
| text = <box text>
}}
ParamètreDescriptionTypeStatut
CSS classclass
Custom CSS class
Par défaut:
msgbox
Ligne
facultatif
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
Ligne
facultatif
Background colorbgcol
Background color of the box
Exemple:
#E4F0F7
Ligne
obsolète
see below
Box widthwidth
Width of the box
Exemple:
200px
Ligne
facultatif
Box imageimage
Image that is displayed in the box on the left
Exemple:
Icon-warning-yellow.svg
Fichier
facultatif
Image sizeimagesize
Size of the $image
Par défaut:
32px
Ligne
facultatif
Image textimagetext
Alt text for $image
Ligne
facultatif
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
Wikicode non équilibré
facultatif
Discuss optiondiscuss
Adds a link to the current page's talk page (or $discusspage); only has an effect if a $title is set
Booléen
facultatif
Discuss linkdiscusspage
The page that $discuss will link to
Ligne
facultatif
Discuss anchordiscussanchor
The section on the page that $discuss will link to
Ligne
facultatif
Box titletitle
Title of the box
Chaîne
facultatif
Main texttext
Text inside the box
Wikicode non équilibré
suggéré

Colors

For compatibility with wiki.gg's theme, hardcoded background/border colors should be avoided. Instead, use one of the predefined classes listed below, which are styled for both light and dark themes:

Class Color
msgbox-color-blue
msgbox-color-red
msgbox-color-purple
msgbox-color-green
msgbox-color-yellow
msgbox-color-orange
msgbox-color-pink