No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{first|}}}||{{#if:{{{rounding|}}}||<td class="tab" style="width: 1%; border-bottom: {{#if:{{{border|}}}|{{{border}}}|solid 2px #87CEEB}}"> </td>}}}}<td class="tab" style="text-align: {{#if:{{{tab align|}}}|{{{tab align}}}|center}}; {{#if:{{{rounding|}}}|-moz-border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0; -webkit-border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0; border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0;}} padding:0.3em; border: {{#if:{{{border|}}}|{{{border}}}|solid 2px #87CEEB}}; font-size: 100%; {{#ifeq:{{anchorencode:{{FULLPAGENAME}}}}|{{anchorencode:{{{URL}}}}}|background-color: {{#if:{{{frame background|}}}|{{{frame background}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{tab background|}}}|{{{tab background}}}|#D3D3D3}}; }}" width="{{#expr:(100/{{{tab count|{{ParamCount|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}}}}})-2}}%">{{#if:{{{Image|}}}|[[File:{{{Image}}}| | <includeonly>{{#if:{{{first|}}}||{{#if:{{{rounding|}}}||<td class="tab" style="width: 1%; border-bottom: {{#if:{{{border|}}}|{{{border}}}|solid 2px #87CEEB}}"> </td>}}}}<td class="tab" style="text-align: {{#if:{{{tab align|}}}|{{{tab align}}}|center}}; {{#if:{{{rounding|}}}|-moz-border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0; -webkit-border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0; border-radius: {{#if:{{{asym|}}}|{{#expr:{{{rounding}}}*{{{asym}}}}}|{{{rounding}}}}}px {{{rounding}}}px 0 0;}} padding:0.3em; border: {{#if:{{{border|}}}|{{{border}}}|solid 2px #87CEEB}}; font-size: 100%; {{#ifeq:{{anchorencode:{{FULLPAGENAME}}}}|{{anchorencode:{{{URL}}}}}|background-color: {{#if:{{{frame background|}}}|{{{frame background}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{tab background|}}}|{{{tab background}}}|#D3D3D3}}; }}" width="{{#expr:(100/{{{tab count|{{ParamCount|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}}}}})-2}}%">{{#if:{{{Image|}}}|[[File:{{{Image}}}|30px|{{{Tab}}}|link={{{URL}}}]] |}}[[{{{URL}}}|{{{Tab}}}]]</td></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 15:13, 30 September 2014
Usage
{{Tab}} expects URL
and Tab
to be passed to it. If the current page title matches URL
then the tab will be styled differently (as it is the selected tab). first
is used to point the first tab of the tabs bar. This is avoiding to have a small gap at the beginning of the bar (the gap is used between tabs).
See also
- {{Tab top}}
The above documentation is transcluded from Template:Tab/doc. Please add categories to the /doc subpage. Subpages of this template. |