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
 
(6 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. Compact & Uniform Width.
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; font-family:sans-serif;">
<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:5px 15px; min-width:100px; text-align:center; font-weight:bold; cursor:pointer; line-height:1.2;
<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|#fff|{{#ifeq:{{SUBPAGENAME}}|Statistics|#fff|{{#ifeq:{{SUBPAGENAME}}|Teams|#fff|{{#ifeq:{{SUBPAGENAME}}|Matches|#fff|#eee}}}}}}}};  
background-color:{{#switch:{{SUBPAGENAME}}|Standings|Statistics|Teams|Matches|The Grind=var(--tab-bg-inactive)|#default=var(--tab-bg-active)}};  
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|none|{{#ifeq:{{SUBPAGENAME}}|Statistics|none|{{#ifeq:{{SUBPAGENAME}}|Teams|none|{{#ifeq:{{SUBPAGENAME}}|Matches|none|3px solid var(--primary-color, #007bff)}}}}}}}};">
border-bottom:{{#switch:{{SUBPAGENAME}}|Standings|Statistics|Teams|Matches|The Grind=none|#default=3px solid var(--tab-border-active)}};">
[[{{#switch:{{SUBPAGENAME}}
[[{{#switch:{{SUBPAGENAME}}
|Standings|Statistics|Teams|Matches={{#titleparts:{{PAGENAME}}|-1}}
|Standings|Statistics|Teams|Matches|The Grind={{#titleparts:{{PAGENAME}}|-1}}
|#default={{PAGENAME}}
|#default={{PAGENAME}}
}}|<span style="display:block; color:var(--text-main, #333);">Overview</span>]]
}}|<span style="display:block; color:var(--text-main);">Overview</span>]]
</div>
</div>


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


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


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


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