Template:Tabs: Difference between revisions

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

Latest revision as of 14:38, 16 February 2022

    Information: If you want to test this template, please use Sandbox.
    This documentation is transcluded from Template:Tabs/doc.
    Warning: This template is deprecated. Please use Template:Tabber instead.