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 6: Line 6:
{{#cargo_query:
{{#cargo_query:
|tables=Match_Data
|tables=Match_Data
|fields=tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Kills, SUM(total_pts)=Points
|fields=''=Rank, tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Eliminations, SUM(total_pts)=Points
|where=team='{{PAGENAME}}'
|where=team='{{PAGENAME}}'
|group by=tournament, stage
|group by=tournament, stage
Line 12: Line 12:
|format=template
|format=template
|template=TeamHistoryRow
|template=TeamHistoryRow
|format=table
|headers=Rank, Tournament, Stage, Matches, WWCD, Eliminations, Total
|named args=yes
|named args=yes
|intro=<table class="modern-history-table">
<thead>
<tr>
  <th>Tournament</th>
  <th>Stage</th>
  <th>Matches</th>
  <th>WWCD</th>
  <th>Kills</th>
  <th>Total Pts</th>
</tr>
</thead><tbody>
|outro=</tbody></table>
|default=<p>''No match data available for this team yet.''</p>
|default=<p>''No match data available for this team yet.''</p>
}}</includeonly>
}}</includeonly>

Revision as of 19:35, 9 January 2026

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

Tournament Statistics

Error: Table Match_Data not found.

at the bottom of the page.