个人工具
登录
查看源代码 - Meshal Lite
模板
讨论
查看源代码
历史
Search
导航
首页
游戏手册
资料库
角色卡
站点动态
当前事件
最近更改
随机页面
帮助
帮助索引
语法库
模板库
样本库
工具箱
链入页面
链出更改
特殊页面
查看源代码
出自Meshal Lite
对
模板:Block
的源代码
跳转到:
导航
,
搜索
<includeonly>{{#vardefine: indent|{{{indent|0}}}||0|{{{indent|0}}}}}{{#vardefine: contentTextColor|{{#switch: {{{3|{{{preset|rule}}}}}} |rule=inherit |info=inherit |legend=inherit |cmpgntale=inherit |cmpgntip=inherit |op= inherit |#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{3|{{{preset|rule}}}}}} |rule=rgb(242,242,242) |info=rgb(254,249,227) |legend=rgb(238, 237, 233) |cmpgntale=rgb(224,212,197) |cmpgntip=rgb(227,231,244) |op=rgb(255,240,229) |#default=rgb(242,242,242)}}}}{{#vardefine: headerTextColor|{{#switch: {{{3|{{{preset|rule}}}}}} |rule=rgb(255,255,255) |info=rgb(255,255,255) |legend=rgb(74, 59, 45) |cmpgntale=rgb(255,255,255) |cmpgntip=rgb(255,255,255) |op= rgb(255,255,255) |#default=rgb(255,255,255)}}}}{{#vardefine: headerBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}| |rule=rgb(116,125,130) |info=rgb(140,127,104) |legend=rgb(203, 198, 188) |cmpgntale=rgb(152,112,88) |cmpgntip=rgb(82,83,136) |op=rgb(146,116,112) |#default=rgb(116,125,130)}}}}<div class="block" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; width: calc(100% - {{#var:indent}}em); margin-left: {{#var:indent}}em;"><div class="blockTitle" style="background-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; color: {{{headerTextColor|{{#var: headerTextColor}}}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}</div> <div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> {{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]] 加入一段含有标题的文本块,它会以框体(标题和正文)的形式呈现。 {{block|1 或 title| 这段文字的标题,留空则不显示标题。 }} {{block|2 或 text| 这段文字的具体内容 }} {{block|3 或 preset| 这段文字的预设配色,决定了这个段落的配色(会被<code>headerTextColor</code>、<code>headerBgColor</code>、<code>contentTextColor</code>、<code>contentBgColor</code>覆盖) *你可以参考[[帮助:Block模板样式预览]]查看预设配色样式。 }} {{block|headerTextColor| 标题区的文本颜色。 *默认为<nowiki>rgb(255,255,255)</nowiki> }} {{block|headerBgColor| 标题区的背景色。 *默认为<nowiki>rgb(116,125,130)</nowiki> }} {{block|contentTextColor| 正文区的文本颜色。 *默认为<nowiki>inherit</nowiki> }} {{block|contentBgColor| 正文区的背景色。 *默认为<nowiki>rgb(242,242,242)</nowiki> }} {{block|headerStyle| 标题区追加的css样式,可自定义 }} {{block|contentStyle| 正文区追加的css样式,可自定义 }} {{block|indent| 这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。 *默认为0 }} <source lang="text"> {{block |title=标题…… |text=正文…… }} </source> </noinclude>
模板:Block
(
查看源码
)
模板:Block/desc
(
查看源码
)
模板:Block/help
(
查看源码
)
模板:Tpl
(
查看源码
)
模板:Tpl helpdoc
(
查看源码
)
返回到
模板:Block
。