Module:Chemistry Lookup: Difference between revisions

From Space Station 14 Wiki
No edit summary
Tag: Manual revert
No edit summary
Line 5: Line 5:


function p.readscalar(frame)
function p.readscalar(frame)
return prototypes[frame.args[0]]
return prototypes[frame.args[0]].tostring()
end
end


return p
return p

Revision as of 00:09, 18 December 2021

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

local prototypes = mw.loadData("Module:Prototype Lookup/data")
mw.log(prototypes)

local p = {}

function p.readscalar(frame)
	return prototypes[frame.args[0]].tostring()
end

return p