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

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