From GamingWiki
m (Protected "Template:Navbox": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 42: | Line 42: | ||
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | -->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | ||
− | + | -->{{#vardefine: columns | {{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}} }}<!-- | |
---Title and Navbar--- | ---Title and Navbar--- | ||
Line 48: | Line 48: | ||
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- | --><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- | ||
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- | --><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- | ||
− | -->colspan={{#expr: | + | -->colspan={{#expr:{{#var:columns}}{{#if:{{{titlegroup|}}}|-1}}}} <!-- |
-->class="navbox-title"><!-- | -->class="navbox-title"><!-- | ||
Line 64: | Line 64: | ||
DEBUG | DEBUG | ||
− | -->{{#tag:pre| | + | --><!--{{#tag:pre| |
groups: {{{groups}}} | groups: {{{groups}}} | ||
lists: {{{lists}}} | lists: {{{lists}}} | ||
Line 72: | Line 72: | ||
list1 var: {{#var:list1}} | list1 var: {{#var:list1}} | ||
numrows: {{#var:numrows}} | numrows: {{#var:numrows}} | ||
− | }}<!-- | + | }}--><!-- |
Line 79: | Line 79: | ||
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | -->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | ||
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- | --><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!-- | ||
− | -->colspan="{{#expr: | + | -->colspan="{{#expr:{{#var:columns}}}}">{{{above}}}</td></tr>}}<!-- |
DEBUG | DEBUG | ||
− | --><pre>---Body---</pre><!-- | + | --><!--<pre>---Body---</pre>--><!-- |
---Body--- | ---Body--- | ||
− | -->{{#vardefine: doimageleft | {{{imageleft|}}} }}<!-- | + | -- Deal with image considerations -- |
+ | -->{{#vardefine: doimageleft | {{{imageleft|}}} }}<!-- | ||
-->{{#vardefine: doimageright | {{{image|}}} }}<!-- | -->{{#vardefine: doimageright | {{{image|}}} }}<!-- | ||
+ | -->{{#vardefine: imgrowspan | {{#expr:{{#var:numrows}}*2 }} }}<!-- | ||
DEBUG | DEBUG | ||
− | --><pre>--- all rows ---</pre><!-- | + | --><!--<pre>--- all rows ---</pre>--><!-- |
---Remaining groups/lists--- | ---Remaining groups/lists--- | ||
Line 107: | Line 109: | ||
-->{{#if:{{#var:doimageleft}}|<!-- | -->{{#if:{{#var:doimageleft}}|<!-- | ||
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- | --><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!-- | ||
− | -->rowspan=" | + | -->rowspan="{{#var:imgrowspan}}"><!-- |
-->{{#doimageleft}}</td><!-- | -->{{#doimageleft}}</td><!-- | ||
-->{{#vardefine: doimageleft|}}<!-- | -->{{#vardefine: doimageleft|}}<!-- | ||
Line 142: | Line 144: | ||
-->{{#if:{{#var:doimageright}}|<!-- | -->{{#if:{{#var:doimageright}}|<!-- | ||
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!-- | --><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!-- | ||
− | -->rowspan=" | + | -->rowspan="{{#var:imgrowspan}}"><!-- |
-->{{#var:doimageright}}</td><!-- | -->{{#var:doimageright}}</td><!-- | ||
-->{{#vardefine: doimageright|}}<!-- | -->{{#vardefine: doimageright|}}<!-- | ||
Line 156: | Line 158: | ||
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | -->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- | ||
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- | --><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!-- | ||
− | -->colspan="{{#expr: | + | -->colspan="{{#expr:{{#var:columns}}}}">{{{below}}}</td></tr>}}<!-- |
Latest revision as of 01:30, 28 April 2011
[create]
Error creating thumbnail: File missing
Template documentation Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |