模板:Sidebar with collapsible lists

模板页面
文档图示 模板文档[查看] [编辑] [查看历史] [清除缓存]

模板链接:{{Sidebar with collapsible lists}}是融合模板链接:{{Sidebar}}与模板链接:{{collapsible list}}的特性,在内容中显示折叠显示的列表的边栏。

用法

省略不常用的参数。

{{Sidebar with collapsible lists
| name     = {{subst:PAGENAME}}
| pretitle = 
| title    = 
| image    = 
| expanded = {{{expanded|{{{1|}}}}}}

| headingstyle   = 
| listtitlestyle = 
| contentstyle   =   <!--(same as |liststyle = ...?)-->

| heading1   = 
| list1name  = 
| list1title = 
| list1      = 

| heading2   = 
| list2name  = 
| list2title = 
| list2      = 

<!-- ...... -->

| headingN =         <!--(Template:Sidebar's "headingN" and/or "contentN" parameters (where -->
| contentN =         <!-- N is a number) may be used to include uncollapsible lists/content)-->

<!-- ...... -->

| below = 

}}


其中listtitlestyle和liststyle参数等同于模板链接:{{collapsible list}}的titlestyle与liststyle参数,而listNtitle与listN参数等同模板链接:{{collapsible list}}的title和列表结构块。要生成列表结构,可以使用模板链接:{{DumbList}},或者手动添加。

listNname参数用于标示各个需要展开的列表,参见模板链接:{{collapsible lists option}}.

其他折叠列表相关参数

除上文外,还可以用下列折叠列表相关参数:

listframestyle
设置列表边框样式(参见模板链接:{{collapsible list}})
listNframestyle
设置listN的边框样式,替换listframestyle
listNtitlestyle
设置listN的标题样式,替换listtitlestyle
listNstyle
设置listN的背景样式,替换liststyle

处理长链接

就像在模板链接:{{Sidebar}}一样,模板链接:{{longlink}}也可以用来处理列表中需要换行的链接以防止边框变得太宽。输入{{longlink|longlinkname}}longlinkname是除方括号外的链接文字。

参见

上述文档内容嵌入自Template:Sidebar with collapsible lists/doc编辑 | 历史
编者可以在本模板的沙盒创建 | 镜像和测试样例创建页面进行实验。
请将模板自身所属的分类添加在文档中。本模板的子页面