Template:Tipbox/doc:修订间差异

添加478字节 、​ 2020年8月13日 (星期四)
无编辑摘要
无编辑摘要
无编辑摘要
第1行: 第1行:
 该模板为所有页面提示框的元模板。该模板包含了原始的提示框样式,并可以完全自定义其样式。
 该模板为所有页面提示框的元模板。该模板包含了原始的提示框样式,并可以完全自定义其样式 。该模板同时也内置了部分固定样式模板以快速使用
{| class="wikitable" style="text-align:center;"
{| class="wikitable" style="text-align:center;"
|-
|-
第7行: 第7行:
|-
|-
| style || 提示框样式 || css || 选填
| style || 提示框样式 || css || 选填
|-
| template || 样式模板 || css || 选填
|}
|}
 以下为使用例。
 以下为使用例。
第18行: 第20行:
| <code><nowiki>{{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}</nowiki></code>
| <code><nowiki>{{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}</nowiki></code>
| {{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}
| {{ tipbox | content = 啊这 | style = width: 100px; color: Orange }}
|-
| <code><nowiki>{{ tipbox | content = 固定模板 | style = width: 200px; | template = blue }}</nowiki></code>
| {{ tipbox | content = 固定模板 | style = width: 200px; | template = blue }}
|}
|}
{{ tipbox | content = 啊这 | style = width: 100px; | template = blue }}
目前内置的固定样式模板如下。
{{ tipbox | content = 啊这 | style = width: 100px; | template = green }}
{{ tipbox | content = blue | style = width: auto; float: left; margin: 10px; | template = blue }}
{{ tipbox | content = 啊这 | style = width: 100px; | template = yellow }}
{{ tipbox | content = green | style = width: auto; float: left; margin: 10px; | template = green }}
{{ tipbox | content = 啊这 | style = width: 100px; | template = reminder }}
{{ tipbox | content = orange | style = width: auto; float: left; margin: 10px; | template = orange }}
{{ tipbox | content = 啊这 | style = width: 100px; | template = red }}
{{ tipbox | content = yellow | style = width: auto; float: left; margin: 10px; | template = yellow }}
{{ tipbox | content = red | style = width: auto; float: left; margin: 10px; | template = red }}
<noinclude>[[分类:模板说明]]</noinclude>
<noinclude>[[分类:模板说明]]</noinclude>
499

个编辑