Template:Navbox: Difference between revisions
From BoyWiki
No edit summary |
upgrade from last wikipedia before Lua version Tag: Reverted |
||
Line 3: | Line 3: | ||
Please do not edit without discussion first as this is a VERY complex template. | Please do not edit without discussion first as this is a VERY complex template. | ||
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table | -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table cellspacing="0" <!-- | ||
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}} | -->class="navbox" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | ||
--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!-- | |||
-->plain|off=|#default=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|}}};"><!-- | |||
---Title and Navbar--- | ---Title and Navbar--- | ||
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | -->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | ||
-->< | --><th scope="row" class="navbox-group {{{titlegroupclass|}}}" <!-- | ||
-->style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}"><!-- | |||
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} | -->{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|<!-- | ||
--><th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" 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|<span style="float:right;width:6em;"> </span>}}|<!-- | ||
-->{{#ifeq:{{{state|}}}|plain||< | -->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- | ||
--> | -->{{#if:{{{name|}}}|{{Navbar|{{{name}}}|mini=1|<!-- | ||
-->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;"> </span>}}}}<!-- | |||
--> | |||
--><div class="{{{titleclass|}}}" style="font-size:110%;"> | |||
{{{title}}}</div></th></tr>}}<!-- | |||
Line 36: | Line 36: | ||
-->{{#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" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- | --><tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- | ||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!-- | -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div> | ||
{{{above}}}</div></td></tr>}}<!-- | |||
Line 47: | Line 47: | ||
-->{{#if:{{{imageleft|}}}|<!-- | -->{{#if:{{{imageleft|}}}|<!-- | ||
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- | --><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}}<!-- | -->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}}}}><div> | ||
{{{imageleft}}}</div></td>}}<!-- | |||
-->{{#if:{{{group1|}}}|< | -->{{#if:{{{group1|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group1}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group1style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!-- | -->{{{group1}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!-- | ||
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}"> | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}"> | |||
{{{list1}}}</div></td><!-- | |||
-->{{#if:{{{image|}}}|<!-- | -->{{#if:{{{image|}}}|<!-- | ||
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!-- | --><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}}<!-- | -->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}}}}><div> | ||
{{{image}}}</div></td>}}<!-- | |||
--></tr>}}<!-- | --></tr>}}<!-- | ||
Line 78: | Line 79: | ||
-->{{#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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group2}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!-- | -->{{{group2}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | -->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:{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group3}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!-- | -->{{{group3}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group4}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!-- | -->{{{group4}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group5}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- | -->{{{group5}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group6}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!-- | -->{{{group6}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list6 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group7}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!-- | -->{{{group7}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list7 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group8}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!-- | -->{{{group8}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list8 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group9}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!-- | -->{{{group9}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list9 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group10}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!-- | -->{{{group10}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list10 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group11}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!-- | -->{{{group11}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list11 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group12}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!-- | -->{{{group12}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list12 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group13}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- | -->{{{group13}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list13 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group14}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!-- | -->{{{group14}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list14 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group15}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!-- | -->{{{group15}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list15 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group16}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!-- | -->{{{group16}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list16 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group17}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!-- | -->{{{group17}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list17 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group18}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!-- | -->{{{group18}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list18 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group19}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!-- | -->{{{group19}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list19 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{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|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!-- | ||
-->{{{group20}}}</ | -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}"><!-- | ||
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!-- | -->{{{group20}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!-- | ||
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- | -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list20 | -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!-- | ||
--><div style="padding:{{{listpadding|0em 0.25em}}}"> | |||
{{{list20}}}</div></td></tr>}}<!-- | |||
Line 232: | Line 271: | ||
-->{{#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" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- | --><tr><td class="navbox-abovebelow {{{belowclass|}}}" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- | ||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{below}}}</td></tr>}}<!-- | -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div> | ||
{{{below}}}</div></td></tr>}}<!-- | |||
Revision as of 08:21, 11 June 2015
BoyWiki Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template is used to create a basic navbox.
- Syntax
- For more information see: https://en.wikipedia.org/wiki/Template:Navbox/doc
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.- Sample output
{{Navbox | name = Navbox Test | state = uncollapsed | title = test | above = test | abovestyle = background:#cedff2; | listclass = hlist | titlestyle = {{{titlestyle|background:#cedff2;}}} | groupstyle = line-height:1.2em;{{{groupstyle|background:#cedff2;}}} | image = | group1 = test | list1 = '''{{bp}} test | group2 = test | list2style = line-height:1.2em;{{{list2style|background:#f5faff;}}} | list2 = *test *test *test *test *test *test | group3 = test | list3style = line-height:1.2em; | list3 = *test *test *test *test *test *test <BR> | belowstyle = background:#cedff2; |below = test [[File:Bloge.png|30 px|link=Portal:Boylove News Channel]] }}
Results in...
|
Visit Template:Navbox/doc to edit this template's description!
Done making changes? Refresh Also see: Portal:Template index and Help:Templates
Done making changes? Refresh Also see: Portal:Template index and Help:Templates