Module:Chemistry Lookup/data: Difference between revisions

From Space Station 14 Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
local prototypes = "User:MoMMI/prototypes.json"
local chem = "User:Moony/chem_prototypes.json"
local p = {} --p stands for package
local react = "User:Moony/react_prototypes.json"


return mw.jsonDecode(mw.title.new(prototypes, "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";
	}
}