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

Нет описания правки
Нет описания правки
Строка 342: Строка 342:
     local input = buildreagents(frame, getchemicalreagents(recipe))
     local input = buildreagents(frame, getchemicalreagents(recipe))
      
      
     local outputs = {}
     local results = {}
     for _, v in pairs(recipe["effects"]) do
     for _, v in pairs(recipe["effects"]) do
     table.insert(outputs, v.description)
     table.insert(results, v.description)
     end
     end
      
      
     output = table.concat(outputs, "\n")
     local result = table.concat(results, "\n")
      
      
     out = frame:preprocess("{{Recipe Box" ..
     out = frame:preprocess("{{Recipe Box" ..
Строка 353: Строка 353:
         "|component-1=" .. input ..
         "|component-1=" .. input ..
         "|transformer={{Recipe Transformers|mixableRecipes}}" ..
         "|transformer={{Recipe Transformers|mixableRecipes}}" ..
         "|result=" .. output .. "}}")
         "|result=" .. result .. "}}")
     return out
     return out
end
end