Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
Lafayette1 (talk | contribs) |
Lafayette1 (talk | contribs) |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 cellspacing="0" <!-- | + | -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox" cellspacing="0" <!-- |
| − | --> | + | -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- |
| + | |||
| + | --><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- | ||
| + | -->#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | ||
| + | -->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!-- | ||
| + | -->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | ||
| − | |||
| − | |||
| − | |||
| − | |||
---Title and Navbar--- | ---Title and Navbar--- | ||
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | -->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | ||
| − | -->< | + | --><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- |
| − | + | --><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- | |
| − | + | -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!-- | |
| − | + | -->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|<div style="float:right;width:6em;"> </div>}}|<!-- |
| − | -->{{#ifeq:{{{state|}}}|plain||< | + | -->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;"> </div>}}}}|<!-- |
| − | --> | + | --><div style="float:left; width:6em;text-align:left;"><!-- |
| − | + | -->{{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!-- | |
| − | -->< | + | --></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}}<!-- |
| − | -->{{# | + | |
| + | --><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!-- | ||
| + | -->{{{title}}}</span></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 | + | --><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- |
| − | -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"> | + | -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!-- |
| − | {{{above}}} | + | |
| Line 276: | Line 276: | ||
| − | --></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table> | + | --></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||