Difference between revisions of "Template:Navbox"
From EVE University Wiki
m (Move CSS cal to start of template.) |
|||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <!-- | + | {{NavboxCSS}}<!-- |
+ | -->{{#switch:{{{border|{{{1|}}}}}} | ||
+ | |subgroup | ||
+ | |child=</div> | ||
+ | |none= | ||
+ | |#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!-- | ||
+ | -->style="width: 100%; {{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | ||
− | + | --><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- | |
− | + | -->#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | |
− | + | -->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!-- | |
− | + | -->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};" data-expandtext="show" data-collapsetext="hide"><!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | --><table cellspacing="0" class="nowraplinks | ||
− | --> | ||
− | -->subgroup|child|none=navbox-subgroup" style=" | ||
− | -->#default= | ||
---Title and Navbar--- | ---Title and Navbar--- | ||
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | -->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | ||
− | -->< | + | --><td class="navbox" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- |
− | + | --><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- | |
− | + | -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!-- | |
− | + | -->class="navbox-title"><!-- | |
− | -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}><!-- | ||
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- | -->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- | ||
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- | -->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- | ||
− | -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|< | + | -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}|<!-- |
− | -->{{#ifeq:{{{state|}}}|plain||< | + | -->{{#ifeq:{{{state|}}}|plain||<div style="float:left;width:6em;"> </div>}}}}|<!-- |
− | --> | + | --><div style="float:left;width:6em;text-align:left;"><!-- |
− | + | -->{{Navbar|{{{name}}}|mini=1|fontstyle={{{basestyle|}}};{{{titlestyle|}}};background:none transparent;border:none;font-size:100%;}}<!-- | |
− | --> | + | --></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}}<!-- |
− | |||
− | -->< | + | --><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!-- |
− | {{{title}}}</ | + | -->{{{title}}}</span></th></tr>}}<!-- |
Line 46: | Line 35: | ||
-->{{#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}}} | ||
Line 57: | Line 45: | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group1}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group1}}}</ | + | -->{{#if:{{{groupwidth|}}}|width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!-- |
− | -->{{#if:{{{groupwidth|}}} | + | -->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.5em}}}}}}">{{{list1}}}</div></td><!-- |
− | --><div style="padding:{{{list1padding|{{{listpadding|0em 0. | ||
− | {{{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 89: | Line 75: | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group2}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group2}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list2}}}</div></td></tr>}}<!-- |
− | {{{list2}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group3}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group3}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list3}}}</div></td></tr>}}<!-- |
− | {{{list3}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group4}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group4}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list4}}}</div></td></tr>}}<!-- |
− | {{{list4}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group5}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group5}}}</ | ||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- | ||
− | -->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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list5}}}</div></td></tr>}}<!-- |
− | {{{list5}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group6}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group6}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list6}}}</div></td></tr>}}<!-- |
− | {{{list6}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group7}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group7}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list7}}}</div></td></tr>}}<!-- |
− | {{{list7}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group8}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group8}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list8}}}</div></td></tr>}}<!-- |
− | {{{list8}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group9}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group9}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list9}}}</div></td></tr>}}<!-- |
− | {{{list9}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group10}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group10}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list10}}}</div></td></tr>}}<!-- |
− | {{{list10}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group11}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group11}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list11}}}</div></td></tr>}}<!-- |
− | {{{list11}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group12}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group12}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list12}}}</div></td></tr>}}<!-- |
− | {{{list12}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group13}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group13}}}</ | ||
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- | ||
− | -->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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list13}}}</div></td></tr>}}<!-- |
− | {{{list13}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group14}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group14}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list14}}}</div></td></tr>}}<!-- |
− | {{{list14}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group15}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group15}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list15}}}</div></td></tr>}}<!-- |
− | {{{list15}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group16}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group16}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list16}}}</div></td></tr>}}<!-- |
− | {{{list16}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group17}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group17}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list17}}}</div></td></tr>}}<!-- |
− | {{{list17}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group18}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group18}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list18}}}</div></td></tr>}}<!-- |
− | {{{list18}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group19}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group19}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list19}}}</div></td></tr>}}<!-- |
− | {{{list19}}}</div></td></tr>}}<!-- | ||
-->{{#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|}}}"><!-- |
− | + | -->{{{group20}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | |
− | -->{{{group20}}}</ | ||
-->{{#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. | + | --><div style="padding:{{{listpadding|0em 0.5em}}}">{{{list20}}}</div></td></tr>}}<!-- |
− | {{{list20}}}</div></td></tr>}}<!-- | ||
Line 281: | Line 229: | ||
-->{{#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}}} | ||
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!-- | --></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!-- | ||
− | + | --><noinclude> {{documentation}} <!-- Please add categories and interwikis to the bottom of sub-page /doc, not here --></noinclude> | |
− | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{documentation}} | ||
− | <!-- | ||
− | </noinclude> |
Latest revision as of 11:26, 1 August 2023
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template allows a navigational template to be set up relatively quickly by supplying it one or more lists of links.
- It comes equipped with default styles that should work for most navigational templates. Changing the default styles is not recommended, but is possible.
- Dependencies
-
- Uses
- {{NavboxCSS}}
- CSS class nowraplinks in Common.css
- {{Navbar}}
- Used by
- {{AnomicMissionNav}}
- {{COREClassNav}}
- {{EVEUniversityNav}}
- {{EWAR Links}}
- {{FactionsNav}}
- {{GasNebulaeNav}}
- {{GettingStartedNav}}
- {{Incursions sites horizontal}}
- {{Limited time events}}
- {{Mining Links}}
- {{Missionrelated}}
- {{UniWikiNav}}
- Syntax
{{Navbox |name = {{subst:PAGENAME}} |navbar = |title = |titleclass = |state = |bodyclass = |bodystyle = |innerstyle = |basestyle = |titlestyle = |groupstyle = |titlegroupstyle = |image = |imagestyle = |imageleft = |imageleftstyle = |above = |abovestyle = |liststyle = |group1 = |list1 = |group2 = |list2 = ... |group20 = |list20 = |below = |belowstyle = }}
- Parameters
- The only mandatory parameters are
title
andlist1
. Use all class and style parameters sparingly!- name
- The name of the template. Set to {{subst:PAGENAME}} by default. used for the (v)iew, (t)alk and (e)dit link options. May be omitted when navbar is set to plain.
- navbar
- Controls the presence of the (v)iew, (t)alk and (e)dit link options. Use
plain
to suppress. - title
- Text in the title bar.
- titleclass
- Applies an CSS
class
to the title bar. Use sparingly! - state = [autocollapse, collapsed, expanded, plain, off]
- The status of box expansion. Use sparingly!
- 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. - 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.
- Defaults to
- bodyclass
- Applies an CSS
class
to the entire navbox. Use sparingly! - titlestyle
- A CSS style for the title-bar, such as:
background:gray;
Use sparingly! - groupstyle
- A CSS style for the group-cells, such as:
background:#EEEEEE;
Use sparingly! - 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|90px|link=|alt=]]
. Use sparingly! - imageleft
- An optional left-side image (code the same as the "image" parameter). Use sparingly!
- above
- Text to appear above the group/list section (could be a list of overall wikilinks).
- groupn
- The left-side text before list-n (if group-n omitted, list-n starts at left of box).
- listn
- Text listing links. See Template:Flatlist.
- below
- Optional text to appear below the group/list section.
- Sample
{{Navbox |name = {{subst:PAGENAME}} |title = Navigational box title |above = Text written below the title and above the link lists. |group1 = Group One |list1 = {{flatlist| * [[EVE University]] * [[EVE University Management]] * [[EVE University Rules]] }} |group2 = Group Two |list2 = {{flatlist| # [[EVE University]] # [[EVE University Management]] # [[EVE University Rules]] }} |group20 = Group Twenty |list20 = {{flatlist| * [[EVE University]] ** [[EVE University Management]] ** [[EVE University Rules]] }} |below = Text written below the link lists. }}
- gives...
|
- See also