Plantilla:Msgbox
Ir a la navegación
Ir a la búsqueda
Documentation The documentation below is transcluded from Plantilla:Msgbox/doc. (edit | history)
[purge]
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ámetro | Descripción | Tipo | Estado | |
---|---|---|---|---|
CSS class | class | Custom CSS class
| Línea | opcional |
CSS style | style css | Línea | opcional |
|
Background color | bgcol | Background color of the box
| Línea | en desuso see below |
Box width | width | Width of the box
| Línea | opcional |
Box image | image | Image that is displayed in the box on the left
| Archivo | opcional |
Image size | imagesize | Size of the $image
| Línea | opcional |
Image link | imagelink | The page that $image will link to | Línea | opcional |
Image text | imagetext | Alt text for $image | Línea | opcional |
Custom image | imagealt | Completely custom image display; overrides $image and $imagesize | Wikitexto desequilibrado | opcional |
Discuss option | discuss | 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 link | discusspage | The page that $discuss will link to | Línea | opcional |
Discuss anchor | discussanchor | The section on the page that $discuss will link to | Línea | opcional |
Box title | title | Title of the box | Cadena | opcional |
Main text | text | 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}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-red}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-purple}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-green}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-yellow}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-orange}}
|
|
{{msgbox|text=Message box text|class=msgbox-color-pink}}
|
|
{{msgbox|text=Message box text}}
|
Categorías:
- I18n-ready templates
- Notice templates