Modulo:Infobox/sandbox2: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
r |
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
: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
▲ if args.SottoTitolo then
▲ :tag('tr')
▲ :addClass('sinottico_sottotitolo')
▲ :tag('th')
▲ :cssText(args.StileSottoTitolo or '')
▲ :wikitext(args.SottoTitolo)
▲ end
local function renderImage()
Line 178 ⟶ 176:
:attr('summary', args.Summary or 'Tabella sinottica che riassume i principali dati del soggetto')
renderTitle()
renderImage()
end
|