Template:Sidebar with collapsible lists View history

Revision as of 20:54, 23 February 2016 by Kinematic (talk | contribs) (Created page with "{{ sidebar | wraplinks = {{{wraplinks|}}} | name = {{{name|{{PAGENAME}}}}} | class = {{{class|{{{bodyclass|}}}}}} | style = {{{style|{{{bo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Parameters with infrequent use omitted.

{{ sidebar with collapsible lists
| name           = {{subst:PAGENAME}}
| outertitle     = 
| topimage       = 
| pretitle       = 
| title          = 
| image          = 
| headingstyle   = 
| contentstyle   = 
| heading1       = 

| listtitlestyle = 
| liststyle      = 

| list1name      = 
| list1title     = 
| list1          = 

| list2name      = 
| list2title     = 
| list2          = 

| list15name      = 
| list15title     = 
| list15          = 

}}

The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are defined in the Sidebar template page.

The listtitlestyle and liststyle parameters are the equivalent of {{collapsible list}}'s titlestyle and liststyle parameters, while each listNtitle and listN parameter is the equivalent of {{collapsible list}}'s title and unnamed list parameter, respectively.

The listNname parameters are used to identify which, if any, list is to be shown expanded; see {{collapsible lists option}}.

Other collapsible list-related 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 {{Sidebar}}, {{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 becoming too wide. Use {{normalwraplink|longlinkname}}, where longlinkname is the long link without its square brackets.

Use the wraplinks parameter to turn link wrapping off for the whole template.

The above documentation is transcluded from Template:Sidebar with collapsible lists/doc.
Please add categories to the /doc subpage.
Subpages of this template.