Jump to content

Template:Sidebar with collapsible lists/doc

From the Vrienden Universe, a fictional wiki
Revision as of 23:49, 26 September 2026 by VU-MaintenanceBot (talk | contribs) (Remove remaining unsupported template dependencies)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Sidebar with collapsible lists}} is a version of Template:Sidebar which offers collapsible lists in addition to Sidebar's content parameters.

Parameters with infrequent use omitted.

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Parameters

[edit source]

The base Sidebar template is not installed on this wiki; use the parameters documented below. This template takes all Template: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 the shared Sidebar parameter notes.
In the context of TemplateStyles, specific list contents can be targeted like so: .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 Template:Collapsible lists option.
|centered list titles=
Set to anything (though |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").

[edit source]

The base Sidebar template is not installed on this wiki; use the parameters documented below.

See the shared Sidebar parameter notes.

TemplateStyles

[edit source]

The classes available for styling, besides those listed in the shared Sidebar parameter notes, 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

[edit source]

The base Sidebar template is not installed on this wiki; use the parameters documented below. These parameters are deprecated for the same reason as the style parameters in Template: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

[edit source]