[刷新]
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information- Shortcuts
- msgbox
Simple Information Box[编辑 | 编辑源代码]
{{msgbox | title = This is a simple message box. | text = This is a text. }}
Will be displayed as:
This is a simple message box.
This is a text.
You can also set the size of font.
{{msgbox | title = This is a simple message box. | text = This is a text. The font is larger than default(14px). | font-size = 16px }}
Will be displayed as:
This is a simple message box.
This is a text. The font is larger than default(14px).
Mini Message Box[编辑 | 编辑源代码]
{{msgbox | mini = 1 | icon = 8 | text = This is a mini message box with icon using [[Template:CommentSprite]]. }}
Will be displayed as:
This is a mini message box with icon using Template:CommentSprite.
Advanced Message Box[编辑 | 编辑源代码]
{{msgbox | bgcol = #eef | linecol = #ddf | title = This is a blue message box. | text = It included a link to discussion and custom CSS styles. | discuss = 1 | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
Will be displayed as:
This is a blue message box. Discussion
It included a link to discussion and custom CSS styles.
{{msgbox | bgcol = #eef | linecol = #ddf | title = This is a blue message box. | text = It included a link to discussion, custom CSS styles and images. | discuss = 1 | image = Bot.png | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
Will be displayed as:
This is a blue message box. Discussion
It included a link to discussion, custom CSS styles and images.
You can also set the size of the image using "imagewidth", such as imagewidth = 50px
Advanced Mini Message Box[编辑 | 编辑源代码]
{{msgbox | mini = 1 | image = Bot.png | bgcol = #eef | linecol = #ddf | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; | text = This is a mini message box. }}
Will be displayed as:
This is a mini message box.