Template:Sidebar

From FlightGear wiki
Jump to navigation Jump to search
The following template description is not displayed when the template is inserted in an article.

Goal

This is a template used by right side navigation box templates used for navigating article series and otherwise related articles.

Usage

{{sidebar
| name         = {{subst:PAGENAME}}
| outertitle   = 
| topimage     = 
| pretitle     = 
| title        = 
| image        = 
| caption      = 
| above        = 

| headingstyle = 
| contentstyle = 

| heading1     = 
| content1     = 

| heading2     = 
| content2     = 

| heading3     = 
| content3     = 
...
| heading35    = 
| content35    = 

| below        = 

| notemplate   =
}}

The only two mandatory parameters are name (only if title is set) and content1.

Most commonly used parameters

name
Name of the template. This is needed to make the V•T•E links ("view", "talk" and "edit") work if title is set to something else than the name of the template using this template. Otherwise {{subst:PAGENAME}} can be used.
outertitle
An title to show above the navbox.
topimage
An image to use on the right side, in full wiki code, for example [[File:Thumbs up 32px.png|32px|link=|alt=]].
topcaption
Caption for the top image.
pretitle
Subtitle to be shown above the title, but below a top image.
title
Title to be shown below a top image.
image
Image to be shown below the title.
caption
Caption for an image.
above
Text to appear between the title title and the contents. Could for example be a list of wiki links.
heading(n)
0-35 section headings
content(n)
1-35 content sections. At least one content section must be used.
below
Optional text to show below the group/list section.
notemplate
This is a parameter for the navbar. If set to 1, then the navbar links will exclude the Template: part.

Example

{{sidebar
| name       = {{PAGENAME}}
| outertitle = {{{outertitle}}}
| topimage   = {{{topimage}}}
| topcaption = {{{topcaption}}}
| pretitle   = {{{pretitle}}}
| title      = {{{title}}}
| image      = {{{image}}}
| caption    = {{{caption}}}
| above      = {{{above}}}
| heading1   = {{{heading1}}}
| content1   = {{{content1}}}
| heading2   = {{{heading2}}}
| content2   = {{{content2}}}
| heading3   = {{{heading3}}}
| content3   = {{{content3}}}
| content4   = ...
| heading35  = {{{heading35}}}
| content35  = {{{content35}}}
| below      = {{{below}}}
}}

Related templates