$$openfile playerlist_%%sortkey%%.html$$ $$include menu.html$$
$$colouredtext2html(title)$$

$$firstrow="Y"$$ $$loop row as player index as playerindex select *,coalesce(cast(kills as float)/cast(deaths as float),kills) as ratio from view_player order by %%sortkey%% desc limit %%MAXPLAYERLISTENTRIES%%$$ $$if (firstrow EQUALS "Y")$$ $$firstrow="N"$$ $$if (sortkey EQUALS "duration")$$ $$MessageCentre(messagecentrekey,player.name,formatduration("%H:%M:%S",player.%%sortkey%%))$$ $$else$$ $$if ((sortkey EQUALS "score") OR (sortkey EQUALS "skill"))$$ $$MessageCentre(messagecentrekey,player.name,formatfloat("%.1f",player.%%sortkey%%))$$ $$else$$ $$if (((sortkey EQUALS "scoreweighted") OR (sortkey EQUALS "skillweighted")) OR (sortkey EQUALS "ratio"))$$ $$MessageCentre(messagecentrekey,player.name,formatfloat("%.2f",player.%%sortkey%%))$$ $$else$$ $$MessageCentre(messagecentrekey,player.name,player.%%sortkey%%)$$ $$endif$$ $$endif$$ $$endif$$ $$endif$$ $$tablename="playerdataavatars"$$$$playerdataplayerindex=player.playerindex$$$$include playerprofilecomponent.html$$ $$endloop$$
# Player Score Skill Weighted Skill Weighted Score Kills Deaths Ratio Team Kills Team Wins Team Losses Kill Streak Team Kill Streak Death Streak Suicides Rounds Duration
$$playerindex$$$$colouredtext2html(player.name)$$$$if (playerdataavatars !EQUALS "")$$
$$endif$$
$$formatfloat("%.1f",player.score)$$ $$formatfloat("%.1f",player.skill)$$ $$formatfloat("%.2f",player.skillweighted)$$ $$formatfloat("%.2f",player.scoreweighted)$$ $$player.kills$$ $$player.deaths$$ $$formatfloat("%.2f",player.ratio)$$ $$player.teamkills$$ $$player.teamwins$$ $$player.teamlosses$$ $$player.longestkillstreak$$ $$player.longestteamkillstreak$$ $$player.longestdeathstreak$$ $$player.suicides$$ $$player.rounds$$ $$formatduration("%H:%M:%S",player.duration)$$
$$closefile$$