Mô_đun:String2

local p = {}
p.upper = function(frame) local s = mw.text.trim(frame.args[1] or "") return string.upper(s)endp.lower = function(frame) local s = mw.text.trim(frame.args[1] or "") return string.lower(s)endp.sentence = function (frame ) frame.args[1] = string.lower(frame.args[1]) return p.ucfirst(frame)endp.ucfirst = function (frame ) local s = mw.text.trim( frame.args[1] or "" ) local s1 = "" -- if it's a list chop off and (store as s1) everything up to the first