Module:DPLHelp

local p = {}

-- generate the table output -- expected parameters is: -- * the current page number %NR% -- * number of columns i.e. 4 -- * table content function p.table(frame) if not frame or not frame.args then return '' end local args = frame.args -- force skill text to lowercase to ensure easier comparisons local pageNum = args[1] local totalCol = args[2] local content = args[3] if (pageNum - 1) % totalCol == 0 then return '\n|-\n|' .. content else return ' || ' .. content end end

return p