Module:Navbox with collapsible groups: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (?)
(Undid revision 865564010 by Jc86035 (talk))
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') or '1'
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]+)$', '%1') or '1'
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(