Модуль:Sandbox: различия между версиями
Нет описания правки |
Нет описания правки |
||
| Строка 342: | Строка 342: | ||
local input = buildreagents(frame, getchemicalreagents(recipe)) | local input = buildreagents(frame, getchemicalreagents(recipe)) | ||
local | local results = {} | ||
for _, v in pairs(recipe["effects"]) do | for _, v in pairs(recipe["effects"]) do | ||
table.insert( | table.insert(results, v.description) | ||
end | end | ||
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=" .. | "|result=" .. result .. "}}") | ||
return out | return out | ||
end | end | ||