Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 34: | Строка 34: | ||
function p.buildsolids(frame, array) | function p.buildsolids(frame, array) | ||
local out = "" | local out = "" | ||
for | for solid, amount in pairs(array) do | ||
out = out .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, | out = out .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, solid), amount = amount} | ||
end | end | ||
return out | return out | ||
| Строка 81: | Строка 81: | ||
function p.tests(frame) | function p.tests(frame) | ||
local out = "" | local out = "" | ||
out = out .. p.buildsolids(frame, p.getrecipe(frame, frame.args[1], frame.args[2])) | out = out .. p.buildsolids(frame, p.getmicrowaverecipesolids(frame, p.getrecipe(frame, frame.args[1], frame.args[2]))) | ||
-- out = out .. p.buildmicrowaverecipebox(frame, frame.args[1]) | -- out = out .. p.buildmicrowaverecipebox(frame, frame.args[1]) | ||
return out | return out | ||