Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 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 | ||