This template is used on approximately 97,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
This template uses Lua: |
((Sidebar with collapsible lists)) is a version of ((Sidebar)) which offers collapsible lists in addition to Sidebar's content parameters.
(({pretitle))} |
(({title))} |
---|
(({image))} |
(({above))} |
(({heading1))} |
(({headingN))} |
(({contentN))} |
(({below))} |
Parameters with infrequent use omitted.
((Sidebar with collapsible lists
| name = ((subst:PAGENAME))
| pretitle =
| title =
| image =
| templatestyles =
| expanded = (({expanded|))}
| 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 =
))
This template takes all ((sidebar)) parameters. In addition:
|listntitle=
|listn=
|listnclass=
.templateclass .listnclass .sidebar-list-title
for a specific list title and .templateclass .listnclass .sidebar-list
for a specific list.|expanded=
and |listnname=
|expanded=
is used to indicate which (if any) list named |listnname=
is shown expanded when the template is first displayed; see ((Collapsible lists option)).|centered list titles=
|centered list titles=y
or |centered list titles=yes
are idiomatic) to make the sidebar list titles centered. This works around some not-great behavior in how centered text interacts with the collapsible toggle.A |listn=
without a |listntitle=
displays the default title ("List").
See Template:Sidebar#Handling long links.
The classes available for styling, besides those listed in Template:Sidebar#TemplateStyles, are:
.sidebar-collapse
.sidebar-list
|listntitle=
or |listn=
is provided in ((sidebar with collapsible lists))..sidebar-list-title
|listntitle=
. Every list title will have this class. Use the |centered list titles=
to center text instead of adding CSS here..sidebar-list-content
|listn=
. Every list content will have this class.These parameters are deprecated for the same reason as the style parameters in ((Sidebar)) template.