Module:Sandbox/ProcrastinatingReader: Difference between revisions

Content deleted Content added
add param from data
invalid csd error
Line 1:
local p = {}
local getArgs = require('Module:Arguments').getArgs
local error = require('Module:Error')
local tableTools = require('Module:TableTools')
local data = mw.loadData('Module:Sandbox/ProcrastinatingReader/data')
Line 15 ⟶ 16:
function p.build(frame, args)
local criterion = args['criterion']
if criterion == nil or data[criterion] == nil then
return error.error({message = "Valid CSD not provided"})
end
local cdata = data[criterion]
local tag = cdata.tag