Modulo:RisF1: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
sistemo codice ridondante in funzione p.celle
Riga 63:
ris = switch[apici] .. ris .. switch[apici]
end
else ris = ""
end
 
Riga 147 ⟶ 148:
local widthn = '||width=3% '
local gare = stagione["gare"]
local tris = {}""
 
for i=1,gare do
local t = {}
if lettera == nil or lettera == "" then
 
param2paramR = "G"i .. i"R"
if lettera == nil or lettera == "" then
paramG = "G" .. i
for i=1,gare do
paramparamN = i"N" .. "R"i
t[i*3-2]ris = p.ppgv({argstmp[paramR],argstmp[paramparamG]})
else
param2 = "G" .. i
t[i*3-1]paramR = argstmp[param2]lettera .. i
param3paramN = "N" .. lettera .. i
t[i*3]ris = argstmp[param3paramR]
end
local col = p.colori({zonapunti,targstmp[iparamR]})
else
local note = targstmp[kparamN]
for i=1,gare do
paramif =ris lettera== ..nil ithen
t[i*3-2]ris = argstmp[param]""
t[i*3-1] = ""
t[i*3] = ""
end
end
 
for i=1,(gare*3-2),3 do
local j=i+1
local k=i+2
local note = t[k]
local col = p.colori({zonapunti,t[i]})
local res = p.ppgv({t[i],t[j]})
if res == nil then
res = ""
end
if note == nil then
Riga 184 ⟶ 172:
else str = str .. widthn
end
str = str .. col .. "| " .. resris .. note
end