Anonymous

Module:SkillNav: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 160: Line 160:
     end
     end
     -- Make it collapsible if needed.
     -- Make it collapsible if needed.
     if (args.type ~= nil and string.find(args.type, 'mw%-collapsible') ~= nil) then
     if ((args.type ~= nil and string.find(args.type, 'mw%-collapsible') ~= nil) or args.collapsible ~= nil) then
         skill_nav_wrap:attr('id', 'mw-customcollapsible-' .. char_name_sanitized);
         skill_nav_wrap:attr('id', 'mw-customcollapsible-' .. char_name_sanitized);
         header:tag('div'):addClass('mw-customtoggle-' .. char_name_sanitized);
         header:tag('div'):addClass('mw-customtoggle-' .. char_name_sanitized);