Anonymous user
Module:Gallery: Difference between revisions
Jump to navigation
Jump to search
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')
tbl.css('width', '100%')
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
|