wikipedia_layout
fix_titlecase
Line 19: Line 19:
end
end
s = mw.ustring.lower(s)
s = mw.ustring.lower(s)
return mw.ustring.gsub(s, "(%a)([%w']*)", function(first, rest)
s = mw.ustring.gsub(s, "(%a)([%w']*)", function(first, rest)
return mw.ustring.upper(first) .. rest
return mw.ustring.upper(first) .. rest
end)
end)
return s
end
end