ElEditors, Interface administrators, Administrators
70,893
edits
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
-- Predefine the subpage for mod skills. | -- Predefine the subpage for mod skills. | ||
local l_mod_subpage = '/ModA' | local l_mod_subpage = '/ModA' | ||
local lang = args.lang and ('/' .. args.lang) or '' | |||
-- Split into two tables for easier maintenance of the code. | -- Split into two tables for easier maintenance of the code. | ||
Line 155: | Line 157: | ||
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 .. '|.]]'); | skill_wrap:wikitext('[[' .. full_name .. mod_subpage .. lang .. '|.]]'); | ||
-- Remove (Elsword), (Elesis), etc. in display name | -- Remove (Elsword), (Elesis), etc. in display name |