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

Нет описания правки
Нет описания правки
Строка 169: Строка 169:
     local output = recipe["effects"][1]["Entity"]
     local output = recipe["effects"][1]["Entity"]
     local outamount = recipe["effects"][1]["Number"]
     local outamount = recipe["effects"][1]["Number"]
     out = frame:preprocess("{{Recipe Box" ..
     out = frame:preprocess("{{Recipe Box"..
     "|name={{#invoke:Entity Lookup|getname|".. recipe["effects"][1]["Entity"] .."}}" ..
     "|name={{#invoke:Entity Lookup|getname|".. recipe["effects"][1]["Entity"] .."}}" ..
     "|component-1=" .. input ..
     "|component-1=" .. input ..
     "|transformer={{Recipe Transformers|mixableRecipes}}"..
     "|transformer={{Recipe Transformers|mixableRecipes}}"..
     "|result=".. frame:preprocess("{{Recipe Component|item={{#invoke:Entity Lookup|getname|".. output .."}}|image=File:Mousegif.gif|amount=".. outamount )..
     "|result={{Recipe Component|item={{#invoke:Entity Lookup|getname|"..output.."}}|image=File:Mousegif.gif|amount=".. outamount ..
     "}}")
     "}}")
     -- |amount=".. outamount  
     -- |amount=".. outamount