Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TeamHistory: Difference between revisions

Template page
No edit summary
No edit summary
Line 5: Line 5:
== Tournament Statistics ==
== Tournament Statistics ==
{{#cargo_query:
{{#cargo_query:
|tables=Match_Data
|tables=Stage_Standings
|fields=tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Eliminations, SUM(total_pts)=Points
|fields=tournament, stage, rank, matches_played=Matches, wins=WWCD, kill_pts=Eliminations, total_pts=Points
|where=team='{{PAGENAME}}'
|where=team='{{PAGENAME}}'
|group by=tournament, stage
|order by=date DESC
|order by=date DESC
|format=template
|format=template
|template=TeamHistoryRow
|template=TeamHistoryRow
|named args=yes
|named args=yes
|intro=<table class="wikitable custom-standings" style="width:100%; text-align:center;">
|intro=<table class="wikitable flat-table" style="width:100%; text-align:center;">
<tr>
<tr>
  <th style="width:30px;">#</th>
   <th style="text-align:left;">Tournament</th>
   <th style="text-align:left;">Tournament</th>
   <th>Stage</th>
   <th>Stage</th>
  <th>Rank</th>
   <th>Matches</th>
   <th>Matches</th>
   <th>WWCD</th>
   <th>WWCD</th>
Line 24: Line 23:
</tr>
</tr>
|outro=</table>
|outro=</table>
|default=<p>''No match data available for this team yet.''</p>
|default=<p>''No data available for this team yet.''</p>
}}</includeonly>
}}</includeonly>

Revision as of 05:10, 11 January 2026

Adds an automatic Tournament History table to a team page. Usage: Place

Tournament Statistics

Error: Table Stage_Standings not found.

at the bottom of the page.