Template:Msgbox/doc
Jump to navigation
Jump to search
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> | nosnippet = n/no }}
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}}
|