Module:Navbox with collapsible groups: Difference between revisions
no edit summary
(problem found: Module:Navbox is not re-entry safe due to listnums not being reset) |
No edit summary |
||
Line 1: | Line 1: | ||
-- This module implements {{Navbox with collapsible groups}} | -- This module implements {{Navbox with collapsible groups}} | ||
local q = {} | local q = {} | ||
local Navbox = require('Module:Navbox | local Navbox = require('Module:Navbox') | ||
-- helper functions | -- helper functions | ||
Line 70: | Line 69: | ||
and 'uncollapsed' or pargs['state' .. n] or 'collapsed' | and 'uncollapsed' or pargs['state' .. n] or 'collapsed' | ||
targs['list' .. n] = Navbox( | targs['list' .. n] = Navbox._navbox( | ||
{'child', navbar = 'plain', state = state, | {'child', navbar = 'plain', state = state, | ||
basestyle = pargs['basestyle'], | basestyle = pargs['basestyle'], | ||
Line 87: | Line 86: | ||
if targs['border'] == nil then targs['border'] = pargs[1] end | if targs['border'] == nil then targs['border'] = pargs[1] end | ||
return Navbox(targs) | return Navbox._navbox(targs) | ||
end | end | ||