Jump to content

Template:Navbox subgroup: Difference between revisions

From IdeaWazaWiki
wikademia>CapitalR
adding style parameter like navbox, other minor corrections
wikademia>CapitalR
making it so group width renders the same in IE and firefox, with the necessary evil of adding the grouppadding parameter
Line 2: Line 2:


---Above (optional)---
---Above (optional)---
-->{{#if:{{{above|}}}|<tr><td style="text-align:center;background:#ddddff;{{{abovestyle|}}}" colspan="{{#if:{{{group1}}}{{{group2}}}{{{group3}}}{{{group4}}}{{{group5}}}{{{group6}}}{{{group7}}}{{{group8}}}{{{group9}}}{{{group10}}}{{{group11}}}{{{group12}}}{{{group13}}}{{{group14}}}{{{group15}}}|2|1}}">{{{above|}}}</td></tr>}}<!--
-->{{#if:{{{above|}}}|<!--
--><tr><td style="text-align:center;background:#ddf;{{{abovestyle|}}}" colspan="2">{{{above|}}}</td></tr>}}<!--


-->{{#if:{{{list1|}}}    |<tr>
{{#if:{{{group1|}}}    |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group1style|}}}">{{{group1}}}</th>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}">|<td colspan="2" style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}">}}{{{list1}}}</td>
</tr>}}


{{#if:{{{list2|}}}     |<tr>
 
{{#if:{{{group2|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group2style|}}}">{{{group2}}}</th>}}
-->{{#if:{{{list1|}}}|<tr>
{{#if:{{{group1|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group1style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group1}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list2|}}}|<tr>
{{#if:{{{group2|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group2style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group2}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list3|}}} |<tr>
-->{{#if:{{{list3|}}}|<tr>
{{#if:{{{group3|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group3style|}}}">{{{group3}}}</th>}}
{{#if:{{{group3|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group3style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group3}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list3style|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list3style|}}}" colspan="{{#if:{{{group3|}}}|1|2}}">{{{list3}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list4|}}} |<tr>
-->{{#if:{{{list4|}}}|<tr>
{{#if:{{{group4|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group4style|}}}">{{{group4}}}</th>}}
{{#if:{{{group4|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group4style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group4}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list4style|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list4style|}}}" colspan="{{#if:{{{group4|}}}|1|2}}">{{{list4}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list5|}}} |<tr>
-->{{#if:{{{list5|}}}|<tr>
{{#if:{{{group5|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group5style|}}}">{{{group5}}}</th>}}
{{#if:{{{group5|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group5style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group5}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list5style|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list5style|}}}" colspan="{{#if:{{{group5|}}}|1|2}}">{{{list5}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list6|}}} |<tr>
-->{{#if:{{{list6|}}}|<tr>
{{#if:{{{group6|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group6style|}}}">{{{group6}}}</th>}}
{{#if:{{{group6|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group6style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group6}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list6style|}}}" colspan="{{#if:{{{group6|}}}|1|2}}">{{{list6}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list6style|}}}" colspan="{{#if:{{{group6|}}}|1|2}}">{{{list6}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list7|}}}  |<tr>
-->{{#if:{{{list7|}}}  |<tr>
{{#if:{{{group7|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group7style|}}}">{{{group7}}}</th>}}
{{#if:{{{group7|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group7style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group7}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list7style|}}}" colspan="{{#if:{{{group7|}}}|1|2}}">{{{list7}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list7style|}}}" colspan="{{#if:{{{group7|}}}|1|2}}">{{{list7}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list8|}}} |<tr>
-->{{#if:{{{list8|}}}|<tr>
{{#if:{{{group8|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group8style|}}}">{{{group8}}}</th>}}
{{#if:{{{group8|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group8style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group8}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list8style|}}}" colspan="{{#if:{{{group8|}}}|1|2}}">{{{list8}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list8style|}}}" colspan="{{#if:{{{group8|}}}|1|2}}">{{{list8}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list9|}}} |<tr>
-->{{#if:{{{list9|}}}|<tr>
{{#if:{{{group9|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group9style|}}}">{{{group9}}}</th>}}
{{#if:{{{group9|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group9style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group9}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list9style|}}}" colspan="{{#if:{{{group9|}}}|1|2}}">{{{list9}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list9style|}}}" colspan="{{#if:{{{group9|}}}|1|2}}">{{{list9}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list10|}}} |<tr>
-->{{#if:{{{list10|}}}|<tr>
{{#if:{{{group10|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group10style|}}}">{{{group10}}}</th>}}
{{#if:{{{group10|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group10style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group10}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list10style|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list10style|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list11|}}} |<tr>
-->{{#if:{{{list11|}}}|<tr>
{{#if:{{{group11|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group11style|}}}">{{{group11}}}</th>}}
{{#if:{{{group11|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group11style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group11}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list11style|}}}" colspan="{{#if:{{{group11|}}}|1|2}}">{{{list11}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list11style|}}}" colspan="{{#if:{{{group11|}}}|1|2}}">{{{list11}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list12|}}} |<tr>
-->{{#if:{{{list12|}}}|<tr>
{{#if:{{{group12|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group12style|}}}">{{{group12}}}</th>}}
{{#if:{{{group12|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group12style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group12}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list12style|}}}" colspan="{{#if:{{{group12|}}}|1|2}}">{{{list12}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list12style|}}}" colspan="{{#if:{{{group12|}}}|1|2}}">{{{list12}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list13|}}} |<tr>
-->{{#if:{{{list13|}}}|<tr>
{{#if:{{{group13|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group13style|}}}">{{{group13}}}</th>}}
{{#if:{{{group13|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group13style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group13}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list13style|}}}" colspan="{{#if:{{{group13|}}}|1|2}}">{{{list13}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list13style|}}}" colspan="{{#if:{{{group13|}}}|1|2}}">{{{list13}}}</td>
</tr>}} <!--
</tr>}}<!--


-->{{#if:{{{list14|}}} |<tr>
-->{{#if:{{{list14|}}}|<tr>
{{#if:{{{group14|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group14style|}}}">{{{group14}}}</th>}}
{{#if:{{{group14|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group14style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group14}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list14style|}}}" colspan="{{#if:{{{group14|}}}|1|2}}">{{{list14}}}</td>
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}{{{list14style|}}}" colspan="{{#if:{{{group14|}}}|1|2}}">{{{list14}}}</td>
</tr>}} <!--
</tr>}}<!--
 
-->{{#if:{{{list15|}}}|<tr>
{{#if:{{{group15|}}}|<th style="padding-left:0px;padding-right:0px;background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{group15style|}}}"><div style="padding:{{{grouppadding|0em 1em}}};">{{{group15}}}</div></th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" colspan="{{#if:{{{group15|}}}|1|2}}">{{{list15}}}</td></tr>}}<!--
 


-->{{#if:{{{list15|}}} |<tr>
{{#if:{{{group15|}}}  |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group15style|}}}">{{{group15}}}</th>}}
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" colspan="{{#if:{{{group15|}}}|1|2}}">{{{list15}}}</td></tr>}} <!--


---Below (optional)---
---Below (optional)---
-->{{#if:{{{below|}}}|<tr><td style="text-align:center;background:#ddddff;{{{belowstyle|}}}" colspan="{{#if:{{{group1}}}{{{group2}}}{{{group3}}}{{{group4}}}{{{group5}}}{{{group6}}}{{{group7}}}{{{group8}}}{{{group9}}}{{{group10}}}{{{group11}}}{{{group12}}}{{{group13}}}{{{group14}}}{{{group15}}}|2|1}}">{{{below|}}}</td></tr>}}<!--
-->{{#if:{{{below|}}}|<!--
--><tr><td style="text-align:center;background:#ddf;{{{belowstyle|}}}" colspan="2">{{{below|}}}</td></tr>}}<!--
 


--></table><noinclude>
--></table><noinclude>

Revision as of 23:16, 28 April 2008