Difference between revisions of "Module:Common"

Jump to navigation Jump to search
202 bytes added ,  08:24, 24 December 2023
no edit summary
Line 49: Line 49:
local args = a.getArgs(frame)
local args = a.getArgs(frame)
return trim(com.modulePagename(args['title']))
return trim(com.modulePagename(args['title']))
end
function com.fUpper(text)
local words = mw.text.split(text, '%s*')
for k, v in ipairs(words) do
words[k] = v:gsub('(.)(.*)', string.upper('%1') .. '%2')
end
return table.concat(words, ' ')
end
end


Navigation menu