Template:Navsidebar: Difference between revisions

From LoadingReadyWiki
Jump to navigationJump to search
Elah (talk | contribs)
Created page with "{{Navsidebar |title = <!-- Title/description of the section that will appear at the top --> |name = <!-- Main name of the navigation bar, e.g., religion, scienc..."
 
Elah (talk | contribs)
No edit summary
Line 1: Line 1:
{{Navsidebar
{| class="infobox" cellpadding="1" cellspacing="0" style="float: right; margin: 0 0 0.5em 0.5em; text-align:left; border: 1px solid {{{barcolor}}}; width:150px;"
|title        = <!-- Title/description of the section that will appear at the top -->
| style="font-size: 95%; text-align:center; color:{{{textcolor}}}; background-color:{{{barcolor}}}" | '''{{{title}}}'''
|name        = <!-- Main name of the navigation bar, e.g., religion, science, pseudoscience etc. -->
[[{{{name2|{{{name}}}}}}|<font size={{{namesize|4}}} color={{{textcolor}}}>'''{{{name}}}'''</font>]]
|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". -->
| style="background-color:{{{bgcolor}}};" align="center"|[[File:{{{icon}}}|100px|link=:category:{{{category}}}]]
|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 -->
| style="font-size: 95%; color:{{{textcolor}}}; background-color:{{{barcolor}}}; text-align:center;"|'''{{{title2}}}'''
|bgcolor      = <!-- Background color; should be a darker version of the icon's color. -->
|-
|textcolor    = <!-- Text colour, either black or white -->
| style="font-size: 95%; background-color:{{{bgcolor}}};"|
<includeonly>
{{{content}}}
|category    = <!-- Category that will be included with the template (leave blank if no category desired) -->
{{#if:{{{templatename|}}}|{{vte|{{{templatename}}}}}}}
</includeonly>
|}<includeonly>{{#if: {{{category}}} | {{#switch: {{NAMESPACE}}
|templatename = <!-- The name of the template, used for vte. Automatically selects template space.  -->
 
|content      = <!-- Content of the first section.
}} }}</includeonly><noinclude>{{doc}}</noinclude>
                    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>

Revision as of 01:08, 12 October 2015

{{{title}}}

[[{{{name}}}|{{{name}}}]]

[[File:{{{icon}}}|100px|link=:category:{{{category}}}]]
{{{title2}}}

{{{content}}}

Template:Doc