Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TournamentTabs: Difference between revisions

Template page
No edit summary
No edit summary
Tag: Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly><noinclude>Navigation tabs for tournament pages. Theme-aware, compact, uniform width.
Navigation tabs for tournament pages.
Usage: {{TournamentTabs}}
Usage: {{TournamentTabs}}
</noinclude><includeonly>
</noinclude><includeonly>
<div class="tournament-tabs" style="display:flex; flex-wrap:wrap; gap:4px; border-bottom:2px solid var(--tab-border-active); margin-bottom:20px; font-family:sans-serif;">


<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|{{#var:basePage}}|#eee|#fff}};  
background-color:{{#switch:{{SUBPAGENAME}}|Standings|Statistics|Teams|Matches|The Grind=var(--tab-bg-inactive)|#default=var(--tab-bg-active)}};  
border-bottom:{{#ifeq:{{SUBPAGENAME}}|{{#var:basePage}}|3px solid #007bff|none}};">
border-bottom:{{#switch:{{SUBPAGENAME}}|Standings|Statistics|Teams|Matches|The Grind=none|#default=3px solid var(--tab-border-active)}};">
[[{{#var:basePage}}|<span style="color:#333;">Overview</span>]]
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}|<span style="display:block; color:var(--text-main);">Overview</span>]]
</div>
</div>


<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
{{#ifexist: {{#switch:{{SUBPAGENAME}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|#eee|#fff}};  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid #007bff|none}};">
|#default={{PAGENAME}}
[[{{#var:basePage}}/Standings|<span style="color:#333;">Standings</span>]]
}}/The Grind |
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|The Grind|var(--tab-bg-active)|var(--tab-bg-inactive)}};  
border-bottom:{{#ifeq:{{SUBPAGENAME}}|The Grind|3px solid var(--tab-border-active)|none}};">
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/The Grind|<span style="display:block; color:var(--text-main);">The Grind</span>]]
</div>
</div>
}}


<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
{{#ifexist: {{#switch:{{SUBPAGENAME}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|#eee|#fff}};  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid #007bff|none}};">
|#default={{PAGENAME}}
[[{{#var:basePage}}/Statistics|<span style="color:#333;">Statistics</span>]]
}}/Standings |
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|var(--tab-bg-active)|var(--tab-bg-inactive)}};  
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid var(--tab-border-active)|none}};">
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Standings|<span style="display:block; color:var(--text-main);">Standings</span>]]
</div>
</div>
}}
{{#ifexist: {{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Statistics |
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|var(--tab-bg-active)|var(--tab-bg-inactive)}};
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid var(--tab-border-active)|none}};">
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Statistics|<span style="display:block; color:var(--text-main);">Statistics</span>]]
</div>
}}
{{#ifexist: {{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Teams |
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|Teams|var(--tab-bg-active)|var(--tab-bg-inactive)}};
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Teams|3px solid var(--tab-border-active)|none}};">
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Teams|<span style="display:block; color:var(--text-main);">Teams</span>]]
</div>
}}
{{#ifexist: {{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Matches |
<div style="padding:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
background-color:{{#ifeq:{{SUBPAGENAME}}|Matches|var(--tab-bg-active)|var(--tab-bg-inactive)}};
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Matches|3px solid var(--tab-border-active)|none}};">
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
}}/Matches|<span style="display:block; color:var(--text-main);">Matches</span>]]
</div>
}}


</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 08:05, 23 January 2026

Navigation tabs for tournament pages. Theme-aware, compact, uniform width. Usage: