Template:Navbox: Difference between revisions

From BoyWiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<!--
<table cellspacing="0" style="border:1px solid #aaa; width:100%; margin:auto; clear:both; font-size:88%; text-align:center; padding:2px;  background:#fdfdfd;"><tr><td style="padding:2px;">
 
<table cellspacing="0" class="nowraplinks  ;;">
Please do not edit without discussion first as this is a VERY complex template.
<tr><th style="text-align:center; padding-left:1em; padding-right:1em;  background:#ccccff;  background:#ddddff;;{{{titlestyle|}}}" colspan=3>
 
<div style="float:left; width:6em;text-align:left;">{{if|test={{{nav|}}}|then={{tnavbar|{{{nav|}}}}}|else=&nbsp;}}</div>
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child={{#if:{{{vtabs|}}}||</div>}}|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!--
<span style="font-size:110%;">{{{title|}}}</span>
-->style="{{{bodystyle|}}};{{lang|ar=text-direction:{{{text-direction|rtl}}}|en=}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
</th></tr>
 
<tr style="height:2px;"><td></td></tr>
--><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!--
{{if|test={{{abovetext|}}}|then=<tr><td style="text-align:center; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;" colspan="3">{{{abovetext|}}}</td></tr>}}
-->#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
<tr style="height:2px;"><td></td></tr>
-->subgroup|child|none=navbox-subgroup {{{childclass|}}}" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
<tr>
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group1|}}}</td>
 
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-odd">
 
<div style="padding:0em 0.25em">{{{list1|}}}</div>
 
</td>
---Title and Navbar---
<td style="width:0%;padding:0px 0px 0px 2px;" rowspan=21>{{{image|}}}</td>
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
</tr>
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!--
<!-----Remaining groups/lists----->
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!--
{{if|test={{{group2|}}}{{{list2|}}}|then=
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!--
<tr style="height:2px"><td></td></tr>
-->class="navbox-title"><!--
<tr>
 
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group2|}}}</td>
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
  -->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
<div style="padding:0em 0.25em">{{{list2|}}}</div>
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}|<!--
</td>
-->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}|<!--
</tr>
--><div style="float:left; width:6em;text-align:left;"><!--
}}
  -->{{Navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!--
{{if|test={{{group3|}}}{{{list3|}}}|then=
--></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}}<!--
<tr style="height:2px"><td></td></tr>
 
<tr>
--><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group3|}}}</td>
-->{{{title}}}</span></th></tr>}}<!--
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-even">
 
<div style="padding:0em 0.25em">{{{list3|}}}</div>
 
</td>
 
</tr>
---Above---
}}
-->{{#if:{{{above|}}}|<!--
{{if|test={{{group4|}}}{{{list4|}}}|then=
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
<tr style="height:2px"><td></td></tr>
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
<tr>
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group4|}}}</td>
 
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
 
<div style="padding:0em 0.25em">{{{list4|}}}</div>
 
</td>
---Body---
</tr>
 
}}
---First group/list and images---
{{if|test={{{group5|}}}{{{list5|}}}|then=
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--
<tr style="height:2px"><td></td></tr>
 
<tr>
-->{{#if:{{{imageleft|}}}|<!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group5|}}}</td>
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!--
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-even">
  -->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
<div style="padding:0em 0.25em">{{{list5|}}}</div>
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
</td>
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
</tr>
-->{{#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|test={{{group6|}}}{{{list6|}}}|then=
-->{{{imageleft}}}</td>}}<!--
<tr style="height:2px"><td></td></tr>
 
<tr>
-->{{#if:{{{group1|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group6|}}}</td>
-->{{{group1}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
<div style="padding:0em 0.25em">{{{list6|}}}</div>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
</td>
  --><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">
</tr>
{{{list1}}}</div></td><!--
}}
 
{{if|test={{{group7|}}}{{{list7|}}}|then=
-->{{#if:{{{image|}}}|<!--
<tr style="height:2px"><td></td></tr>
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!--
<tr>
  -->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group7|}}}</td>
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-even">
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
<div style="padding:0em 0.25em">{{{list7|}}}</div>
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
</td>
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!--
</tr>
-->{{{image}}}</td>}}<!--
}}
 
{{if|test={{{group8|}}}{{{list8|}}}|then=
--></tr>}}<!--
<tr style="height:2px"><td></td></tr>
 
<tr>
 
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group8|}}}</td>
 
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
---Remaining groups/lists---
<div style="padding:0em 0.25em">{{{list8|}}}</div>
 
