Module:Date Stuff: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:


function p.test(frame)
function p.test(frame)
   return frame
   return frame[1]
end
end


return p
return p

Revision as of 11:55, 5 July 2021

Documentation for this module may be created at Module:Date Stuff/doc

local p = {}
local args = {}

--Takes a string and splits it based on a specified delimiter
function Split(s, delimiter)
    result = {};
    for match in (s..delimiter):gmatch("(.-)"..delimiter) do
        table.insert(result, match);
    end
    return result;
end

function p.test(frame)
  return frame[1]
end

return p