Terraria Wiki

Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
Terraria Wiki
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 Template:Msgbox/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template: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>
}}
ParameterDescriptionTypeStatus
CSS classclass
Custom CSS class
Default:
msgbox
Line
optional
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
Line
optional
Background colorbgcol
Background color of the box
Example:
#E4F0F7
Line
deprecated
see below
Box widthwidth
Width of the box
Example:
200px
Line
optional
Box imageimage
Image that is displayed in the box on the left
Example:
Icon-warning-yellow.svg
File
optional
Image sizeimagesize
Size of the $image
Default:
32px
Line
optional
Image textimagetext
Alt text for $image
Line
optional
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
Unbalanced wikitext
optional
Discuss optiondiscuss
Adds a link to the current page's talk page (or $discusspage); only has an effect if a $title is set
Boolean
optional
Discuss linkdiscusspage
The page that $discuss will link to
Line
optional
Discuss anchordiscussanchor
The section on the page that $discuss will link to
Line
optional
Box titletitle
Title of the box
String
optional
Main texttext
Text inside the box
Unbalanced wikitext
suggested

Colors

For compatibility with FandomDesktop's dark 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
Advertisement