Module:Helper
Documentation for this module may be created at Module:Helper/doc
-- This file contains some helper functions
local getArgs = require('Module:Arguments').getArgs
local p = {}
-- Replace underscores with spaces
function p.cleanUnderscore(frame)
local args = getArgs(frame)
return p._cleanUnderscore(args)
end
function p._cleanUnderscore(input)
local res, _ = input[1]:gsub("_", " "):gsub("( %l)", string.upper)
return res
end
return p