跳至內容

模板:Imbox/doc

勤求古訓,博采眾方
消息框模板

{{Imbox}}(Image message box,圖片信息框)用於文件描述頁的消息框模板。該模板與 {{Ambox}} 幾乎相同,使用同樣的參數。

常用參數

參數 說明
type speedy / delete / content / style / notice / move / protection / license / featured
image 自定義圖標(none 則不顯示圖片)
imageright 右側圖片
style 整個信息框的 CSS 樣式
textstyle 文字單元格的 CSS 樣式
text 消息正文

type 類型

以下示例使用不同的 type 參數及對應的預設圖片:

特殊設定

參數說明

{{imbox
| type  = speedy / delete / content / style / notice / move / protection / license / featured
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS 取值
| textstyle = CSS 取值
| text  = 消息正文
}}

技術細節

如需在 text 參數中使用特殊字符:

{{imbox
| text  = 
等号 = 与前后大括号 { } 可以正常使用。
但管道符 {{!}} 与两个后大括号 <nowiki>}}</nowiki> 不能直接使用。
同时使用需加 nowiki 标记 <nowiki>|}}</nowiki>}}

此模板使用 CSS 類確定顯示風格。內部使用 HTML 表格標記,這是元模板常見做法。

參見

  • {{Ambox}} — 條目消息框
  • {{Tmbox}} — 討論頁消息框
  • {{Cmbox}} — 分類消息框
  • {{Ombox}} — 其他頁面消息框
  • {{Fmbox}} — 頁眉和頁腳消息框
  • {{Mbox}} — 自動檢測命名空間