Module:Gallery: Difference between revisions

simplify with one parameter, state, which when set will make the gallery collapsible with collapsed state = state
(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:
local tbl = HtmlBuilder.create('table')
if args.classstate then
tbl.css('width', '100%')
tbl.addClass(args.class'collapsible')
tbl.addClass(args.state)
end
if args.style then
tbl.cssText(args.style)
Line 24 ⟶ 30:
tbl.attr('align', args.align)
end
if args.class then
tbl.addClass(args.class)
end
if args.title then
tbl
Anonymous user