Modulo:Discendenza/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 194:
local function mostraX(pid,allinea,largo,dida)
local xy = massimoXY(pid, {0, 0})
local
local n1
local
local xx, xp
if (allinea == 'destra') then
Riga 207:
if (lg == 0) then lg = 1 end
for n=1,xy[2] do
posx[1] = 0; posx[2] = 0; posx[3] = 0
n1 = 0
for _, v in pairs(tabella[n]) do
xx = pers[v].x
xp = pers[v].padre
xstr = format.string('<td width=%d%%></td>',lg)
▲ if (n>1) then
else▼
s1 = s1..'<td style="border-right:1px solid #000'▼
)
n1 = xp
▲ if (xx-p1>0) then s1 = s1..'" colspan="'..(xx+1-p1) end
▲ p1 = xx + 1
▲ else
end
table.insert(riga[1],xstr)
if (xx-
table.insert(riga[2],format.string('<td%s> </td>',xx-posx[2]>1 and 'colspan="'..(xx-posx[2])..'"' or ''))
end
if (pers[v].nota == '-') then else
if (n<xy[2]) then
if (#pers[v].figli > 0) then
end
end
end
if (n<xy[2]) then
agg(
agg(table.concat(riga[2]))
agg(table.concat(riga[3]))
end
|