Differenze tra le versioni di "Template:Navbox"

Da Wikifarmaco.
 
(Una versione intermedia di uno stesso utente non è mostrata)
Riga 1: Riga 1:
<noinclude>
+
<!--
{{Other_languages
 
|en=Template:Navbox
 
|fr=Template:Navbox
 
|language_page=en
 
}}
 
</noinclude>
 
{{Navboxes
 
  
|name = {{{name|}}}
+
Please do not edit without discussion first as this is a VERY complex template.
|state = {{{state|}}}
 
|navbar = {{{navbar|}}}
 
  
|bodystyle = background:transparent;  border: 1px solid #aaa; width: 100%;  margin: auto; clear: both; font-size: 88%; text-align: center;  padding: 1px;
+
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!--
|imageleftstyle =  
+
  -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
|titlestyle = background: #ccccff; text-align: center;  padding-left: 1em; padding-right: 1em;
 
|basestyle = background: #ddddff;
 
|abovestyle = background: #ddddff; text-align: center;  padding-left: 1em; padding-right: 1em;
 
|belowstyle = background: #ddddff; text-align: center; padding-left: 1em; padding-right: 1em;
 
|groupstyle = background: #ddddff; white-space: nowrap; text-align: right; font-weight: bold; padding-left: 1em; padding-right: 1em;
 
|liststyle = border-color: #fdfdfd; padding:0.25em 0; line-height:1.4em;
 
|evenstyle = background: #f7f7f7;
 
|oddstyle = background: transparent;
 
  
|title = {{{title|}}}
+
--><table cellspacing="0" class="mw-collapsible nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!--
|above = {{{above|}}}
+
-->#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
|below = {{{below|}}}
+
-->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
|image = {{{image|}}}
+
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--
|imageleft = {{{imageleft|}}}
 
  
|group1 = {{{group1|}}}
 
|group2 = {{{group2|}}}
 
|group3 = {{{group3|}}}
 
|group4 = {{{group4|}}}
 
|group5 = {{{group5|}}}
 
|group6 = {{{group6|}}}
 
|group7 = {{{group7|}}}
 
|group8 = {{{group8|}}}
 
|group9 = {{{group9|}}}
 
|group10 = {{{group10|}}}
 
|group11 = {{{group11|}}}
 
|group12 = {{{group12|}}}
 
|group13 = {{{group13|}}}
 
|group14 = {{{group14|}}}
 
|group15 = {{{group15|}}}
 
|group16 = {{{group16|}}}
 
|group17 = {{{group17|}}}
 
|group18 = {{{group18|}}}
 
|group19 = {{{group19|}}}
 
|group20 = {{{group20|}}}
 
  
|list1 = {{{list1|}}}
+
---Title and Navbar---
|list2 = {{{list2|}}}
+
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
|list3 = {{{list3|}}}
+
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!--
|list4 = {{{list4|}}}
+
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!--
|list5 = {{{list5|}}}
+
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!--
|list6 = {{{list6|}}}
+
-->class="navbox-title"><!--
|list7 = {{{list7|}}}
 
|list8 = {{{list8|}}}
 
|list9 = {{{list9|}}}
 
|list10 = {{{list10|}}}
 
|list11 = {{{list11|}}}
 
|list12 = {{{list12|}}}
 
|list13 = {{{list13|}}}
 
|list14 = {{{list14|}}}
 
|list15 = {{{list15|}}}
 
|list16 = {{{list16|}}}
 
|list17 = {{{list17|}}}
 
|list18 = {{{list18|}}}
 
|list19 = {{{list19|}}}
 
|list20 = {{{list20|}}}
 
  
|group1style = {{{group1style|}}}
+
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
|group2style = {{{group2style|}}}
+
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
|group3style = {{{group3style|}}}
+
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}|<!--
|group4style = {{{group4style|}}}
+
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;">&nbsp;</span>}}}}|<!--
|group5style = {{{group5style|}}}
+
--><span style="float:left;width:6em;text-align:left;">{{#if:{{{name|}}}|<!--
|group6style = {{{group6style|}}}
+
-->{{Navbar|{{{name}}}|mini=1|fontstyle={{{basestyle|}}};{{{titlestyle|}}};<!--
|group7style = {{{group7style|}}}
+
-->background:none transparent;border:none;font-size:100%;}}|<!--
|group8style = {{{group8style|}}}
+
--><span class="error" style="white-space:nowrap;">Error: No name provided</span>}}</span><!--
|group9style = {{{group9style|}}}
+
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}}}<!--
|group10style = {{{group10style|}}}
 
|group11style = {{{group11style|}}}
 
|group12style = {{{group12style|}}}
 
|group13style = {{{group13style|}}}
 
|group14style = {{{group14style|}}}
 
|group15style = {{{group15style|}}}
 
|group16style = {{{group16style|}}}
 
|group17style = {{{group17style|}}}
 
|group18style = {{{group18style|}}}
 
|group19style = {{{group19style|}}}
 
|group20style = {{{group20style|}}}
 
  
|list1style = {{{list1style|}}}
+
--><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
|list2style = {{{list2style|}}}
+
-->{{{title}}}</span></th></tr>}}<!--
|list3style = {{{list3style|}}}
 
|list4style = {{{list4style|}}}
 
|list5style = {{{list5style|}}}
 
|list6style = {{{list6style|}}}
 
|list7style = {{{list7style|}}}
 
|list8style = {{{list8style|}}}
 
|list9style = {{{list9style|}}}
 
|list10style = {{{list10style|}}}
 
|list11style = {{{list11style|}}}
 
|list12style = {{{list12style|}}}
 
|list13style = {{{list13style|}}}
 
|list14style = {{{list14style|}}}
 
|list15style = {{{list15style|}}}
 
