Module:SkillTable: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 164: Line 164:
             -- Remove the name of the Master Skill
             -- Remove the name of the Master Skill
             if (args.no_mc_names == 'true') then
             if (args.no_mc_names == 'true') then
                 display_name = display_name:gsub('.*%/Stage([0-9])', 'Stage %1');
                 display_name = display_name:gsub('.*%/Stage%s([0-9])', 'Stage %1');
             end
             end
              
              
Line 181: Line 181:
                 }
                 }
             end
             end
            if (color == '#') then
             row = skill_table:tag('div'):attr('data-type', 'table-row'):attr('style', 'background-color: ' .. color):attr('class', 'textfloat table-head related-title');
                color = frame:expandTemplate{
                    title = 'ColorSel',
                    args = {'Misc'}
                }
            end
             row = skill_table:tag('div'):attr('data-type', 'table-row'):attr('style', 'background-color: ' .. color):attr('class', 'textfloat table-head');
             row:tag('div'):attr('data-type', 'table-head'):wikitext(name);
             row:tag('div'):attr('data-type', 'table-head'):wikitext(name);
         end
         end