Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Reagent Lookup: Difference between revisions

From Delta-V Wiki
No edit summary
No edit summary
 
Line 5: Line 5:


function p.recipe(frame)
function p.recipe(frame)
return mw.text(reagent[frame.args[1]]["recipes"])
return reagent[frame.args[1]]["recipes"]
end
end


return p
return p

Latest revision as of 09:39, 25 December 2023

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

local reagent = "User:Floofers/reagents.json"
reagent = mw.text.jsonDecode(mw.title.new(reagent, "User"):getContent())

local p = {}

function p.recipe(frame)
	return reagent[frame.args[1]]["recipes"]
end

return p