1,124
edits
Line 34: | Line 34: | ||
for k, v in ipairs(dataTable) do | for k, v in ipairs(dataTable) do | ||
local titleParts = mw.text.split(v, '%s') | local titleParts = mw.text.split(v, '%s') | ||
for k2, part in titleParts do | for k2, part in ipairs(titleParts) do | ||
titleParts[k2] = v2:upper():sub(1,1) .. v2:sub(2) | titleParts[k2] = v2:upper():sub(1,1) .. v2:sub(2) | ||
end | end |