模板:Sidebar with collapsible lists/doc
外观
| 此页面是Template:Sidebar with collapsible lists的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| 此模板文档被引用于约15,000个页面。 为了避免造成大规模的影响,所有对此模板文档的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板文档中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
| 此模板不能在维基百科的移动视图中显示,只能在桌面版显示。请阅读文档以获得解释。 |
| 此模板使用Lua语言: |
{{Sidebar with collapsible lists}}是融合{{Sidebar}}与{{collapsible list}}的特性,在内容中显示折叠显示的列表的边栏。
用法
[编辑]| {{{pretitle}}} |
| {{{title}}} |
|---|
| {{{image}}} |
| {{{heading1}}} |
| {{{heading2}}} |
| {{{below}}} |
省略不常用的参数。
{{Sidebar with collapsible lists
| name = {{subst:PAGENAME}}
| pretitle =
| title =
| image =
| expanded = {{{expanded|{{{1|}}}}}}
| headingstyle =
| listtitlestyle =
| liststyle =
| 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是除方括号外的链接文字。
参见
[编辑]