Template:Main page navbox: Difference between revisions
From Official Barotrauma Wiki
BTGamepedia>Telyak (Testing.) |
m (8 revisions imported) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<div class="mp-section" style="overflow:auto;align:{{{align|center}}}; width:{{{secwidth|auto}}}; | <!-- | ||
{{#if:{{{ | |||
--{{#if: {{{ | 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" <!-- | |||
-->class="mp-section" align="center" style="overflow:auto;align:{{{align|center}}}; width:{{{secwidth|auto}}}><tr><td style="padding:2px;">}}<!-- | |||
--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!-- | |||
-->plain|off=|#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | |||
-->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!-- | |||
-->#default=navbox-inner" style="border-spacing:0;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | |||
---Title and Navbar--- | |||
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- | |||
--><th scope="row" class="navbox-group {{{titlegroupclass|}}}" <!-- | |||
-->style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}"><!-- | |||
-->{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|<!-- | |||
--><th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" class="navbox-title" <!-- | |||
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}><!-- | |||
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- | |||
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- | |||
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- | |||
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </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:right;width:6em;"> </span>}}}}<!-- | |||
--><div class="{{{titleclass|}}}" style="font-size:110%;"> | |||
{{{title}}}</div></th></tr>}}<!-- | |||
---Above--- | |||
-->{{#if:{{{above|}}}|<!-- | |||
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | |||
--><tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- | |||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div> | |||
{{{above}}}</div></td></tr>}}<!-- | |||
---Body--- | |||
---First group/list and images--- | |||
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!-- | |||
-->{{#if:{{{imageleft|}}}|<!-- | -->{{#if:{{{imageleft|}}}|<!-- | ||
--><td class="navbox-image {{{imageclass|}}}" style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- | --><td class="navbox-image {{{imageclass|}}}" style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- | ||
Line 29: | Line 73: | ||
--></tr>}}<!-- | --></tr>}}<!-- | ||
---Remaining groups/lists--- | |||
-->{{#if:{{{list2|}}}|<!-- | -->{{#if:{{{list2|}}}|<!-- | ||
Line 220: | Line 267: | ||
{{{list20}}}</div></td></tr>}}<!-- | {{{list20}}}</div></td></tr>}}<!-- | ||
</div> | |||
<noinclude> | ---Below--- | ||
-->{{#if:{{{below|}}}|<!-- | |||
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | |||
--><tr><td class="navbox-abovebelow {{{belowclass|}}}" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- | |||
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div> | |||
{{{below}}}</div></td></tr>}}<!-- | |||
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!-- | |||
-->{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#ifeq:{{{border|{{{1|}}}}}}|child||{{#ifeq:{{{border|{{{1|}}}}}}|subgroup||{{#switch:{{lc:{{SUBPAGENAME}}}} | |||
|doc | |||
|sandbox | |||
|testcases = | |||
|#default = {{#switch:{{{bodyclass|}}} | |||
|plainlist | |||
|hlist | |||
|hlist hnum | |||
|hlist vcard | |||
|vcard hlist = | |||
|#default = {{{listclass|}}} | |||
}} | |||
}} | |||
}}}}}}<noinclude> | |||
{{doc}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |