• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

模板:Message box/doc

来自Minecraft插件百科
跳转至: 导航搜索

{{#invoke: documentation | docPage }}

Shortcut
msgbox

模板:Protected

This template is used to add consistent styling to message boxes.

Basic usage

{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}

Will result in:

This is a normal message box
With helpful and descriptive subtext



Mini usage

{{msgbox
| mini = 1
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}

Will result in:

This is a mini message box with an information icon using Template:CommentSprite



Advanced usage

{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link and some custom CSS
| discuss = 1
| css = box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message box 讨论
It has a discuss link and some custom CSS



Advanced mini usage

{{msgbox
| mini = 1
| bgcol = #eef
| linecol = #ddf
| css = box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}

Will result in:

This is a mini message box, it is using similar settings as the box used in the advanced example above.



Category

This template automatically adds templates that use it to Category:Notice templates. To prevent that, simply set the parameter {{{nocat}}}