Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
86 bytes added ,  20:14, 11 August 2022
no edit summary
Line 107: Line 107:
table.insert(prereq, infoboxData(buildingData.building, 'Building'))
table.insert(prereq, infoboxData(buildingData.building, 'Building'))
table.insert(prereq, infoboxData(buildingData.population, 'Population'))
table.insert(prereq, infoboxData(buildingData.population, 'Population'))
for k,v in pairs(buildingData.influence) do
if buildingData.influence then
table.insert(prereq, infoboxData(v, k .. 'Influence'))
for k,v in pairs(buildingData.influence) do
table.insert(prereq, infoboxData(v, k .. 'Influence'))
end
end
end
for k, v in pairs(buildingData.splendor) do
table.insert(prereq, infoboxData(v, k .. 'Splendor'))
if buildingData.splendor then
for k, v in pairs(buildingData.splendor) do
table.insert(prereq, infoboxData(v, k .. 'Splendor'))
end
end
end

Navigation menu