|list16style = {{{list16style|}}}
 
|list17style = {{{list17style|}}}
 
|list18style = {{{list18style|}}}
 
|list19style = {{{list19style|}}}
 
|list20style = {{{list20style|}}}}}<noinclude>
 
  
__NOTOC__
 
==NavBox==
 
Can be used to create navigation tables.
 
  
 +
---Above---
 +
-->{{#if:{{{above|}}}|<!--
 +
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
 +
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
  
====List of links Example====
 
  
{{Navbox
+
---Body---
  
|navbar = off
+
---First group/list and images---
|state = off     
+
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--
  
|name = Name
+
-->{{#if:{{{imageleft|}}}|<!--
|title = List of links
+
  --><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!--
|list1 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
-->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:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+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}}}}><!--
 +
-->{{{imageleft}}}</td>}}<!--
  
<pre>{{Navbox
+
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">
 +
{{{list1}}}</div></td><!--
  
|navbar = off
+
-->{{#if:{{{image|}}}|<!--
|state = off     
+
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!--
 +
-->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:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+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}}}}><!--
 +
-->{{{image}}}</td>}}<!--
  
|name  = Name
+
--></tr>}}<!--
|title = List of links
 
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 
}}
 
</pre>
 
  
====Grouped Links Example====
 
{{Navbox
 
  
|navbar = off
+
---Remaining groups/lists---
|state = off     
 
  
|name = Name
+
-->{{#if:{{{list2|}}}|<!--
|title = Grouped Links
+
  -->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list2}}}</div></td></tr>}}<!--
  
|group1 = Name
+
-->{{#if:{{{list3|}}}|<!--
|list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
  -->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list3}}}</div></td></tr>}}<!--
  
|group2 = Name
+
-->{{#if:{{{list4|}}}|<!--
|list2 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
}}
+
-->{{#if:{{{group4|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!--
<pre>{{Navbox
+
  -->{{{group4}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list4}}}</div></td></tr>}}<!--
  
|navbar = off
+
-->{{#if:{{{list5|}}}|<!--
|state = off     
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list5}}}</div></td></tr>}}<!--
  
|name = Name
+
-->{{#if:{{{list6|}}}|<!--
|title = Grouped Links
+
  --><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list6}}}</div></td></tr>}}<!--
  
|group1 = group 1
+
-->{{#if:{{{list7|}}}|<!--
|list1 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list7}}}</div></td></tr>}}<!--
  
|group2 = group 2
+
-->{{#if:{{{list8|}}}|<!--
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
}}
+
-->{{#if:{{{group8|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!--
</pre>
+
-->{{{group8}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 +
{{{list8}}}</div></td></tr>}}<!--
  
====Sub Grouped list of links Example====
+
-->{{#if:{{{list9|}}}|<!--
{{Navbox
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|navbar = off
+
-->{{#if:{{{list10|}}}|<!--
|state = off     
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|name = Name
+
-->{{#if:{{{list11|}}}|<!--
|title = Sub Grouped list of links
+
  --><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|group1 = group 1
+
-->{{#if:{{{list12|}}}|<!--
|list1  =  {{Navbox subgroup
+
--><tr style="height:2px"><td></td></tr><tr><!--
            |group1 = Sub 1
+
-->{{#if:{{{group12|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!--
            |list1 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
  -->{{{group12}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
            |group2 = Sub 2
+
-->{{#if:{{{list13|}}}|<!--
            |list2 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
          }}
+
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|group2 = group 2
+
-->{{#if:{{{list14|}}}|<!--
|list2 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
}}
+
-->{{#if:{{{group14|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!--
<pre>{{Navbox
+
-->{{{group14}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
  -->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|navbar = off
+
-->{{#if:{{{list15|}}}|<!--
|state = off     
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|name = Name
+
-->{{#if:{{{list16|}}}|<!--
|title = Sub Grouped list of links
+
  --><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|group1 = group 1
+
-->{{#if:{{{list17|}}}|<!--
|list1  =  {{Navbox subgroup
+
--><tr style="height:2px"><td></td></tr><tr><!--
            |group1 = Sub 1
+
-->{{#if:{{{group17|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!--
            |list1 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
  -->{{{group17}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
            |group2 = Sub 2
+
-->{{#if:{{{list18|}}}|<!--
            |list2 = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
          }}
+
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|group2 = group 2
+
-->{{#if:{{{list19|}}}|<!--
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
+
--><tr style="height:2px"><td></td></tr><tr><!--
}}
+
-->{{#if:{{{group19|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!--
</pre>
+
-->{{{group19}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
====Some more options====
+
-->{{#if:{{{list20|}}}|<!--
{{Navbox
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#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="}}<!--
 +
-->{{#if:{{{groupwidth|}}}||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>}}<!--
  
|navbar = off
 
|state = off     
 
  
|name = Name
+
---Below---
|title = Shown Title
+
-->{{#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>}}<!--
  
|above = more caption/links
 
  
|group1 = Name
+
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 
  
|group2 = Name
+
--><noinclude>
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 
  
|below = more caption/links
+
{{documentation}}
}}
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<pre>{{Navbox
+
[[Category:Templates]]
 
+
[[Category:Backup]]
|navbar = off
+
</noinclude>
|state = off     
 
 
 
|name  = Name
 
|title = Shown Title
 
 
 
|above = more caption/links
 
 
 
|group1 = Name
 
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 
 
 
|group2 = Name
 
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 
 
 
|below = more caption/links
 
}}
 
</pre>
 
 
 
etc...
 
 
 
[[Category:Templates|N]][[Category:Navigation|N]][[Category:Navbox]]</noinclude>
 

Versione attuale delle 04:03, 28 mar 2014

{{#switch:|subgroup|child=</div>|none=|#default=