Module:Sandbox/ProcrastinatingReader/Dbm: Difference between revisions

Content deleted Content added
pass some params to db-meta
pass keys
Line 4:
local function constructCsdTable(args)
local tbl = {}
local keys = {}
local current = ''
for k,v in pairs(args) do
if string.match(v, '[GgAaFfCcUuRrTtPp]%d%d?') then
current = v
table.insert(keys, current)
tbl[current] = {}
else
Line 15 ⟶ 17:
end
return {keys, tbl}
end
 
local function build(frame, args)
csdListlocal constructed = constructCsdTable(args)
local csds = constructed[1]
local csdList = constructed[2]
 
local requestedReasons = {}
Line 36 ⟶ 40:
['criterion'] = 'NA',
['temp'] = 'Db-notice-multiple',
['temp2'] = '|'..table.concat(csds, '|'),
-- forward given params to Db-meta