Module:SentenceCase

local p = {} local getArgs = require('Module:Arguments').getArgs

function p.main(frame) local args        = getArgs(frame) local name        = args['1'] or '' return p.firstToUpper(name) end

-- https://stackoverflow.com/questions/2421695/first-character-uppercase-lua function p.firstToUpper(name) return (name:gsub("^%l", string.upper)) end

return p