个人工具

模板:Quarter

出自Meshal Lite

(修订版本间的差异)
跳转到: 导航, 搜索
第8行: 第8行:
 
|file=file
 
|file=file
 
|sys=sys
 
|sys=sys
|#default=info}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}}
+
|tpl=tpl
 +
|#default=sys}}{{#vardefine: contentTextColor|{{#switch: {{{2|{{{preset|}}}}}}
 
|quest=inherit
 
|quest=inherit
 
|info=inherit
 
|info=inherit
第17行: 第18行:
 
|file=inherit
 
|file=inherit
 
|sys=inherit
 
|sys=inherit
 +
|tpl=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)
第26行: 第28行:
 
|file=rgb(245, 245, 245)
 
|file=rgb(245, 245, 245)
 
|sys=rgb(245, 245, 245)
 
|sys=rgb(245, 245, 245)
 +
|tpl=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)
第35行: 第38行:
 
|file=rgb(222, 222, 222)
 
|file=rgb(222, 222, 222)
 
|sys=rgb(222, 222, 222)
 
|sys=rgb(222, 222, 222)
 +
|tpl=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日 (一) 14:27所做的修订版本

加入一段含有图标样式的文本块,它会以卡片的形式呈现。

1 或 text

这段文字的具体内容

2 或 preset

这段文字的预设配色,决定了这个段落的配色和图标(会被contentBgColorborderColorcontentTextColor覆盖)

tip

位于文本快右上角的提示文字,留空则不显示。

contentTextColor

正文区的文本颜色。

  • 默认为inherit
contentBgColor

正文区的背景色。

  • 默认为rgb(242,242,242)
borderColor

卡片的边框颜色。

  • 默认为rgb(116,125,130)
contentStyle

正文区追加的css样式,可自定义

indent

这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。

  • 默认为0
{{quarter
|text=正文……
|preset=样式……
}}