Anonymous

Template:Tabs: Difference between revisions

From Elwiki
itried
mNo edit summary
(itried)
 
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#tag:tabber|{{#forargs:tab
<div id="tabs-{{{name|}}}" class="tabdiv {{{divclass|}}}" style="{{{containerstyle|}}}">
<ul style="{{{ulstyle|}}}">{{#forargs:tab
| key
| key
| value
| value
|
| {{#if:{{#var:value|}}
{{!}}-{{!}}{{#var:value|}}=
    |<li id="{{{name|}}}tabtag{{#var:key}}" class="{{{tab{{#var:key}}class|}}}{{{tabclass|}}}" style="{{{tab{{#var:key}}style|}}}{{{tabstyle|}}}">[[#{{{name|}}}tab{{#var:key|}}|{{#var:value|}}]]</li>
{{{contents{{#var:key|}}|}}}
  }}
}}
}}</ul>{{#forargs:tab
}}<noinclude>
| key
{{Documentation}}</noinclude>
| value
| {{#if:{{#var:value|}}
    |<div id="{{{name|}}}tab{{#var:key}}" class="{{{contentsclass|}}}" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">
{{{contents{{#var:key}}|}}}
</div>
  }}
}}</div><noinclude>
{{Doc}}</noinclude>