Difference between revisions of "Template:2TeamBracket-Compact-NoSeeds"

From blackwiki
Jump to navigation Jump to search
blackwiki>Primefac
m (Protected "Template:2TeamBracket-Compact-NoSeeds": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or con...)
m (13 revisions imported)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
+
{{#invoke: TeamBracket | teamBracket | rounds=1 | compact = yes | RD1-seed1 = {{{RD1-seed1|}}} | RD1-seed2 = {{{RD1-seed2|}}} }}{{#invoke:Team bracket tracking|tracking}}<noinclude>
|
+
{{documentation}}
| colspan="3" style="text-align:center;border:1px solid #aaa;background-color:#f2f2f2;" |{{{RD1|Finals}}}
 
 
 
|-
 
| height=7|
 
| width={{{seed-width|25}}}|
 
| width={{{team-width|125}}}|
 
| width={{{score-width|25}}}|
 
 
 
|-
 
|
 
{{#if:{{{RD1-seed1|}}}
 
|
 
<td style="text-align:center;background-color:#f2f2f2;border-width:1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;"> {{{RD1-seed1}}}</td>
 
<td style="border-width:1px 0px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;padding-left:0.3em;"> {{{RD1-team1|&nbsp;}}}</td>
 
|
 
<td colspan="2" style="border-width:1px 0px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;padding-left:0.3em;"> {{{RD1-team1|&nbsp;}}}</td>
 
}}
 
<td style="text-align:center;border-width: 1px 1px 0px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;"> {{{RD1-score1|&nbsp;}}} </td>
 
 
 
|-
 
|
 
{{#if:{{{RD1-seed2|}}}
 
|
 
<td style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;"> {{{RD1-seed2}}}</td>
 
<td style="border-width:1px 0px 1px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;padding-left:0.3em;"> {{{RD1-team2|&nbsp;}}}</td>
 
|
 
<td colspan="2" style="border-width:1px 0px 1px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;padding-left:0.3em;"> {{{RD1-team2|&nbsp;}}}</td>
 
}}
 
<td style="text-align:center;border-width: 1px 1px 1px 1px; border-style:solid; border-color:#aaa #aaa #aaa #aaa;background-color:#f9f9f9;"> {{{RD1-score2|&nbsp;}}}</td>
 
|}{{#invoke:Team bracket tracking|tracking}}<noinclude>
 
----
 
See [[Template talk:{{PAGENAME}}|this template"s talk page]] for information on how to use this template.
 
 
 
==See also==
 
*[[Template:4TeamBracket-Compact-NoSeeds-Byes]]
 
*[[Template:8TeamBracket-Compact-NoSeeds-Byes]]
 
*[[Template:16TeamBracket-Compact-NoSeeds-Byes]]
 
*[[Template:32TeamBracket-Compact-NoSeeds-Byes]]
 
 
 
[[Category:2-Team bracket templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:45, 14 October 2020

Finals
 
 
Template documentation[view] [edit] [history] [purge]

This template generates a generic 2-team tournament bracket. It is designed to minimize the use of vertical space.

It now also gives the option of having seeds. Seeds can be generated on a team-by-team basis; if you want a box for a seed, use the RDX-seedZ= parameter and put something in it (a blank box can be generated with RDX-seedZ=&nbsp;). If you omit the parameter or leave it blank, the box will not appear.

Basic example

{{2TeamBracket-Compact-NoSeeds
| RD1=Ninth-place playoff
| team-width=170
| RD1-team1='''{{ru7|GUM}}'''
| RD1-score1='''31'''
| RD1-team2={{ru7|TUV}}
| RD1-score2=0
}}
Ninth-place playoff
Template:Ru7 31
Template:Ru7 0

All parameters

{{2TeamBracket-Compact-NoSeeds
| RD1=

| team-width=
| score-width=

| RD1-team1=
| RD1-score1=
| RD1-team2=
| RD1-score2=

}}

Template parameters

  • RD1 — [OPTIONAL] The name of the round. Defaults to "Finals".
  • team-width — [OPTIONAL] The width (in pixels) of the team field for each game/match. This allows for longer player or team names. Defaults to 125 pixels.
  • score-width — [OPTIONAL] The width (in pixels) of the score field for each game/match. This is useful if you need room for complex scores (e.g. Tennis). Defaults to 25 pixels.

See also