Module:Navbox with collapsible groups: Difference between revisions
Undid revision 865564010 by Jc86035 (talk)
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] | local n = mw.ustring.gsub(k, '^[a-z]*([0-9]*)$', '%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] | local n = mw.ustring.gsub(k, '^[a-z]*([0-9]*)$', '%1') | ||
if targs['list' .. n] == nil then | if targs['list' .. n] == nil then | ||
local titlestyle = concatstyles( | local titlestyle = concatstyles( |