Template:Msgbox

From Terraria Wiki
Jump to: navigation, search
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 | title = <box title> | text = <main text> | discuss = y/yes | image = <box image> | imagesize = <custom image size> | imagealt = <completely custom image display> | bgcol = <box background color> | width = <box width> | class = <CSS class for the box> | style/css = <CSS styles for the box> }}

ParameterDescriptionTypeStatus
Box titletitle
Title of the box
Stringoptional
Main texttext
Text inside the box
Unbalanced wikitextsuggested
Talk page linkdiscuss
Adds a link to the current page's talk page; only has an effect if a $title is set
Auto value:
True (1)
Booleanoptional
Box imageimage
Image that is displayed in the box on the left
Example:
Icon-warning-yellow.svg
Fileoptional
Image sizeimagesize
Size of the $image
Default:
32px
Lineoptional
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
Unbalanced wikitextoptional
Background colorbgcol
Background color of the box
Example:
#E4F0F7
Lineoptional
Box widthwidth
Width of the box
Example:
200px
Lineoptional
CSS classclass
Custom CSS class
Default:
msgbox
Lineoptional
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
Lineoptional