{* This block is included from the player, map and clan pages. 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 (bombs planted, etc) $thing will be either a PLAYER or CLAN hash of data *} {assign var='totalwins' value=$thing.marinewon+$thing.alienwon} {calcpct var='bombdefusedpct' sum=$thing.bombdefused total=$thing.bombdefuseattempts} {calcpct var='rescuedhostagespct' sum=$thing.rescuedhostages total=$thing.touchedhostages} {calcpct var='vipescapedpct' sum=$thing.vipescaped total=$thing.rounds} {calcpct var='bombrunnerpct' sum=$thing.bombrunner total=$thing.bombspawned} {calcpct var='bombplantedpct' sum=$thing.bombplanted total=$thing.bombspawned} {calcpct var='bombexplodedpct' sum=$thing.bombexploded total=$thing.bombplanted} {calcpct var='marinekillspct' sum=$thing.marinekills total=$thing.kills digits=0} {calcpct var='alienkillspct' sum=$thing.alienkills total=$thing.kills digits=2} {calcpct var='marinewonpct' sum=$thing.marinewon total=$totalwins} {calcpct var='alienwonpct' sum=$thing.alienwon total=$totalwins} {assign var='id' value=$id|default:$thing.id}
Team Comparison
<#Team#> <#Kills#> <#Deaths#> <#Won#> <#Lost#> <#Joined#>
<#Marines#> {$thing.marinekills|commify} {$thing.marinedeaths|commify} {$thing.marinewon|commify} {$thing.marinelost|commify} {$thing.joinedmarine|commify}
<#Aliens#> {$thing.alienkills|commify} {$thing.aliendeaths|commify} {$thing.alienwon|commify} {$thing.alienlost|commify} {$thing.joinedalien|commify}
<#Comparisons:#> {teamcompare width = '90%' leftwidth = $marinekillspct rightwidth = $alienkillspct } {teamcompare width = '90%' leftwidth = $marinewonpct rightwidth = $alienwonpct }