个人工具

模板:Block

出自Meshal Lite

(修订版本间的差异)
跳转到: 导航, 搜索
第9行: 第9行:
 
|cmpgntale=inherit
 
|cmpgntale=inherit
 
|cmpgntip=inherit
 
|cmpgntip=inherit
 +
|code=rgb(255, 193, 7)
 
|op= inherit
 
|op= inherit
 
|#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}
 
|#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}
第17行: 第18行:
 
|cmpgntale=rgb(224,212,197)
 
|cmpgntale=rgb(224,212,197)
 
|cmpgntip=rgb(227,231,244)
 
|cmpgntip=rgb(227,231,244)
 +
|code=rgb(88, 91, 95)
 
|op=rgb(255,240,229)
 
|op=rgb(255,240,229)
 
|#default=rgb(242,242,242)}}}}{{#vardefine: headerTextColor|{{#switch: {{{3|{{{preset|rule}}}}}}
 
|#default=rgb(242,242,242)}}}}{{#vardefine: headerTextColor|{{#switch: {{{3|{{{preset|rule}}}}}}
第28行: 第30行:
 
|cmpgntale=rgb(255,255,255)
 
|cmpgntale=rgb(255,255,255)
 
|cmpgntip=rgb(255,255,255)
 
|cmpgntip=rgb(255,255,255)
 +
|code=rgb(255, 193, 7)
 
|op= rgb(255,255,255)
 
|op= rgb(255,255,255)
 
|#default=rgb(255,255,255)}}}}{{#vardefine: headerBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}|
 
|#default=rgb(255,255,255)}}}}{{#vardefine: headerBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}|
第40行: 第43行:
 
|cmpgntale=rgb(152,112,88)
 
|cmpgntale=rgb(152,112,88)
 
|cmpgntip=rgb(82,83,136)
 
|cmpgntip=rgb(82,83,136)
 +
|code=rgb(78, 81, 84)
 
|op=rgb(146,116,112)
 
|op=rgb(146,116,112)
 
|#default=rgb(116,125,130)}}}}{{#vardefine: containerStyle|{{#switch: {{{3|{{{preset|rule}}}}}}|
 
|#default=rgb(116,125,130)}}}}{{#vardefine: containerStyle|{{#switch: {{{3|{{{preset|rule}}}}}}|

在2019年1月2日 (三) 16:30所做的修订版本

加入一段含有标题的文本块,它会以框体(标题和正文)的形式呈现。

1 或 title

这段文字的标题,留空则不显示标题。

2 或 text

这段文字的具体内容

3 或 preset

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

tip

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

headerTextColor

标题区的文本颜色。

  • 默认为rgb(255,255,255)
headerBgColor

标题区的背景色。

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

正文区的文本颜色。

  • 默认为inherit
contentBgColor

正文区的背景色。

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

标题区追加的css样式,可自定义

contentStyle

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

indent

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

  • 默认为0
{{block
|title=标题……
|text=正文……
}}