消息框模板

{{Mbox}} 是一個元模板(在其他模板中引用的模板)。使用本模板將產生一個橫幅訊息框,並可在各種不同類型的頁面使用,無需手動變更橫幅訊息框的樣式,模板能偵測其所在的名字空間,並自動選擇適合的模板樣式使用。

參數

以下列出本模板的所有參數:

 
{{Mbox
| demospace = {{{demospace|}}} / main / talk / file / category / other
| type  = speedy / delete / content / style / notice / move / protection
| image = 可留空 / [[File:圖片檔案名稱.svg|40px]]
| imageright = 可留空 / [[File:圖片檔案名稱.svg|40px]]
| style = 可留空 / CSS 代碼
| textstyle  = 可留空 / CSS 代碼
| text  = 橫幅訊息框內的文字
| small = {{{small|}}} / left / yes
| smallimage = 可留空 / [[File:Some image.svg|30px]]
| smallimageright = 可留空 / [[File:Some image.svg|30px]]
| smalltext  = 一段以較小字體顯示的文字
}}

請注意:「small」參數僅在條目、討論頁(Talk)和其他(Other)命名空間中有效。

在條目空間中,mbox模板的特殊用法,參見Template:Ambox/doc。

在非條目、非討論頁空間中,Ombox模板右側「快捷方式」的特殊用法,參見Template:Ombox/shortcut。

樣例

特定領域

方針

文件

其他

參見

  • {{mbox}} – 多命名空間消息框(自動檢測命名空間)
  • {{ambox}} – 條目消息框
  • {{tmbox}} – 討論頁消息框
  • {{ombox}} – 其他頁面消息框
  • {{fmbox}} – 頁眉和頁腳消息框
  • {{dmbox}} – 消歧義消息框