View source for Module:Chemistry Lookup
From Space Station 14 Wiki
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local prototypes = mw.loadData("Module:Chemistry Lookup/data")
local p = {}
p.chem = prototypes.chem
p.react = prototypes.react
p.groupDirection = prototypes.groupDirection
function p.readscalar(frame)
return mw.text.nowiki(p.chem[frame.args[1]][frame.args[2]])
end
function p.readscalarreact(frame)
if p.react[frame.args[1]][frame.args[2]] ~= nil then
return mw.text.nowiki(p.react[frame.args[1]][frame.args[2]])
else
return ""
end
end
function p.getcolor(frame)
return mw.text.nowiki(p.chem[frame.args[1]].color:sub(1, 7))
end
000
1:0
Template used on this page:
Return to Module:Chemistry Lookup.