Difference between revisions of "Template:Navsidebar"
From Peter
(oversized) |
(apply category only in Main/Conservapedia/Fun) |
||
Line 11: | Line 11: | ||
{{{content}}} | {{{content}}} | ||
{{vte|{{{templatename}}}}} | {{vte|{{{templatename}}}}} | ||
− | |}<includeonly>{{#if: {{{category}}} | [[Category:{{{category}}}]] }}</includeonly><noinclude> | + | |}<includeonly>{{#if: {{{category}}} | {{#switch: {{NAMESPACE}} |
+ | | {{ns:0}} | ||
+ | | Conservapedia | ||
+ | | Fun = [[Category:{{{category}}}]] | ||
+ | | | ||
+ | }} }}</includeonly><noinclude> | ||
+ | {{doc}} | ||
+ | </noinclude> |
Revision as of 01:36, 5 August 2011
{{{title}}}
[[{{{name}}}|{{{name}}}]] |
[[File:{{{icon}}}|100px]] |
{{{title2}}} |
{{{content}}} [[Template:{{{templatename}}}|v]] - [[Template talk:{{{templatename}}}|t]] - [{{fullurl:Template:{{{templatename}}}|action=edit}} e]
|
Usage
Header and 1st content section:
{{Navsidebar |title = <!-- Title/description of the section that will appear at the top --> |name = <!-- Main name of the navigation bar, e.g., religion, science, pseudoscience etc. --> |namesize = <!-- Override for the font size of the name. Default is 5. Increase is name is short, decrease is long.--> |name2 = <!-- Override for where the "name" link will direct to. Default is to just link to "name". --> |title2 = <!-- Title of the first content section --> |icon = <!-- Filename of the icon used --> |barcolor = <!-- Color on the bars; should be the same as the icon --> |bgcolor = <!-- Background color; should be a darker version of the icon's color. --> |textcolor = <!-- Text colour, either black or white --> <includeonly> |category = <!-- Category that will be included with the template (leave blank if no category desired) --> </includeonly> |templatename = <!-- The name of the template, used for vte. Automatically selects template space. --> |content = <!-- Content of the first section. Use a bullet (*) list and/or {{randomarticles|CATEGORY|#}}; make sure total number of articles is 12 or less. Use one {{Navsidebar2}} (or more than one) here to add another bar and content section. --> }}<noinclude>[[Category:Sidebar navigation templates]]{{DEFAULTSORT:{{PAGENAME}}}}</noinclude>
Additional content sections:
{{Navsidebar2 |title = <!-- Title of the content section --> |barcolor = <!-- Color on the bars; should be the same as the icon --> |bgcolor = <!-- Background color; should be a darker version of the icon's color. --> |textcolor = <!-- Text colour, usually either black or white (note the contrast with the background) --> |content = <!-- Content of the first section. Use a bullet (*) list and/or {{randomarticles|CATEGORY|#}}; make sure total number of articles is 12 or less. --> }}