Template:Sidebar: Difference between revisions
Jump to navigation
Jump to search
(Basic documentation; -cat) |
(Correct purpose) |
||
Line 386: | Line 386: | ||
</table><noinclude>{{Informative template |1= | </table><noinclude>{{Informative template |1= | ||
== Goal == | == Goal == | ||
This is a template used by | This is a template used by right side navigation box templates used for navigating article series and otherwise related articles. | ||
__TOC__ | __TOC__ | ||
== Usage == | == Usage == |
Revision as of 14:51, 2 November 2014
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 = }}
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.
Example
{{{topimage}}}
{{{topcaption}}} |
{{{pretitle}}} |
{{{title}}} |
---|
{{{image}}}
{{{caption}}} |
{{{above}}} |
{{{heading1}}} |
{{{content1}}} |
{{{heading2}}} |
{{{content2}}} |
{{{heading3}}} |
{{{content3}}} |
... |
{{{heading35}}} |
{{{content35}}} |
{{{below}}} |
{{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
- {{navbox}}
External links
- Template:Navbox/doc as of 4 April 2012 on English Wikipedia.