Jump to content

Module:Shindo

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Awesome Aasim (talk | contribs) at 22:26, 6 April 2024 (Created page with 'local p = {} local data = mw.loadData("Module:Shindo/data") p.format = function(frame) local args = require("Module:Arguments").getArgs(frame) local scale = args.scale local intensity = args.intensity or args[1] return data[scale].ranks[intensity] end --@TODO implement seismic intensity table -- p.table = function(frame) end return p'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}
local data = mw.loadData("Module:Shindo/data")

p.format = function(frame)
	local args = require("Module:Arguments").getArgs(frame)
	local scale = args.scale
	local intensity = args.intensity or args[1]
	return data[scale].ranks[intensity]
end


--[[
@TODO implement seismic intensity table
]]--
p.table = function(frame)
	
end

return p