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

Нет описания правки
buildslicerecipes
Строка 110: Строка 110:
         recipe["result"] .. "}}|image=File:Mousegif.gif|amount=" .. recipe["count"] .. "}}") ..
         recipe["result"] .. "}}|image=File:Mousegif.gif|amount=" .. recipe["count"] .. "}}") ..
         "}}")
         "}}")
    return out
end
function p.buildslicerecipes(frame)
    local out = ""
    for id in pairs(getrecipesfromtype(frame, "microwaveRecipes")) do
        out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. id .. "}}") .. "\n"
    end
     return out
     return out
end
end
Строка 212: Строка 220:
     local out = ""
     local out = ""
     out = out .. p.buildmicrowaverecipes(frame)
     out = out .. p.buildmicrowaverecipes(frame)
    out = out .. p.buildslicerecipes(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] .. "}}")