Module:Gallery: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(change this to a th to allow for collapsible galleries)
(simplify with one parameter, state, which when set will make the gallery collapsible with collapsed state = state)
Line 12: Line 12:
local tbl = HtmlBuilder.create('table')
local tbl = HtmlBuilder.create('table')
if args.state then
tbl.css('width', '100%')
tbl.addClass('collapsible')
tbl.addClass(args.state)
end
if args.style then
if args.style then
tbl.cssText(args.style)
tbl.cssText(args.style)
Line 24: Line 30:
tbl.attr('align', args.align)
tbl.attr('align', args.align)
end
end
if args.class then
tbl.addClass(args.class)
end
if args.title then
if args.title then
tbl
tbl