模板:Message box

来自SCP: Sharp Wiki
[查看 | 编辑 | 历史 | 刷新]Documentation
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:

Bot.png
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:

Bot.png

This is a mini message box.

[查看 | 编辑 | 历史 | 刷新]The above documentation is transcluded from 模板:Message box/doc.
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。