Difference between revisions of "Template:Navbox"

From NsdWiki
Jump to: navigation, search
m (1 revision(s))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
+
<table class="navbox collapsible {{{state|autocollapse}}} nowraplinks" style="margin:auto; {{{style|}}}{{{bodystyle|}}}">
 +
<tr><!--
  
Please do not edit without discussion first as this is a VERY complex template.
+
---Titlebar---
 +
--><th colspan="{{#if:{{{image|}}}|3|2}}" style="text-align:center;width:100%;{{{titlestyle|}}}"><!--
 +
--><div style="float:left; width:6em; text-align:left;">{{#switch:{{{navbar|}}} |plain= |#default={{Tnavbar|{{{name<noinclude>|Navbox</noinclude>}}} |mini=1}}}}</div><span style="font-size:110%;">{{{title}}}</span></th>
 +
</tr><!--
  
-->{{Navbox/core
+
---Above (optional)---
|name = {{{name<noinclude>|{{FULLPAGENAME}}</noinclude>}}}
+
-->{{#if:{{{above|}}} |<tr><td style="background:#ddf;{{{abovestyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}">{{{above|}}}</td></tr>}}<!--
|navbar = {{{navbar|}}}
 
|state = {{{state|autocollapse}}}
 
|title = {{{title|}}}
 
|image = {{{image|}}}
 
|imageleft = {{{imageleft|}}}
 
  
|imagespan = {{#expr:{{#if:{{{body|}}}{{{list1|}}}|1|0}} +{{#if:{{{list2|}}}|1|0}} +{{#if:{{{list3|}}}|1|0}} +{{#if:{{{list4|}}}|1|0}} +{{#if:{{{list5|}}}|1|0}} +{{#if:{{{list6|}}}|1|0}} +{{#if:{{{list7|}}}|1|0}} +{{#if:{{{list8|}}}|1|0}} +{{#if:{{{list9|}}}|1|0}} +{{#if:{{{list10|}}}|1|0}} +{{#if:{{{list11|}}}|1|0}} +{{#if:{{{list12|}}}|1|0}} +{{#if:{{{list13|}}}|1|0}} +{{#if:{{{list14|}}}|1|0}} +{{#if:{{{list15|}}}|1|0}} +{{#if:{{{list16|}}}|1|0}} +{{#if:{{{list17|}}}|1|0}} +{{#if:{{{list18|}}}|1|0}} +{{#if:{{{list19|}}}|1|0}} +{{#if:{{{list20|}}}|1|0}}}}
+
---Groups---
 +
-->{{#if:{{{list1|}}}|<tr>{{#if:{{{group1|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group1}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td><!--
  
|span = {{#if:{{{group1|}}}{{{group2|}}}{{{group3|}}}{{{group4|}}}{{{group5|}}}{{{group6|}}}{{{group7|}}}{{{group8|}}}{{{group9|}}}{{{group10|}}}{{{group11|}}}{{{group12|}}}{{{group13|}}}{{{group14|}}}{{{group15|}}}{{{group16|}}}{{{group17|}}}{{{group18|}}}{{{group19|}}}{{{group20|}}}{{{imageleft|}}}|{{#if:{{{image|}}}|3|2}}|{{#if:{{{image|}}}|2|1}}}}
+
-->{{#if:{{{image|}}}|<td rowspan="{{#expr: {{#if:{{{list1|}}}|1|0}} +{{#if:{{{list2|}}}|1|0}} +{{#if:{{{list3|}}}|1|0}} +{{#if:{{{list4|}}}|1|0}} +{{#if:{{{list5|}}}|1|0}} +{{#if:{{{list6|}}}|1|0}} +{{#if:{{{list7|}}}|1|0}} +{{#if:{{{list8|}}}|1|0}} +{{#if:{{{list9|}}}|1|0}} +{{#if:{{{list10|}}}|1|0}} +{{#if:{{{list11|}}}|1|0}} +{{#if:{{{list12|}}}|1|0}} +{{#if:{{{list13|}}}|1|0}} +{{#if:{{{list14|}}}|1|0}} +{{#if:{{{list15|}}}|1|0}} +{{#if:{{{list16|}}}|1|0}} +{{#if:{{{list17|}}}|1|0}} +{{#if:{{{list18|}}}|1|0}} +{{#if:{{{list19|}}}|1|0}} +{{#if:{{{list20|}}}|1|0}}}}" <!--
 +
-->style="vertical-align:middle; padding-left:7px; width:0%; {{{imagestyle|}}}">{{{image}}}</td>}}</tr>}}<!--
  
|nogroups = {{#if:{{{group1|}}}{{{group2|}}}{{{group3|}}}{{{group4|}}}{{{group5|}}}{{{group6|}}}{{{group7|}}}{{{group8|}}}{{{group9|}}}{{{group10|}}}{{{group11|}}}{{{group12|}}}{{{group13|}}}{{{group14|}}}{{{group15|}}}{{{group16|}}}{{{group17|}}}{{{group18|}}}{{{group19|}}}{{{group20|}}}|false|true}}
+
-->{{#if:{{{list2|}}}|<tr>{{#if:{{{group2|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group2}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td></tr>}}<!--
  
|bodystyle = {{{style|}}}{{{bodystyle|}}}
+
-->{{#if:{{{list3|}}}|<tr>{{#if:{{{group3|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group3}}}</th>}}
|titlestyle = {{{titlestyle|}}}
+
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td></tr>}}<!--
|abovestyle = background:#ddddff;{{{abovestyle|}}}
 
|belowstyle = background:#ddddff;{{{belowstyle|}}}
 
  
|above = {{{above|}}}
+
-->{{#if:{{{list4|}}}|<tr>{{#if:{{{group4|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group4}}}</th>}}
|below = {{{below|}}}
+
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td></tr>}}<!--
  
|gs = white-space:nowrap;background:#ddddff;text-align:right;{{{groupstyle|}}}
+
-->{{#if:{{{list5|}}}|<tr>{{#if:{{{group5|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group5}}}</th>}}
|os = width:100%;font-size:95%;{{{liststyle|}}}{{{oddstyle|}}}
+
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td></tr>}}<!--
|es = width:100%;font-size:95%;background:#f7f7f7;{{{liststyle|}}}{{{evenstyle|}}}
 
  
|g1 = {{{group1|}}}
+
-->{{#if:{{{list6|}}}|<tr>{{#if:{{{group6|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group6}}}</th>}}
|g2 = {{{group2|}}}
+
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group6|}}}|1|2}}">{{{list6}}}</td></tr>}}<!--
|g3 = {{{group3|}}}
 
|g4 = {{{group4|}}}
 
|g5 = {{{group5|}}}
 
|g6 = {{{group6|}}}
 
|g7 = {{{group7|}}}
 
|g8 = {{{group8|}}}
 
|g9 = {{{group9|}}}
 
|g10 = {{{group10|}}}
 
|g11 = {{{group11|}}}
 
|g12 = {{{group12|}}}
 
|g13 = {{{group13|}}}
 
|g14 = {{{group14|}}}
 
|g15 = {{{group15|}}}
 
|g16 = {{{group16|}}}
 
|g17 = {{{group17|}}}
 
|g18 = {{{group18|}}}
 
|g19 = {{{group19|}}}
 
|g20 = {{{group20|}}}
 
  
|l1 = {{{body|}}}{{{list1|}}}{{{category|}}}
+
-->{{#if:{{{list7|}}}|<tr>{{#if:{{{group7|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group7}}}</th>}}
|l2 = {{{list2|}}}
+
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group7|}}}|1|2}}">{{{list7}}}</td></tr>}}<!--
|l3 = {{{list3|}}}
 
|l4 = {{{list4|}}}
 
|l5 = {{{list5|}}}
 
|l6 = {{{list6|}}}
 
|l7 = {{{list7|}}}
 
|l8 = {{{list8|}}}
 
|l9 = {{{list9|}}}
 
|l10 = {{{list10|}}}
 
|l11 = {{{list11|}}}
 
|l12 = {{{list12|}}}
 
|l13 = {{{list13|}}}
 
|l14 = {{{list14|}}}
 
|l15 = {{{list15|}}}
 
|l16 = {{{list16|}}}
 
|l17 = {{{list17|}}}
 
|l18 = {{{list18|}}}
 
|l19 = {{{list19|}}}
 
|l20 = {{{list20|}}}
 
  
}}<noinclude>
+
-->{{#if:{{{list8|}}}|<tr>{{#if:{{{group8|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group8}}}</th>}}
{{pp-template|small=yes}}
+
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group8|}}}|1|2}}">{{{list8}}}</td></tr>}}<!--
  
{{documentation}}
+
-->{{#if:{{{list9|}}}|<tr>{{#if:{{{group9|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group9}}}</th>}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group9|}}}|1|2}}">{{{list9}}}</td></tr>}}<!--
</noinclude>
+
 
 +
-->{{#if:{{{list10|}}}|<tr>{{#if:{{{group10|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group10}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list11|}}}|<tr>{{#if:{{{group11|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group11}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group11|}}}|1|2}}">{{{list11}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list12|}}}|<tr>{{#if:{{{group12|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group12}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group12|}}}|1|2}}">{{{list12}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list13|}}}|<tr>{{#if:{{{group13|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group13}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group13|}}}|1|2}}">{{{list13}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list14|}}}|<tr>{{#if:{{{group14|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group14}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group14|}}}|1|2}}">{{{list14}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list15|}}}|<tr>{{#if:{{{group15|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group15}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group15|}}}|1|2}}">{{{list15}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list16|}}}|<tr>{{#if:{{{group16|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group16}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group16|}}}|1|2}}">{{{list16}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list17|}}}|<tr>{{#if:{{{group17|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group17}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group17|}}}|1|2}}">{{{list17}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list18|}}}|<tr>{{#if:{{{group18|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group18}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group18|}}}|1|2}}">{{{list18}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list19|}}}|<tr>{{#if:{{{group19|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group19}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group19|}}}|1|2}}">{{{list19}}}</td></tr>}}<!--
 +
 
 +
-->{{#if:{{{list20|}}}|<tr>{{#if:{{{group20|}}}|<th style="background:#ddf;white-space:nowrap;{{{groupstyle|}}}">{{{group20}}}</th>}}
 +
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group20|}}}|1|2}}">{{{list20}}}</td></tr>}}<!--
 +
 
 +
---Below (optional)---
 +
-->{{#if:{{{below|}}}|<tr><td style="background:#ddf;{{{belowstyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}">{{{below|}}}</td></tr>}}<!--
 +
 
 +
--></table>

Latest revision as of 14:54, 20 November 2007