Module:Case
See usage on TEMPLATE:T, Template:u, and template:l.
local p = {} --p stands for package
langObject = mw.getLanguage( 'simple' )
function p.title_case(frame)
return "[[" .. frame.args.link .. "|" .. langObject:uc(frame.args.link) .. "]]"
end
function p.uppercase_first_letter(frame)
return "[[" .. frame.args.link .. "|" .. langObject:ucfirst(string.lower(frame.args.link)) .. "]]"
end
function p.lowercase(frame)
return "[[" .. frame.args.link .. "|" .. string.lower(frame.args.link) .. "]]"
end
return p