Difference between revisions of "Template:Tabset"

From Organic Design wiki
(allows all tabs content passed as parameters)
 
Line 2: Line 2:
 
|-  
 
|-  
 
|
 
|
<!-- BEGIN TABS -->
+
<!-- TABS -->
 
{| border="0" cellspacing="0" cellpadding="1" height="30" width="100%"
 
{| border="0" cellspacing="0" cellpadding="1" height="30" width="100%"
{{#if:{{{tab1}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=1}}|{{{title1}}}]]}}
+
{{#if:{{{1}}}|{{tab|1|{{{2}}}}}}}
{{#if:{{{tab2}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=2}}|{{{title2}}}]]}}
+
{{#if:{{{3}}}|{{tab|2|{{{4}}}}}}}
{{#if:{{{tab3}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=3}}|{{{title3}}}]]}}
+
{{#if:{{{5}}}|{{tab|3|{{{6}}}}}}}
{{#if:{{{tab4}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=4}}|{{{title4}}}]]}}
+
{{#if:{{{7}}}|{{tab|4|{{{8}}}}}}}
{{#if:{{{tab5}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=5}}|{{{title5}}}]]}}
+
{{#if:{{{9}}}|{{tab|5|{{{10}}}}}}}
{{#if:{{{tab6}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=6}}|{{{title6}}}]]}}
 
{{#if:{{{tab7}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=7}}|{{{title7}}}]]}}
 
{{#if:{{{tab8}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=8}}|{{{title8}}}]]}}
 
{{#if:{{{tab9}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=9}}|{{{title9}}}]]}}
 
 
| style="border-bottom:1px solid #A3A198;" width="100"| &nbsp;
 
| style="border-bottom:1px solid #A3A198;" width="100"| &nbsp;
 
|}
 
|}
<!-- END TABS -->
+
<!-- CONTENT -->
 +
{{#vardefine:tab|{{#if:{{#request:tab}}|{{#request:tab}}|1}}}}
 +
{{#switch:{{#var:tab}}
 +
|1={{{1}}}
 +
|2={{{3}}}
 +
|3={{{5}}}
 +
|4={{{7}}}
 +
|5={{{9}}}
 +
}}

Revision as of 11:37, 3 May 2007