Modulo:Infobox/sandbox2: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
r
Moroboshi (discussione | contributi)
sottotitolo con br+span invece che in una cella separata
Riga 62:
 
local function renderTitle()
local subtitle = mw.html.create('')
if args.SottoTitolo then
subtitle
:tag('trbr'):done()
:tag('thspan')
:addClass('sinottico_sottotitolo')
:cssText(args.StileSottoTitolo or '')
:wikitext(args.SottoTitolo)
end
if args.TitoloEst then
root
Line 69 ⟶ 78:
:cssText(args.StileTitoloEst or '')
:wikitext(args.TitoloEst)
:node(subtitle)
elseif args.TitoloInt then
root
Line 77 ⟶ 87:
:cssText(args.StileTitoloInt or '')
:wikitext(args.TitoloInt)
:node(subtitle)
end
end
 
local function renderSubTitle()
if args.SottoTitolo then
root
:tag('tr')
:addClass('sinottico_sottotitolo')
:tag('th')
:attr('colspan', '2')
:cssText(args.StileSottoTitolo or '')
:wikitext(args.SottoTitolo)
end
end
 
 
local function renderImage()
Line 178 ⟶ 176:
:attr('summary', args.Summary or 'Tabella sinottica che riassume i principali dati del soggetto')
renderTitle()
renderSubTitle()
renderImage()
end