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 7: Line 7:
{{#cargo_query:
{{#cargo_query:
|tables=Match_Data
|tables=Match_Data
|fields=''=Rank, tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Eliminations, SUM(total_pts)=Points
|fields=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
|order by=date DESC
|order by=date DESC
|format=table
|format=template
|headers=Rank, Tournament, Stage, Matches, WWCD, Eliminations, Total
|template=TeamHistoryRow
|named args=yes
|named args=yes
|intro=<table class="wikitable" style="width:100%; text-align:center;">
<thead>
<tr>
  <th>#</th>
  <th style="text-align:left;">Tournament</th>
  <th>Stage</th>
  <th>Matches</th>
  <th>WWCD</th>
  <th>Elims</th>
  <th>Total</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>
}}
}}
</div></includeonly>
</div></includeonly>

Revision as of 19:43, 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.