Template
Pagetabs2
From Dogcraft Wiki
(Sorting out the way the markup looks, improving readablity) |
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: {{{ | {{#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; | <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | ||
padding-top:7px; | padding-top:7px; | ||
{{#ifeq: {{{currenttab|}}} | 1 | {{#ifeq: {{{currenttab|}}} | 1 | ||
|border-bottom: 5px solid #ffffff; background: #ffffff;"> | |border-bottom: 5px solid #ffffff; background: #ffffff;">{{{tab1fullurl|[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]}}} | ||
|background: #8b0024;">{{{tab1fullurl|[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]}}} | |||
|background: #8b0024;"> | |||
}} | }} | ||
</div> | </div> | ||
| | | | ||
}} | }} | ||
{{#if: {{{ | {{#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:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | ||
padding-top:7px; | padding-top:7px; | ||
{{#ifeq: {{{currenttab|}}} | 2 | {{#ifeq: {{{currenttab|}}} | 2 | ||
|border-bottom: 5px solid #ffffff; background: #ffffff;"> | |border-bottom: 5px solid #ffffff; background: #ffffff;">{{{tab2fullurl|[[{{{tab2|}}}|<span style="color:black;">'''{{{tab2text|{{{tab2|}}}}}}''']]}}} | ||
|background: #8b0024;">{{{tab2fullurl|[[{{{tab2|}}}|<span style="color:white;">'''{{{tab2text|{{{tab2|}}}}}}''']]}}} | |||
|background: #8b0024;"> | |||
}} | }} | ||
</div> | </div> | ||
| | | | ||
}} | }} | ||
{{#if: {{{ | {{#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:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | ||
padding-top:7px; | padding-top:7px; | ||
{{#ifeq: {{{currenttab|}}} | 3 | {{#ifeq: {{{currenttab|}}} | 3 | ||
|border-bottom: 5px solid #ffffff; background: #ffffff;"> | |border-bottom: 5px solid #ffffff; background: #ffffff;">{{{tab3fullurl|[[{{{tab3|}}}|<span style="color:black;">'''{{{tab3text|{{{tab3|}}}}}}''']]}}} | ||
|background: #8b0024;">{{{tab3fullurl|[[{{{tab3|}}}|<span style="color:white;">'''{{{tab3text|{{{tab3|}}}}}}''']]}}} | |||
|background: #8b0024;"> | |||
}} | }} | ||
</div> | </div> | ||
| | | | ||
}} | }} | ||
{{#if: {{{ | {{#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:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | ||
padding-top:7px; | padding-top:7px; | ||
{{#ifeq: {{{currenttab|}}} | 4 | {{#ifeq: {{{currenttab|}}} | 4 | ||
|border-bottom: 5px solid #ffffff; background: #ffffff;"> | |border-bottom: 5px solid #ffffff; background: #ffffff;">{{{tab4fullurl|[[{{{tab4|}}}|<span style="color:black;">'''{{{tab4text|{{{tab4|}}}}}}''']]}}} | ||
|background: #8b0024;">{{{tab4fullurl|[[{{{tab4|}}}|<span style="color:white;">'''{{{tab4text|{{{tab4|}}}}}}''']]}}} | |||
|background: #8b0024;"> | |||
}} | }} | ||
</div> | </div> | ||
| | | | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{tab5|}}} | ||
|<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; | <div style="width:19%; height: 50px; border-style:solid; border-color: #8b0024; border-width: 5px; float:left; text-align:center; | ||
padding-top:7px; | padding-top:7px; | ||
{{#ifeq: {{{currenttab|}}} | 5 | {{#ifeq: {{{currenttab|}}} | 5 | ||
|border-bottom: 5px solid #ffffff; background: #ffffff;"> | |border-bottom: 5px solid #ffffff; background: #ffffff;">{{{tab5fullurl|[[{{{tab5|}}}|<span style="color:black;">'''{{{tab5text|{{{tab5|}}}}}}''']]}}} | ||
|background: #8b0024;">{{{tab5fullurl|[[{{{tab5|}}}|<span style="color:white;">'''{{{tab1text|{{{tab5|}}}}}}''']]}}} | |||
|background: #8b0024;"> | |||
}} | }} | ||
</div> | </div> | ||
Line 130: | Line 60: | ||
{| class="phoneonly pagetabs" | {| class="phoneonly pagetabs" | ||
|style="text-align: center | |style="text-align: center; height: 50px;" |{{#if: {{{tab1|}}} | ||
|{{#ifeq: {{{currenttab|}}} | 1 | |{{#ifeq: {{{currenttab|}}} | 1 | ||
|{{{tab1fullurl|[[{{{tab1|}}}|<span style="color:black;">'''{{{tab1text|{{{tab1|}}}}}}''']]}}} | |||
|{{{tab1fullurl|[[{{{tab1|}}}|<span style="color:white;">'''{{{tab1text|{{{tab1|}}}}}}''']]}}} | |||
}} | }} | ||
| | | | ||
}} | |||
|style="text-align: center | |style="text-align: center; height: 50px;" |{{#if: {{{tab2|}}} | ||
|{{#ifeq: {{{currenttab|}}} | 2 | |{{#ifeq: {{{currenttab|}}} | 2 | ||
|{{{tab2fullurl|[[{{{tab2|}}}|<span style="color:black;">'''{{{tab2text|{{{tab2|}}}}}}''']]}}} | |||
|{{{tab2fullurl|[[{{{tab2|}}}|<span style="color:white;">'''{{{tab2text|{{{tab2|}}}}}}''']]}}} | |||
}} | }} | ||
| | | | ||
}} | |||
|style="text-align: center | |style="text-align: center; height: 50px;" |{{#if: {{{tab3|}}} | ||
|{{#ifeq: {{{currenttab|}}} | 3 | |{{#ifeq: {{{currenttab|}}} | 3 | ||
|{{{tab3fullurl|[[{{{tab3|}}}|<span style="color:black;">'''{{{tab3text|{{{tab3|}}}}}}''']]}}} | |||
|{{{tab3fullurl|[[{{{tab3|}}}|<span style="color:white;">'''{{{tab3text|{{{tab3|}}}}}}''']]}}} | |||
}} | }} | ||
| | | | ||
}} | |||
|style="text-align: center | |style="text-align: center; height: 50px;" |{{#if: {{{tab4|}}} | ||
|{{#ifeq: {{{currenttab|}}} | 4 | |{{#ifeq: {{{currenttab|}}} | 4 | ||
|{{{tab4fullurl|[[{{{tab4|}}}|<span style="color:black;">'''{{{tab4text|{{{tab4|}}}}}}''']]}}} | |||
|{{{tab4fullurl|[[{{{tab4|}}}|<span style="color:white;">'''{{{tab4text|{{{tab4|}}}}}}''']]}}} | |||
}} | }} | ||
| | | | ||
}} | |||
|style="text-align: center | |style="text-align: center; height: 50px;" |{{#if: {{{tab5|}}} | ||
|{{#ifeq: {{{currenttab|}}} | 5 | |{{#ifeq: {{{currenttab|}}} | 5 | ||
|{{{tab5fullurl|[[{{{tab5|}}}|<span style="color:black;">'''{{{tab5text|{{{tab5|}}}}}}''']]}}} | |||
|{{{tab5fullurl|[[{{{tab5|}}}|<span style="color:white;">'''{{{tab5text|{{{tab5|}}}}}}''']]}}} | |||
}} | }} | ||
| | | | ||
}} | |||
| | | | ||
|} | |} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{ | {{pagetabs2 | ||
| | |tab1 = User:{{ROOTPAGENAME}} | ||
|tab1fullurl = Test | |||
|tab1fullurl = | |tab2 = User:{{ROOTPAGENAME}}/Trophies | ||
| | |||
|tab2text = Trophies | |tab2text = Trophies | ||
| | |tab3 = Special:Contributions/{{ROOTPAGENAME}} | ||
|tab3text = Contributions | |tab3text = Contributions | ||
| | |tab4 = Tab 4 | ||
|tab5 = Tab 5 | |||
| | |||
|tab5text = | |tab5text = | ||
|tab5fullurl = Displaytext | |tab5fullurl = Displaytext | ||
|currenttab = 2 | |currenttab = 2 | ||
}} | }} |
Revision as of 01:00, 23 April 2020
This page was last modified on 23 April 2020, at 01:00. (11 months ago)