Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
80 bytes added ,  18:25, 11 August 2022
no edit summary
Line 90: Line 90:
if buildingData or args['image'] then
if buildingData or args['image'] then
local result = mainBox(building)
local result = mainBox(building)
mw.log(tostring(result))
if args['image'] then
if args['image'] then
result:node(infoboxImage(args['image'], args['caption']))
result:node(infoboxImage(args['image'], args['caption']))
end
end
mw.log(tostring(result))
--Production group
--Production group
local workers = buildingData.workers
local workers = buildingData.workers
Line 114: Line 115:
for k, v in ipairs(production) do
for k, v in ipairs(production) do
result:node(v)
result:node(v)
mw.log(tostring(result))
end
end
end
end

Navigation menu