Модуль:Prototypes/Роль/Лодаут: различия между версиями

мНет описания правки
мНет описания правки
Строка 57: Строка 57:
                                                             local req = eff.requirement
                                                             local req = eff.requirement
                                                             if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
                                                             if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
                                                                 extraInfo = extraInfo .. req.department .. ": " .. req.time .. "<br>"
                                                                 extraInfo = extraInfo "{{#invoke:Ftl|main|translation|department-" .. req.department .. "}}: " .. req.time .. "<br>"
                                                             elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
                                                             elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
                                                                 extraInfo = extraInfo .. req.role .. ": " .. req.time .. "<br>"
                                                                 extraInfo = extraInfo "{{#invoke:Ftl|main|translation|".. req.role .. "}}: " .. req.time .. "<br>"
                                                             end
                                                             end
                                                         end
                                                         end
Строка 71: Строка 71:
                             end
                             end
                         end
                         end
                         table.insert(results, extraInfo .. eqValue)
                         table.insert(results, '<div class="test">'.. extraInfo ..'' .. eqValue)
                     end
                     end
                 end
                 end
Строка 81: Строка 81:
         table.insert(output, '<div class="role">' .. eq .. '</div>')
         table.insert(output, '<div class="role">' .. eq .. '</div>')
     end
     end
     return table.concat(output, "\n")
     return frame:preprocess(table.concat(output))
end
end


return p
return p