Module:GetRecipe

local p = {} local cargo = mw.ext.cargo

function p.crafting(frame) parentArgs = frame:getParent.args local tables = 'CraftingRecipes' local fields = 'Data' local cargoArgs = { where = 'Output="' .. parentArgs.item .. '"' }	local cargoData = cargo.query(tables, fields, cargoArgs) mw.logObject(cargoData) return cargoData[1]['Data'] end

return p