In this article we are going to talk about Template:Sidebar with collapsible lists, a topic that has gained great relevance in recent years. Template:Sidebar with collapsible lists is a topic that has aroused the interest of people of all ages and backgrounds, since it has a direct impact on today's society. Over the years, Template:Sidebar with collapsible lists has generated debate and controversy among experts and fans, leading us to wonder what its true meaning is and what implications it has on our lives. In this article, we will explore Template:Sidebar with collapsible lists in depth and try to shed light on this exciting and relevant topic today.
| This template is used on approximately 101,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. 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. See Template:Navbox visibility for a brief 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.