Module:Sidebar: Difference between revisions
add styles |
fix initial collapse state |
||
Line 200: | Line 200: | ||
local num = ('' .. k):match('^list(%d+)$') | local num = ('' .. k):match('^list(%d+)$') | ||
if num then | if num then | ||
local expand = args.expanded == 'all' or args.expanded == args['list' .. num .. 'name'] | local expand = args.expanded and (args.expanded == 'all' or args.expanded == args['list' .. num .. 'name']) | ||
local row = HtmlBuilder.create('div') | local row = HtmlBuilder.create('div') |