Module:Chemistry Lookup/data: Difference between revisions

From Space Station 14 Wiki
No edit summary
No edit summary
Line 5: Line 5:
chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
groups = {}
groupDirection = {
Drinks = "Drinks";
}
}
}

Revision as of 22:01, 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";
	}
}