No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
local splitArray = {} | local splitArray = {} | ||
function split(str) | local function split(str) | ||
splitArray = {} | splitArray = {} | ||
for match in (str.."@"):gmatch("(.-)"..sep) do | for match in (str.."@"):gmatch("(.-)"..sep) do | ||
Revision as of 06:13, 5 June 2024
Documentation for this module may be created at Module:ModuleUniqueStatTable/doc
local p = {}
local splitArray = {}
local function split(str)
splitArray = {}
for match in (str.."@"):gmatch("(.-)"..sep) do
table.insert(splitArray, match)
end
end
function p.processData(frame)
if frame.args.csv == nil then
return "ERROR: Module:ModuleUniqueStatTable got no csv string! Please tell us on Discord!"
end
split(frame.args.csv)
local result = ""
for i, part in ipairs(parts) do
result = result .. "####" .. part
end
return result
end
return p