模板:Quarter
出自Meshal Lite
(修订版本间的差异)
小 (已保护“模板:Quarter”: 重要模板页面 ([edit=sysop] (无期) [move=sysop] (无期))) |
|||
第6行: | 第6行: | ||
|secret=secret | |secret=secret | ||
|treasure=treasure | |treasure=treasure | ||
+ | |template=template | ||
|#default=info}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}} | |#default=info}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}} | ||
|quest=inherit | |quest=inherit | ||
第13行: | 第14行: | ||
|secret=rgb(238, 238, 238) | |secret=rgb(238, 238, 238) | ||
|treasure=inherit | |treasure=inherit | ||
+ | |template=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) | ||
第20行: | 第22行: | ||
|secret=rgb(81, 64, 71) | |secret=rgb(81, 64, 71) | ||
|treasure=rgb(227,231,244) | |treasure=rgb(227,231,244) | ||
+ | |tenplate=inherit | ||
|#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) | ||
第27行: | 第30行: | ||
|secret=rgb(76, 61, 75) | |secret=rgb(76, 61, 75) | ||
|treasure=rgb(82,83,136) | |treasure=rgb(82,83,136) | ||
+ | |template=inherit | ||
|#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日 (一) 03:58所做的修订版本
加入一段含有图标样式的文本块,它会以卡片的形式呈现。
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=样式……
}}