Module:String

local p = {}

local utilsString = require("Module:UtilsString")

-- Escape, for the benefit of templates which split by , function p.Escape(frame) local str = frame.args[1] str = string.gsub(str, ",", "&#44;") return str end

-- Useful for converting template arguments to class names for which kebab-case is standard function p.KebabCase(frame) local str = frame.args[1] return utilsString.kebabCase(str) end

-- Used by Template:Page Name function p.StripTrailingParentheses(frame) local str = frame.args[1] return str and utilsString.stripTrailingParentheses(str) end

return p