Module:Reports
From cpt
Documentation for this module may be created at Module:Reports/doc
local p = {}
function p.cleanse(frame)
local s = frame.args[1]
s = string.gsub( s, '{', '{' )
s = string.gsub( s, '}', '}' )
s = string.gsub( s, '%[', '[' )
s = string.gsub( s, '%]', ']' )
s = string.gsub( s, '|', '|' )
return s
end
function p.cptWorkboardsTableRow(frame)
local s = ''
local link = frame.args[1]
local category = frame.args[2]
local kanban = frame.args[3]
local backlog = frame.args[4]
if ( #category > 0 and ( #kanban == 0 and #backlog == 0 )) or
( #category == 0 and ( #kanban > 0 or ( #backlog > 0 and backlog ~= 'Watching / External' ))) then
s = s .. '\n|' .. link
s = s .. '\n|' .. category
s = s .. '\n|' .. kanban
s = s .. '\n|' .. backlog
s = s .. '\n|-'
end
return s
end
return p