Template:Navsidebar/sandbox
From RationalWiki
This is a completed template. To edit the template style, see test cases.
| This is a template
Navigation |
| See here for more |
|
Usage
Header section:
{{Navsidebar
|title = Title of the section that will appear in the bar
|name = Main name of the template
|title2 = Title of the first content section
|icon = Filename
|barcolor = Primary colour
|bgcolor = Secondary colour
|textcolor = Text colour, usually either black or white (note the contrast with the background)
|category = Category that will be included with the template
|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 /2 here if needed (see below)
}}
Optional parameter:
|namesize = Override for the font size of the name. Default is 5
|name2 = Direct to this article if the title is different. Leave blank to direct to "name".
Content section. Can add whatever you like under the "content" parameter:
{{Navsidebar2
|title = Title of the section that will appear in the bar
|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 section that will appear in the bar
|barcolor = Primary colour
|bgcolor = Secondary colour
|textcolor = Text colour, usually either black or white (note the contrast with the background)
|content =
<dpl>
category = Category dpl will search for
listseparators =,¶*[[%PAGE%¦%TITLE%]],
nottitlematch = {{PAGENAME}}
namespace =
randomcount = Number of articles
</dpl>
}}