Module:Data/Scripts: Difference between revisions

From Annwan’s Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
_getDictfloat = function ( frame )
_getDictfloat = function ( frame )
local data = require("Module:Data/Scripts")
local data = require("Module:Data/Scripts")
return data[frame.args[1]].dictfloat or ""
return (data[frame.args[1]] or {}).dictfloat or ""
end
end
}
}

Revision as of 08:14, 15 April 2025

Properties for the various scripts


return {
	nahan = { dictfloat = ""},
	naqoo = { dictfloat = "1"},
	_getDictfloat = function ( frame )
		local data = require("Module:Data/Scripts")
		return (data[frame.args[1]] or {}).dictfloat or ""
	end
}