模板:Mbox/doc
此模板基於以下Lua語言模塊編寫:
本模板使用以下模板樣式:
{{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。
樣例
type=speedy-請求快速刪除,如 {{delete}}。
type=move-合併、拆分及跨維基提議,如 {{split}} 與 {{splitsection}}。
type=protection-頁面保護,如 {{Protected}}。
特定領域
方針
type=policy-通用方針。
type=guideline-專用方針。
type=rule-一般方針。
type=draft-草稿。
文件
type=license-文件許可証,需要搭配相應的class=使用;參見{{Style formatting license template}}。
type=license、class=license-pd-公有領域許可証。
type=license、class=license-cc-知識共享許可証。
type=license、class=license-free-自由許可証。
type=license、class=license-nonfree-非自由文件版權理據。
type=license、class=license-other-其他版權理據。
其他
type=featured-優秀內容(用於優秀文件頁面、優秀條目討論頁)。