Template:Sidebar

From Wiki - Scioly.org
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]
For more information on this template, see The English Wikipedia's documentation on the Sidebar template.

The Sidebar template is used to generate a sidebar on the right side of a page, similar to an infobox. This template is considered a metatemplate - that is, it is mainly used to generate other templates instead of being used on its own. All parameters are optional; the template can be used with as few or as many as is desired.

Parameters

Content

name - the name of the template, found after "Template:" at the top of the page. Used with the bottom navbar (V·T·E)
outertitle - used if a title above the sidebar is desired
pretitle - places a line of text above the title of the sidebar
title - the title of the sidebar
topimage - places an image above title
topcaption - adds a caption to topimage
image - places an image below title but above heading1
above - adds text above the first heading, but below title
heading<n> - adds section headings
content<n> - adds section content
below - adds text below the last bit of content

Appearance

<parameter>style - alters the CSS styling of the specified parameter (e.g. titlestyle); if no parameter is specified (or if bodystyle is used), the style will apply to the entire sidebar
<parameter>class - applies a class to the specified parameter (e.g. titleclass); if no parameter is specified (or if bodyclass is used), the class will apply to the entire sidebar
navbar - when set to "off", will disable the bottom navbar (V·T·E)
navbarfontstyle - adjusts the navbar's font style
cellspacing and cellpadding - adjust the sidebar's spacing and padding between sections

Miscellaneous

child - when set to "yes", allows for one sidebar to be embedded into another creating subsections

Usage

Code Result
{{Sidebar
|name=Sidebar
|outertitle=Outer Title
|pretitle=Pretitle
|title=Title
|topimage=[[File:SciolyOrgLogoBlack.png|200px]]
|topcaption=Top Caption and Top Image
|image=[[File:SOINCLogoGreen.png|200px]]
|above=Above
|heading1=Heading 1
|content1=Content 1
|heading2=Heading 2
|content2=Content 2
|below=Below
}}
{{Sidebar
| name = SO Sidebar
| pretitle = Introduction to
| image = [[File:SOINCLogoGreen-Plain.png|200px]]
| headingstyle = 
| contentclass = hlist
| heading1 = General
| content1 = 
* [[:Category:Divisions|Divisions]]
* [[National Science Olympiad History|History]]
* [[Rules Manual]]
* [[Scoring]]
** [[:Category:Scoring Systems|scoring systems]]
* [[Significant Figures]]
* [[Test Taking Skills]]
* [[Trial Events]]
| heading2 = Event Tools
| content2 = 
* [[Binders]]
* [[Calculators]]
* [[Field Guides]]
* [[Microscope]]
* [[Note Sheets]]
* [[Safety Glasses]]
| heading3 = Preparing to Compete
| content3 = 
* [[Starting A Science Olympiad Team]]
* [[How to Write a Practice Test]]
* [[Preparing for Competition]]
}}
{{Sidebar
| name = SO Sidebar
| pretitle = Introduction to
| image = [[File:SOINCLogoGreen-Plain.png|200px]]
| contentclass = hlist
| heading1 = General
| content1 = 
* [[:Category:Divisions|Divisions]]
* [[National Science Olympiad History|History]]
* [[Rules Manual]]
* [[Scoring]]
** [[:Category:Scoring Systems|scoring systems]]
* [[Significant Figures]]
* [[Test Taking Skills]]
* [[Trial Events]]
| heading2 = Event Tools
| content2 = {{Sidebar|child=yes
|heading1= Resources
|content1=
* [[Binders]]
* [[Field Guides]]
* [[Note Sheets]]
|heading2= Tools
|content2= 
* [[Calculators]]
* [[Microscope]]
* [[Safety Glasses]]
}}
| heading3 = Preparing to Compete
| content3 = 
* [[Starting A Science Olympiad Team]]
* [[How to Write a Practice Test]]
* [[Preparing for Competition]]
}}