Plantilla:Msgbox

De Terraria Wiki
Ir a la navegación Ir a la búsqueda
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Plantilla:Msgbox/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Plantilla:Msgbox/doc. (edit | history)

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>
}}
ParámetroDescripciónTipoEstado
CSS classclass
Custom CSS class
Predeterminado:
msgbox
Línea
opcional
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
Línea
opcional
Background colorbgcol
Background color of the box
Ejemplo:
#E4F0F7
Línea
en desuso
see below
Box widthwidth
Width of the box
Ejemplo:
200px
Línea
opcional
Box imageimage
Image that is displayed in the box on the left
Ejemplo:
Warning-yellow.svg
Archivo
opcional
Image sizeimagesize
Size of the $image
Predeterminado:
32px
Línea
opcional
Image textimagetext
Alt text for $image
Línea
opcional
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
Wikitexto desequilibrado
opcional
Discuss optiondiscuss
Adds a link to the current page's talk page (or $discusspage); only has an effect if a $title is set
Lógico
opcional
Discuss linkdiscusspage
The page that $discuss will link to
Línea
opcional
Discuss anchordiscussanchor
The section on the page that $discuss will link to
Línea
opcional
Box titletitle
Title of the box
Cadena
opcional
Main texttext
Text inside the box
Wikitexto desequilibrado
sugerido

Examples

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 the different themes.

Code Result
{{msgbox|text=Message box text|class=msgbox-color-blue}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-red}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-purple}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-green}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-yellow}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-orange}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-pink}}
Message box text
{{msgbox|text=Message box text}}
Message box text