</td>
-->{{#if:{{{list2|}}}|<!--
</tr>
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
}}
-->{{#if:{{{group2|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group2style|}}}"><!--
{{if|test={{{group9|}}}{{{list9|}}}|then=
-->{{{group2}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group9|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even">
{{{list2}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list9|}}}</div>
 
</td>
-->{{#if:{{{list3|}}}|<!--
</tr>
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
}}
-->{{#if:{{{group3|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group3style|}}}"><!--
{{if|test={{{group10|}}}{{{list10|}}}|then=
-->{{{group3}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1embackground:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group10|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
{{{list3}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list10|}}}</div>
 
</td>
-->{{#if:{{{list4|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group4|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group4style|}}}"><!--
{{if|test={{{group11|}}}{{{list11|}}}|then=
-->{{{group4}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group11|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-even">
{{{list4}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list11|}}}</div>
 
</td>
-->{{#if:{{{list5|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group5|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group5style|}}}"><!--
{{if|test={{{group12|}}}{{{list12|}}}|then=
-->{{{group5}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group12|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:#f7f7f7;;;" class="navbox-list navbox-even">
{{{list5}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list12|}}}</div>
 
</td>
-->{{#if:{{{list6|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group6|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group6style|}}}"><!--
{{if|test={{{group13|}}}{{{list13|}}}|then=
-->{{{group6}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group13|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even">
{{{list6}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list13|}}}</div>
 
</td>
-->{{#if:{{{list7|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group7|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group7style|}}}"><!--
{{if|test={{{group14|}}}{{{list14|}}}|then=
-->{{{group7}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group14|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even">
{{{list7}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list14|}}}</div>
 
</td>
-->{{#if:{{{list8|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group8|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group8style|}}}"><!--
{{if|test={{{group15|}}}{{{list15|}}}|then=
-->{{{group8}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
<tr style="height:2px"><td></td></tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
<tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em;  background:#ddddff;  background:#e6e6ff;;{{{groupstyle|}}};">{{{group15|}}}</td>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;  background:transparent;;;" class="navbox-list navbox-even">
{{{list8}}}</div></td></tr>}}<!--
<div style="padding:0em 0.25em">{{{list15|}}}</div>
 
</td>
-->{{#if:{{{list9|}}}|<!--
</tr>
--><tr style="height:2px"><td></td></tr><tr><!--
}}
-->{{#if:{{{group9|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group9style|}}}"><!--
-->{{{group9}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list9}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list10|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group10|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group10style|}}}"><!--
-->{{{group10}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list10}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list11|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group11|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group11style|}}}"><!--
-->{{{group11}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list11}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list12|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group12|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group12style|}}}"><!--
-->{{{group12}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list12}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list13|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group13|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group13style|}}}"><!--
-->{{{group13}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list13}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list14|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group14|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group14style|}}}"><!--
-->{{{group14}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list14}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list15|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group15|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group15style|}}}"><!--
-->{{{group15}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list15}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list16|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group16|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group16style|}}}"><!--
-->{{{group16}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list16}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list17|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group17|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group17style|}}}"><!--
-->{{{group17}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list17}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list18|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group18|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group18style|}}}"><!--
-->{{{group18}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list18}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list19|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group19|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group19style|}}}"><!--
-->{{{group19}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list19}}}</div></td></tr>}}<!--
 
-->{{#if:{{{list20|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
-->{{#if:{{{group20|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}"><!--
-->{{{group20}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
--><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list20}}}</div></td></tr>}}<!--
 
 
---Below---
-->{{#if:{{{below|}}}|<!--
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!--
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{below}}}</td></tr>}}<!--
 
 
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child={{#if:{{{vtabs|}}}||<div>}}|none=|#default=</td></tr></table>}}<!--
 
-->
<noinclude>
<noinclude>
{{documentation}}  
{{documentation}}  
[[Category:Navbox templates]]
[[Category:Navbox templates]]
</noinclude>
</noinclude>

Revision as of 05:17, 7 December 2021

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, usually hlist 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