Modulo:Discendenza/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
use require('strict') instead of require('Module:No globals')
 
(3 versioni intermedie di un altro utente non mostrate)
Riga 1:
require('Module:No globalsstrict')
local getArgs = require('Module:Arguments').getArgs
local errorCategory = '[[Categoria:Errori di compilazione del template Discendenza]]'
Riga 253:
:cssIf(n1 == xp,'border-top','1px solid #000')
:attrIf(xx-posx[1]>0,'colspan',xx+1-posx[1])
:wikitext(' ')
)
n1 = xp
Line 262 ⟶ 261:
riga2:node(mw.html.create('td')
:attrIf(xx-posx[2]>1,'colspan',xx-posx[2])
:wikitext(' ')
)
end
Line 276 ⟶ 274:
:css('border-right','1px solid #000')
:attrIf(xx-posx[3]>0,'colspan',xx+1-posx[3])
:wikitext(' ')
)
posx[3] = xx + 1
Line 328 ⟶ 325:
:node(mw.html.create('td')
:css({['border-left']='1px solid #666',['border-bottom']='1px solid #666',['width']='10px',['line-height']='3px',['height']='12px'}))
:wikitext(' ')
:node(mw.html.create('td')
:attr({['colspan']=2*a-1, ['rowspan']=2})