Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) buildtoolmaderecipes |
||
| Строка 197: | Строка 197: | ||
recipe["result"] .. "}}|image=File:Mousegif.gif}}") .. | recipe["result"] .. "}}|image=File:Mousegif.gif}}") .. | ||
"}}") | "}}") | ||
return out | |||
end | |||
function p.buildtoolmaderecipes(frame) | |||
local out = "" | |||
for id in pairs(getrecipesfromtype(frame, "toolmadeRecipes")) do | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n" | |||
end | |||
return out | return out | ||
end | end | ||
| Строка 239: | Строка 247: | ||
out = out .. p.buildgrindrecipes(frame) | out = out .. p.buildgrindrecipes(frame) | ||
out = out .. p.buildheatrecipes(frame) | out = out .. p.buildheatrecipes(frame) | ||
out = out .. p.buildtoolmaderecipes(frame) | |||
-- out = out .. "\n" .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. frame.args[1] .. "}}") | -- out = out .. "\n" .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. frame.args[1] .. "}}") | ||
-- out = out .. "\n" .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. frame.args[2] .. "}}") | -- out = out .. "\n" .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. frame.args[2] .. "}}") | ||