Difference between revisions of "Template:4TeamBracket"
Jump to navigation
Jump to search
blackwiki>SocietyBox m (css) |
blackwiki>SocietyBox m (remove borders for mobile) |
||
| Line 1: | Line 1: | ||
{| cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em; border-collapse: separate; border-style:none" | {| cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em; border-collapse: separate; border-style:none" | ||
| − | | | + | | style="border-style:none" | |
| align="center" colspan="3" style="border:1px solid #aaa; background-color:#f2f2f2"|{{{RD1|Semi-finals}}} | | align="center" colspan="3" style="border:1px solid #aaa; background-color:#f2f2f2"|{{{RD1|Semi-finals}}} | ||
| style="border-style:none" colspan="2" | | | style="border-style:none" colspan="2" | | ||
| Line 82: | Line 82: | ||
{{#if:{{{RD2-team3|}}} | {{#if:{{{RD2-team3|}}} | ||
| | | | ||
| − | {{!}} | + | {{!}} style="border-style:none" {{!}} |
| − | {{!}} | + | {{!}} colspan="4" style="text-align:center; border:1px solid #aaa; background-color:#f2f2f2"{{!}} {{{RD3|Third-place}}} |
{{!}}- | {{!}}- | ||
| − | {{!}} colspan="6" {{!}} | + | {{!}} colspan="6" style="border-style:none" {{!}} |
{{#if:{{{RD2-seed3|}}} | {{#if:{{{RD2-seed3|}}} | ||
| | | | ||
| − | {{!}} style="background-color:#f2f2f2; text-align:center; border-width:1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa | + | {{!}} style="background-color:#f2f2f2; text-align:center; border-width:1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa" {{!}} {{{RD2-seed3}}} |
{{!}} style="border-width:1px 0px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa; background-color:#f9f9f9" {{!}} {{{RD2-team3| }}} | {{!}} style="border-width:1px 0px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa; background-color:#f9f9f9" {{!}} {{{RD2-team3| }}} | ||
| | | | ||
| Line 95: | Line 95: | ||
{{!}} style="text-align:center; border-width: 1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa; background-color:#f9f9f9" {{!}} {{{RD2-score3| }}} | {{!}} style="text-align:center; border-width: 1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa; background-color:#f9f9f9" {{!}} {{{RD2-score3| }}} | ||
{{!}}- | {{!}}- | ||
| − | {{!}} colspan=6{{!}} | + | {{!}} colspan="6" style="border-style:none" {{!}} |
{{#if:{{{RD2-seed4|}}} | {{#if:{{{RD2-seed4|}}} | ||
| | | | ||
Revision as of 06:42, 21 December 2013
| Semi-finals | Finals | |||||||
| This template uses Lua: |
Contents
Usage
Template description
This template generates a generic 4-team (2-round) tournament bracket.
Complete set of blank template parameters
{{4TeamBracket
| RD1 =
| RD2 =
| group1 =
| group2 =
| seed-width =
| team-width =
| score-width =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1 =
| RD1-seed2 =
| RD1-team2 =
| RD1-score2 =
| RD1-seed3 =
| RD1-team3 =
| RD1-score3 =
| RD1-seed4 =
| RD1-team4 =
| RD1-score4 =
| RD2-seed1 =
| RD2-team1 =
| RD2-score1 =
| RD2-seed2 =
| RD2-team2 =
| RD2-score2 =
}}
Parameter definitions
- 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 (1–2)
- xxxx is one of seed, team, or score
- t is the position within the round, counting from top to bottom (1–4)
There are 4 first-round (semifinals) teams and 2 second-round (finals) teams.
See also
- {{2TeamBracket}}, {{3TeamBracket}}, {{5TeamBracket}}, {{6TeamBracket}}, {{7TeamBracket}}, {{8TeamBracket}}, {{9TeamBracket}}, {{10TeamBracket}}, {{11TeamBracket}}, {{12TeamBracket}}, {{14TeamBracket}}, {{15TeamBracket}}, {{16TeamBracket}}, {{18TeamBracket}}, {{19TeamBracket}}, {{20TeamBracket}}, {{24TeamBracket}}, {{32TeamBracket}}, {{48TeamBracket}}, {{64TeamBracket}}
- {{4TeamBracket-Tennis3}}
- {{Round4}}
| The above documentation is transcluded from Template:4TeamBracket/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |