Template

Pagetabs

From Dogcraft Wiki

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="nophone" style="width:100%; height: 50px; border-bottom: 5px solid #8b0024;">
<div class="nophone" style="width:100%; height: 50px; border-bottom: 5px solid #8b0024;">
{{#if: {{{tab1link}}}
  {{#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:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;  
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;  
{{#ifeq: {{{currenttab|}}} | 1
      padding-top:7px;
|border-bottom: 5px solid #ffffff; background: #ffffff; color:black;">
      {{#ifeq: {{{currenttab|}}} | 1
{{#if: {{{tab1text}}}
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]
|[[{{{tab1link}}}|<span style="color:black;">'''{{{tab1text}}}''']]
        |background: #8b0024;">[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]
|[[{{{tab1link}}}|<span style="color:black;">'''{{{tab1link}}}''']]
      }}
}}
      </div>
|background: #8b0024; color:white;">
      |
{{#if: {{{tab1text}}}
  }}
|[[{{{tab1link}}}|<span style="color:white;">'''{{{tab1text}}}''']]
  {{#if: {{{tab2|}}}
|[[{{{tab1link}}}|<span style="color:white;">'''{{{tab1link}}}''']]
      |<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
}}
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;
}}
      padding-top:7px;
      {{#ifeq: {{{currenttab|}}} | 2
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab2|}}}|<span style="color:black;">'''{{{tab2text|{{{tab2|}}}}}}''']]
        |background: #8b0024;">[[{{{tab2|}}}|<span style="color:white;">'''{{{tab2text|{{{tab2|}}}}}}''']]
      }}
      </div>
      |
  }}
  {{#if: {{{tab3|}}}
      |<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;
      padding-top:7px;
      {{#ifeq: {{{currenttab|}}} | 3
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab3|}}}|<span style="color:black;">'''{{{tab3text|{{{tab3|}}}}}}''']]
        |background: #8b0024;">[[{{{tab3|}}}|<span style="color:white;">'''{{{tab3text|{{{tab3|}}}}}}''']]
      }}
      </div>
      |
  }}
  {{#if: {{{tab4|}}}
      |<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;
      padding-top:7px;
      {{#ifeq: {{{currenttab|}}} | 4
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab4|}}}|<span style="color:black;">'''{{{tab4text|{{{tab4|}}}}}}''']]
        |background: #8b0024;">[[{{{tab4|}}}|<span style="color:white;">'''{{{tab4text|{{{tab4|}}}}}}''']]
      }}
      </div>
      |
  }}
  {{#if: {{{tab5|}}}
      |<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;
      padding-top:7px;
      {{#ifeq: {{{currenttab|}}} | 5
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab5|}}}|<span style="color:black;">'''{{{tab5text|{{{tab5|}}}}}}''']]
        |background: #8b0024;">[[{{{tab5|}}}|<span style="color:white;">'''{{{tab5text|{{{tab5|}}}}}}''']]
      }}
      </div>
      |
  }}
</div>
</div>
|}}
 
