模板:Mbox/doc
| 此頁面是Template:Mbox的文檔子頁面。 此頁面可能包含了使用說明、分類和其他內容,這些內容不屬於原始Template頁面。 |
| 此模板使用Lua語言: |
| 本模板使用以下模板樣式: |
{{Mbox}}(multi namespace message box)是一個元模板,用於根據頁面所在命名空間自動選擇對應的消息框樣式。它內部調用 {{Ambox}}(條目)、{{Tmbox}}(討論)、{{Imbox}}(文件)、{{Cmbox}}(分類)和 {{Ombox}}(其他頁面)。
請在需要於多個命名空間中放置同一消息框時才使用本模板。一般情況下,建議直接使用 {{Ambox}}、{{Tmbox}} 等對應模板——這樣外觀一致,編輯者能清楚其用途,也減輕服務器負擔。
參數
{{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}}— 頁眉和頁腳消息框