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
 
(11 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.
Auto-detecting navigation tabs. Tabs appear only if the subpage exists.
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(--primary-color, #007bff); margin-bottom:20px;">
<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;">


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


<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
{{#ifexist: {{#switch:{{SUBPAGENAME}}
background-color:{{#ifeq:{{PAGENAME}}|{{#var:basePage}}|#eee|#fff}};  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
border-bottom:{{#ifeq:{{PAGENAME}}|{{#var:basePage}}|3px solid var(--primary-color, #007bff)|none}};">
|#default={{PAGENAME}}
[[{{#var:basePage}}|<span style="color:var(--text-main, #333);">Overview</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>
}}


{{#ifexist: {{#var:basePage}}/Standings |
{{#ifexist: {{#switch:{{SUBPAGENAME}}
<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|#eee|#fff}};  
|#default={{PAGENAME}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid var(--primary-color, #007bff)|none}};">
}}/Standings |
[[{{#var:basePage}}/Standings|<span style="color:var(--text-main, #333);">Standings</span>]]
<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: {{#var:basePage}}/Statistics |
{{#ifexist: {{#switch:{{SUBPAGENAME}}
<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|#eee|#fff}};  
|#default={{PAGENAME}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid var(--primary-color, #007bff)|none}};">
}}/Statistics |
[[{{#var:basePage}}/Statistics|<span style="color:var(--text-main, #333);">Statistics</span>]]
<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>
</div>
}}
}}


{{#ifexist: {{#var:basePage}}/Teams |
{{#ifexist: {{#switch:{{SUBPAGENAME}}
<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Teams|#eee|#fff}};  
|#default={{PAGENAME}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Teams|3px solid var(--primary-color, #007bff)|none}};">
}}/Teams |
[[{{#var:basePage}}/Teams|<span style="color:var(--text-main, #333);">Teams</span>]]
<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>
</div>
}}
}}


{{#ifexist: {{#var:basePage}}/Matches |
{{#ifexist: {{#switch:{{SUBPAGENAME}}
<div style="padding:10px 20px; font-weight:bold; cursor:pointer;  
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
background-color:{{#ifeq:{{SUBPAGENAME}}|Matches|#eee|#fff}};  
|#default={{PAGENAME}}
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Matches|3px solid var(--primary-color, #007bff)|none}};">
}}/Matches |
[[{{#var:basePage}}/Matches|<span style="color:var(--text-main, #333);">Matches</span>]]
<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>
}}
}}

Latest revision as of 08:05, 23 January 2026

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