Модуль: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 = frame:preprocess( "{{#invoke:Entity Lookup|getname|".. solid .."}}" ), amount = amount}
         out = out .. frame:preprocess( "{{Recipe Component|item={{#invoke:Entity Lookup|getname|".. solid .."}}|amount=".. amount .."}}" )
         out = out .. frame:preprocess( "{{Recipe Component|item={{#invoke:Entity Lookup|getname|".. solid .."}}|amount=".. amount .."}}" )
     end
     end
Строка 84: Строка 82:
     local out = ""
     local out = ""
     out = out .. p.buildsolids(frame, p.getmicrowaverecipesolids(frame, p.getrecipe(frame, frame.args[2], frame.args[1])))
     out = out .. p.buildsolids(frame, p.getmicrowaverecipesolids(frame, p.getrecipe(frame, frame.args[2], frame.args[1])))
    out = out .. "\n" .. p.buildreagents(frame, p.getmicrowaverecipereagents(frame, p.getrecipe(frame, frame.args[2], frame.args[1])))
     out = out .. "\n" .. e.getname(frame, "FoodTomato")
     out = out .. "\n" .. e.getname(frame, "FoodTomato")
     out = out .. "\n" .. frame:preprocess( "{{#invoke:Entity Lookup|getname|FoodDonkpocketGondola}}" )
     out = out .. "\n" .. frame:preprocess( "{{#invoke:Entity Lookup|getname|FoodDonkpocketGondola}}" )