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

Нет описания правки
мНет описания правки
Строка 376: Строка 376:


-- tests.
-- tests.
function p.tests(frame)
function p.tests1(frame)
     local out = ""
     local out = ""
     local tablo = p.meals
     local tablo = p.meals
Строка 390: Строка 390:
     return out
     return out
end
end
-- function p.tests(frame)
function p.tests2(frame)
--     local out = ""
     local out = ""
--     for type, recipes in pairs(getrecipesbyname(frame, "[Dd]ough")) do
     for type, recipes in pairs(getrecipesbyname(frame, "[Dd]ough")) do
--         out = out .. type .. "("
         out = out .. type .. "("
--         for k, r in pairs(recipes) do
         for k, r in pairs(recipes) do
--             out = out .. " " .. k .. ":" .. r["id"]
             out = out .. " " .. k .. ":" .. r["id"]
--         end
         end
--         out = out .. ")"
         out = out .. ")"
--     end
     end
--     return out
     return out
-- end
end


return p
return p