Module talk:Build bracket
Line issue
editI’ve noticed there is a line issue for this bracket. Not sure how this happened. Alextigers (talk) 07:23, 16 September 2022 (UTC)
- @Alextigers: Were you viewing from a mobile device? – Pbrks (t • c) 17:18, 16 September 2022 (UTC)
Before it was both but It seems to be fixed now, thank you. Alextigers (talk) 00:31, 17 September 2022 (UTC)
"Lua error in Module:Build_bracket at line 1000: attempt to index field '?' (a nil value)."
editSeems to be appearing in lots of articles such as 1992 Davis Cup Americas Zone Group II @Pbrks: * Pppery * it has begun... 13:00, 24 October 2022 (UTC)
- Should be fixed. Thanks! – Pbrks (t • c) 23:11, 24 October 2022 (UTC)
Bolding series leader before actual winner is determined
editI noticed that for best-of-x series, the team that is leading is automatically bolded even if the series is still ongoing. Is there a way to prevent this? Not all usages of this template are for tournaments which are already finished. Howard the Duck (talk) 20:33, 6 December 2022 (UTC)
- I realize "boldwinner" sorta does this but it turns off the feature for the entire template and not just one round or series. Howard the Duck (talk) 20:35, 6 December 2022 (UTC)
- @Howard the Duck: This seems to be an issue with using
|autolegs=y
. I'll work on a fix. – Pbrks (t • c) 21:57, 6 December 2022 (UTC)- I suppose it has to be
autolegs=n
for currently ongoing series for emphasis. Howard the Duck (talk) 08:03, 7 December 2022 (UTC)
- I suppose it has to be
- @Howard the Duck: This seems to be an issue with using
@Howard the Duck: I believe it is fixed. Let me know if you see any issues. – Pbrks (t • c) 16:33, 21 December 2022 (UTC)
- Mmmmm. I don't have currently pending articles on my watchlist that have pending playoff series that show each game result on the template (all have finished), but ones that just lists the number of wins (see 2022 NBA Playoffs#Bracket for an example), these are still be bolded even if there is no winner yet. Howard the Duck (talk) 23:57, 22 December 2022 (UTC)
Bolding winners of penalty shoot-outs
editIs there any way the module could automatically bold the winner of a penalty shoot-out when boldwinner
is set? I believe Module:RoundN does this by ignoring any brackets in the score parameters. S.A. Julio (talk) 01:50, 18 December 2022 (UTC)
- @S.A. Julio: Yes, I'll look into adding that. – Pbrks (t • c) 07:12, 21 December 2022 (UTC)
@S.A. Julio: Implemented. Let me know if you see any issues. – Pbrks (t • c) 18:39, 22 December 2022 (UTC)
- Great, thank you! One other question, would it be possible to not bold text inside brackets/parentheses of the team parameter when
|boldwinner=high
is set? This was recently implemented at Module:Team bracket, so text such as "(a.e.t.)" does not get bolded when included after the name of the winning team. S.A. Julio (talk) 19:21, 22 December 2022 (UTC)- @Pbrks: Sorry, forgot to ping, would this be possible? Thanks, S.A. Julio (talk) 18:43, 4 February 2023 (UTC)
- @S.A. Julio: Yes, I'll look into it. – Pbrks (t • c) 19:47, 5 February 2023 (UTC)
- @Pbrks: Sorry, forgot to ping, would this be possible? Thanks, S.A. Julio (talk) 18:43, 4 February 2023 (UTC)
@S.A. Julio: Sorry for the extreme delay. It should be implemented now. Let me know if you see any issues. – Pbrks (t • c) 22:33, 27 June 2023 (UTC)
"Lua error in Module:Build_bracket at line 984: attempt to index field '?' (a nil value)."
editAt ESL One Cologne 2019#Asian qualifier * Pppery * it has begun... 15:05, 31 December 2022 (UTC)
parameter cross
edithi, i found the problem when the -cross parameter is used.
Round 1 | Quarterfinals | Semifinals | Final | ||||||||||||||||||||
Custom width for legs vs. aggregate
edit@Pbrks: For the cells containing scores, would there be any way to allow for custom widths for the legs, and a different width for the aggregate? For example see the bracket below, I was wondering if there would be a way to have a small width for each leg, and a larger width for the aggregate score. Any help would be greatly appreciated. Thanks, S.A. Julio (talk) 01:23, 10 February 2024 (UTC)
Quarterfinals | Semifinals | Final | |||||||||||||||
- @S.A. Julio: Done.
|score-width=
will still change the aggregate box width, unless|agg-width=
is used. I added|agg-width=50px
to the above template to demonstrate. – Pbrks (t·c) 01:47, 10 February 2024 (UTC)- @Pbrks: Great, thanks! A minor detail, but if some of the rounds are single leg, could there be a way to allow for its score box to match the aggregate width? For example, in the above bracket, could the final score width be set as 40px, while not impacting the width of the legs? Thanks, S.A. Julio (talk) 22:49, 10 February 2024 (UTC)
- @S.A. Julio: I see what you mean. I'll look into what the best solution is. – Pbrks (t·c) 03:34, 11 February 2024 (UTC)
- @Pbrks: Great, thanks! A minor detail, but if some of the rounds are single leg, could there be a way to allow for its score box to match the aggregate width? For example, in the above bracket, could the final score width be set as 40px, while not impacting the width of the legs? Thanks, S.A. Julio (talk) 22:49, 10 February 2024 (UTC)
Boldwinner in non-numeral matches and exception with seed cell
editHello! In tennis, some matches can be won by walkover. So, there is no numeral to calculate which cell will be bold. So if this happens, no cells get bold, and I need to do this manually. Is there any way out for cases like this?
Second topic: when a team wins the match in boldwinner, the seed, team and score cells are in bold. Is there a way to create an exception, and the winner's seed cell does not change to bold? Rafaelfdc (talk) 22:16, 7 July 2024 (UTC)
Hide the header and its content
editHi! When inserting e.g. Template:8TeamBracket-info and setting the "paramstyle=numbered" parameter, a problem occurs that it is impossible to bypass the cells for the fifth place/Lower round 2 when I want to insert teams only in the third place match. Is there any way to improve this, for example to turn off the display of "Lower round 2" and have the content displayed in the third place match field? It works when I add "|" five times, however it is very tedious.Mateusz.ns (talk) 12:25, 8 July 2024 (UTC)
Example to illustrate (without 10x"|"):
Quarterfinals | Semifinals | Final | |||||||||||
8 listopada 2007 | |||||||||||||
ESP | 4 | ||||||||||||
10 listopada 2007 | |||||||||||||
MEX | 5 | ||||||||||||
MEX | 5 | ||||||||||||
8 listopada 2007 | |||||||||||||
URY | 2 | ||||||||||||
NGA | 1 | ||||||||||||
11 listopada 2007 | |||||||||||||
URY | 3 | ||||||||||||
MEX | 2 | ||||||||||||
8 listopada 2007 | |||||||||||||
BRA | 8 | ||||||||||||
BRA | 10 | ||||||||||||
10 listopada 2007 | |||||||||||||
PRT | 7 | ||||||||||||
BRA | 6 | Third place | |||||||||||
8 listopada 2007 | |||||||||||||
FRA | 2 | 11 listopada 2007 | |||||||||||
SEN | 3 | ||||||||||||
URY | 2 (1) | ||||||||||||
FRA | 6 | ||||||||||||
FRA | 2 (0) | ||||||||||||
{{8TeamBracket-info |paramstyle=numbered <!--Date-Place|Team 1|Score 1|Team 2|Score 2 --> <!--quarter finals --> | [[8 listopada]] [[2007]]| ESP |4|'''MEX'''|5 | [[8 listopada]] [[2007]]| NGA |1|'''URY'''|3 | [[8 listopada]] [[2007]]|'''BRA'''|10| PRT|7 | [[8 listopada]] [[2007]]| SEN|3|'''FRA'''|6 <!--semi-finals --> | [[10 listopada]] [[2007]]|'''MEX'''|5| URY|2 | [[10 listopada]] [[2007]]|'''BRA'''|6| FRA|2 <!--finał --> | [[11 listopada]] [[2007]]| MEX|2|'''BRA'''|8 <!-- Third place? --> | [[11 listopada]] [[2007]]|'''URY'''|2 (1)| FRA|2 (0) }}
Example to illustrate (after adding 5x"|" after semi-finals):
Quarterfinals | Semifinals | Final | |||||||||||
8 listopada 2007 | |||||||||||||
ESP | 4 | ||||||||||||
10 listopada 2007 | |||||||||||||
MEX | 5 | ||||||||||||
MEX | 5 | ||||||||||||
8 listopada 2007 | |||||||||||||
URY | 2 | ||||||||||||
NGA | 1 | ||||||||||||
URY | 3 | ||||||||||||
8 listopada 2007 | |||||||||||||
BRA | 10 | ||||||||||||
10 listopada 2007 | |||||||||||||
PRT | 7 | ||||||||||||
BRA | 6 | Third place | |||||||||||
8 listopada 2007 | |||||||||||||
FRA | 2 | 11 listopada 2007 | |||||||||||
SEN | 3 | ||||||||||||
MEX | 2 | ||||||||||||
FRA | 6 | ||||||||||||
BRA | 8 | ||||||||||||
{{8TeamBracket-info |paramstyle=numbered <!--Date-Place|Team 1|Score 1|Team 2|Score 2 --> <!--quarter finals --> | [[8 listopada]] [[2007]]| ESP |4|'''MEX'''|5 | [[8 listopada]] [[2007]]| NGA |1|'''URY'''|3 | [[8 listopada]] [[2007]]|'''BRA'''|10| PRT|7 | [[8 listopada]] [[2007]]| SEN|3|'''FRA'''|6 <!--semi-finals --> | [[10 listopada]] [[2007]]|'''MEX'''|5| URY|2 | [[10 listopada]] [[2007]]|'''BRA'''|6| FRA|2 ||||| <!--finał --> | [[11 listopada]] [[2007]]| MEX|2|'''BRA'''|8 <!-- mecz o 3 miejsce --> | [[11 listopada]] [[2007]]|'''URY'''|2 (1)| FRA|2 (0) }}
Mateusz.ns (talk) 12:25, 8 July 2024 (UTC)
- @Mateusz.ns: No, sorry, the amount of work to add that feature would not be worth the few "|" that can just be put in, and I do not have time to invest in it at the moment. – Pbrks (t·c)
- @Mateusz.ns: Also, you should be aware that changes to underlying templates can significantly change "numbered" brackets. For example, suppose the 5th place match wasn't in the code of {{8TeamBracket-info}}, and you created a "numbered" style bracket with a 3rd place match. Then, if a 5th place match is added into the code, all of the "numbered" style brackets would have the 3rd place match moved to the 5th place match. For that reason, its best to use the
|RD1-team1=
format. – Pbrks (t·c) 03:46, 9 July 2024 (UTC)
Additional functions
editA few more questions from me :) because we are trying to implement the module on a large scale in pl.wiki and replace all other templates with it.
- Is it possible to selectively use the "aggregate" parameter? There are situations when it is needed to be used in a specific round or only in the match for 3rd place. At this point, the field with the collective result appears in all cells or in none of them.
- How to change the color of the "aggregate" field? Alternatively, how to thicken the left border? I'm asking because at the moment this field is very poorly distinguished from the others.
Thank you very much for the previous answers! Mateusz.ns (talk) 13:57, 11 July 2024 (UTC)
Home and away teams?
editWould there be any way to individually point to the home and away slots? For example, trying to figure out who will play the home finals in the 2024 AFL season is hard/impossible. And most or all other graphs seem to not show it either. MarkiPoli (talk) 14:08, 9 September 2024 (UTC)
Use boldwinner for only the aggregate score?
edit@Pbrks: I was wondering, if the aggregate parameter is present for a given round, is there a way that the automatic bolding provided by |boldwinner=
could only be applied to the aggregate score (with the leg scores not bolded)? See the below example. Would appreciate any help! Thanks, S.A. Julio (talk) 16:04, 14 November 2024 (UTC)
Current output
Quarter-finals | Semi-finals | Final | |||||||||||||
Team 1 | 3 | 1 | 4 | ||||||||||||
Team 2 | 0 | 5 | 5 | ||||||||||||
Team 2 | 3 | ||||||||||||||
Team 4 | 1 | ||||||||||||||
Third place play-off | |||||||||||||||
Desired output
Quarter-finals | Semi-finals | Final | |||||||||||||
Team 1 | 3 | 1 | 4 | ||||||||||||
Team 2 | 0 | 5 | 5 | ||||||||||||
Team 2 | 3 | ||||||||||||||
Team 4 | 1 | ||||||||||||||
Third place play-off | |||||||||||||||