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

Нет описания правки
Нет описания правки
Строка 378: Строка 378:
         if type == "microwaveRecipes" and not next(recipes) == nil then
         if type == "microwaveRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
Строка 385: Строка 385:
         elseif type == "mixableRecipes" and not next(recipes) == nil then
         elseif type == "mixableRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmixablerecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmixablerecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
Строка 392: Строка 392:
         elseif type == "sliceableRecipes" and not next(recipes) == nil then
         elseif type == "sliceableRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
Строка 399: Строка 399:
         elseif type == "grindableRecipes" and not next(recipes) == nil then
         elseif type == "grindableRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildgrindrecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildgrindrecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
Строка 406: Строка 406:
         elseif type == "heatableRecipes" and not next(recipes) == nil then
         elseif type == "heatableRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildheatrecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildheatrecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
Строка 413: Строка 413:
         elseif type == "toolmadeRecipes" and not next(recipes) == nil then
         elseif type == "toolmadeRecipes" and not next(recipes) == nil then
             do
             do
                 for id, _ in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
                     out = out .. id
                     out = out .. recipe["id"]
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n"
                 end
                 end