Modulo:Discendenza: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
m sistemazione stringhe
Riga 5:
local pers = {}
local tabella = {}
local sstxt = ''{}
 
local function agg(t)
table.insert(txt,t)
end
 
local function dividi(dati)
Line 195 ⟶ 200:
local s1, s2, s3
local xx, xp
local ss = ''
if (allinea == 'destra') then
ss = agg('<div class="floatright" style="width:'..largo..'px;padding:3px;background:#fff;border:1px solid #c8ccd1"><table cellpadding="1" cellspacing="0" border=0 style="text-align:center;font-size:95%;line-height:110%;margin:0px auto">')
else
ss = agg('<center><table cellpadding="1" cellspacing="0" border=0 style="text-align:center;font-size:95%;line-height:110%;margin:10px auto">')
end
local lg = math.floor(100/(xy[1]+2))
Line 248 ⟶ 252:
if (n<xy[2]) then s3 = s3..'</tr>' end
 
ss = ss..agg(s1..);agg(s2..);agg(s3)
end
 
ss = ss..agg('</table>')
if (allinea == 'destra') then ss = ss..agg('</div>') else ss = ss..agg('</center>') end
 
return sstable.concat(txt)
end