模板:Message box/sandbox
這是Template:Message box(差異)的沙盒。 參見本模板的測試樣例。 |
本模板 {{message box}} 可產生一個訊息框,並可加入標題、圖片以及其他可調整的參數。
使用方式
編輯{{message box | backgroundcolor = | image = | heading = | message = }}
參數
編輯- backgroundcolor:文字訊息框的背景顏色(預設為維基百科外觀有所不同)
- image:圖片檔案名稱(請勿加入「Image:」或「File:」前綴)
- heading: 標題文字內容
- message: 訊息文字內容
範例
編輯- 範例,一般使用:
{{message box | heading = message box的抬头 | message = message box的正文 }}
message box的抬頭 message box的正文 |
- 範例,使用圖片及背景顏色參數:
{{message box | backgroundcolor = #fcffaa | image = Hex icon with star white.svg | heading = message box的抬头 | message = message box的正文 }}
message box的抬頭 message box的正文 |
參見
編輯上述文件嵌入自Template:Message box/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (編輯 | 差異)和測試樣例 (編輯)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |