Module:Chemistry Lookup/data: Difference between revisions

From Space Station 14 Wiki
No edit summary
No edit summary
Line 1: Line 1:
local prototypes = "User:MoMMI/chem_prototypes.json"
local chem = "User:MoMMI/chem_prototypes.json"
local p = {} --p stands for package
local react = "User:MoMMI/react_prototypes.json"


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

Revision as of 05:12, 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 {mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()), mw.text.jsonDecode(mw.title.new(react, "User"):getContent())}