• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:Sidebar with collapsible lists

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
  • 查
  • 论
  • 编
模板文档[查看] [编辑] [历史] [清除缓存]
Warning此Template被引用於約9,700個頁面。
為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的-{zh-hant:使用者頁面;zh-hans:用户页}-上測試。
測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。
模板引用數量會自動更新。
🪧此模板使用Lua语言:
  • Module:Sidebar

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

目录

  • 1 用法
  • 2 其他折叠列表相关参数
  • 3 处理长链接
  • 4 參見

用法

{{{pretitle}}}
{{{title}}}
{{{image}}}
{{{heading1}}}
{{{list1title}}}
{{{list1}}}
{{{heading2}}}
{{{list2title}}}
{{{list2}}}
{{{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是除方括号外的链接文字。

參見

  • {{Sidebar}}
  • {{Collapsible list}}
  • {{Collapsible lists option}}
  • {{Navbox with collapsible groups}}
上述文档嵌入自模板:Sidebar with collapsible lists/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:Sidebar_with_collapsible_lists&oldid=46759”
分类:​
  • Name參數和實際不同的導航框
  • 含有受损文件链接的页面
  • Lua模板
  • 维基百科元模板
  • 側面模板
  • 摺疊模板
  • 導航模板
最后编辑于2021年6月17日 (星期四) 02:16

语言

    此页面在其他语言不可用。

    戏曲百科
    • 本页面最后编辑于2021年6月17日 (星期四) 02:16。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版