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

buildgrindrecipes
buildheatrecipebox
Строка 167: Строка 167:
         recipe["result"] .. "}}|image=File:Mousegif.gif}}") ..
         recipe["result"] .. "}}|image=File:Mousegif.gif}}") ..
         "}}")
         "}}")
    return out
end
function p.buildheatrecipes(frame)
    local out = ""
    for id in pairs(getrecipesfromtype(frame, "heatableRecipes")) do
        out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildheatrecipebox|" .. id .. "}}") .. "\n"
    end
     return out
     return out
end
end
Строка 230: Строка 238:
     out = out .. p.buildslicerecipes(frame)
     out = out .. p.buildslicerecipes(frame)
     out = out .. p.buildgrindrecipes(frame)
     out = out .. p.buildgrindrecipes(frame)
    out = out .. p.buildheatrecipebox(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] .. "}}")