Module:Sandbox/ProcrastinatingReader/Dbm: Difference between revisions

Content deleted Content added
rationale
build template
Line 21:
csdList = constructCsdTable(args)
 
local outrequestedReasons = mw.html.create(''){}
for k,v in pairs(csdList) do
local dbtemplate =table.insert(requestedReasons, frame:expandTemplate{ title = 'Db-'..string.lower(k), args = {
['raw'] = 'yes',
['rationale'] = v['rationale'] or '',
['nocat'] = 'true' -- for test purposes
}})
 
--if true then return mw.dumpObject(dbtemplate) end
out:newline():wikitext(dbtemplate)
end
 
local dbTemplate = frame:expandTemplate{ title = 'Db-meta', args = {
return out
[1] = '&#32;for the following reasons:</b><ul><li>'..table.concat(requestedReasons, '</li><li>') .. '</li></ul>',
['criterion'] = 'NA',
['nocat'] = 'true' -- for test purposes
}}
return outdbTemplate
end