Template:Navbox subgroup: Difference between revisions
Appearance
wikademia>Davidgothberg Ok, margin:-3px is necessary. Testing group colour #e6e6ff; |
wikademia>Davidgothberg Cleaning up the code. |
||
| Line 1: | Line 1: | ||
<table class="navbox nowraplinks" style="background:transparent; font-size:100%; padding:0; border:0; margin:-3px; {{{bodystyle|}}}"> | <includeonly><table class="navbox nowraplinks" style="background:transparent; font-size:100%; padding:0; border:0; margin:-3px; {{{bodystyle|}}}"> | ||
{{#if:{{{list1 | {{#if:{{{list1|}}} |<tr> | ||
{{#if:{{{group1 | {{#if:{{{group1|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group1}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td> | <td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list2 | -->{{#if:{{{list2|}}} |<tr> | ||
{{#if:{{{group2 | {{#if:{{{group2|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group2}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td> | <td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list3 | -->{{#if:{{{list3|}}} |<tr> | ||
{{#if:{{{group3 | {{#if:{{{group3|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group3}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td> | <td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list4 | -->{{#if:{{{list4|}}} |<tr> | ||
{{#if:{{{group4 | {{#if:{{{group4|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group4}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td> | <td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list5 | -->{{#if:{{{list5|}}} |<tr> | ||
{{#if:{{{group5 | {{#if:{{{group5|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group5}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td> | <td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list6 | -->{{#if:{{{list6|}}} |<tr> | ||
{{#if:{{{group6 | {{#if:{{{group6|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group6}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group6|}}}|1|2}}">{{{list6}}}</td> | <td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group6|}}}|1|2}}">{{{list6}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list7 | -->{{#if:{{{list7|}}} |<tr> | ||
{{#if:{{{group7 | {{#if:{{{group7|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group7}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group7|}}}|1|2}}">{{{list7}}}</td> | <td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group7|}}}|1|2}}">{{{list7}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list8 | -->{{#if:{{{list8|}}} |<tr> | ||
{{#if:{{{group8 | {{#if:{{{group8|}}} |<th style="width:25%;background:#e6e6ff;{{{groupstyle|}}}">{{{group8}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group8|}}}|1|2}}">{{{list8}}}</td> | <td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group8|}}}|1|2}}">{{{list8}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list9 | -->{{#if:{{{list9|}}} |<tr> | ||
{{#if:{{{group9 | {{#if:{{{group9|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group9}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group9|}}}|1|2}}">{{{list9}}}</td> | <td style="{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{group9|}}}|1|2}}">{{{list9}}}</td> | ||
</tr>}} <!-- | </tr>}} <!-- | ||
-->{{#if:{{{list10 | -->{{#if:{{{list10|}}}|<tr> | ||
{{#if:{{{group10 | {{#if:{{{group10|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}">{{{group10}}}</th>}} | ||
<td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td> | <td style="{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td> | ||
</tr>}} | </tr>}} | ||
</table><noinclude> | </table></includeonly><noinclude> | ||