Module:Recipe

From Veloren Wiki
Revision as of 19:26, 16 February 2022 by Scott Williams (talk | contribs)

Documentation for this module may be created at Module:Recipe/doc

local recipelist = mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{title='Template:Recipes.json'})

local p = {}

p.getRecipe = function(frame)
	local result = frame.args[1]
	for i=1, #recipelist, 1 do
		if recipelist[i]["output-name"] == result then
			local txt = recipelist[i]
		end
	end
	return txt
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.