Module:Listing: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
fix iteration
(split sections into top-level items and groups with second-level items)
(fix iteration)
Line 89: Line 89:


   -- split sections into top-level items and groups with second-level items
   -- split sections into top-level items and groups with second-level items
   for _, section in root.sections do
   for _, section in ipairs( root.sections ) do
     if #section.sections then
     if #section.sections then
       root.groups[#root.groups + 1] = section
       root.groups[#root.groups + 1] = section

Navigation menu