• 首页
  • 随机
  • 登录
  • 设置
  • 关于中医百科
  • 免责声明
中医百科

Template:Mbox

  • 语言
  • 监视
  • 查看源代码
模板文档[查看] [编辑] [查看历史] [清除缓存]
消息框模板
  • {{ambox}}
  • {{cmbox}}
  • {{fmbox}}
  • {{imbox}}
  • {{mbox}}
  • {{nmbox}}
  • {{ombox}}
  • {{tmbox}}
此模板使用Lua语言:
  • Message box
CSS本模板使用以下模板样式:
  • Module:Message box/ambox.css
  • Module:Message box/tmbox.css
  • Module:Message box/imbox.css
  • Module:Message box/cmbox.css
  • Module:Message box/ombox.css
  • Module:Message box/fmbox.css

{{Mbox}}(multi namespace message box)是一个元模板,用于根据页面所在命名空间自动选择对应的消息框样式。它内部调用 {{Ambox}}(条目)、{{Tmbox}}(讨论)、{{Imbox}}(文件)、{{Cmbox}}(分类)和 {{Ombox}}(其他页面)。

请在需要于多个命名空间中放置同一消息框时才使用本模板。一般情况下,建议直接使用 {{Ambox}}、{{Tmbox}} 等对应模板——这样外观一致,编辑者能清楚其用途,也减轻服务器负担。

目录

  • 1 参数
  • 2 Demospace
  • 3 type 类型
  • 4 参见

参数

{{mbox
| demospace = {{{demospace|}}} / main / talk / file / category / other
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS 代码
| textstyle  = CSS 代码
| text  = 消息正文
| small = {{{small|}}} / left / yes
| smallimage = none / [[File:Some image.svg|30px]]
| smallimageright = none / [[File:Some image.svg|30px]]
| smalltext  = 小尺寸消息文本
}}

注意:small 参数仅在条目、讨论页和其他名字空间中有效。

Demospace

demospace 参数用于测试和演示,可强制指定命名空间样式。例如 demospace=main 强制显示条目样式。如需固定消息框样式,应直接使用对应的专用模板。

type 类型

type=speedy 快速删除
type=delete 删除
type=content 内容问题
type=style 格式问题
type=notice 默认值
type=move 移动/合并提议
type=protection 页面保护

参见

  • {{Ambox}} — 条目消息框
  • {{Tmbox}} — 讨论页消息框
  • {{Imbox}} — 文件页消息框
  • {{Cmbox}} — 分类消息框
  • {{Ombox}} — 其他页面消息框
  • {{Fmbox}} — 页眉和页脚消息框
上述文档嵌入自Template:Mbox/doc。(编辑 | 查看历史)
编者可以在本模板的沙盒(创建 | 镜像)和测试样例(创建)页面进行实验。
请将分类添加至/doc子页面。本模板的子页面。
检索自“https://test.zybkcn.com/w/index.php?title=Template:Mbox&oldid=598”
最后编辑于2026年6月21日 (星期日) 10:26

语言

  • 不转换
  • 简体
  • 繁體
中医百科
  • 此页面最后编辑于2026年6月21日 (星期日) 10:26。
  • 隐私政策
  • 关于中医百科
  • 免责声明
  • 陕ICP备2021000932号-1
  • 陕公网安备61019002001593号
  • 桌面版