Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 125: Line 125:
     if buildingData then
     if buildingData then
--SECTION-PRODUCTION
--SECTION-PRODUCTION
--
if buildingData.employees then
if buildingData.employees then
             local employeeData = {}
             local employeeData = {}
Line 130: Line 131:
                 table.insert(employeeData, {label = com.firstUpper({type}), value = value})
                 table.insert(employeeData, {label = com.firstUpper({type}), value = value})
             end
             end
             if #employeeData > 0 then
             if #employeeData > 0 then
                 addSection(infobox, employeeData, 'Prosperity', 2)
                 addSection(infobox, employeeData, 'Employees', 2)
             end
             end
end
        --
      
        local productionData = {}
        if buildingData.workers then
            local workers = buildingData.workers
            if buildingData.rank then
                workers = workers .. ' ' .. buildingData.rank
            end
            table.insert(productionData, {label = 'Workers', value = workers.firstUpper})
        end
     end
        --
         if buildingData.input then
         if buildingData.input then
             local input = ''
             local input = ''
606

edits

Navigation menu