Jump to content

Template:Navbox subgroup: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Adding more style options.
wikademia>Davidgothberg
Removing some of the comments to see how the MediaWiki renders it without.
Line 4: Line 4:
{{#if:{{{group1|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}{{{groupoddstyle|}}}{{{group1style|}}} ">{{{group1}}}</th>}}
{{#if:{{{group1|}}} |<th style="background:#e6e6ff;{{{groupstyle|}}}{{{groupoddstyle|}}}{{{group1style|}}} ">{{{group1}}}</th>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}" colspan="{{#if:{{{group1|}}}|1|2}}">{{{list1}}}</td>
</tr>}} <!--
</tr>}}


-->{{#if:{{{list2|}}} |<tr>
{{#if:{{{list2|}}} |<tr>
{{#if:{{{group2|}}}  |<th style="background:#e6e6ff;{{{groupstyle|}}}{{{groupevenstyle|}}}{{{group2style|}}} ">{{{group2}}}</th>}}
{{#if:{{{group2|}}}  |<th style="background:#e6e6ff;{{{groupstyle|}}}{{{groupevenstyle|}}}{{{group2style|}}} ">{{{group2}}}</th>}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td>
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td>

Revision as of 19:23, 27 August 2007