(Created page with "local reagent = "User:Floofers/reagents.json" reagent = mw.text.jsonDecode(mw.title.new(reagent, "User"):getContent()) function recipe(frame) return reagent[frame.args[1]]["recipes"] end") |
No edit summary |
||
Line 1: | Line 1: | ||
local reagent = "User:Floofers/reagents.json" | local reagent = "User:Floofers/reagents.json" | ||
reagent = mw.text.jsonDecode(mw.title.new(reagent, "User"):getContent()) | |||
local p = {} | |||
function recipe(frame) | function p.recipe(frame) | ||
return reagent[frame.args[1]]["recipes"] | return mw.text.nowiki(reagent[frame.args[1]]["recipes"]) | ||
end | end | ||
return p |
Revision as of 09:38, 25 December 2023
Documentation for this module may be created at Module:Reagent Lookup/doc