Difference between revisions of "Template:Navbox"

From RimWorld Wiki
Jump to navigation Jump to search
m (1 revision: Full import of Wikia (that might sting a bit))
 
m (Reverted edits by Ceddin Deden (talk) to last revision by Ickputzdirwech)
Tag: Rollback
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="width:100%; margin-top:1em; border:1px solid #999; font-size:90%; text-align:center;"
+
<onlyinclude><includeonly><!--
|-
+
 
! style="background-color:#3366CC; color:#FFFFFF; padding:0.2em 0.5em;" nowrap="nowrap" | {{{header}}}
+
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table cellspacing="0" <!--
|-
+
-->class="navbox" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
| style="padding:0.2em 0.5em;" | {{{body}}}
+
 
|}<noinclude>
+
--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!--
{{documentation}}</noinclude>
+
-->plain|off=|#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
 +
-->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!--
 +
-->#default=navbox-inner" style="border-spacing:0;background:transparent;color:inherit}};{{{innerstyle|}}};" data-expandtext="Show" data-collapsetext="Hide"><!--
 +
 
 +
 
 +
---Title and Navbar---
 +
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
 +
--><th scope="row" class="navbox-group {{{titlegroupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}"><!--
 +
-->{{{titlegroup|}}}</th>}}<!--
 +
--><th scope="col" style="{{#if:{{{titlegroup|}}}|border-left:2px solid #fdfdfd;width:100%;}}{{{basestyle|}}};{{{titlestyle|}}};"<!--
 +
-->class="navbox-title" colspan="{{#expr:3{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-2}}}}"><!--
 +
 
 +
--><div class="{{{titleclass|}}}" style="font-size:200%;">
 +
{{{title}}}</div>
 +
</th><th><!--
 +
 
 +
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
 +
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
 +
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}|<!--
 +
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;">&nbsp;</span>}}}}|<!--
 +
-->{{#if:{{{name|}}}|{{Navbar|{{{name}}}|<!--
 +
-->fontstyle={{{basestyle|}}};{{{titlestyle|}}};background:none transparent;border:none;}}|<!--
 +
--><span class="error" style="float:left;white-space:nowrap;">Error: No name provided</span>}}<!--
 +
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}}}<!--
 +
--></th>
 +
 
 +
</tr>}}<!--
 +
 
 +
 
 +
---Above---
 +
-->{{#if:{{{above|}}}|<!--
 +
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
 +
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
 +
{{{above}}}</div></td></tr>}}<!--
 +
 
 +
 
 +
---Body---
 +
 
 +
---First group/list and images---
 +
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--
 +
 
 +
-->{{#if:{{{imageleft|}}}|<!--
 +
--><td class="navbox-image {{{imageclass|}}}" style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!--
 +
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 +
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 +
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 +
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 +
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><div>
 +
{{{imageleft}}}</div></td>}}<!--
 +
 
 +
-->{{#if:{{{group1|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group1style|}}}">{{{group1}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group1|}}}|2|3}}" style="{{#if:{{{group1|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">
 +
{{{list1}}}</div></td><!--
 +
 
 +
-->{{#if:{{{image|}}}|<!--
 +
--><td class="navbox-image {{{imageclass|}}}" style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!--
 +
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 +
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 +
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 +
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 +
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><div>
 +
{{{image}}}</div></td>}}<!--
 +
 
 +
--></tr>}}<!--
 +
 
 +
 
 +
---Remaining groups/lists---
 +
 
 +
-->{{#if:{{{list2|}}}|<!--
 +
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
-->{{#if:{{{group2|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}">{{{group2}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group2|}}}|2|3}}" style="{{#if:{{{group2|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list2}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list3|}}}|<!--
 +
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
-->{{#if:{{{group3|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}">{{{group3}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group3|}}}|2|3}}" style="{{#if:{{{group3|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list3}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list4|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group4|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}">{{{group4}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group4|}}}|2|3}}" style="{{#if:{{{group4|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list4}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list5|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group5|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}">{{{group5}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group5|}}}|2|3}}" style="{{#if:{{{group5|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
 +
-->class="{{#if:{{{list5class|}}}|{{{list5class|}}}|navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}} }}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list5}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list6|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group6|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}">{{{group6}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group6|}}}|2|3}}" style="{{#if:{{{group6|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list6}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list7|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group7|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}">{{{group7}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group7|}}}|2|3}}" style="{{#if:{{{group7|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list7}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list8|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group8|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}">{{{group8}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group8|}}}|2|3}}" style="{{#if:{{{group8|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list8}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list9|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group9|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}">{{{group9}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group9|}}}|2|3}}" style="{{#if:{{{group9|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list9}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list10|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group10|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}">{{{group10}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group10|}}}|2|3}}" style="{{#if:{{{group10|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list10}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list11|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group11|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}">{{{group11}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group11|}}}|2|3}}" style="{{#if:{{{group11|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list11}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list12|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group12|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}">{{{group12}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group12|}}}|2|3}}" style="{{#if:{{{group12|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list12}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list13|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group13|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}">{{{group13}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group13|}}}|2|3}}" style="{{#if:{{{group13|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
 +
-->class="{{#if:{{{list13class|}}}|{{{list13class|}}}|navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}} }}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list13}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list14|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group14|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}">{{{group14}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group14|}}}|2|3}}" style="{{#if:{{{group14|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list14}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list15|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group15|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}">{{{group15}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group15|}}}|2|3}}" style="{{#if:{{{group15|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list15}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list16|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group16|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}">{{{group16}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group16|}}}|2|3}}" style="{{#if:{{{group16|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list16}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list17|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group17|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}">{{{group17}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group17|}}}|2|3}}" style="{{#if:{{{group17|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list17}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list18|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group18|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}">{{{group18}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group18|}}}|2|3}}" style="{{#if:{{{group18|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list18}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list19|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group19|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}">{{{group19}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group19|}}}|2|3}}" style="{{#if:{{{group19|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list19}}}</div></td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list20|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group20|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
 +
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}">{{{group20}}}</th>}}<!--
 +
--><td colspan="{{#if:{{{group20|}}}|2|3}}" style="{{#if:{{{group20|}}}|text-align:left;border-left-width:2px;border-left-style:solid;}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list20}}}</div></td></tr>}}<!--
 +
 
 +
 
 +
---Below---
 +
-->{{#if:{{{below|}}}|<!--
 +
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow {{{belowclass|}}}" style="{{{basestyle|}}};{{{belowstyle|}}}" <!--
 +
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
 +
{{{below}}}</div></td></tr>}}<!--
 +
 
 +
 
 +
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
 +
 
 +
--></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>

Latest revision as of 18:59, 27 January 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

Meta-template for building navboxes. A navbox is a grouping of links used in multiple related articles to facilitate navigation between those articles.

Based on wikipedia:Template:Navbox, see documentation there.

Usage[edit]

Blank template with commonly use options:

{{Navbox
| name = Navbox/doc
| state = uncollapsed
| title = title
| group1 = Group1
| list1  = List1
| group2 = Group2
| list2  = List2
| group3 = Group3
| list3 = List3
| group4 = Group4
| list4 = List4
}}

Parameters[edit]

name
Template name.
title
text in the title bar.
state
controls when a navbox is expanded or collapsed. (use "mw-collapsed" to set the navbox to collapsed)
above/below
optional text to appear above or below the group/list section.
group(n)
listn(n)