Difference between revisions of "Template:Tabset"

From Organic Design wiki
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| width="100%" cellspacing="0" cellpadding="0" valign="top"|
+
{| border width="100%" cellspacing="0" cellpadding="0" valign="top"
|-
 
 
|
 
|
 
<!-- TABS -->
 
<!-- TABS -->
 
{| border="0" cellspacing="0" cellpadding="1" height="30" width="100%"
 
{| border="0" cellspacing="0" cellpadding="1" height="30" width="100%"
{{#if:{{{1}}}|{{tab|1|{{{2}}}}}}}
+
{{#ifeq:{{{2}}}|{{tb}}2{{tbc}}||{{tab|1|{{{1}}}}}}}
{{#if:{{{3}}}|{{tab|2|{{{4}}}}}}}
+
{{#ifeq:{{{4}}}|{{tb}}4{{tbc}}||{{tab|2|{{{3}}}}}}}
{{#if:{{{5}}}|{{tab|3|{{{6}}}}}}}
+
{{#ifeq:{{{6}}}|{{tb}}6{{tbc}}||{{tab|3|{{{5}}}}}}}
{{#if:{{{7}}}|{{tab|4|{{{8}}}}}}}
+
{{#ifeq:{{{8}}}|{{tb}}8{{tbc}}||{{tab|4|{{{7}}}}}}}
{{#if:{{{9}}}|{{tab|5|{{{10}}}}}}}
+
{{#ifeq:{{{10}}}|{{tb}}10{{tbc}}||{{tab|5|{{{9}}}}}}}
| style="border-bottom:1px solid #A3A198;" width="100"| &nbsp;
+
|style="border-bottom:1px solid #A3A198;" width="100"|&nbsp;
 
|}
 
|}
 
<!-- CONTENT -->
 
<!-- CONTENT -->
 
{{#vardefine:tab|{{#if:{{#request:tab}}|{{#request:tab}}|1}}}}
 
{{#vardefine:tab|{{#if:{{#request:tab}}|{{#request:tab}}|1}}}}
 
{{#switch:{{#var:tab}}
 
{{#switch:{{#var:tab}}
|1={{{1}}}
+
|1={{{2}}}
|2={{{3}}}
+
|2={{{4}}}
|3={{{5}}}
+
|3={{{6}}}
|4={{{7}}}
+
|4={{{8}}}
|5={{{9}}}
+
|5={{{10}}}
 
}}
 
}}

Latest revision as of 11:53, 3 May 2007