Template:Navbox: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(total revamp - expect a few problems)
(fixing cases where a navbox may have lists but no groups)
Line 3: Line 3:
!class="navbox-title" colspan="2"|<div style="float:left;width:6em;text-align:left;">{{Tnavbar|{{{name|}}}|mini=1}}</div><span style="font-size:110%">{{{title}}}</span>
!class="navbox-title" colspan="2"|<div style="float:left;width:6em;text-align:left;">{{Tnavbar|{{{name|}}}|mini=1}}</div><span style="font-size:110%">{{{title}}}</span>
|-
|-
{{#if:{{{group1|}}}|
{{#if:{{{group1|{{{list1|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group1}}}
{{!}}class="navbox-group"{{!}}{{{group1}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list1}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list1}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group2|}}}|
{{#if:{{{group2|{{{list2|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group2}}}
{{!}}class="navbox-group"{{!}}{{{group2}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list2}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list2}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group3|}}}|
{{#if:{{{group3|{{{list3|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group3}}}
{{!}}class="navbox-group"{{!}}{{{group3}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list3}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list3}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group4|}}}|
{{#if:{{{group4|{{{list4|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group4}}}
{{!}}class="navbox-group"{{!}}{{{group4}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list4}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list4}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group5|}}}|
{{#if:{{{group5|{{{list5|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group5}}}
{{!}}class="navbox-group"{{!}}{{{group5}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list5}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list5}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group6|}}}|
{{#if:{{{group6|{{{list6|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group6}}}
{{!}}class="navbox-group"{{!}}{{{group6}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list6}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list6}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group7|}}}|
{{#if:{{{group7|{{{list7|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group7}}}
{{!}}class="navbox-group"{{!}}{{{group7}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list7}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list7}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group8|}}}|
{{#if:{{{group8|{{{list8|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group8}}}
{{!}}class="navbox-group"{{!}}{{{group8}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list8}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list8}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group9|}}}|
{{#if:{{{group9|{{{list9|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group9}}}
{{!}}class="navbox-group"{{!}}{{{group9}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list9}}}
{{!}}class="navbox-list navbox-odd" style="width:100%;text-align:left;"{{!}}{{{list9}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{group10|}}}|
{{#if:{{{group10|{{{list10|}}}}}}|
{{!}}class="navbox-group"{{!}}{{{group10}}}
{{!}}class="navbox-group"{{!}}{{{group10}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list10}}}}}
{{!}}class="navbox-list navbox-even" style="width:100%;text-align:left;"{{!}}{{{list10}}}}}
|}
|}

Revision as of 14:14, June 12, 2011