模板:Sidebar
出自Meshal Lite
(修订版本间的差异)
第1行: | 第1行: | ||
− | <includeonly><div class="cardSide" style="float: {{{float|right}}}; width: {{{width|25%}}}; border-color: {{{headerBgColor|#999999}}}; background-color:{{{contentBgColor| | + | <includeonly><div class="cardSide" style="float: {{{float|right}}}; width: {{{width|25%}}}; border-color: {{{headerBgColor|#999999}}}; background-color:{{{contentBgColor|inherit}}}; color:{{{contentTextColor|inherit}}}; {{{contentStyle|}}}; {{#ifeq:{{{1|{{{title|}}}}}}||display:none;|}}"><div class="cardSideTitle" style="background-color:{{{headerBgColor|#999999}}}; color:{{{headerTextColor|#ffffff}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}</div> |
{{{2|{{{content|}}}}}}</div></includeonly><noinclude>{{tpl_helpdoc}}</noinclude> | {{{2|{{{content|}}}}}}</div></includeonly><noinclude>{{tpl_helpdoc}}</noinclude> |
在2019年11月24日 (日) 09:50所做的修订版本
编辑简介内容 加入一段含有标题的文本块,它会以边栏框体(标题和正文)的形式呈现。 编辑帮助内容
使用
{{cardSide|
|[1] title=
|[2] content=
|float=<left | right>
|width=25%
|headerBgColor=#999999
|headerTextColor=#ffffff
|contentBgColor=#ffffff
|contentTextColor=inherit
|headerStyle=
|contentStyle=
}}
|[1] title=
|[2] content=
|float=<left | right>
|width=25%
|headerBgColor=#999999
|headerTextColor=#ffffff
|contentBgColor=#ffffff
|contentTextColor=inherit
|headerStyle=
|contentStyle=
}}
1
title这块边栏的标题,留空则不显示标题。
2
content边栏中的具体内容。
float
边栏的位置,可填写left
或right
。
- 默认为
right
headerTextColor
标题区的文本颜色。
- 默认为
#ffffff
headerBgColor
标题区的背景颜色。
- 默认为
#999999
contentTextColor
内容区的文本颜色。
- 默认为
inherit
contentBgColor
内容区的背景颜色。
- 默认为
#ffffff
headerStyle
标题区追加的css样式,可自定义。
contentStyle
内容区追加的css样式,可自定义