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. Automatically detects parent page. | ||
Usage: {{TournamentTabs}} | Usage: {{TournamentTabs}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div class="tournament-tabs" style="display:flex; border-bottom:2px solid #007bff; margin-bottom:20px;"> | |||
<div style="padding:10px 20px; font-weight:bold; cursor:pointer; | <div style="padding:10px 20px; font-weight:bold; cursor:pointer; | ||
background-color:{{# | background-color:{{#switch:{{SUBPAGENAME}}|Standings=#fff|Statistics=#fff|#eee}}; | ||
border-bottom:{{# | border-bottom:{{#switch:{{SUBPAGENAME}}|Standings=none|Statistics=none|3px solid #007bff}};"> | ||
[[{{# | [[{{#switch:{{SUBPAGENAME}} | ||
</div> | |Standings={{#titleparts:{{PAGENAME}}|-1}} | ||
|Statistics={{#titleparts:{{PAGENAME}}|-1}} | |||
|#default={{PAGENAME}} | |||
}}|<span style="color:#333;">Overview</span>]] | |||
</div> | |||
<div style="padding:10px 20px; font-weight:bold; cursor:pointer; | <div style="padding:10px 20px; font-weight:bold; cursor:pointer; | ||
background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|#eee|#fff}}; | background-color:{{#ifeq:{{SUBPAGENAME}}|Standings|#eee|#fff}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid #007bff|none}};"> | border-bottom:{{#ifeq:{{SUBPAGENAME}}|Standings|3px solid #007bff|none}};"> | ||
[[{{# | [[{{#switch:{{SUBPAGENAME}} | ||
</div> | |Standings={{#titleparts:{{PAGENAME}}|-1}} | ||
|Statistics={{#titleparts:{{PAGENAME}}|-1}} | |||
|#default={{PAGENAME}} | |||
}}/Standings|<span style="color:#333;">Standings</span>]] | |||
</div> | |||
<div style="padding:10px 20px; font-weight:bold; cursor:pointer; | <div style="padding:10px 20px; font-weight:bold; cursor:pointer; | ||
background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|#eee|#fff}}; | background-color:{{#ifeq:{{SUBPAGENAME}}|Statistics|#eee|#fff}}; | ||
border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid #007bff|none}};"> | border-bottom:{{#ifeq:{{SUBPAGENAME}}|Statistics|3px solid #007bff|none}};"> | ||
[[{{# | [[{{#switch:{{SUBPAGENAME}} | ||
</div> | |Standings={{#titleparts:{{PAGENAME}}|-1}} | ||
|Statistics={{#titleparts:{{PAGENAME}}|-1}} | |||
|#default={{PAGENAME}} | |||
}}/Statistics|<span style="color:#333;">Statistics</span>]] | |||
</div> | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Revision as of 13:06, 14 January 2026
Navigation tabs for tournament pages. Automatically detects parent page. Usage: