Template

Pagetabs

From Dogcraft Wiki

No edit summary
No edit summary
Line 3: Line 3:
{{#if: {{{tab1}}}
{{#if: {{{tab1}}}
|<div style="width:5px; height:50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
|<div style="width:5px; height:50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; background: #8b0024; float:left; text-align:center; padding-top:7px;">
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{{tab1}}}
{{#ifeq: {{{currenttab|}}} | 1
|border-bottom: 5px solid #ffffff; background: #ffffff; color:black;">
[[{{{tab1}}}|<span style="color:black;">'''{{{tab1text}}}''']]
|background: #8b0024; color:white;">
[[{{{tab1}}}|<span style="color:white;">'''{{{tab1text}}}''']]
}}
</div>
</div>
|}}
|}}
{{#if: {{{tab2}}}
{{#if: {{{tab2}}}
|<div style="width:5px; height:50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
|<div style="width:5px; height:50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; border-bottom: 5px solid #ffffff; background: #ffffff; float:left; text-align:center; padding-top:7px;">
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{{tab2}}}
{{#ifeq: {{{currenttab|}}} | 2
|border-bottom: 5px solid #ffffff; background: #ffffff;">
[[{{{tab2}}}|<span style="color:black;">'''{{{tab2text}}}''']]
|background: #8b0024;">
[[{{{tab2}}}|<span style="color:white;">'''{{{tab2text}}}''']]
}}
</div>
</div>
|}}
|}}
{{#if: {{{tab3}}}
{{#if: {{{tab3}}}
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; background: #8b0024; float:left; text-align:center; padding-top:7px;">
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{{tab3}}}
{{#ifeq: {{{currenttab|}}} | 3
|border-bottom: 5px solid #ffffff; background: #ffffff;">
[[{{{tab3}}}|<span style="color:black;">'''{{{tab3text}}}''']]
|background: #8b0024;">
[[{{{tab3}}}|<span style="color:white;">'''{{{tab3text}}}''']]
}}
</div>
</div>
|}}
|}}
{{#if: {{{tab4}}}
{{#if: {{{tab4}}}
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; background: #8b0024; float:left; text-align:center; padding-top:7px;">
<div style="width:20%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{{tab4}}}
{{#ifeq: {{{currenttab|}}} | 4
|border-bottom: 5px solid #ffffff; background: #ffffff; color:black;">
[[{{{tab4}}}|<span style="color:black;">'''{{{tab4text}}}''']]
|background: #8b0024; color:white;">
[[{{{tab4}}}|<span style="color:white;">'''{{{tab4text}}}''']]
}}
</div>
</div>
|}}
|}}
</div>
</div>
{| class="phoneonly"
{| class="phoneonly"
| style="text-align: center; width: 290px; height: 50px; " |{{{tab1}}}
| style="text-align: center; width: 290px; height: 50px; " |{{#ifeq: {{{currenttab|}}} | 1 |[[{{{tab1}}}|<span style="color:black;">'''{{{tab1text}}}''']]|[[{{{tab1}}}|<span style="color:white;">'''{{{tab1text}}}''']]}}
| style="text-align: center; width: 290px; height: 50px; " |{{{tab2}}}
| style="text-align: center; width: 290px; height: 50px; " |{{#ifeq: {{{currenttab|}}} | 2 |[[{{{tab2}}}|<span style="color:black;">'''{{{tab2text}}}''']]|[[{{{tab2}}}|<span style="color:white;">'''{{{tab2text}}}''']]}}
| style="text-align: center; width: 290px; height: 50px; " |{{{tab3}}}
| style="text-align: center; width: 290px; height: 50px; " |{{#ifeq: {{{currenttab|}}} | 3 |[[{{{tab3}}}|<span style="color:black;">'''{{{tab3text}}}''']]|[[{{{tab3}}}|<span style="color:white;">'''{{{tab3text}}}''']]}}
| style="text-align: center; width: 290px; height: 50px; " |{{{tab4}}}
| style="text-align: center; width: 290px; height: 50px; " |{{#ifeq: {{{currenttab|}}} | 4 |[[{{{tab4}}}|<span style="color:black;">'''{{{tab4text}}}''']]|[[{{{tab4}}}|<span style="color:white;">'''{{{tab4text}}}''']]}}
|
|
|}
|}
Line 36: Line 56:
<noinclude>
<noinclude>
{{Tab New
{{Tab New
|tab1   = [[User:{{ROOTPAGENAME}}|<span style="color:white;">'''User Page''']]
|tab1       = User:{{ROOTPAGENAME}}
|tab2   = [[User:{{ROOTPAGENAME}}/Trophies|<span style="color:black;">'''Trophies''']]
|tab1text  = User Page
|tab3   = [[Special:Contributions/{{ROOTPAGENAME}}|<span style="color:white;">'''Contributions''']]
|tab2       = User:{{ROOTPAGENAME}}/Trophies
|tab4   =  
|tab2text  = Trophies
|tab3       = Special:Contributions/{{ROOTPAGENAME}}
|tab3text  = Contributions
|tab4       =
|tab4text  =
|currenttab = 2
}}
}}

Revision as of 17:45, 22 April 2020

This page was last modified on 22 April 2020, at 17:45. (11 months ago)