Difference between revisions of "Template:Tabset"

From Organic Design wiki
(allows all tabs content passed as parameters)
 
m
 
(2 intermediate revisions 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"
|-
 
 
|
 
|
<!-- 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}}}]]}}
+
{{#ifeq:{{{2}}}|{{tb}}2{{tbc}}||{{tab|1|{{{1}}}}}}}
{{#if:{{{tab2}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=2}}|{{{title2}}}]]}}
+
{{#ifeq:{{{4}}}|{{tb}}4{{tbc}}||{{tab|2|{{{3}}}}}}}
{{#if:{{{tab3}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=3}}|{{{title3}}}]]}}
+
{{#ifeq:{{{6}}}|{{tb}}6{{tbc}}||{{tab|3|{{{5}}}}}}}
{{#if:{{{tab4}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=4}}|{{{title4}}}]]}}
+
{{#ifeq:{{{8}}}|{{tb}}8{{tbc}}||{{tab|4|{{{7}}}}}}}
{{#if:{{{tab5}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=5}}|{{{title5}}}]]}}
+
{{#ifeq:{{{10}}}|{{tb}}10{{tbc}}||{{tab|5|{{{9}}}}}}}
{{#if:{{{tab6}}}|{{tab|[[{{fullurl:{{FULLPAGENAMEE}}|tab=6}}|{{{title6}}}]]}}
+
|style="border-bottom:1px solid #A3A198;" width="100"|&nbsp;
{{#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;
 
 
|}
 
|}
<!-- END TABS -->
+
<!-- CONTENT -->
 +
{{#vardefine:tab|{{#if:{{#request:tab}}|{{#request:tab}}|1}}}}
 +
{{#switch:{{#var:tab}}
 +
|1={{{2}}}
 +
|2={{{4}}}
 +
|3={{{6}}}
 +
|4={{{8}}}
 +
|5={{{10}}}
 +
}}

Latest revision as of 11:53, 3 May 2007