Difference between revisions of "Module:Tables"

Jump to navigation Jump to search
12 bytes added ,  14:46, 21 February 2024
no edit summary
 
(2 intermediate revisions by the same user not shown)
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] = part:upper():sub(1,1) .. part:sub(2)
end
end
local buildString = '[[%a|%a]]'
local buildString = '[[%s|%s]]'
local pageTitle = table.concat(titleParts, ' ')
local pageTitle = table.concat(titleParts, ' ')
local u = string.upper(string.sub(v,1,1))
local u = string.upper(string.sub(v,1,1))

Navigation menu