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

Нет описания правки
Нет описания правки
Строка 35: Строка 35:
     local out = ""
     local out = ""
     for solid, amount in pairs(array) do
     for solid, amount in pairs(array) do
         out = out .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, solid), amount = amount}
         -- out = out .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, solid), amount = amount}
        out = out .. frame:expandTemplate{ title = "Recipe Component", item = frame:preprocess( "{{#invoke:Entity Lookup|getname|".. solid .."}}" ), amount = amount}
     end
     end
     return out
     return out