模板:Fmbox
| 此模板使用Lua語言: |
| 本模板使用以下模板樣式: |
{{Fmbox}}(Footer & header message box,頁首與頁尾信息框)用於系統消息界面和編輯提示。它也可用於用戶頁的頁腳/頁眉框和編輯提示。本模板 100% 寬度顯示,與 {{Ambox}} 參數基本相同。
常用參數
| 參數 | 說明 |
|---|---|
type |
warning / editnotice / system
|
image |
自定義圖標(none 則不顯示圖片)
|
imageright |
右側圖片 |
id |
CSS id,用於 JavaScript 檢測 |
class |
CSS 類名,用於個性化皮膚 |
style |
整個信息框的 CSS 樣式 |
textstyle |
文字單元格的 CSS 樣式 |
text |
消息正文 |
type 類型
| type=warning 警告通知 |
| type=editnotice 編輯提示(透明背景) |
| type=system 系統消息(淺灰背景,默認) |
未指定 type 時默認為 system。
特殊設定
| 未指定 type 和 image(默認) |
| image=none — 不使用圖片,text 占用整個區域 |
參數說明
{{fmbox
| type = system / editnotice / warning
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| id = CSS id
| class = CSS 类名
| style = CSS 取值
| textstyle = CSS 取值
| text = 消息正文
}}
技術細節
如需在 text 參數中使用特殊字符:
{{fmbox
| text =
等号 = 与前后大括号 { } 可以正常使用。
但管道符 {{!}} 与两个后大括号 <nowiki>}}</nowiki> 不能直接使用。
}}
如果需要寬度不足 100% 的框,請使用 {{Ombox}}。