Difference between revisions of "Template:Navbox generic"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<table class="navbox collapsible {{{state|autocollapse}}}" style="margin:auto; {{{style|}}}{{{bodystyle|}}}">
 
<tr><!--
 
 
----------------------------------------Titlebar-----------------------------------------
 
--><th colspan="{{#if:{{{image|}}}|3|2}}" style="text-align:center;
 
{{{titlestyle|}}}"><span style="font-size:110%;">{{{title}}}</span></th>
 
</tr> <!--
 
 
-----------------------above (optional content above groups)-----------------------
 
-->{{#if:{{{above|}}} |<tr>
 
<td style="{{{abovestyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}">{{{above|}}}</td>
 
</tr>}}
 
 
 
<table class="navbox collapsible {{{state|autocollapse}}}" style="margin:auto; {{{style|}}}{{{bodystyle|}}}">
 
<table class="navbox collapsible {{{state|autocollapse}}}" style="margin:auto; {{{style|}}}{{{bodystyle|}}}">
 
<tr><!--
 
<tr><!--
Line 25: Line 12:
  
 
-----------------------above (optional content above groups)-----------------------
 
-----------------------above (optional content above groups)-----------------------
-->{{#if: {{{above|}}} |<tr>
+
-->{{#if:<!---deprecated:--->{{{top|}}}<!----> {{{above|}}} |<tr>
<td style="{{{abovestyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}">{{{above|}}}</td>
+
<td style="<!---deprecated:--->{{{top-style|}}}{{{above_style|}}}<!----> {{{abovestyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}"><!---deprecated:--->{{{top|}}}<!----> {{{above|}}}</td>
 
</tr>}} <!--
 
</tr>}} <!--
  
Line 136: Line 123:
 
</tr>}}
 
</tr>}}
  
</table>
 
 
{{#if:{{{list1|}}}  |<tr>
 
{{#if:{{{group1|}}}    |<th style="{{{groupstyle|}}}">{{{group1}}}</th>}}
 
<td style="{{{liststyle|}}} {{{oddstyle|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td>
 
{{#if:{{{image|}}}|<td rowspan="{{#expr: {{#if:{{{list1|}}}|1|0}} +{{#if:{{{list2|}}}|1|0}} +{{#if:{{{list3|}}}|1|0}} +{{#if:{{{list4|}}}|1|0}} +{{#if:{{{list5|}}}|1|0}}" style="vertical-align:middle; padding-left:7px;">{{{image}}}</td>}}
 
</tr>}} <!--
 
 
-->{{#if:{{{list2|}}}  |<tr>
 
{{#if:{{{group2|}}}    |<th style="{{{groupstyle|}}}">{{{group2}}}</th>}}
 
<td style="{{{liststyle|}}} {{{evenstyle|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td>
 
</tr>}} <!--
 
 
-->{{#if:{{{list3|}}}  |<tr>
 
{{#if:{{{group3|}}}    |<th style="{{{groupstyle|}}}">{{{group3}}}</th>}}
 
<td style="{{{liststyle|}}} {{{oddstyle|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td>
 
</tr>}} <!--
 
 
-->{{#if:{{{list4|}}}  |<tr>
 
{{#if:{{{group4|}}}    |<th style="{{{groupstyle|}}}">{{{group4}}}</th>}}
 
<td style="{{{liststyle|}}} {{{evenstyle|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td>
 
</tr>}} <!--
 
 
-->{{#if:{{{list5|}}}  |<tr>
 
{{#if:{{{group5|}}}    |<th style="{{{group5}}}</th>}}
 
<td style="{{{liststyle|}}} {{{oddstyle|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td>
 
</tr>}} <!--
 
 
-----------------------below (optional content below groups)-----------------------
 
-->{{#if:{{{below|}}} |<tr>
 
<td style="{{{belowstyle|}}}" colspan="{{#if:{{{image|}}}|3|2}}">{{{below|}}}</td>
 
</tr>}}
 
 
</table>
 
</table>

Revision as of 12:46, 17 June 2019