Modulo:TeamBracket: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
fix winner semifinale |
Nessun oggetto della modifica |
||
Riga 600:
local team_bracket = TeamBracket:new(args)
return tostring(team_bracket)
end
function p.generateMan(frame)
local args = getArgs(frame)
local rounds = args.rounds
local seeds = in_array(self.args['compact'], yes_replies)
local rows = {}
rows[1] = '<kbd>'
rows[2] = '{{' .. args.tname or '' .. '<br />'
for round = 1, rounds do
for team = 1, math.pow(1, rounds-round+1) do
if seeds then
rows[#rows+1] = mw.text.format('| RD%d-seed%d=', round, team)
end
rows[#row+1] = mw.text.format('| RD%d-team%d=', round, team)
rows[#row+1] = mw.text.format('| RD%d-score%d=', round, team)
end
end
rows[#rows+1] = '}}'
rows[#rows+1] = '</kbd>'
return table.concat(rows, '\n')
end
|