{{#if: {{{tab2link}}}
 
|<div style="width:5px; height:50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
{| class="phoneonly pagetabs"
<div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
|style="text-align: center; height: 50px; "
{{#ifeq: {{{currenttab|}}} | 2
|{{#if: {{{tab1|}}}
|border-bottom: 5px solid #ffffff; background: #ffffff;">
  |{{#ifeq: {{{currenttab|}}} | 1
{{#if: {{{tab2text}}}
      |[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]
|[[{{{tab2link}}}|<span style="color:black;">'''{{{tab2text}}}''']]
      |[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]
|[[{{{tab2link}}}|<span style="color:black;">'''{{{tab2link}}}''']]
  }}
  |
}}
}}
|background: #8b0024;">
|style="text-align: center; height: 50px; "  
{{#if: {{{tab2text}}}
|{{#if: {{{tab2|}}}
|[[{{{tab2link}}}|<span style="color:white;">'''{{{tab2text}}}''']]
  |{{#ifeq: {{{currenttab|}}} | 2
|[[{{{tab2link}}}|<span style="color:white;">'''{{{tab2link}}}''']]
      |[[{{{tab2|}}}|<span style="color:black;">'''{{{tab2text|{{{tab2|}}}}}}''']]
      |[[{{{tab2|}}}|<span style="color:white;">'''{{{tab2text|{{{tab2|}}}}}}''']]
  }}
  |
}}
}}
|style="text-align: center; height: 50px; "
|{{#if: {{{tab3|}}}
  |{{#ifeq: {{{currenttab|}}} | 3
      |[[{{{tab3|}}}|<span style="color:black;">'''{{{tab3text|{{{tab3|}}}}}}''']]
      |[[{{{tab3|}}}|<span style="color:white;">'''{{{tab3text|{{{tab3|}}}}}}''']]
  }}
  |
}}
}}
</div>
|style="text-align: center; height: 50px; "
|}}
|{{#if: {{{tab4|}}}
{{#if: {{{tab3link}}}
  |{{#ifeq: {{{currenttab|}}} | 4
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
      |[[{{{tab4|}}}|<span style="color:black;">'''{{{tab4text|{{{tab4|}}}}}}''']]
<div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
      |[[{{{tab4|}}}|<span style="color:white;">'''{{{tab4text|{{{tab4|}}}}}}''']]
{{#ifeq: {{{currenttab|}}} | 3
  }}
|border-bottom: 5px solid #ffffff; background: #ffffff;">
  |
{{#if: {{{tab3text}}}
|[[{{{tab3link}}}|<span style="color:black;">'''{{{tab3text}}}''']]
|[[{{{tab3link}}}|<span style="color:black;">'''{{{tab3link}}}''']]
}}
}}
|background: #8b0024;">
|style="text-align: center; height: 50px; "  
{{#if: {{{tab3text}}}
|{{#if: {{{tab5|}}}
|[[{{{tab3link}}}|<span style="color:white;">'''{{{tab3text}}}''']]
  |{{#ifeq: {{{currenttab|}}} | 5
|[[{{{tab3link}}}|<span style="color:white;">'''{{{tab3link}}}''']]
      |[[{{{tab5|}}}|<span style="color:black;">'''{{{tab5text|{{{tab5|}}}}}}''']]
      |[[{{{tab5|}}}|<span style="color:white;">'''{{{tab5text|{{{tab5|}}}}}}''']]
  }}
  |
}}
}}
}}
</div>
|}}
{{#if: {{{tab4link}}}
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{#ifeq: {{{currenttab|}}} | 4
|border-bottom: 5px solid #ffffff; background: #ffffff; color:black;">
{{#if: {{{tab4text}}}
|[[{{{tab4link}}}|<span style="color:black;">'''{{{tab4text}}}''']]
|[[{{{tab4link}}}|<span style="color:black;">'''{{{tab4link}}}''']]
}}
|background: #8b0024; color:white;">
{{#if: {{{tab4text}}}
|[[{{{tab4link}}}|<span style="color:white;">'''{{{tab4text}}}''']]
|[[{{{tab4link}}}|<span style="color:white;">'''{{{tab4link}}}''']]
}}
}}
</div>
|}}
{{#if: {{{tab5link}}}
|<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
<div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; padding-top:7px;
{{#ifeq: {{{currenttab|}}} | 5
|border-bottom: 5px solid #ffffff; background: #ffffff; color:black;">
{{#if: {{{tab5text}}}
|[[{{{tab5link}}}|<span style="color:white;">'''{{{tab5text}}}''']]
|[[{{{tab5link}}}|<span style="color:white;">'''{{{tab5link}}}''']]
}}
|background: #8b0024; color:white;">
{{#if: {{{tab5text}}}
|[[{{{tab5link}}}|<span style="color:white;">'''{{{tab5text}}}''']]
|[[{{{tab5link}}}|<span style="color:white;">'''{{{tab5link}}}''']]
}}
}}
</div>
|}}
</div>
{| class="phoneonly pagetabs"
| style="text-align: center; width: 290px; height: 50px; " |{{#if: {{{tab1}}}|{{#ifeq: {{{currenttab|}}} | 1 |[[{{{tab1link}}}|<span style="color:black;">'''{{{tab1text}}}''']]|[[{{{tab1link}}}|<span style="color:white;">'''{{{tab1text}}}''']]}}|}}
| style="text-align: center; width: 290px; height: 50px; " |{{#if: {{{tab2}}}|{{#ifeq: {{{currenttab|}}} | 2 |[[{{{tab2link}}}|<span style="color:black;">'''{{{tab2text}}}''']]|[[{{{tab2link}}}|<span style="color:white;">'''{{{tab2text}}}''']]}}|}}
| style="text-align: center; width: 290px; height: 50px; " |{{#if: {{{tab3}}}|{{#ifeq: {{{currenttab|}}} | 3 |[[{{{tab3link}}}|<span style="color:black;">'''{{{tab3text}}}''']]|[[{{{tab3link}}}|<span style="color:white;">'''{{{tab3text}}}''']]}}|}}
| style="text-align: center; width: 290px; height: 50px; " |{{#if: {{{tab4}}}|{{#ifeq: {{{currenttab|}}} | 4 |[[{{{tab4link}}}|<span style="color:black;">'''{{{tab4text}}}''']]|[[{{{tab4link}}}|<span style="color:white;">'''{{{tab4text}}}''']]}}|}}
|
|
|}
|}
Line 97: Line 105:
<noinclude>
<noinclude>
{{pagetabs
{{pagetabs
|tab1link  = User:{{ROOTPAGENAME}}
|tab1      = User:{{ROOTPAGENAME}}
|tab1text  = User Page
|tab1text  = User Page
|tab2link  = User:{{ROOTPAGENAME}}/Trophies
|tab2      = User:{{ROOTPAGENAME}}/Trophies
|tab2text  = Trophies
|tab2text  = Trophies
|tab3link  = Special:Contributions/{{ROOTPAGENAME}}
|tab3      = Special:Contributions/{{ROOTPAGENAME}}
|tab3text  = Contributions
|tab3text  = Contributions
|tab4link  = Tab 4
|tab5      = Tab 5
|tab4text  =
|tab5link  = Tab 5
|tab5text  = This is not required
|currenttab = 2
|currenttab = 2
}}
}}

Revision as of 00:24, 23 April 2020



style="text-align: center; height: 50px; " User Page style="text-align: center; height: 50px; " Trophies style="text-align: center; height: 50px; " Contributions style="text-align: center; height: 50px; " style="text-align: center; height: 50px; " Tab 5


This page was last modified on 23 April 2020, at 00:24. (5 months ago)
Background Valentine's Day Event 2024 by TheWhiteTigerNL