Modulo:Infobox/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix minore, +local e i è solitamente relegata a variabile contatore
passati a RemexHTML dovrebbe essere sufficiente spostare il testo su una riga a sé
Riga 6:
local root -- radice del markup html
local dump = {}
 
local function checkList(valore)
-- Permette al software Mediawiki di gestire le liste # o *
local c = mw.ustring.sub(valore, 1, 1)
if c == '#' or c == '*' then
valore = '<div>\n' .. valore .. '\n</div>'
end
return valore
end
 
local function getArgNums(...)
Line 66 ⟶ 57:
:addClass(rowArgs.classe or '')
:cssText(args.StileValore or '')
:newline()
:wikitext(checkList(rowArgs.valore))
end
end