Difference between revisions of "Module:Tables"

Jump to navigation Jump to search
no edit summary
Line 33: Line 33:
for k, v in ipairs(dataTable) do
for k, v in ipairs(dataTable) do
local titleParts = mw.text.split(v, '%s')
for k2, part in titleParts do
titleParts[k2] = v2:upper():sub(1,1) .. v2:sub(2)
end
local buildString = '[[%a|%a]]'
local pageTitle = table.concat(titleParts, ' ')
local u = string.upper(string.sub(v,1,1))
local u = string.upper(string.sub(v,1,1))
local buildingName = '[[' .. u .. string.sub(v, 2) .. ']]'
local buildingName = buildString:format(pageTitle, u .. string.sub(v, 2))
local c = buildingList[v]
local c = buildingList[v]
local getPreReq = {}
local getPreReq = {}

Navigation menu