Module:Sports table/Chess: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 2:
local pp = {}
 
function pp.preprocess(Args,N_teams,prefix,drawfractions)
local legs = 1
for ii=1,N_teams do
Line 26:
elseif gii == '½' then
Args[prefix..'draw_'..ti] = Args[prefix..'draw_'..ti] + 1
--if yesno(Args['disp_fractions'] or 'yes')drawfractions then
-- gii = '<span class="visualhide">&nbsp;</span><sup>1</sup>&frasl;<sub>2</sub>'
--end
elseif gii == '0' then
Args[prefix..'loss_'..ti] = Args[prefix..'loss_'..ti] + 1
Line 69:
local N_teams = top_pos - 1 -- Default to 0 at start, but higher number needed to skip certain entries
while Args['team'..N_teams+1] ~= nil do N_teams = N_teams+1 end
pp.preprocess(Args,N_teams,'',yesno(Args['disp_fractions'] or 'yes'))
local tb_numplayers = tonumber(Args['tb_numplayers']) or 0
if tb_numplayers > N_teams then
Line 76:
end
if tb_numplayers >= 2 then
pp.preprocess(Args,tb_numplayers,'tb',yesno(Args['disp_fractions'] or 'yes'))
end
-- Which columns to show