Jump to content

Template:Navbox subgroup: Difference between revisions

From IdeaWazaWiki
wikademia>Malyctenar
try to simplify code - no need to specify text-align repeatedly for each cell or colspan=1 or test existence repeatedly
wikademia>Sardanaphalus
added groups 11-15
Line 46: Line 46:
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list10|}}}|<tr>{{#if:{{{group10|}}}|<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group10style|}}} ">{{{group10}}}</th>}}<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list10style|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td></tr>}}<!--
-->{{#if:{{{list10|}}} |<tr>
{{#if:{{{group10|}}}   |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group10style|}}} ">{{{group10}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list10style|}}}" colspan="{{#if:{{{group10|}}}|1|2}}">{{{list10}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list11|}}} |<tr>
{{#if:{{{group11|}}}  |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group11style|}}} ">{{{group11}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list11style|}}}" colspan="{{#if:{{{group11|}}}|1|2}}">{{{list11}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list12|}}} |<tr>
{{#if:{{{group12|}}}  |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group12style|}}} ">{{{group12}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list12style|}}}" colspan="{{#if:{{{group12|}}}|1|2}}">{{{list12}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list13|}}} |<tr>
{{#if:{{{group13|}}}  |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group13style|}}} ">{{{group13}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list13style|}}}" colspan="{{#if:{{{group13|}}}|1|2}}">{{{list13}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list14|}}} |<tr>
{{#if:{{{group14|}}}  |<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupoddstyle|}}}{{{group14style|}}} ">{{{group14}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list14style|}}}" colspan="{{#if:{{{group14|}}}|1|2}}">{{{list14}}}</td>
</tr>}}<!--
 
-->{{#if:{{{list15|}}}|<tr>{{#if:{{{group15|}}}|<th style="background:#e6e6ff;white-space:nowrap;text-align:right; {{{groupstyle|}}}{{{groupevenstyle|}}}{{{group15style|}}} ">{{{group15}}}</th>}}<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" colspan="{{#if:{{{group15|}}}|1|2}}">{{{list15}}}</td></tr>}}<!--


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

Revision as of 17:42, 30 October 2007