Template:Tab: Difference between revisions

From FamilySearch Wiki
(add extra test for FULLPAGENAMEE)
(Undo revision 633649 by Cottrells (Talk))
Line 1: Line 1:
<includeonly>{{#if:{{{preums|}}}||<td style="width: 2%; border-bottom: {{#if:{{{border|}}}|{{{border}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td style="text-align: {{#if:{{{Tab alignment|}}}|{{{Tab alignment}}}|center}}; {{#if:{{{rounding|}}}|-moz-border-radius: {{{rounding}}} {{{rounding}}} 0 0; border-radius: {{{rounding}}} {{{rounding}}} 0 0;}} padding:0.3em; border: {{#if:{{{border|}}}|{{{border}}}|solid 2px #A3B1BF}}; font-size: {{{font-size|110}}}%; {{#ifeq:{{FULLPAGENAME}}|{{{URL}}}|background-color: {{#if:{{{On tab color|}}}|{{{On tab color}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{Off tab color|}}}|{{{Off tab color}}}|#CEE0F2}}; }}; {{#ifeq:{{FULLPAGENAMEE}}|{{{URL}}}|background-color: {{#if:{{{On tab color|}}}|{{{On tab color}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{Off tab color|}}}|{{{Off tab color}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{Number of defined parameters|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}})-2}}%">{{#if:{{{Image|}}}|[[Image:{{{Image}}}|20px|{{{Tab}}}|link={{{URL}}}]]&nbsp;|}}[[{{{URL}}}|{{{Tab}}}]]</td></includeonly><noinclude>
<includeonly>{{#if:{{{preums|}}}||<td style="width: 2%; border-bottom: {{#if:{{{border|}}}|{{{border}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td style="text-align: {{#if:{{{Tab alignment|}}}|{{{Tab alignment}}}|center}}; {{#if:{{{rounding|}}}|-moz-border-radius: {{{rounding}}} {{{rounding}}} 0 0; border-radius: {{{rounding}}} {{{rounding}}} 0 0;}} padding:0.3em; border: {{#if:{{{border|}}}|{{{border}}}|solid 2px #A3B1BF}}; font-size: {{{font-size|110}}}%; {{#ifeq:{{FULLPAGENAME}}|{{{URL}}}|background-color: {{#if:{{{On tab color|}}}|{{{On tab color}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{Off tab color|}}}|{{{Off tab color}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{Number of defined parameters|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}})-2}}%">{{#if:{{{Image|}}}|[[Image:{{{Image}}}|20px|{{{Tab}}}|link={{{URL}}}]]&nbsp;|}}[[{{{URL}}}|{{{Tab}}}]]</td></includeonly><noinclude>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 07:25, 12 May 2011

[view] [edit] [history] [purge] Documentation icon Template documentation