Template:TeamHistory: Difference between revisions
Template page
More actions
Esportsamaze (talk | contribs) No edit summary |
Esportsamaze (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
{{#cargo_query: | {{#cargo_query: | ||
|tables=Match_Data | |tables=Match_Data | ||
|fields= | |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= | |format=template | ||
| | |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.