{* This block will output a 'team comparison' table on the top summarizing general values. under that table, two side-by-side tables will display each team's action totals (flags captured, etc) $thing will be either a PLAYER or CLAN hash of data *} {assign var='totalwins' value=$thing.allieswon+$thing.axiswon} {calcpct var='alliesflagscapturedpct' sum=$thing.alliesflagscaptured total=$thing.flagscaptured} {calcpct var='alliesareascapturedpct' sum=$thing.alliesareascaptured total=$thing.areascaptured} {calcpct var='axisflagscapturedpct' sum=$thing.axisflagscaptured total=$thing.flagscaptured} {calcpct var='axisareascapturedpct' sum=$thing.axisareascaptured total=$thing.areascaptured} {calcpct var='allieskillspct' sum=$thing.allieskills total=$thing.kills digits=0} {calcpct var='axiskillspct' sum=$thing.axiskills total=$thing.kills} {calcpct var='allieswonpct' sum=$thing.allieswon total=$totalwins} {calcpct var='axiswonpct' sum=$thing.axiswon total=$totalwins} {assign var='id' value=$id|default:$thing.id}
<#Team Comparison#>
<#Team#> <#Kills#> <#Deaths#> <#Won#> <#Lost#> <#Joined#>
Allies {$thing.allieskills|commify} {$thing.alliesdeaths|commify} {$thing.allieswon|commify} {$thing.allieslost|commify} {$thing.joinedallies|commify}
<#Axis#> {$thing.axiskills|commify} {$thing.axisdeaths|commify} {$thing.axiswon|commify} {$thing.axislost|commify} {$thing.joinedaxis|commify}
<#Comparisons:#> {teamcompare width = '90%' leftwidth = $allieskillspct rightwidth = $axiskillspct } {teamcompare width = '90%' leftwidth = $allieswonpct rightwidth = $axiswonpct }

<#Allies#>
<#Flags Captured:#> {$thing.alliesflagscaptured|commify} / {$thing.flagscaptured|commify}
  {$alliesflagscapturedpct|digits2}%
<#Areas Captured:#> {$thing.alliesareascaptured|commify} / {$thing.areascaptured|commify}
  {$alliesareascapturedpct|digits2}%
<#Axis#>
<#Flags Captured:#> {$thing.axisflagscaptured|commify} / {$thing.flagscaptured|commify}
  {$axisflagscapturedpct|digits2}%
<#Areas Captured:#> {$thing.axisareascaptured|commify} / {$thing.areascaptured|commify}
  {$axisareascapturedpct|digits2}%