模板:Quarter
出自Meshal Lite
(修订版本间的差异)
第30行: | 第30行: | ||
{|width=100% | {|width=100% | ||
|style="font-size:1.5em; padding: 8px; width: 40px;"|{{symbol|{{#var:iconSymbol}}}} | |style="font-size:1.5em; padding: 8px; width: 40px;"|{{symbol|{{#var:iconSymbol}}}} | ||
− | |style="padding: .5em .5em .5em 0; color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"|{{{1|{{{text|}}}}}} | + | |class="quarterText" style="padding: .5em .5em .5em 0; color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"|{{{1|{{{text|}}}}}} |
|} | |} | ||
</div></includeonly><noinclude>[[category:模板]] | </div></includeonly><noinclude>[[category:模板]] |
在2018年3月29日 (四) 03:49所做的修订版本
加入一段含有图标样式的文本块,它会以卡片的形式呈现。
1 或 text
这段文字的具体内容
2 或 preset
这段文字的预设配色,决定了这个段落的配色和图标(会被contentBgColor
、borderColor
、contentTextColor
覆盖)
- 你可以参考帮助:Quarter模板样式预览查看预设样式。
contentTextColor
正文区的文本颜色。
- 默认为inherit
contentBgColor
正文区的背景色。
- 默认为rgb(242,242,242)
borderColor
卡片的边框颜色。
- 默认为rgb(116,125,130)
contentStyle
正文区追加的css样式,可自定义
indent
这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。
- 默认为0
{{quarter
|text=正文……
|preset=样式……
}}
|text=正文……
|preset=样式……
}}