#macro(placement $i, $p)
#end
Standings after round
$round
#foreach($placement in $tour.pairing.placement)
#set($num = $foreach.index + 1) Crit #$num #placement($num $placement)
#end
#if($tour.type.startsWith('TEAM'))
Team Standings
#end
#set($standings = $api.get("tour/${params.id}/standings/$round")) #if($standings.isObject() && ($standings.error || $standings.message)) #if($standings.error) #set($error = $standings.error) #else #set($error = $standings.message) #end
#set($standings = []) #end #set($smap = {}) #foreach($part in $standings) #set($smap[$part.num] = $part) #end

#foreach($r in [1..$round])
#end #set($criteres = []) #foreach($crit in $tour.pairing.placement) #set($junk = $criteres.add($crit)) #end #if($criteres[0] == 'SCOREX' && $tour.pairing.type == 'MAC_MAHON') #set($junk = $criteres.add(1, 'MMS')) #end #foreach($crit in $criteres)
#end
#foreach($part in $standings)
Num | Plc | Name | Rank | Ctr | Nbw | R$r | $crit
--- | --- | --- | --- | --- | --- | --- | ---
#set($mx = $round - 1) #foreach($r in [0..$mx]) #set($rst = $part.results[$r]) #set($opp_num = $math.toLong($rst)) #if($opp_num) #set($opponent = $!smap[$opp_num]) #else #set($opponent = false) #end #if($rst.contains('+')) #set($rst = "$rst") #elseif($rst.contains('-')) #set($rst = "$rst") #end
#end #foreach($crit in $criteres) #set($value = "$number.format('0.#', $part[$crit])")
#end
$part.num | $part.place | $esc.html($part.name)#if($part.firstname) $esc.html($part.firstname)#end | #rank($part.rank) | #if($part.country)$part.country#end | $number.format('0.#', $part.NBW) | $rst | $value.replace('.5', '½')
#end

#if($tour.type.startsWith('TEAM'))
Individual Standings
#set($indvstandings = $api.get("tour/${params.id}/standings/$round?individual_standings=true")) #if($indvstandings.isObject() && ($indvstandings.error || $indvstandings.message)) #if($indvstandings.error) #set($error = $indvstandings.error) #else #set($error = $indvstandings.message) #end
#set($indvstandings = []) #end #set($indvsmap = {}) #foreach($part in $indvstandings) #set($indvsmap[$part.num] = $part) #end

#foreach($r in [1..$round])
#end #set($indvcriteres = ['NBW']) #foreach($crit in $indvcriteres)
#end
#foreach($part in $indvstandings)
Num | Plc | Name | Rank | Ctr | Nbw | R$r | $crit
--- | --- | --- | --- | --- | --- | --- | ---
#set($mx = $round - 1) #foreach($r in [0..$mx]) #set($rst = $part.results[$r]) #set($opp_num = $math.toLong($rst)) #if($opp_num) #set($opponent = $!indvsmap[$opp_num]) #else #set($opponent = false) #end #if($rst.contains('+')) #set($rst = "$rst") #elseif($rst.contains('-')) #set($rst = "$rst") #end
#end #foreach($crit in $indvcriteres) #set($value = "$number.format('0.#', $part[$crit])")
#end
$part.num | $part.place | $esc.html($part.name)#if($part.firstname) $esc.html($part.firstname)#end | #rank($part.rank) | #if($part.country)$part.country#end | $number.format('0.#', $part.NBW) | $rst | $value.replace('.5', '½')
#end

#end
#if(!$tour.frozen && $round == $tour.rounds)
#end
Publish standings
#if($round < $tour.rounds)
Warning: publishing partial results at round $round / $tour.rounds!
#end
Choose format