Template:Navsidebar
From RationalWiki
| {{{title}}}
[[{{{name}}}|{{{name}}}]] |
| [[File:{{{icon}}}|100px|link=:category:{{{category}}}]] |
| {{{title2}}} |
|
{{{content}}} |
Usage
Header section:
{{Navsidebar
|title = Title/description of the section that will appear at the top
|name = Main name of the navigation bar, e.g., religion, sciencem pseudoscience etc.
|title2 = Title of the first content section
|icon = Filename of the icon used
|barcolor = Primary colour
|bgcolor = Secondary colour
|textcolor = Text colour, usually either black or white (note the contrast with the background)
<includeonly>
|category = Category that will be included with the template (leave blank if no category desired)
</includeonly>
|templatename = Name of the template, used for vte. Automatically selects template space.
|content = Content of the first section
*List item one
*List item two
*Use internal wikilinks
*Can add a {{Navsidebar2}} here if needed (see below)
}}<noinclude>[[Category:Sidebar navigation templates]]{{DEFAULTSORT:{{PAGENAME}}}}</noinclude>
Optional parameters for Navsidebar:
|namesize = Override for the font size of the name. Default is 5.
|name2 = Override for where the "name" link will direct to. Default is to just link to "name".
Content section. Can add whatever you like under the "content" parameter:
{{Navsidebar2
|title = Title of the content section
|barcolor = Primary colour
|bgcolor = Secondary colour
|textcolor = Text colour, usually either black or white (note the contrast with the background)
|content =
*List item one
*List item two
*Use internal wikilinks
*Continue as needed
}}
Random section. Will return random article links based on dpl parameters below:
{{Navsidebar2
|title = Title of the content section
|barcolor = Primary colour
|bgcolor = Secondary colour
|textcolor = Text colour, usually either black or white (note the contrast with the background)
|content =
{{randomarticles|category|number}}
}}