模板:Block
出自Meshal Lite
(修订版本间的差异)
第3行: | 第3行: | ||
|info=inherit | |info=inherit | ||
|legend=inherit | |legend=inherit | ||
+ | |chronicle=inherit | ||
|datalist=inherit | |datalist=inherit | ||
|creature=inherit | |creature=inherit | ||
第17行: | 第18行: | ||
|info=rgb(254,249,227) | |info=rgb(254,249,227) | ||
|legend=rgb(238, 237, 233) | |legend=rgb(238, 237, 233) | ||
− | |datalist =rgb(255,255,255) | + | |chronicle=rgb(247, 246, 245) |
+ | |datalist=rgb(255,255,255) | ||
|maplocation=rgb(242,242,242) | |maplocation=rgb(242,242,242) | ||
|cmpgntale=rgb(224,212,197) | |cmpgntale=rgb(224,212,197) | ||
第27行: | 第29行: | ||
|info=rgb(255,255,255) | |info=rgb(255,255,255) | ||
|legend=rgb(74, 59, 45) | |legend=rgb(74, 59, 45) | ||
+ | |chronicle=initial | ||
|datalist=rgb(78, 81, 84) | |datalist=rgb(78, 81, 84) | ||
|creature=initial | |creature=initial | ||
第41行: | 第44行: | ||
|info=rgb(140,127,104) | |info=rgb(140,127,104) | ||
|legend=rgb(203, 198, 188) | |legend=rgb(203, 198, 188) | ||
+ | |chronicle=rgb(235, 230, 221) | ||
|datalist=rgb(242, 242, 242) | |datalist=rgb(242, 242, 242) | ||
|creature=rgba(216, 206, 193, .75) | |creature=rgba(216, 206, 193, .75) |
在2019年11月22日 (五) 16:07所做的修订版本
编辑简介内容 加入一段含有标题的文本块,它会以框体(标题和正文)的形式呈现。
使用
{{block|
|[1] title=
|[2] text=
|[3] preset= <rule | info | legend | datalist | feature | ability | item | code | ...>
|tip=
|headerTextColor=
|headerBgColor=
|contentTextColor=
|contentBgColor=
|headerStyle=
|contentStyle=
|indent=0
}}
|[1] title=
|[2] text=
|[3] preset= <rule | info | legend | datalist | feature | ability | item | code | ...>
|tip=
|headerTextColor=
|headerBgColor=
|contentTextColor=
|contentBgColor=
|headerStyle=
|contentStyle=
|indent=0
}}
1
title这段文字的标题,留空则不显示标题。
2
text这段文字的具体内容
3
preset这段文字的预设配色,决定了这个段落的配色(会被headerTextColor
、headerBgColor
、contentTextColor
、contentBgColor
覆盖)
- 你可以参考Template:Block/模板样式查看预设配色样式。
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