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

мНет описания правки
мНет описания правки
Строка 46: Строка 46:
for _, req in ipairs(job.requirements) do
for _, req in ipairs(job.requirements) do
if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
result = result .. "<b>{{ucfirst:{{#invoke:Ftl|main|translation|department-" .. req.department .. "}}}}</b>: " ..
result = result .. "<li>[[{{ucfirst:{{#invoke:Ftl|main|translation|department-" .. req.department .. "}}}}]]: " ..
formatTime(req.time) .. "<br>"
formatTime(req.time) .. "</li>"
elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
result = result .. "<b>{{ucfirst:{{#invoke:Ftl|main|translation|" .. req.role .. "}}}}</b>: " ..
result = result .. "<li>[[{{ucfirst:{{#invoke:Ftl|main|translation|" .. req.role .. "}}}}]]: " ..
formatTime(req.time) .. "<br>"
formatTime(req.time) .. "</li>"
end
end
end
end