Template:Sidebar with collapsible lists/doc: Difference between revisions
Appearance
Unlink imported Wikipedia interwiki documentation links |
Remove unused Wikipedia category assignments |
||
| Line 105: | Line 105: | ||
<includeonly>{{#ifeq:{{PAGENAME}}|Sidebar with collapsible lists| | <includeonly>{{#ifeq:{{PAGENAME}}|Sidebar with collapsible lists| | ||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 14:41, 16 September 2026
| icon | This is a documentation subpage for Template:Sidebar with collapsible lists It may contain usage information, categories and other content that is not part of the original template page. |
| Warning | This template is used on approximately 84,000 pages and changes may be widely noticed. Test changes in the your own user subpage. Consider discussing changes on the talk page before implementing them. |
| File:Handheld devices no.svg | This template does not display in the mobile view of Vrienden Universe; it is desktop only. See Template:Navbox visibility for a brief explanation. |
| File:Lua-Logo.svg | This template uses Lua: |
{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists in addition to Sidebar's content parameters.
Usage
| {{{pretitle}}} |
| {{{title}}} |
|---|
| {{{image}}} |
| {{{above}}} |
| {{{heading1}}} |
| {{{headingN}}} |
| {{{contentN}}} |
| {{{below}}} |
Parameters with infrequent use omitted.
<syntaxhighlight lang="wikitext">
</syntaxhighlight>
Parameters
This template takes all {{sidebar}} parameters. In addition:
|listntitle=- The displayed title of the collapsible listn.
|listn=- The contents of the collapsible listn.
|listnclass=- A class can be added to target a specific list either with TemplateStyles or microformats. See Template:Sidebar § Classes.
- In the context of TemplateStyles, specific list contents can be targeted like so:
.templateclass .listnclass .sidebar-list-titlefor a specific list title and.templateclass .listnclass .sidebar-listfor 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=- Set to anything (though
|centered list titles=yor|centered list titles=yesare 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").
Handling long links
See Template:Sidebar § Handling long links.
TemplateStyles
The classes available for styling, besides those listed in Template:Sidebar § TemplateStyles, are:
.sidebar-collapse- The top-level {{sidebar with collapsible lists}} class.
.sidebar-list- The class is a container when either
|listntitle=or|listn=is provided in {{sidebar with collapsible lists}}. .sidebar-list-title- The class associated with a
|listntitle=. Every list title will have this class. Use the|centered list titles=to center text instead of adding CSS here. .sidebar-list-content- The class associated with a
|listn=. Every list content will have this class.
Deprecated parameters
These parameters are deprecated for the same reason as the style parameters in {{Sidebar}} template.
- listtitlestyle and liststyle
- These are the equivalent of, respectively, {{Collapsible list}}'s titlestyle and liststyle parameters.
- listframestyle
- Sets the framestyle (see {{Collapsible list}}) for the lists.
- listNframestyle
- Sets the framestyle for listN, overriding listframestyle.
- listNtitlestyle
- Sets the titlestyle for listN, overriding listtitlestyle above.
- listNstyle
- Sets the liststyle for listN, overriding liststyle above.
See also
- Last pre-Lua version
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- UBLIST, for help in using unbulleted lists in fields.