Template:Sidebar/doc

This template is a metatemplate for the creation of sidebar templates, i.e. boxes that are vertically-aligned navigation templates. Sidebars, like infoboxes, are usually positioned on the right-hand side of a page.

Sidebar with collapsible lists is a version of Sidebar that adds collapsibility to its sections, i.e. the means to show or hide sections by clicking links beside their headings.

Usage
(parameters with infrequent use omitted) 

Parameters
No parameters are mandatory, but if the navbar links along the bottom of a  are to function correctly (unless their appearance is suppressed; see the navbar parameter below), the parameter name needs to be set (to the name of the sidebar's page). (This does not apply if the Lua module that produces, Module:Sidebar, is being used directly.)

Handling long links
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, where longlinkname is the long link without its square brackets.

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

Embedding
One sidebar template can be embedded into another using the child parameter. This feature can be used to create a modular sidebar, or to create more well-defined and logical sections.



Note in the examples above that the child sidebar is placed in a content field, not a heading field. Notice also that the section subheadings do not appear in bold if this is not explicitly specified. To obtain bold section headings, place the child sidebar in a heading field, using either:



or:



Note that omitting the title parameter and not including any text preceding the embedded sidebar may result in the creation of gaps by spurious blank rows.

Full blank syntax
(omitting heading4/content4 to penultimate heading/content parameters)



Supplementary documentation
Supplementary related documentation (concerning navbar use within a sidebar) is at Template:Navbar/doc.