Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
451 bytes added ,  20:37, 11 August 2022
no edit summary
Line 174: Line 174:
end
end
--Construction group
if buildingData.construction then
local conList = {}
for k, v in pairs(buildingData.construction) do
local conLabel = i.icon(k, nil, nil, string.gsub(k,
string.sub(k,1,1), string.upper(string.sub(k,1,1)), 1),
'en')
table.insert(conList, infoboxData(v, conLabel))
end
local conGroup = infoboxGroup(conList, '2', 'Construction Requirements')
for k, v in ipairs(conGroup) do
result:node(v)
end
end
return result
return result
end
end
return p
return p

Navigation menu