|
|
| (8 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <noinclude>
| | <includeonly>{{#invoke:Team|history|team={{{team|{{PAGENAME}}}}}}}</includeonly> |
| Adds an automatic Tournament History table to a team page.
| |
| Usage: Place {{TeamHistory}} at the bottom of the page.
| |
| </noinclude><includeonly>
| |
| == Tournament Statistics ==
| |
| <div class="auto-rank">
| |
| {{#cargo_query: | |
| |tables=Match_Data
| |
| |fields=tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Eliminations, SUM(total_pts)=Points | |
| |where=team='{{PAGENAME}}' | |
| |group by=tournament, stage
| |
| |order by=date DESC
| |
| |format=template
| |
| |template=TeamHistoryRow
| |
| |named args=yes
| |
| |intro={| class="wikitable" style="width:100%; text-align:center;"
| |
| ! #
| |
| ! style="text-align:left;" | Tournament
| |
| ! Stage
| |
| ! Matches
| |
| ! WWCD
| |
| ! Elims
| |
| ! Total
| |
| |outro=|}
| |
| |default=<p>''No match data available for this team yet.''</p>
| |
| }} | |
| </div></includeonly>
| |