Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 391: | Строка 391: | ||
function p.buildrecipeboxuniversal(frame, idtable) | function p.buildrecipeboxuniversal(frame, idtable) | ||
local out = " | local out = "" | ||
for type, recipes in pairs(idtable) do | for type, recipes in pairs(idtable) do | ||
-- INTRUDER ALERT: SHITCODE IS IN THE BASE | -- INTRUDER ALERT: SHITCODE IS IN THE BASE | ||
local id = "" | local id = "" | ||
if type == "microwaveRecipes" and not table.isempty(recipes) then | if type == "microwaveRecipes" and not table.isempty(recipes) then | ||
do | do | ||
| Строка 444: | Строка 443: | ||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
end | end | ||
end | end | ||
end | end | ||
return out | return out | ||
end | end | ||