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("
:tag('th')
:attr('colspan', 2)
Riga 55 ⟶ 56:
row
:tag('th')
:addClass('
:cssText(args.StileNome or '')
:wikitext(rowArgs.nome)
Riga 61 ⟶ 62:
else
dataCell = row:tag('td')
:addClass('
:attr('colspan', 2)
end
Riga 76 ⟶ 77:
suptitle
:tag('span')
:addClass('
:cssText(args.StileSopraTitolo or '')
:wikitext(args.SopraTitolo)
Riga 87 ⟶ 88:
:tag('br'):done()
:tag('span')
:addClass('
:cssText(args.StileSottoTitolo or '')
:wikitext(args.SottoTitolo)
Riga 94 ⟶ 95:
root
:tag('caption')
:addClass('
:cssText(args.StileTitoloEst or '')
:node(suptitle)
Riga 102 ⟶ 103:
root
:tag('tr')
:addClass('
:tag('th')
:attr('colspan', '2')
Riga 116 ⟶ 117:
local cell_immagine = mw.html.create('td')
cell_immagine
:addClass('
:attr('colspan', '2')
:cssText(args.StileImmagine or '')
Riga 164 ⟶ 165:
:tag('td')
:attr('colspan', '2')
:addClass('
:cssText(args.StileUltima or '')
:wikitext(args.Ultima)
Riga 175 ⟶ 176:
:tag('tr')
:tag('td')
:addClass('
:attr('colspan', '2')
:wikitext(mw.getCurrentFrame():expandTemplate({
Riga 192 ⟶ 193:
root = mw.html.create('table')
root
:addClass('
: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
|