Module:Case
See usage on Script error: The function "title_case" does not exist., Ttemplate:, and template:l.
local p = {} --p stands for package
function p.lowercase(frame)
return "[[" .. frame.args.link .. "|" .. string.lower(frame.args.link) .. "]]"
end
function p.uppercase_first_letter(frame)
first_letter = string.sub(frame.args.link, 0, 1)
rest_of_link = string.sub(frame.args.link, 1, string.len(frame.args.link) - 1)
return "[[" .. frame.args.link .. "|" .. string.upper(first_letter) .. string.lower(rest_of_link) .. "]]"
end
return p