Jump to content

Module:Navbox with collapsible groups: Difference between revisions

m
?
m (did this break it?)
m (?)
Line 44: Line 44:
elseif (k:match('^list[0-9][0-9]*$')  
elseif (k:match('^list[0-9][0-9]*$')  
or k:match('^content[0-9][0-9]*$') ) then
or k:match('^content[0-9][0-9]*$') ) then
local n = mw.ustring.gsub(k, '^[a-z]*([0-9]*)$', '%1')
local n = mw.ustring.gsub(k, '^[a-z]*([0-9]+)$', '%1') or '1'
if (targs['list' .. n] == nil and args['group' .. n] == nil
if (targs['list' .. n] == nil and args['group' .. n] == nil
and args['sect' .. n] == nil and args['section' .. n] == nil) then
and args['sect' .. n] == nil and args['section' .. n] == nil) then
Line 52: Line 52:
or k:match('^sect[0-9][0-9]*$')  
or k:match('^sect[0-9][0-9]*$')  
or k:match('^section[0-9][0-9]*$') ) then
or k:match('^section[0-9][0-9]*$') ) then
local n = mw.ustring.gsub(k, '^[a-z]*([0-9]*)$', '%1')
local n = mw.ustring.gsub(k, '^[a-z]*([0-9]+)$', '%1') or '1'
if targs['list' .. n] == nil then
if targs['list' .. n] == nil then
local titlestyle = concatstyles(
local titlestyle = concatstyles(
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.