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

Нет описания правки
Нет описания правки
Строка 165: Строка 165:
     local out = ""
     local out = ""
     local id = frame.args[1]:gsub(' ', '')
     local id = frame.args[1]:gsub(' ', '')
     local recipe = p.chemicals[id]
     local recipe = p.chemicals[id].effects
     local input = buildreagents(frame, getchemicalreagents(recipe))
     local input = buildreagents(frame, getchemicalreagents(recipe))
     local output = recipe["effects"]["Entity"]
     local output = recipe["Entity"]
     local outamount = recipe["effects"]["Number"]
     local outamount = recipe["Number"]
     out = frame:preprocess("{{Recipe Box" ..
     out = frame:preprocess("{{Recipe Box" ..
     "| name = " ..
     "| name = " ..