Template:Msgbox

来自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 文档 以下文档内容来自模板: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> }}

参数说明类型状态
Box titletitle
Title of the box
字符串可选
Main texttext
Text inside the box
不完整的wiki文本推荐
Talk page linkdiscuss
Adds a link to the current page's talk page; only has an effect if a $title is set
自动值:
True (1)
布尔值可选
Box imageimage
Image that is displayed in the box on the left
例子:
Icon-warning-yellow.svg
文件可选
Image sizeimagesize
Size of the $image
默认值:
32px
可选
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
不完整的wiki文本可选
Background colorbgcol
Background color of the box
例子:
#E4F0F7
可选
Box widthwidth
Width of the box
例子:
200px
可选
CSS classclass
Custom CSS class
默认值:
msgbox
可选
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
可选