}} 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
{{
normalwraplink
|
longlinkname
}}
, where
|
longlinkname
is the long link without its square brackets.
Use the
|wraplinks=true
parameter to turn link wrapping off for the whole template.
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.
Top-level title
|
---|
First subsection
|
Heading 1.1
|
---|
Content 1.1
|
Second subsection
|
Heading 2.1
|
---|
Content 2.1
|
"below" text
|
|
{{Sidebar
| title = Top-level title
| content1 =
{{Sidebar |child=yes
| title = First subsection
| heading1 = Heading 1.1
| content1 = Content 1.1
}}
| content2 =
{{Sidebar |child=yes
| title = Second subsection
| heading1 = Heading 2.1
| content1 = Content 2.1
}}
| below = "below" text
}}
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:
Top-level title
|
---|
First subsection
|
---|
Heading 1.1
|
---|
Content 1.1
|
Second subsection
|
---|
Heading 2.1
|
---|
Content 2.1
|
"below" text
|
|
{{Sidebar
| title = Top-level title
| heading1 =
{{Sidebar |child=yes
| title = First subsection
| heading1 = Heading 1.1
| content1 = Content 1.1
}}
| heading2 =
{{Sidebar |child=yes
| title = Second subsection
| heading1 = Heading 2.1
| content1 = Content 2.1
}}
| below = "below" text
}}
or:
Top-level title
|
---|
First subsection
|
---|
Heading 1.1
|
---|
Content 1.1
|
Second subsection
|
---|
Heading 2.1
|
---|
Content 2.1
|
"below" text
|
|
{{Sidebar
| title = Top-level title
| heading1 = First subsection
{{Sidebar |child=yes
| heading1 = Heading 1.1
| content1 = Content 1.1
}}
| heading2 = Second subsection
{{Sidebar |child=yes
| heading1 = Heading 2.1
| content1 = Content 2.1
}}
| below = "below" text
}}
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.
{{{outertitle}}}
{{{topimage}}}
|
{{{pretitle}}}
|
{{{title}}}
|
---|
{{{image}}}
{{{caption}}}
|
{{{above}}}
|
{{{heading1}}}
|
---|
{{{content1}}}
|
{{{heading2}}}
|
---|
{{{content2}}}
|
{{{heading3}}}
|
---|
{{{content3}}}
|
…… etc ……
|
{{{heading35}}}
|
---|
{{{content35}}}
|
{{{below}}}
|
|
(omitting heading4/content4 to penultimate heading/content parameters)
{{Sidebar
| name = {{subst:PAGENAME}}
| class = <!-- or: | bodyclass = -->
| style = <!-- or: | bodystyle = -->
| width =
| cellspacing =
| cellpadding =
| wraplinks = <!-- "true" otherwise (default:) omit -->
| outertitleclass =
| outertitlestyle =
| outertitle =
| topimageclass =
| topimagestyle =
| topimage =
| topcaptionstyle =
| topcaption =
| pretitleclass =
| pretitlestyle =
| pretitle =
| titleclass =
| title =
| imageclass =
| imagestyle =
| image =
| captionstyle =
| caption =
| headingclass =
| headingstyle =
| contentclass =
| contentstyle =
| aboveclass =
| abovestyle =
| above =
| heading1style =
| heading1 =
| content1style =
| content1 =
| heading2style =
| heading2 =
| content2style =
| content2 =
| heading3style =
| heading3 =
| content3style =
| content3 =
<!-- etc, to: -->
| heading35style =
| heading35 =
| content35style =
| content35 =
| belowclass =
| belowstyle =
| below =
| navbarstyle = <!-- or: | tnavbarstyle = -->
| navbarfontstyle = <!-- or: | tnavbarfontstyle = -->
| navbar = <!-- or: | tnavbar = --> <!-- "off", "none", etc otherwise (default:) omit -->
}}
Supplementary related documentation (concerning