Module:RoundN

local p = {} --[[local defaultRounds = {'Quarter Finals', 'Semi Finals', 'Finals'} local output = mw.html.create('table') local last = {row = nil, cell = nil} local rowSpans = {}

function newRow(nonhead) last.row = output:tag('tr') last.cell = last.row:tag('td') last.cell:attr('height', 5) if nonhead then rowSpans[#rowSpans] = last.row else end

function spacer(width) last.row:tag('td') :attr('width', width) :wikitext(' ') end]]-- local output = ''

function p._main(args, frame) --	output		:css('font-size', '90%')		:css('margin', '1em 2em 1em 1em')		:css('border-spacing', 0)		:css('border', 0)		:css('padding', 0)	for k = 1, args.columns do		if k == 1 then			newRow		else			last.row:tag('td'):attr('colspan', 2)		end		last.row:tag('td')			:attr('colspan', 2)			:css('text-align', 'center')			:css('border', '1px solid -- local frame2 = mw.clone(frame:getParent or frame) frame2.args.rounds = args.columns frame2.args['seed-width'] = 0 frame2.args['team-width'] = '170 px' frame2.args['team-width'] = (args.widescore and 40 or 30) .. ' px' --local cuckooEgg = frame2:newChild --for k, v in ipairs(frame2.args) do output = output .. ' ' .. v 	end--]] --output = require('Module:TeamBracket').teamBracket(cuckooEgg)

return type(frame) end

function p.main(frame) local args = require('Module:Arguments').getArgs(frame--, {		wrappers = WRAPPER_TEMPLATE	}) return p._main(args, frame) end

return p