Template

Pagetabs

From Dogcraft Wiki

m (Bringing this in line with pagetabs2)
(complete rework)
Line 1: Line 1:
<includeonly><div class="vdesktop noexcerpt" style="width:100%; height: 50px; border-bottom: 5px solid #8b0024;">
<includeonly>
  {{#if: {{{tab1|}}}
<div class="pagetabs noexcerpt" style="display:flex; justify-content:space-around; width: 100%; margin: 5px 0px; font-weight: bold; gap:3px; flex-wrap:wrap;"><!--
      |<div style="width:5px; height: 50px; border-bottom: 5px solid #8b0024; background: #ffffff; float:left;"></div>
--><div>[[{{{tab1|}}}|{{{title1|{{{tab1|}}}}}}]]</div><!--
      <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center;
--><div>[[{{{tab2|}}}|{{{title2|{{{tab2|}}}}}}]]</div><!--
      padding-top:7px;
-->{{#if:{{{tab3|}}}|<div>[[{{{tab3|}}}|{{{title3|{{{tab3|}}}}}}]]</div>}}<!--
      {{#ifeq: {{{currenttab|}}} | 1
-->{{#if:{{{tab4|}}}|<div>[[{{{tab4|}}}|{{{title4|{{{tab4|}}}}}}]]</div>}}<!--
        |border-bottom: 5px solid #ffffff; background: #ffffff;">[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]
-->{{#if:{{{tab5|}}}|<div>[[{{{tab5|}}}|{{{title5|{{{tab5|}}}}}}]]</div>}}<!--
        |background: #8b0024;">[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]
--></div>
      }}
<hr/></includeonly><noinclude>
      </div>
      |
  }}
  {{#if: {{{tab2|}}}
      |<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>
{| class="vmobile noexcerpt" style="background: #8b0024;"
|style="text-align: center; height: 50px;" |{{#if: {{{tab1|}}}
  |{{#ifeq: {{{currenttab|}}} | 1
      |[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]
      |[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]
  }}
  |
}}
|style="text-align: center; height: 50px;" |{{#if: {{{tab2|}}}
  |{{#ifeq: {{{currenttab|}}} | 2
      |[[{{{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|}}}}}}''']]
  }}
  |
}}
|style="text-align: center; height: 50px;" |{{#if: {{{tab4|}}}
  |{{#ifeq: {{{currenttab|}}} | 4
      |[[{{{tab4|}}}|<span style="color:black;">'''{{{tab4text|{{{tab4|}}}}}}''']]
      |[[{{{tab4|}}}|<span style="color:white;">'''{{{tab4text|{{{tab4|}}}}}}''']]
  }}
  |
}}
|style="text-align: center; height: 50px;" |{{#if: {{{tab5|}}}
  |{{#ifeq: {{{currenttab|}}} | 5
      |[[{{{tab5|}}}|<span style="color:black;">'''{{{tab5text|{{{tab5|}}}}}}''']]
      |[[{{{tab5|}}}|<span style="color:white;">'''{{{tab5text|{{{tab5|}}}}}}''']]
  }}
  |
}}
|
|}</includeonly><noinclude>
{{pagetabs
{{pagetabs
|tab1       = User:{{ROOTPAGENAME}}
|tab1     = {{FULLPAGENAME}}
|tab1text   = User Page
|title1   = Pagetabs
|tab2       = User:{{ROOTPAGENAME}}/Trophies
|tab2     = Template:Pagetabs2
|tab2text   = Trophies
|title2   = Pagetabs2
|tab3       = Special:Contributions/{{ROOTPAGENAME}}
|tab3     = Special:History/{{FULLPAGENAME}}
|tab3text   = Contributions
|title3   = History
|tab5       = Tab 5
|tab5     = Main Page
|currenttab = 2
}}
}}

Revision as of 00:47, 6 May 2022

This page was last modified on 6 May 2022, at 00:47. (5 months ago)
Background Dragon Slayer - Retriever by Ironboundred