「Template:Tipbox/doc」:修訂間差異
無編輯摘要 |
無編輯摘要 |
||
行 4: | 行 4: | ||
! 参数 !! 说明 !! 填写内容 !! 必填/选填 | ! 参数 !! 说明 !! 填写内容 !! 必填/选填 | ||
|- | |- | ||
| | | content || 提示框中内容 || 文字或 html 标签 || '''必填''' | ||
|- | |- | ||
| | | style || 提示框样式 || css || 选填 | ||
|} | |} | ||
以下为使用例。 | 以下为使用例。 | ||
行 13: | 行 13: | ||
! 代码 !! 实际效果 | ! 代码 !! 实际效果 | ||
|- | |- | ||
| <code><nowiki>{{ tipbox | 我是内容 }}</nowiki></code> | | <code><nowiki>{{ tipbox | content = 我是内容 }}</nowiki></code> | ||
| {{ tipbox | 我是内容 }} | | {{ tipbox | content = 我是内容 }} | ||
|- | |- | ||
| <code><nowiki>{{ tipbox | 啊这 | width: 100px; color: Orange }}</nowiki></code> | | <code><nowiki>{{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}</nowiki></code> | ||
| {{ tipbox | 啊这 | width: 100px; color: Orange }} | | {{ tipbox | content = 啊这 | style = width: 100px; color: Orange }} | ||
|} | |} | ||
<noinclude>[[分类:模板说明]]</noinclude> | <noinclude>[[分类:模板说明]]</noinclude> |
於 2020年8月13日 (四) 02:13 的修訂
該模板為所有頁面提示框的元模板。該模板包含了原始的提示框樣式,並可以完全自定義其樣式。
參數 | 說明 | 填寫內容 | 必填/選填 |
---|---|---|---|
content | 提示框中內容 | 文字或 html 標籤 | 必填 |
style | 提示框樣式 | css | 選填 |
以下為使用例。
代碼 | 實際效果 |
---|---|
{{ tipbox | content = 我是内容 }}
|
我是內容
|
{{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}
|
啊這
|