Template:TournamentTabs: Difference between revisions
Template page
More actions
Esportsamaze (talk | contribs) No edit summary |
Esportsamaze (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Navigation tabs for tournament pages. | Navigation tabs for tournament pages. Theme-aware, 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(-- | <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| | background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|var(--tab-bg-inactive)|{{#ifeq:{{SUBPAGENAME}}|Statistics|var(--tab-bg-inactive)|{{#ifeq:{{SUBPAGENAME}}|Teams|var(--tab-bg-inactive)|{{#ifeq:{{SUBPAGENAME}}|Matches|var(--tab-bg-inactive)|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(-- | border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|none|{{#ifeq:{{SUBPAGENAME}}|Statistics|none|{{#ifeq:{{SUBPAGENAME}}|Teams|none|{{#ifeq:{{SUBPAGENAME}}|Matches|none|3px solid var(--tab-border-active)}}}}}}}};"> | ||
[[{{#switch:{{SUBPAGENAME}} | [[{{#switch:{{SUBPAGENAME}} | ||
|Standings|Statistics|Teams|Matches={{#titleparts:{{PAGENAME}}|-1}} | |Standings|Statistics|Teams|Matches={{#titleparts:{{PAGENAME}}|-1}} | ||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}|<span style="display:block; color:var(--text-main | }}|<span style="display:block; color:var(--text-main);">Overview</span>]] | ||
</div> | </div> | ||
| Line 19: | Line 19: | ||
}}/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| | background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|var(--tab-bg-active)|var(--tab-bg-inactive)}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid var(-- | 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={{#titleparts:{{PAGENAME}}|-1}} | ||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}/Standings|<span style="display:block; color:var(--text-main | }}/Standings|<span style="display:block; color:var(--text-main);">Standings</span>]] | ||
</div> | </div> | ||
}} | }} | ||
| Line 33: | Line 33: | ||
}}/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| | background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|var(--tab-bg-active)|var(--tab-bg-inactive)}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid var(-- | 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={{#titleparts:{{PAGENAME}}|-1}} | ||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}/Statistics|<span style="display:block; color:var(--text-main | }}/Statistics|<span style="display:block; color:var(--text-main);">Statistics</span>]] | ||
</div> | </div> | ||
}} | }} | ||
| Line 47: | Line 47: | ||
}}/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| | background-color:{{#ifeq:{{SUBPAGENAME}}|Teams|var(--tab-bg-active)|var(--tab-bg-inactive)}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Teams|3px solid var(-- | 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={{#titleparts:{{PAGENAME}}|-1}} | ||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}/Teams|<span style="display:block; color:var(--text-main | }}/Teams|<span style="display:block; color:var(--text-main);">Teams</span>]] | ||
</div> | </div> | ||
}} | }} | ||
| Line 61: | Line 61: | ||
}}/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| | background-color:{{#ifeq:{{SUBPAGENAME}}|Matches|var(--tab-bg-active)|var(--tab-bg-inactive)}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Matches|3px solid var(-- | 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={{#titleparts:{{PAGENAME}}|-1}} | ||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}/Matches|<span style="display:block; color:var(--text-main | }}/Matches|<span style="display:block; color:var(--text-main);">Matches</span>]] | ||
</div> | </div> | ||
}} | }} | ||