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
Line 5: Line 5:
<div class="tournament-tabs" style="display:flex; border-bottom:2px solid #007bff; margin-bottom:20px;">
<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:{{#switch:{{SUBPAGENAME}}|Standings=#fff|Statistics=#fff|#eee}};  
background-color:{{#switch:{{SUBPAGENAME}}|Standings=#fff|Statistics=#fff|#eee}};  
      border-bottom:{{#switch:{{SUBPAGENAME}}|Standings=none|Statistics=none|3px solid #007bff}};">
border-bottom:{{#switch:{{SUBPAGENAME}}|Standings=none|Statistics=none|3px solid #007bff}};">
      [[{{#switch:{{SUBPAGENAME}}
[[{{#switch:{{SUBPAGENAME}}
        |Standings={{#titleparts:{{PAGENAME}}|-1}}
|Standings={{#titleparts:{{PAGENAME}}|-1}}
        |Statistics={{#titleparts:{{PAGENAME}}|-1}}
|Statistics={{#titleparts:{{PAGENAME}}|-1}}
        |#default={{PAGENAME}}
|#default={{PAGENAME}}
      }}|<span style="color:#333;">Overview</span>]]
}}|<span style="color:#333;">Overview</span>]]
  </div>
</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}}
[[{{#switch:{{SUBPAGENAME}}
        |Standings={{#titleparts:{{PAGENAME}}|-1}}
|Standings={{#titleparts:{{PAGENAME}}|-1}}
        |Statistics={{#titleparts:{{PAGENAME}}|-1}}
|Statistics={{#titleparts:{{PAGENAME}}|-1}}
        |#default={{PAGENAME}}
|#default={{PAGENAME}}
      }}/Standings|<span style="color:#333;">Standings</span>]]
}}/Standings|<span style="color:#333;">Standings</span>]]
  </div>
</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}}
[[{{#switch:{{SUBPAGENAME}}
        |Standings={{#titleparts:{{PAGENAME}}|-1}}
|Standings={{#titleparts:{{PAGENAME}}|-1}}
        |Statistics={{#titleparts:{{PAGENAME}}|-1}}
|Statistics={{#titleparts:{{PAGENAME}}|-1}}
        |#default={{PAGENAME}}
|#default={{PAGENAME}}
      }}/Statistics|<span style="color:#333;">Statistics</span>]]
}}/Statistics|<span style="color:#333;">Statistics</span>]]
  </div>
</div>


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

Revision as of 13:07, 14 January 2026

Navigation tabs for tournament pages. Automatically detects parent page. Usage: