Module:SkillTable: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 155: Line 155:


             -- Spawn a name cell.
             -- Spawn a name cell.
            local link = full_name .. mod_subpage .. lang
             local name_cell = row:tag('div'):attr('data-type', 'table-cell');
             local name_cell = row:tag('div'):attr('data-type', 'table-cell');
             local skill_wrap = name_cell:tag('div'):addClass('skill-wrap');
             local skill_wrap = name_cell:tag('div'):addClass('skill-wrap');
             skill_wrap:wikitext('[[' .. full_name .. mod_subpage .. lang .. '|.]]');
             skill_wrap:wikitext('[[' .. link .. '|.]]');


             -- Remove (Elsword), (Elesis), etc. in display name
             -- Remove (Elsword), (Elesis), etc. in display name
Line 170: Line 171:
             end
             end
              
              
             skill_wrap:tag('div'):addClass('skill-wrap-text'):wikitext('[[' .. full_name .. mod_subpage .. '|' .. prefix .. display_name .. ']] ' .. suffix .. lock .. cube );
             skill_wrap:tag('div'):addClass('skill-wrap-text'):wikitext('[[' .. link .. '|' .. prefix .. display_name .. ']] ' .. suffix .. lock .. cube );
              
              
             -- If a header is detected, it will not interrupt chunking.
             -- If a header is detected, it will not interrupt chunking.