Anonymous

Template:Tabber: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="tabdiv tabber-new {{{$divclass|}}}" style="{{{$containerstyle|}}}">
<includeonly><div class="tabdiv tabber-new {{{$divclass|}}}" style="{{{$divstyle|}}}">
<ul style="{{{$ulstyle|}}}" class="tabber-ul">{{#forargs:
<ul style="{{{$ulstyle|}}}" class="tabber-ul {{{$ulclass|}}}">{{#vardefine:i|0}}{{#forargs:
| key
| key
| value
| value
| <nowiki/>
| <nowiki/>
{{#if: {{#var:value}} |
{{#if:{{#pos:{{#var:key}}|$|0}}
{{#if:{{#pos:{{#var:key}}|$|0}}
     ||<li class="tabber-tab {{{$tab{{#var:key}}class|}}}" style="{{{$tabstyle|}}}">{{#var:key}}</li>
     ||<li class="tabber-tab {{{$tab{{#var:i}}class|}}} {{#ifeq:{{#var:i}}|0|active}} {{{$tabclass|}}}" style="{{{$tabstyle|}}};{{{$tab{{#var:i}}style|}}}"><span class="tabber-tab-content">{{#var:key}}</span></li>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
}}
}}
}}
</ul>{{#forargs:
}}
</ul>{{#vardefine:i|0}}{{#forargs:
| key
| key
| value
| value
| <nowiki/>
| <nowiki/>
{{#if: {{#var:value}} |
{{#if:{{#pos:{{#var:key}}|$|0}}
{{#if:{{#pos:{{#var:key}}|$|0}}
     |
     |
     |<div class="tabber-content {{{$contents{{#var:key}}class|}}}" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{$contentsstyle|}}}">
     |<div class="tabber-content {{{$conclass|}}} {{{$con{{#var:i}}class|}}}" style="{{#ifeq:{{#var:i}}|0||display: none;}}{{{$constyle|}}}">
{{#var:value}}
{{#var:value}}
</div>
</div>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
}}
}}
}}</div></includeonly><noinclude>
}}{{#vardefine:i|0}}</div></includeonly><noinclude>
{{Doc}}</noinclude>
{{Doc}}
</noinclude>