Module:Reward/TempestTrials

local Reward = require 'Module:Reward' local RewardTables = require 'Module:Reward/Tables' local Datetime = require 'Module:DatetimeUtil'

local score = function (args, frame) args.columns = args.columns or 4 return RewardTables.score(args, function (reward, score)		Reward.define(reward, 'TempestTrials', {score = score}, frame)	end, nil, frame) end

local rank = function (args, frame) local t0 = Datetime.to_iso8601(frame:callParserFunction('#time', 'U', args.time or '')) local t1 = Datetime.MAX_TIME return RewardTables.rank(args, function (reward)		Reward.define(reward, 'TempestTrials', {from = t0, to = t1}, frame)	end, nil, frame) end

return require 'Module:MakeMWModule'.makeMWModule { score = score, rank = rank, }