Template talk:8TeamBracket
From Wikipedia, the free encyclopedia
Template description: This template generates a generic 8-team tournament bracket.
Infobox code
{{8TeamBracket | RD1= | RD2= | RD3= | group1= | group2= | score-width= | team-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= | RD1-seed5= | RD1-team5= | RD1-score5= | RD1-seed6= | RD1-team6= | RD1-score6= | RD1-seed7= | RD1-team7= | RD1-score7= | RD1-seed8= | RD1-team8= | RD1-score8= | RD2-seed1= | RD2-team1= | RD2-score1= | RD2-seed2= | RD2-team2= | RD2-score2= | RD2-seed3= | RD2-team3= | RD2-score3= | RD2-seed4= | RD2-team4= | RD2-score4= | RD3-seed1= | RD3-team1= | RD3-score1= | RD3-seed2= | RD3-team2= | RD3-score2= }}
Template parameters
- RD1, RD2, RD3 — [OPTIONAL] The names of each respective round. Defaults to "Quarterfinals", "Semifinals", and "Finals", respectively.
- group1, group2 — [OPTIONAL] The name of the first group of four team, and the name of the last group of four, respectively.
- team-width — [OPTIONAL] The width (in pixels) of the team field for each game/match. This is useful if you need room for complex scores (e.g. Tennis). 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.
- 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.
[edit] Colour
Can someone who is familiar with the code add parameters to change the colour of different boxes? Thanks. -- Jeff3000 21:15, 15 May 2006 (UTC)
- How exactly do you want the colours changed? One seperate parameter for each of the 14 slots? A seperate colour for each round? Or one single parameter that changes the color of the boxes throughout the entire table? What exactly do you want the parameters to do? Zzyzx11 (Talk) 22:12, 15 May 2006 (UTC)
-
- I was thinking in regards to the 2006 Men's World Ice Hockey Championships in which there is a cross-over from each group. So I thought it would be nice to be able to have a different colour for the teams from each group. This would involve, however allowing each slot to have it's own colour, since teams from any group could advance to the semi-finals and finals. So I can see it being a headache, and if it is, don't worry about it. -- Jeff3000 22:43, 15 May 2006 (UTC)