Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 378: | Строка 378: | ||
if type == "microwaveRecipes" and not next(recipes) == nil then | if type == "microwaveRecipes" and not next(recipes) == nil then | ||
do | do | ||
for | 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 | 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 | 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 | 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 | 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 | 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 | ||