Module:Recipe

local p = {} local data = mw.loadData('Module:Recipe/data') local getArgs = require('Dev:Arguments').getArgs

function p.main(frame) local args = getArgs(frame) if args[1] then if data[args[1]] then if data[args[1]].original then error ("'" .. args[1] .. "' is not crafted standalone; use '" .. data[args[1]].original .. "' instead") else return data[args[1]].name end else error ("'" .. args[1] .. "' recipe does not exist") end end end

return p