Template: Sidebar with collapsible lists/doc
Template:Mbox Script error: No such module "High-use". Template:Template display Script error: No such module "Lua banner".
{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists as an alternative to Sidebar's content parameters.
Usage
Script error: No such module "Parameter names example". Parameters with infrequent use omitted.
<source lang="html" style="overflow:auto;"> Script error: No such module "Sidebar". </source>>
Parameters
The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are described at {{Sidebar}}. Other Template:Tlf parameters not shown here (e.g. navbar) may also be used.
- expanded <templatestyles src="Nobold/styles.css"/>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}}.
- listtitlestyle <templatestyles src="Nobold/styles.css"/>and liststyle
- These are the equivalent of, respectively, {{Collapsible list}}'s titlestyle and liststyle parameters.
Script error: No such module "Sidebar". Any listN used without an accompanying listNtitle is still presented as a collapsible list under Template:Tlf's default title ("List"); see example opposite. Template:Smaller
Other parameters
In addition to the above, the following collapsible list-related parameters are also available:
- 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.
Handling long links
As with the sidebar template, {{normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap, in order to prevent the sidebar from becoming too wide. Use Template:Tlx, where |longlinkname
is the long link without its square brackets.
Use the |wraplinks=true
parameter to turn link wrapping off for the whole template.
Examples
Examples of this template can be found by checking the template's backlinks with What links here.
See also
- Template:Diff
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- Wikipedia:UBLIST, for help in using unbulleted lists in fields.