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