Template:4TeamBracket/doc

From FPL H2H
< Template:4TeamBracket
Revision as of 11:01, 30 June 2020 by Eurander (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage[edit]

Template description[edit]

This template generates a generic 4-team (2-round) tournament bracket.

Complete set of blank template parameters[edit]

{{4TeamBracket 

| RD1         = 
| RD2         = 

| group1      = 
| group2      = 

| seed-width  = 
| team-width  = 
| score-width = 

| RD1-seed1   = 1
| RD1-team1   = first
| RD1-score1  = 3
| RD1-seed2   = 2
| RD1-team2   = second
| RD1-score2  = 2

| RD1-seed3   = 3
| RD1-team3   = third
| RD1-score3  = 3
| RD1-seed4   = 4
| RD1-team4   = fourth
| RD1-score4  = 1

| RD2-seed1   = 1
| RD2-team1   = first
| RD2-score1  = 3
| RD2-seed2   = 3
| RD2-team2   = third
| RD2-score2  = 0
}}

Parameter definitions[edit]

  • seed-width – [OPTIONAL] sets the width of the seed fields (25 by default).
  • team-width – [OPTIONAL] sets the width of the team name fields (150 by default).
  • score-width – [OPTIONAL] sets the width of the score fields (25 by default).
  • RD1, RD2 – [OPTIONAL] The names of each round. Defaults are "Semi-finals" and "Finals", respectively.
  • Each team takes three [OPTIONAL] parameters – the seed, team name, and score. The parameter names are of the form RDn-xxxxt, where:
    • n is the round number (12)
    • xxxx is one of seed, team, or score
    • t is the position within the round, counting from top to bottom (14)

There are 4 first-round (semifinals) teams and 2 second-round (finals) teams.

See also[edit]