ElEditors, Interface administrators, Administrators
85,546
edits
m (Add i18n to `Per x`, fix: number separation) |
mNo edit summary |
||
Line 24: | Line 24: | ||
local modes = { 'PvE', 'PvP' } | local modes = { 'PvE', 'PvP' } | ||
-- Define the schema for the table | -- Define the schema for the table | ||
Line 59: | Line 58: | ||
do_table = args[1] == 'true', | do_table = args[1] == 'true', | ||
character = args[2] or args.char or 'Elsword', | character = args[2] or args.char or 'Elsword', | ||
lang_suffix = args.lang and ('/' .. args.lang) or '', | |||
lang_append = args.lang ~= nil and args.lang ~= '', | |||
format = args.format ~= 'false', | format = args.format ~= 'false', | ||
no_max = args.no_max == 'true', | no_max = args.no_max == 'true', | ||
Line 139: | Line 140: | ||
|passive1=... |passive2=... -> { passive1, passive2 } | |passive1=... |passive2=... -> { passive1, passive2 } | ||
--]] | --]] | ||
local passive_name = v | local passive_name = v | ||
local passive_title = v .. | local passive_title = v .. OPTIONS.lang_suffix | ||
local is_custom = string.find(k, '_define') ~= nil | local is_custom = string.find(k, '_define') ~= nil | ||
local passive_index = string.match(k, "%d") | local passive_index = string.match(k, "%d") | ||
Line 151: | Line 151: | ||
passive_name = passive_values[#passive_values] | passive_name = passive_values[#passive_values] | ||
passive_values[#passive_values] = nil | passive_values[#passive_values] = nil | ||
elseif | elseif OPTIONS.lang_append then | ||
--[[ | --[[ | ||
Translate page's display title to passive name. | Translate page's display title to passive name. |