Modulo:Elezioni/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 6:
local function vrg(a,b,c)
local s1, k
local s2 = a or 0
if (c == 1) then
s1 = '<b>%s</b></td><td><b>%4.2f</b>'
Riga 16:
if (k==0) then break end
end
s1 = string.format(s1, s2, 100*tonumber(a or 0)/b)
s1 = s1:gsub('%.',',')
s1 = '<td>' .. s1
s1if = '(a<td>'b) ..then s1 = s1 .. '<div style="width:120px100px;background:#f0f0f0;border:1px solid #eee;height:3px"><div style="width:'..math.floor(1200.5+100*tonumber(a or 0)/b)..'px;background:#007cc3;height:3px"></div></div></td>' end
s1 = s1 ..'</td>'
return s1
end