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

Нет описания правки
buildgrindrecipes
Строка 138: Строка 138:
         "|result=" .. reagents ..
         "|result=" .. reagents ..
         "}}")
         "}}")
    return out
end
function p.buildgrindrecipes(frame)
    local out = ""
    for id in pairs(getrecipesfromtype(frame, "grindableRecipes")) do
        out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildgrindrecipebox|" .. id .. "}}") .. "\n"
    end
     return out
     return out
end
end
Строка 221: Строка 229:
     out = out .. p.buildmicrowaverecipes(frame)
     out = out .. p.buildmicrowaverecipes(frame)
     out = out .. p.buildslicerecipes(frame)
     out = out .. p.buildslicerecipes(frame)
    out = out .. p.buildgrindrecipes(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] .. "}}")