Modulo:Infobox/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
altra andata a capo fuori il tag td per prevenire che Mediawiki si mangi i tag di chiusura
m non va bene, l'andata a capo genera un paragrafo se il parametro è compilato con testo + elenco
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(...)
Riga 57 ⟶ 66:
:addClass(rowArgs.classe or '')
:cssText(args.StileValore or '')
:wikitext(checkList(rowArgs.valore))
:newline()
:wikitext(rowArgs.valore)
:done()
:newline()
end
end