{{define "bracket"}} {{if eq .BracketType "double"}} {{else}} {{end}} {{if eq .BracketType "double"}} W L W L W L W L W L L L W L L L W L W W W L W W W W L L W W L L W L W W W W W L W W W W L L W W {{else}} {{if index .Matchups "1_1"}}{{end}} {{if index .Matchups "1_2"}}{{end}} {{if index .Matchups "1_3"}}{{end}} {{if index .Matchups "1_4"}}{{end}} {{if index .Matchups "1_5"}}{{end}} {{if index .Matchups "1_6"}}{{end}} {{if index .Matchups "1_7"}}{{end}} {{if index .Matchups "1_8"}}{{end}} {{if index .Matchups "2_1"}}{{end}} {{if index .Matchups "2_2"}}{{end}} {{if index .Matchups "2_3"}}{{end}} {{if index .Matchups "2_4"}}{{end}} {{if index .Matchups "3_1"}}{{end}} {{if index .Matchups "3_2"}}{{end}} {{end}} {{range $matchup := .Matchups}} {{template "matchup" index $matchup}} {{end}} {{if eq .BracketType "double"}} Round 1 Round 2 Round 3 Round 4 Round 5 Finals Best-of-3 {{else}} Round of 16 Round of 16 Quarterfinals Quarterfinals Semifinals Semifinals Finals {{end}} {{end}} {{define "matchup"}} {{.SeriesStatus}} {{.DisplayName}} {{if .RedAlliance}} {{.RedAlliance.Id}} {{if ge (len .RedAlliance.TeamIds) 3}} {{index .RedAlliance.TeamIds 0}} {{index .RedAlliance.TeamIds 1}} {{index .RedAlliance.TeamIds 2}} {{end}} {{if ge (len .RedAlliance.TeamIds) 4}} {{index .RedAlliance.TeamIds 3}} {{end}} {{else}} {{.RedAllianceSource}} {{end}} {{if .BlueAlliance}} {{.BlueAlliance.Id}} {{if ge (len .BlueAlliance.TeamIds) 3}} {{index .BlueAlliance.TeamIds 0}} {{index .BlueAlliance.TeamIds 1}} {{index .BlueAlliance.TeamIds 2}} {{end}} {{if ge (len .BlueAlliance.TeamIds) 4}} {{index .BlueAlliance.TeamIds 3}} {{end}} {{else}} {{.BlueAllianceSource}} {{end}} {{end}}