Difference between revisions of "Template:Tabset"

From Organic Design wiki
m
Line 4: Line 4:
 
<!-- 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}}}}}}}
+
{{#if:{{{2}}}|{{tab|1|{{{1}}}}}}}
{{#if:{{{3}}}|{{tab|2|{{{4}}}}}}}
+
{{#if:{{{4}}}|{{tab|2|{{{3}}}}}}}
{{#if:{{{5}}}|{{tab|3|{{{6}}}}}}}
+
{{#if:{{{6}}}|{{tab|3|{{{5}}}}}}}
{{#if:{{{7}}}|{{tab|4|{{{8}}}}}}}
+
{{#if:{{{8}}}|{{tab|4|{{{7}}}}}}}
{{#if:{{{9}}}|{{tab|5|{{{10}}}}}}}
+
{{#if:{{{10}}}|{{tab|5|{{{9}}}}}}}
 
| style="border-bottom:1px solid #A3A198;" width="100"| &nbsp;
 
| style="border-bottom:1px solid #A3A198;" width="100"| &nbsp;
 
|}
 
|}
Line 14: Line 14:
 
{{#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}}}
 
}}
 
}}

Revision as of 11:39, 3 May 2007