模板:Message box/doc
外观
| 此页面是Template:Message box的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
本模板 {{message box}} 可产生一个讯息框,并可加入标题、图片以及其他可调整的参数。
使用方式
[编辑]{{message box
| backgroundcolor =
| image =
| heading =
| message =
}}
参数
[编辑]- backgroundcolor:文字讯息框的背景颜色(预设为维基百科外观有所不同)
- image:图片档案名称(请勿加入“Image:”或“File:”前缀)
- heading: 标题文字内容
- message: 讯息文字内容
范例
[编辑]- 范例,一般使用:
{{message box
| heading = message box的抬头
| message = message box的正文
}}
| message box的抬头 message box的正文 |
- 范例,使用图片及背景颜色参数:
{{message box
| backgroundcolor = #fcffaa
| image = Hex icon with star white.svg
| heading = message box的抬头
| message = message box的正文
}}
| message box的抬头 message box的正文 |
参见
[编辑]