-- CFB schedule table conversion
-- {{subst:#invoke:CFB schedule/convert|table|...}}
local p = {}
function p.table(frame)
local res = ''
for t in mw.text.gsplit(frame.args[1] or '', '{{[_%s]*CFB[_%s]*Schedule[_%s]*') do
t = t:match( '^%s*(.-)%s*$' )
if mw.ustring.sub(t,-2) == '}}' then
res = res .. '{{CFB schedule ' .. t
end
end
return res
end
return p