<#Weapons#> {boximg id='weaponlist'}
{foreach name="wlist" from=$weaponlist item="w"} {foreachelse} {/foreach} {* {if count($weaponlist)} {/if} *}
{sortheader label="<#Weapon#>" sort="uniqueid" baseurl="$PHP_SELF?id=$thingid" prefix="w" order=$worder cursort=$wsort urltail="weapons"} {sortheader label="<#Kills#>" sort="kills" order=$worder} {sortheader label="<#Deaths#>" sort="deaths" order=$worder} {sortheader label="<#Headshots#>" sort="headshotkills" order=$worder} {sortheader label="<#HS%#>" sort="headshotpct" order=$worder title="<#Headshot percentage#>"} {sortheader label="<#Accuracy#>" sort="accuracy" order=$worder} {sortheader label="<#S:K#>" sort="shotsperkill" order=$worder title="<#Shots per kill#>"} {sortheader label="<#Damage#>" sort="damage" order=$worder}
{weaponimg weapon=$w} {$w.kills|commify} {$w.deaths|commify} {$w.headshotkills|commify} {$w.headshotpct|digits2}% {$w.accuracy|digits2}% {$w.shotsperkill} {$w.damage|commify}

<#No weapons to display#>

<#Overall Values#>: {$weaponlist|@sum:'kills'|commify} {$weaponlist|@sum:'deaths'|commify} {$weaponlist|@sum:'headshots'|commify} {$weaponlist|@avg:'headshotpct':2}% {$weaponlist|@avg:'accuracy':2}% {$weaponlist|@avg:'shotsperkill':2} {$weaponlist|@sum:'damage'|commify}
{$weaponlist|@count} <#of#> {$thing.totalweapons|commify} <#weapons shown#> {$weaponpager}
{foreach name="wlist" from=$weaponlist item="w"}
{weaponimg weapon=$w path="large" noimg=" - <#No Image Available#> - "}
{$w.name|default:$w.uniqueid|escape}
{/foreach}