模板:Quarter
出自Meshal Lite
(修订版本间的差异)
第7行: | 第7行: | ||
|treasure=treasure | |treasure=treasure | ||
|file=file | |file=file | ||
+ | |sys=system | ||
|#default=info}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}} | |#default=info}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}} | ||
|quest=inherit | |quest=inherit | ||
第15行: | 第16行: | ||
|treasure=inherit | |treasure=inherit | ||
|file=inherit | |file=inherit | ||
+ | |sys=inherit | ||
|#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{2|{{{preset|}}}}}} | |#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{2|{{{preset|}}}}}} | ||
|quest=rgb(240, 243, 246) | |quest=rgb(240, 243, 246) | ||
第23行: | 第25行: | ||
|treasure=rgb(227,231,244) | |treasure=rgb(227,231,244) | ||
|file=rgb(245, 245, 245) | |file=rgb(245, 245, 245) | ||
+ | |sys=rgb(245, 245, 245) | ||
|#default=rgb(242,242,242)}}}}{{#vardefine: borderColor|{{#switch: {{{2|{{{preset|}}}}}} | |#default=rgb(242,242,242)}}}}{{#vardefine: borderColor|{{#switch: {{{2|{{{preset|}}}}}} | ||
|quest=rgb(228, 236, 242) | |quest=rgb(228, 236, 242) | ||
第31行: | 第34行: | ||
|treasure=rgb(82,83,136) | |treasure=rgb(82,83,136) | ||
|file=rgb(222, 222, 222) | |file=rgb(222, 222, 222) | ||
+ | |sys=rgb(222, 222, 222) | ||
|#default=rgb(116,125,130)}}}}<div class="quarter" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{borderColor |{{#var: borderColor}}}}};width: calc(100% - 1em - {{{indent|0}}}em); margin-left: calc(.5em + {{{indent|0}}}em);"> | |#default=rgb(116,125,130)}}}}<div class="quarter" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{borderColor |{{#var: borderColor}}}}};width: calc(100% - 1em - {{{indent|0}}}em); margin-left: calc(.5em + {{{indent|0}}}em);"> | ||
{|width=100% | {|width=100% |
在2018年4月2日 (一) 05:08所做的修订版本
加入一段含有图标样式的文本块,它会以卡片的形式呈现。
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=样式……
}}