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') |
||
⚫ | |||
tbl.css('width', '100%') |
|||
⚫ | |||
tbl.addClass(args.state) |
|||
⚫ | |||
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.title then |
if args.title then |
||
tbl |
tbl |