Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Navbox: Difference between revisions

Template page
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:


--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!--
--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!--
  -->plain|off=|#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
  -->plain|off=|#default=mw-collapsible mw-collapsed {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
  -->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!--
  -->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!--
  -->#default=navbox-inner" style="border-spacing:0;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--
  -->#default=navbox-inner" style="border-spacing:0;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--


---Title and Navbar---
---Title and Navbar---
Line 16: Line 17:
  --><th scope="row" class="navbox-group {{{titlegroupclass|}}}" <!--
  --><th scope="row" class="navbox-group {{{titlegroupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}"><!--
  -->style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}"><!--
  -->{{{titlegroup|}}}</th><th scope="col" style="width:100%;|<!--
  -->{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|<!--
  --><th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" class="navbox-title" <!--
  --><th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" class="navbox-title" <!--
  -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}><!--
  -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}><!--


  --><div class="{{{titleclass|}}}" style="padding:0.25em 1em;font-size:110%;">
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
{{{title}}}</div></th></tr>}}<!--
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:left;width:6em;">&nbsp;</span>}}|<!--
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;">&nbsp;</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:left;width:6em;">&nbsp;</span>}}}}<!--
 
  --><span class="{{{titleclass|}}}" style="float:cemter;font-size:110%;">
{{{title}}}</span></th></tr>}}<!--




Line 51: Line 61:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{list1padding|{{{listpadding|0em 1em}}}}}}">
  --><div style="padding:{{{list1padding|{{{listpadding|0em 0.5em}}}}}}">
{{{list1}}}</div></td><!--
{{{list1}}}</div></td><!--


Line 75: Line 85:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list2}}}</div></td></tr>}}<!--
{{{list2}}}</div></td></tr>}}<!--


Line 85: Line 95:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list3}}}</div></td></tr>}}<!--
{{{list3}}}</div></td></tr>}}<!--


Line 95: Line 105:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list4}}}</div></td></tr>}}<!--
{{{list4}}}</div></td></tr>}}<!--


Line 105: Line 115:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list5}}}</div></td></tr>}}<!--
{{{list5}}}</div></td></tr>}}<!--


Line 115: Line 125:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list6}}}</div></td></tr>}}<!--
{{{list6}}}</div></td></tr>}}<!--


Line 125: Line 135:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list7}}}</div></td></tr>}}<!--
{{{list7}}}</div></td></tr>}}<!--


Line 135: Line 145:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list8}}}</div></td></tr>}}<!--
{{{list8}}}</div></td></tr>}}<!--


Line 145: Line 155:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list9}}}</div></td></tr>}}<!--
{{{list9}}}</div></td></tr>}}<!--


Line 155: Line 165:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list10}}}</div></td></tr>}}<!--
{{{list10}}}</div></td></tr>}}<!--


Line 165: Line 175:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list11}}}</div></td></tr>}}<!--
{{{list11}}}</div></td></tr>}}<!--


Line 175: Line 185:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list12}}}</div></td></tr>}}<!--
{{{list12}}}</div></td></tr>}}<!--


Line 185: Line 195:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list13}}}</div></td></tr>}}<!--
{{{list13}}}</div></td></tr>}}<!--


Line 195: Line 205:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list14}}}</div></td></tr>}}<!--
{{{list14}}}</div></td></tr>}}<!--


Line 205: Line 215:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list15}}}</div></td></tr>}}<!--
{{{list15}}}</div></td></tr>}}<!--


Line 215: Line 225:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list16}}}</div></td></tr>}}<!--
{{{list16}}}</div></td></tr>}}<!--


Line 225: Line 235:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list17}}}</div></td></tr>}}<!--
{{{list17}}}</div></td></tr>}}<!--


Line 235: Line 245:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list18}}}</div></td></tr>}}<!--
{{{list18}}}</div></td></tr>}}<!--


Line 245: Line 255:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list19}}}</div></td></tr>}}<!--
{{{list19}}}</div></td></tr>}}<!--


Line 255: Line 265:
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
  -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0.25em 0em;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{listpadding|0em 1em}}}">
  --><div style="padding:{{{listpadding|0em 0.5em}}}">
{{{list20}}}</div></td></tr>}}<!--
{{{list20}}}</div></td></tr>}}<!--



Latest revision as of 15:20, 15 December 2024

[edit] Template documentation

Usage

Please remove the parameters that are left blank.

{{Navbox
|name    = {{subst:PAGENAME}}
|title   = 
|image   = 
|above   = 
|state   = {{{state|autocollapse}}} 

|group1  = 
|list1   = 

|group2  = 
|list2   = 
 ...
|group20 = 
|list20  = 

|below   = 
}}


See Wikipedia for more information about this template.

Advertising: