Template:Navbox: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary Tag: Manual revert |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- |
<onlyinclude><includeonly><!-- |
||
Please do not edit without discussion first as this is a VERY complex template. |
|||
⚫ | |||
⚫ | |||
--><templatestyles src="Navbox/styles.css" /><!-- |
|||
⚫ | |||
⚫ | |||
⚫ | |||
--> |
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
---Title and Navbar--- |
---Title and Navbar--- |
||
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- |
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- |
||
-->< |
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- |
||
-->style=" |
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- |
||
⚫ | |||
-->{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|<!-- |
|||
--> |
-->class="navbox-title"><!-- |
||
⚫ | |||
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- |
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- |
||
Line 22: | Line 24: | ||
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- |
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- |
||
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- |
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- |
||
-->{{#if:{{{name| |
--><span style="float:left;width:6em;text-align:left;">{{#if:{{{name|}}}|<!-- |
||
-->fontstyle={{{basestyle|}}};{{{titlestyle|}}}; |
-->{{Navbar|{{{name}}}|mini=1|fontstyle={{{basestyle|}}};{{{titlestyle|}}};<!-- |
||
-->background:none transparent;border:none;font-size:100%;}}|<!-- |
|||
--><span class="error" style=" |
--><span class="error" style="white-space:nowrap;">Error: No name provided</span>}}</span><!-- |
||
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- |
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- |
||
-->< |
--><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!-- |
||
{{{title}}}</ |
-->{{{title}}}</span></th></tr>}}<!-- |
||
Line 34: | Line 37: | ||
-->{{#if:{{{above|}}}|<!-- |
-->{{#if:{{{above|}}}|<!-- |
||
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- |
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- |
||
--><tr><td class="navbox-abovebelow |
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- |
||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">< |
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!-- |
||
{{{above}}}</div></td></tr>}}<!-- |
|||
Line 45: | Line 47: | ||
-->{{#if:{{{imageleft|}}}|<!-- |
-->{{#if:{{{imageleft|}}}|<!-- |
||
--><td |
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- |
||
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!-- |
-->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:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!-- |
||
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+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:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!-- |
||
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}>< |
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!-- |
||
{{{imageleft}}} |
-->{{{imageleft}}}</td>}}<!-- |
||
-->{{#if:{{{group1|}}}|< |
-->{{#if:{{{group1|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group1style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group1style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}"> |
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}"> |
||
{{{list1}}}</div></td><!-- |
{{{list1}}}</div></td><!-- |
||
-->{{#if:{{{image|}}}|<!-- |
-->{{#if:{{{image|}}}|<!-- |
||
--><td |
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!-- |
||
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!-- |
-->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:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!-- |
||
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+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:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!-- |
||
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}>< |
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!-- |
||
{{{image}}} |
-->{{{image}}}</td>}}<!-- |
||
--></tr>}}<!-- |
--></tr>}}<!-- |
||
Line 77: | Line 78: | ||
-->{{#if:{{{list2|}}}|<!-- |
-->{{#if:{{{list2|}}}|<!-- |
||
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!-- |
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!-- |
||
-->{{#if:{{{group2|}}}|< |
-->{{#if:{{{group2|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list2}}}</div></td></tr>}}<!-- |
{{{list2}}}</div></td></tr>}}<!-- |
||
Line 87: | Line 87: | ||
-->{{#if:{{{list3|}}}|<!-- |
-->{{#if:{{{list3|}}}|<!-- |
||
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!-- |
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!-- |
||
-->{{#if:{{{group3|}}}|< |
-->{{#if:{{{group3|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list3}}}</div></td></tr>}}<!-- |
{{{list3}}}</div></td></tr>}}<!-- |
||
Line 97: | Line 96: | ||
-->{{#if:{{{list4|}}}|<!-- |
-->{{#if:{{{list4|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group4|}}}|< |
-->{{#if:{{{group4|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list4}}}</div></td></tr>}}<!-- |
{{{list4}}}</div></td></tr>}}<!-- |
||
Line 107: | Line 105: | ||
-->{{#if:{{{list5|}}}|<!-- |
-->{{#if:{{{list5|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group5|}}}|< |
-->{{#if:{{{group5|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- |
||
-->class=" |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list5}}}</div></td></tr>}}<!-- |
{{{list5}}}</div></td></tr>}}<!-- |
||
Line 117: | Line 114: | ||
-->{{#if:{{{list6|}}}|<!-- |
-->{{#if:{{{list6|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group6|}}}|< |
-->{{#if:{{{group6|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list6}}}</div></td></tr>}}<!-- |
{{{list6}}}</div></td></tr>}}<!-- |
||
Line 127: | Line 123: | ||
-->{{#if:{{{list7|}}}|<!-- |
-->{{#if:{{{list7|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group7|}}}|< |
-->{{#if:{{{group7|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list7}}}</div></td></tr>}}<!-- |
{{{list7}}}</div></td></tr>}}<!-- |
||
Line 137: | Line 132: | ||
-->{{#if:{{{list8|}}}|<!-- |
-->{{#if:{{{list8|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group8|}}}|< |
-->{{#if:{{{group8|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list8}}}</div></td></tr>}}<!-- |
{{{list8}}}</div></td></tr>}}<!-- |
||
Line 147: | Line 141: | ||
-->{{#if:{{{list9|}}}|<!-- |
-->{{#if:{{{list9|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group9|}}}|< |
-->{{#if:{{{group9|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list9}}}</div></td></tr>}}<!-- |
{{{list9}}}</div></td></tr>}}<!-- |
||
Line 157: | Line 150: | ||
-->{{#if:{{{list10|}}}|<!-- |
-->{{#if:{{{list10|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group10|}}}|< |
-->{{#if:{{{group10|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list10}}}</div></td></tr>}}<!-- |
{{{list10}}}</div></td></tr>}}<!-- |
||
Line 167: | Line 159: | ||
-->{{#if:{{{list11|}}}|<!-- |
-->{{#if:{{{list11|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group11|}}}|< |
-->{{#if:{{{group11|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list11}}}</div></td></tr>}}<!-- |
{{{list11}}}</div></td></tr>}}<!-- |
||
Line 177: | Line 168: | ||
-->{{#if:{{{list12|}}}|<!-- |
-->{{#if:{{{list12|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group12|}}}|< |
-->{{#if:{{{group12|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list12}}}</div></td></tr>}}<!-- |
{{{list12}}}</div></td></tr>}}<!-- |
||
Line 187: | Line 177: | ||
-->{{#if:{{{list13|}}}|<!-- |
-->{{#if:{{{list13|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group13|}}}|< |
-->{{#if:{{{group13|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- |
||
-->class=" |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list13}}}</div></td></tr>}}<!-- |
{{{list13}}}</div></td></tr>}}<!-- |
||
Line 197: | Line 186: | ||
-->{{#if:{{{list14|}}}|<!-- |
-->{{#if:{{{list14|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group14|}}}|< |
-->{{#if:{{{group14|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list14}}}</div></td></tr>}}<!-- |
{{{list14}}}</div></td></tr>}}<!-- |
||
Line 207: | Line 195: | ||
-->{{#if:{{{list15|}}}|<!-- |
-->{{#if:{{{list15|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group15|}}}|< |
-->{{#if:{{{group15|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list15}}}</div></td></tr>}}<!-- |
{{{list15}}}</div></td></tr>}}<!-- |
||
Line 217: | Line 204: | ||
-->{{#if:{{{list16|}}}|<!-- |
-->{{#if:{{{list16|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group16|}}}|< |
-->{{#if:{{{group16|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list16}}}</div></td></tr>}}<!-- |
{{{list16}}}</div></td></tr>}}<!-- |
||
Line 227: | Line 213: | ||
-->{{#if:{{{list17|}}}|<!-- |
-->{{#if:{{{list17|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group17|}}}|< |
-->{{#if:{{{group17|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list17}}}</div></td></tr>}}<!-- |
{{{list17}}}</div></td></tr>}}<!-- |
||
Line 237: | Line 222: | ||
-->{{#if:{{{list18|}}}|<!-- |
-->{{#if:{{{list18|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group18|}}}|< |
-->{{#if:{{{group18|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list18}}}</div></td></tr>}}<!-- |
{{{list18}}}</div></td></tr>}}<!-- |
||
Line 247: | Line 231: | ||
-->{{#if:{{{list19|}}}|<!-- |
-->{{#if:{{{list19|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group19|}}}|< |
-->{{#if:{{{group19|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list19}}}</div></td></tr>}}<!-- |
{{{list19}}}</div></td></tr>}}<!-- |
||
Line 257: | Line 240: | ||
-->{{#if:{{{list20|}}}|<!-- |
-->{{#if:{{{list20|}}}|<!-- |
||
--><tr style="height:2px"><td></td></tr><tr><!-- |
--><tr style="height:2px"><td></td></tr><tr><!-- |
||
-->{{#if:{{{group20|}}}|< |
-->{{#if:{{{group20|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}"><!-- |
||
⚫ | |||
-->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}"><!-- |
|||
⚫ | |||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!-- |
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!-- |
||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}} |
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- |
||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
--><div style="padding:{{{listpadding|0em 0.25em}}}"> |
||
{{{list20}}}</div></td></tr>}}<!-- |
{{{list20}}}</div></td></tr>}}<!-- |
||
Line 269: | Line 251: | ||
-->{{#if:{{{below|}}}|<!-- |
-->{{#if:{{{below|}}}|<!-- |
||
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- |
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- |
||
--><tr><td class="navbox-abovebelow |
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- |
||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">< |
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{below}}}</td></tr>}}<!-- |
||
{{{below}}}</div></td></tr>}}<!-- |
|||
⚫ | |||
⚫ | |||
{{doc}} |
|||
⚫ | |||
[[Category:Navigation templates| ]] |
|||
⚫ | |||
{{Documentation}} |
Latest revision as of 02:32, 9 February 2024
Usage
Please remove the parameters that are left blank.
{{Navbox | name = {{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}} | title = | listclass = hlist | state = {{{state|}}} | above = | image = | group1 = | list1 = | group2 = | list2 = <!-- ... --> | group20 = | list20 = | below = }}
Parameter list
|
The navbox uses lowercase parameter names, as shown in the box (above). The required name and title will create a one-line box if other parameters are omitted.
Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):
name
– the name of the template.title
– text in the title bar, such as: [[Widget stuff]].listclass
– a CSS class for the list cells, usuallyhlist
for horizontal lists. Alternatively, use bodyclass for the whole box.state
– controls when a navbox is expanded or collapsed.titlestyle
– a CSS style for the title-bar, such as:background: gray;
groupstyle
– a CSS style for the group-cells, such as:background: #eee;
above
– text to appear above the group/list section (could be a list of overall wikilinks).image
– an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as[[File:XX.jpg|80px|link=|alt=]]
.imageleft
– an optional left-side image (code the same as the "image" parameter).groupn
– the left-side text before list-n (if group-n omitted, list-n starts at left of box).listn
– text listing wikilinks using a wikilist format.below
– optional text to appear below the group/list section.
Parameter descriptions
The following is a complete list of parameters for using {{Navbox}}
. In most cases, the only required parameters are name
, title
, and list1
.
Setup parameters
- name
- The name of the template, which is needed for the "V • T • E" ("View • Talk • Edit") links to work properly on all pages where the template is used. You can enter
{{subst:PAGENAME}}
for this value as a shortcut. The name parameter is only mandatory if atitle
is specified, and theborder
parameter is not set, and thenavbar
parameter is not used to disable the navbar. - state [
autocollapse, collapsed, expanded, plain, off
]
- Defaults to
autocollapse
. A navbox withautocollapse
will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. - If set to
collapsed
, the navbox will always start out in a collapsed state. - If set to
expanded
, the navbox will always start out in an expanded state. - If set to
plain
, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered (by using padding to offset the V • T • E links). - If set to
off
, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden.
- To show the box when standalone (non-included) but then auto-hide contents when in an article, put "expanded" inside
<noinclude|>
...</noinclude|>
tags. This setting will force the box visible when standalone (even when followed by other boxes), displaying "[hide]", but then it will auto-collapse the box when stacked inside an article:| state =
<noinclude|>
expanded</noinclude|>
- Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:
- In your intermediate template, create a parameter also named "state" as a pass-through like this:
| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}
- The
<includeonly>
|
will make the template expanded when viewing the template page by itself.
- navbar
- If set to
plain
, the V • T • E links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Useoff
to remove the V • T • E links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired). It is highly recommended that one not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages. - border
See Also
[view | edit | purge]The above documentation is transcluded from Template:Navbox/doc.