Module:Chemistry Lookup/data: Difference between revisions

From Space Station 14 Wiki
No edit summary
No edit summary
Line 2: Line 2:
local react = "User:MoMMI/react_prototypes.json"
local react = "User:MoMMI/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()),
groups = {}
}

Revision as of 21:06, 18 December 2021

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

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

return {
	chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
	react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
	groups = {}
}