Modulo:Infobox/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
test
test
Riga 6:
local root -- radice del markup html
local dump = {}
local test
 
local function checkList(valore)
Riga 42 ⟶ 43:
root
:tag('tr')
:addClass("sinottico_test_divisionesinottico_" .. test .. "_divisione")
:tag('th')
:attr('colspan', 2)
Riga 55 ⟶ 56:
row
:tag('th')
:addClass('sinottico_test_etichettasinottico_' .. test .. '_etichetta')
:cssText(args.StileNome or '')
:wikitext(rowArgs.nome)
Riga 61 ⟶ 62:
else
dataCell = row:tag('td')
:addClass('sinottico_test_testo_centralesinottico_' .. test .. '_testo_centrale')
:attr('colspan', 2)
end
Riga 76 ⟶ 77:
suptitle
:tag('span')
:addClass('sinottico_test_sottotitolosinottico_' .. test .. '_sottotitolo')
:cssText(args.StileSopraTitolo or '')
:wikitext(args.SopraTitolo)
Riga 87 ⟶ 88:
:tag('br'):done()
:tag('span')
:addClass('sinottico_test_sottotitolosinottico_' .. test .. '_sottotitolo')
:cssText(args.StileSottoTitolo or '')
:wikitext(args.SottoTitolo)
Riga 94 ⟶ 95:
root
:tag('caption')
:addClass('sinottico_test_testatasinottico_' .. test .. '_testata')
:cssText(args.StileTitoloEst or '')
:node(suptitle)
Riga 102 ⟶ 103:
root
:tag('tr')
:addClass('sinottico_test_testatasinottico_' .. test .. '_testata')
:tag('th')
:attr('colspan', '2')
Riga 116 ⟶ 117:
local cell_immagine = mw.html.create('td')
cell_immagine
:addClass('sinottico_test_testo_centralesinottico_' .. test .. '_testo_centrale ' .. (args.ClasseImmagine or ''))
:attr('colspan', '2')
:cssText(args.StileImmagine or '')
Riga 164 ⟶ 165:
:tag('td')
:attr('colspan', '2')
:addClass('sinottico_test_piedesinottico_' .. test .. '_piede')
:cssText(args.StileUltima or '')
:wikitext(args.Ultima)
Riga 175 ⟶ 176:
:tag('tr')
:tag('td')
:addClass('sinottico_test_piede2sinottico_' .. test .. '_piede2 noprint nomobile metadata')
:attr('colspan', '2')
:wikitext(mw.getCurrentFrame():expandTemplate({
Riga 192 ⟶ 193:
root = mw.html.create('table')
root
:addClass('sinottico_testsinottico_' .. test)
:cssText(args.StileTabella or '')
:attr('summary', args.Summary or 'Tabella sinottica che riassume i principali dati del soggetto')
Riga 273 ⟶ 274:
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
test = origArgs.test or 'test'
else
origArgs = frame.args