Content deleted Content added
documentation |
cleanup |
||
Line 19:
local isInteger = true
for i = 1, #list do
if list[i] == "" then
result[i] = nil else result[i] = tonumber(list[i])
if not result[i] then return end
Line 791 ⟶ 793:
if showValues then
if type(showValues) == "string" then -- deserialize as table
local keyValues = mw.text.split(showValues, "%s*,%s*")
showValues = {}
for _, kv in ipairs(keyValues) do
local key, value = mw.ustring.match(kv, "^%s*(.-)%s*:%s*(.-)%s*$")
if key then showValues[key] = value end
end
end
|