Module:SkillTable: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 91: Line 91:
             local full_name = name;
             local full_name = name;
             image = split(image, '\\');
             image = split(image, '\\');
             name = split(name:gsub('%s?#%s?.*', ''), '\\');
            -- Remove prefix, suffix and full name syntax from the display name
             name = split(name:gsub('%s?#%s?.*', ''):gsub('^.*%+%+', ''), '\\');
             local index = 1;
             local index = 1;


Line 114: Line 115:
                 image[index] = trim(image[index]);
                 image[index] = trim(image[index]);
                 name[index] = trim(name[index]);
                 name[index] = trim(name[index]);
                -- Remove prefix and suffix
                name[index] = name[index]:gsub('^.*%+%+', ''):gsub('##.*$', '')


                 -- Mod skills
                 -- Mod skills