Module:Chemistry Lookup/data: Difference between revisions

From Space Station 14 Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local chem = "User:MoMMI/chem_prototypes.json"
local chem = "User:Moony/chem_prototypes.json"
local react = "User:MoMMI/react_prototypes.json"
local react = "User:Moony/react_prototypes.json"


return {mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()), mw.text.jsonDecode(mw.title.new(react, "User"):getContent())}
return {
chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
groupDirection = {
Drinks = "Drinks";
Foods = "Cooking";
}
}

Latest revision as of 22:03, 27 April 2022

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

local chem = "User:Moony/chem_prototypes.json"
local react = "User:Moony/react_prototypes.json"

return {
	chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
	react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
	groupDirection = {
		Drinks = "Drinks";
		Foods = "Cooking";
	}
}