Difference between revisions of "Template:3TeamBracket"

From blackwiki
Jump to navigation Jump to search
blackwiki>Armbrust
(add 1 new parameter)
m (28 revisions imported)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{| border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em; {{{style|}}}"
 
{| border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em; {{{style|}}}"
 
|  
 
|  
| align="center" colspan="3" style="border:1px solid #aaa;" bgcolor=#f2f2f2|{{{RD1|Semifinal}}}
+
| colspan="3" style="text-align:center;border:1px solid #aaa;background-color:#f2f2f2;" |{{{RD1|Semifinal}}}
 
|  
 
|  
 
|  
 
|  
| align="center" colspan="3" style="border:1px solid #aaa;" bgcolor=#f2f2f2|{{{RD2|Final}}}
+
| colspan="3" style="text-align:center;border:1px solid #aaa;background-color:#f2f2f2;" |{{{RD2|Final}}}
  
 
|-
 
|-
 
| width=1| 
 
| width=1| 
 
| width={{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}| 
 
| width={{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}| 
| width={{#if: {{{team-width|}}}|{{{team-width}}}|125px}}| 
+
| width={{#if: {{{team-width|}}}|{{{team-width}}}|180px}}| 
 
| width={{#if: {{{score-width|}}}|{{{score-width}}}|25px}}| 
 
| width={{#if: {{{score-width|}}}|{{{score-width}}}|25px}}| 
 
| width=5| 
 
| width=5| 
 
| width=5| 
 
| width=5| 
 
| width={{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}| 
 
| width={{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}| 
| width={{#if: {{{team-width|}}}|{{{team-width}}}|125px}}| 
+
| width={{#if: {{{team-width|}}}|{{{team-width}}}|180px}}| 
 
| width={{#if: {{{score-width|}}}|{{{score-width}}}|25px}}| 
 
| width={{#if: {{{score-width|}}}|{{{score-width}}}|25px}}| 
  
Line 22: Line 22:
 
{{#if:{{{RD2-seed1|}}}
 
{{#if:{{{RD2-seed1|}}}
 
|
 
|
<td align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"> {{{RD2-seed1}}}</td>
+
<td style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;"> {{{RD2-seed1}}}</td>
<td style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD2-team1|&nbsp;}}}</td>
+
<td style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD2-team1|&nbsp;}}}</td>
 
|
 
|
<td colspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD2-team1|&nbsp;}}}</td>
+
<td colspan="2" style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD2-team1|&nbsp;}}}</td>
 
}}
 
}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score1|&nbsp;}}}
+
| style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | {{{RD2-score1|&nbsp;}}}
  
 
|-
 
|-
Line 33: Line 33:
 
{{#if:{{{RD1-seed1|}}}
 
{{#if:{{{RD1-seed1|}}}
 
|
 
|
<td align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"> {{{RD1-seed1}}}</td>
+
<td style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;"> {{{RD1-seed1}}}</td>
<td style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD1-team1|&nbsp;}}}</td>
+
<td style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD1-team1|&nbsp;}}}</td>
 
|
 
|
<td colspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD1-team1|&nbsp;}}}</td>
+
<td colspan="2" style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD1-team1|&nbsp;}}}</td>
 
}}
 
}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score1|&nbsp;}}}
+
| style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | {{{RD1-score1|&nbsp;}}}
 
| style="border-width:0 1px 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
| style="border-width:0 1px 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
| style="border-width:2px 0 0 1px; border-style:solid;border-color:black;"|&nbsp;
 
| style="border-width:2px 0 0 1px; border-style:solid;border-color:black;"|&nbsp;
 
{{#if:{{{RD2-seed2|}}}
 
{{#if:{{{RD2-seed2|}}}
 
|
 
|
<td align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"> {{{RD2-seed2}}}</td>
+
<td style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;"> {{{RD2-seed2}}}</td>
<td style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD2-team2|&nbsp;}}}</td>
+
<td style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD2-team2|&nbsp;}}}</td>
 
|
 
|
<td colspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD2-team2|&nbsp;}}}</td>
+
<td colspan="2" style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD2-team2|&nbsp;}}}</td>
 
}}
 
}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score2|&nbsp;}}}
+
| style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | {{{RD2-score2|&nbsp;}}}
 
|-
 
|-
 
| &nbsp;
 
| &nbsp;
 
{{#if:{{{RD1-seed2|}}}
 
{{#if:{{{RD1-seed2|}}}
 
|
 
|
<td align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"> {{{RD1-seed2}}}</td>
+
<td style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;"> {{{RD1-seed2}}}</td>
<td style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD1-team2|&nbsp;}}}</td>
+
<td style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD1-team2|&nbsp;}}}</td>
 
|
 
|
<td colspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9> &nbsp;{{{RD1-team2|&nbsp;}}}</td>
+
<td colspan="2" style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" > {{{RD1-team2|&nbsp;}}}</td>
 
}}
 
}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score2|&nbsp;}}}
+
| style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | {{{RD1-score2|&nbsp;}}}
 
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
 
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
|} <noinclude>
+
|}{{#invoke:Team bracket tracking|tracking}}<noinclude>
 
+
{{Documentation}}
----
 
See [[Template talk:{{PAGENAME}}|this template's talk page]] for information on how to use this template.
 
[[Category:3-Team bracket templates|{{PAGENAME}}]]
 
 
 
[[ca:Plantilla:3TeamBracket]]
 
[[de:Vorlage:Turnierplan3]]
 
[[fi:Malline:Turnauspuu3]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 14:38, 14 October 2020

  Semifinal     Final
                 
       
             
       
Template documentation[view] [edit] [history] [purge]

Template description: This template generates a generic 3-team tournament bracket. It is useful for tournament structures where a first place team receives a bye into the finals.

Infobox code

{{3TeamBracket|
|RD2-seed1 = E
|RD2-team1 = Cleveland Browns
|RD2-score1 = 12
|RD1-seed1 = W
|RD1-team1 = Baltimore Colts
|RD1-score1 = 10
|RD2-seed2 = W
|RD2-team2 = '''Green Bay Packers'''
|RD2-score2 = 23
|RD1-seed2 = W
|RD1-team2 = '''Green Bay Packers'''
|RD1-score2 = 13}}

Empty infobox code

{{3TeamBracket|
|RD2-seed1 = 
|RD2-team1 = 
|RD2-score1 = 
|RD1-seed1 = 
|RD1-team1 = 
|RD1-score1 = 
|RD2-seed2 = 
|RD2-team2 = 
|RD2-score2 = 
|RD1-seed2 = 
|RD1-team2 = 
|RD1-score2 = }}

Example

  Semifinal     Final
                 
    E Cleveland Browns 12
  W Baltimore Colts 10     W Green Bay Packers 23
  W Green Bay Packers 13  

Template parameters

  • RD1, RD2 — [OPTIONAL] The names of each respective round. Defaults to "Semifinals" and "Finals", respectively.
  • The rest of the parameters fill in the bracket and consists of the form X-YZ where
    • X is the specific round
    • Y is either the team's seed, name, or score
    • Z is the specific placement on the bracket, counting from top to bottom.

See also