Difference between revisions of "Module:Common"

Jump to navigation Jump to search
7 bytes removed ,  08:29, 24 December 2023
no edit summary
Line 54: Line 54:
local words = mw.text.split(text, '%s')
local words = mw.text.split(text, '%s')
for k, v in ipairs(words) do
for k, v in ipairs(words) do
words[k] = v:gsub('(.)(.*)', string.upper('%1') .. '%2')
words[k] = v:sub(1,1):upper() .. (v:sub(2) or '')
end
end

Navigation menu