Difference between revisions of "Template:Tabset"
From Organic Design wiki
(allows all tabs content passed as parameters) |
|||
Line 2: | Line 2: | ||
|- | |- | ||
| | | | ||
− | <!-- | + | <!-- TABS --> |
{| border="0" cellspacing="0" cellpadding="1" height="30" width="100%" | {| border="0" cellspacing="0" cellpadding="1" height="30" width="100%" | ||
− | {{#if:{{{ | + | {{#if:{{{1}}}|{{tab|1|{{{2}}}}}}} |
− | + | {{#if:{{{3}}}|{{tab|2|{{{4}}}}}}} | |
− | {{#if:{{{ | + | {{#if:{{{5}}}|{{tab|3|{{{6}}}}}}} |
− | + | {{#if:{{{7}}}|{{tab|4|{{{8}}}}}}} | |
− | {{#if:{{{ | + | {{#if:{{{9}}}|{{tab|5|{{{10}}}}}}} |
− | |||
− | {{#if:{{{ | ||
− | |||
− | {{#if:{{{ | ||
| style="border-bottom:1px solid #A3A198;" width="100"| | | style="border-bottom:1px solid #A3A198;" width="100"| | ||
|} | |} | ||
− | <!-- | + | <!-- CONTENT --> |
+ | {{#vardefine:tab|{{#if:{{#request:tab}}|{{#request:tab}}|1}}}} | ||
+ | {{#switch:{{#var:tab}} | ||
+ | |1={{{1}}} | ||
+ | |2={{{3}}} | ||
+ | |3={{{5}}} | ||
+ | |4={{{7}}} | ||
+ | |5={{{9}}} | ||
+ | }} |