Template:Bracket/doc

Generate Copyable Code
Must have Gadget enabled for this to work (it's default but if you disabled it, this will do nothing).

See Category:Brackets for a list of available bracket formats.

Regular Usage
All matches are named as. If you want to specify data about a team (e.g. the team, the score) then name it like where N is 1 or 2 and data is the name of the piece of data you want to specify. Team-specific data includes  and. For match data that isn't specific to a team, just remove the  at the end, e.g.  to specify the winner as 1 or 2.

Do not provide any markup to the bracket (bolding scores and such). The bracket code will take care of all of this for you.

Settings

 * is the definition of the bracket you want, e.g..
 * to set the width of teams. If you are using short names, probably set this to . Please use em not px.
 * to set the style that you want teams displayed in. Probably this should be.
 * to hide the titles of the bracket.

Qualification
If you want to show that a team's path in the bracket ended because they qualified, then specify for the match in which the winner should be set as qualified. This can be done multiple times per bracket.

If both teams have qualified, use.

Byes
If a team has a bye, replace with. Any truthy value (yes, true, 1) works. For example, |R1M1_team_1=OpTic |R1M1_score_1= [2SE]
 * R1M1_team_2= |R1M1_score_2=
 * R1M1_bye_2=yes

Headers
If you want to change the round headers, put to specify the new header. For example,.

Extended Grand Final
If you want a second series for a grand final, add the second score to separated by a comma. For example,.

To distinguish between series winners within a grand final, use, again separated by a comma. For example, |R1M1_team_1=OpTic |R1M1_score_1=1,3 [2SE]
 * R1M1_team_2=Envy |R1M1_score_2=3,2
 * R1M1_winner=1|R1M1_winners=2,1

Cargo
If (or other truthy value) then the bracket will try to fill with Cargo. You can set to set an overview page to query from. The bracket queries from. It will attempt to look for a match where the NAME of the tab matches the NAME of the column, and the row of the match within that tab matches the row of the match within the bracket. However, you may want to overwrite this behavior, particularly for third-place matches. In this case you can set, for example you might want to set.

Note that the name the bracket will look for is the title displayed in each round, so if you changed then it will look for a tab with this title instead of the bracket definition default.

Creating New Brackets
Mostly just look at and follow examples.

Each bracket definition returns a table. The outer table is an ordered list, where each element is itself a table and corresponds to one column. A column has 2 parts: matches and lines. The lines are printed BEFORE the matches, to allow for loser's bracket lines below a winner's bracket column. So each column has two named parameters,  and. Each  table is an ordered list of matches which will be printed top to bottom, and also a   parameter with the display text of the column.

Inside a match, you MUST include, which can be either   or. Optionally you can specify, which is an amount of whitespace to print above the match. If the match shouldn't always be printed (e.g. it's a third-place match) then add  with a value that must be specified as truthy when the template is called (e.g. you might say   and then use  in the template).

Inside a line, you may optionally specify  (but you pretty much always will) and must specify   and. The class can be,  ,  ,  , or. If it's a reseed, then you should specify it as  and then the user can write  or  to set the display text of the reseed.

Examples

 * For reseed, see.
 * For third-place hidden match, see.
 * Otherwise just look at stuff in.

Example 4SE
[4SE] [4SE]

Example 6DE (hline)
When there are horizontal lines due to "skipped" rounds in DE brackets, note that the round count increases per horizontal line (check the source). This is due to how the code is written. [6DE] [6DE]