Jump to content

Module talk:RoundN

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Check request

[edit]
  • @Mr Stradivarius and Jackmcbarn: - Would you guys please take a look at this? As this is my third module, the module could probably benefit from your experienced eyes to spot potential bugs and ideas for improving the new features. The rendering of {{Round16}} and {{Round8}} are nearly identical, I think; I have not attempted to emulate the spacing of {{Round2}} and {{Round4}} but I don't see a good reason to display them exactly as long as the information conveyed is the same... perhaps those templates would benefit from standardization/a more compact form? What do you think? —CodeHydro 02:26, 2 January 2015 (UTC)[reply]

Byes

[edit]

Two byes to a match leave a black line to the next round, see

 
Quarter-finalsSemi-finalsFinal
 
          
 
 
 
 
Day 2
 
 
C
 
 
D
 
 
tdb
 
 
A
 
tdb
 
 
 
A
 
tdb
 
 
 
A
 
Day 1
 
 
 
A7
 
 
B5
 

-Koppapa (talk) 11:25, 6 January 2015 (UTC)[reply]

 Done @Koppapa: Ha, I had actual set up my code to detect when both matches are skipped so I could remove the line. Silly me forgot to implement it! Good catch! Anyhow, while I was at it, I came up with a neat shorthand for skipmatch and also extended it beyond the first round. See Module talk:RoundN/testcases/3. Thanks again! —CodeHydro 03:44, 8 January 2015 (UTC)[reply]

Comments

[edit]

@Codehydro: It looks quite good to me. I haven't seen, that somebody would use colors, but ok - as a feature it is ok. You could get some input from WT:FOOTIE, as those templates are usually used by them. --Edgars2007 (talk/contribs) 09:15, 3 January 2015 (UTC)[reply]

Please read before asking for seeds

[edit]

RoundN is intended to replace templates like Template:Round16 which never used seeds. For seeds, use Module:TeamBracket. While it's hardly a challenge to add them, my thinking is that adding a check for seeds is more of a performance drag than helpful since there is already a module that supports them. As much as I want to make accommodate every possible need, the fact is too many features will slow down the module. Slow module = more servers resources used = more ad campaigns for donations = less pleasant wiki and slower page loads. Yes, this module does fancy things that Team bracket currently can't, like auto-bolding and score-summing, but these features save server resources because the mediawiki engine no longer has to parse wikibold markup in each parameter and Lua is more efficient at string processing. (If you want these features with seeds, let TeamBracket's programmers know that they may use RoundN's score cleaning/processing functions by adding require('Module:RoundN').scoreWasher to their code.) —CodeHydro 17:08, 27 January 2015 (UTC)[reply]

More compact

[edit]

Could it be possible to reduce a line the distance between the title of the rounds and the first match box? There is too much space between both. Asturkian (talk) 08:00, 29 January 2015 (UTC)[reply]

BTW, you should add in the documentation, the information about |score-boxes= and the possibility of 2+sum. Asturkian (talk) 09:09, 29 January 2015 (UTC)[reply]

@Asturkian: Sorry for the delayed respond. I didn't see the question until just now. I'm assuming you've left the date/place box blank, which would make it appear as though there were a big gap between the title and the first match. A simple work around could be to put an empty span tag <span /> as the first date parameter, which would minimize the size of the first date row. As for documenting the +sum switch, that is a beta feature which is not officially released. The documentation will be updated when Beta goes live. —CodeHydro 12:49, 24 March 2015 (UTC)[reply]
@Codehydro: How does the score-boxes parameter work? QED237 (talk) 16:20, 23 March 2015 (UTC)[reply]
@Qed237: Though I hate to do this, I must hold off on explaining it until the official release of Beta. Been working on a higher priority project so I haven't even touched RoundN since January (RoundN is expected to be used on a few thousand pages at most; the higher priority module is used on 2 million pages). Sorry, but, for now, you'll have to make do by studying Module talk:RoundN/testcases/4, Module talk:RoundN/testcases/5, and Module talk:RoundN/testcases/6 on your own. Very overwhelmed with work lately... and though I'm pretty fast at writing code, I'm awful slow when it comes to explaining it. (In fact, Beta has been 95% ready, but just updating the doc page would probably take me a couple of weeks... and it's probably going to be a while before I even get back to RoundN). —CodeHydro 12:49, 24 March 2015 (UTC)[reply]
@Codehydro: Okay, no problem. I just wanted to check it had not been forgotten. Take your time. QED237 (talk) 14:38, 24 March 2015 (UTC)[reply]

Chess

[edit]

Used it here. It bolds ½ over 1½. Is there a way to change that automatically? Or is manually bolding the way to go? If non-numbers are removes, shouldn't be 1 be bold over nothing? -Koppapa (talk) 17:07, 17 March 2015 (UTC)[reply]

@Koppapa: I see you came up with a workaround on your own. I may have suggested something like {{sort}}, but your way seems to work just fine. The release of beta will have way to customize how scores are "cleaned" but alas Module:RoundN has been on hold because I have other priorities right now —CodeHydro 13:32, 24 March 2015 (UTC)[reply]

Error with third place

[edit]

Hello again. I was trying to export this module to the 2014–15 LKL season article (for making a 5-5-7 playoffs) and I found the third place series are not well displayed. Is there any way to fix it? Asturkian (talk) 21:17, 19 April 2015 (UTC)[reply]

Display one team in node

[edit]

@Codehydro: Hi, I know you are probably busy but is there a way to display only one team in a node at the same time you have scoreboxes? It does not seem to work when testing in User:Qed237/sandbox5. On WT:FOOTY It was requested a bracket that involves teams that can play after being eliminated. Qed237 (talk) 13:53, 6 July 2015 (UTC)[reply]

@Codehydro: Just look at my sandbox and you see the reason, the best ranked eliminated team immediately joins the other teams (and no separate branch). Qed237 (talk) 23:38, 17 July 2015 (UTC)[reply]
@Qed237:I edited your sandbox... something like that? not the prettiest solution, but doesn't require changing Module:RoundN. You may be able to get a better result with node_function{canvas} instead of {line}, but it would require some good HTML/CSS hacking to make it look good. —CodeHydro 03:13, 18 July 2015 (UTC)[reply]
@Codehydro: Looks fine, but I need the extra scorebox as the third round is played with two matches. Qed237 (talk) 11:45, 18 July 2015 (UTC)[reply]

Two-legged matches

[edit]

Are there any plans to add support for two-legged knock out rounds? TheBigJagielka (talk) 12:49, 30 October 2015 (UTC)[reply]

I think that already exists. TheBigJagielka are you thinking about something like
 
Quarter-finalsSemi-finalsFinal
 
                
 
Day 1
 
 
Team A729
 
Day 5
 
Team B53 8
 
Team A325
 
Day 2
 
Team C02 2
 
Team C415
 
Day 7
 
Team D00 0
 
Team A2
 
Day 3
 
Team G5
 
Team E022
 
Day 6
 
Team F53 8
 
Team F112
 
Day 4
 
Team G21 3
 
Team G213
 
 
Team H11 2
 

Just use |score-boxes=2+sum. Was that what you had in mind? Qed237 (talk) 13:29, 30 October 2015 (UTC)[reply]

It is. Thanks, I didn't know that that feature existed. TheBigJagielka (talk) 13:33, 30 October 2015 (UTC)[reply]
Not easy to know as it has not been included in documentation for some reason. I just noticed it somehow I while back. Qed237 (talk) 13:50, 30 October 2015 (UTC)[reply]
See now it has been mentioned on this talkpage before. 13:50, 30 October 2015 (UTC)Qed237 (talk)

I was looking to update the bracket on the 2015 Canadian Championship, merging two templates into one.

From this:

Preliminary Round
     
  FC Edmonton 3 3 6
  Ottawa Fury FC 1 1 2
Semifinals Final
          
1 Vancouver Whitecaps FC 1 2 3
4 FC Edmonton 1 1 2
1 Vancouver Whitecaps FC 2 2 4
3 Montreal Impact 2 0 2
2 Toronto FC 0 3 3
3 Montreal Impact 1 2 3

To this:

Preliminary RoundSemifinalsFinal
                
1
Vancouver Whitecaps FC
1 2 3
4
FC Edmonton
1 1 2
FC Edmonton336
Ottawa Fury FC11 2
1
Vancouver Whitecaps FC
2 2 4
3
Montreal Impact
2 0 2
2
Toronto FC
0 3 3
3
Montreal Impact (a)
1 2 3

There are two issues; I don't know how to make the league position (the left hand box) appear or know how to embolden the 'sum' for the semi-final winner on away goals. TheBigJagielka (talk) 14:05, 30 October 2015 (UTC)[reply]

@Codehydro: Do you know why the RDseed in first semifinal match (Vancouver v Edmonton) is not "perfect" (a thicker bolded line). Qed237 (talk) 15:05, 4 May 2016 (UTC)[reply]
@Qed237: It's an interaction with the skipmatch parameter. Basically the skipmatch attempts preserve shape of the table with invisible non-breaking space characters by default, but when nodes are skipped unevenly, the skipped characters cause the rows to become uneven in height. RDSeed is a CSS hack that depends on even row heights. I fixed it using the flex_tree parameter. The branch lines between matches won't be perfectly symmetrical, but the nature of the HTML forces one to choose between even looking seeds or even looking branches--i.e. the row height needed to make one thing look even will make the other to look uneven... —CodeHydro
PS: This interaction between skipmatch and seeds was forced upon me the need to maintain backwards compatibility with the HTML of the old pre-module template. Just making a note here to remind myself and to let future programmers know not to fix this interaction. One of these days I will actually write the documentation for the flex_tree parameter along with all the other undocumented features... (PPS: for every feature you see in the current documentation, there are at least twice as many undocumented... :\ ) —CodeHydro 15:21, 8 May 2016 (UTC)[reply]

Third place match alignment issue with two-legged matches

[edit]

@Codehydro: Hello, as I was converting the tournament bracket of UEFA Euro 1968 to use this module, I noticed that the third place match box seems to be shifted to the left of where is usually is located, after I had added "score-boxes" to display the final replay score. Am I doing something incorrectly, or is there an issue with the module? The problem seems to get worse with tournaments of more than four teams (see below). S.A. Julio (talk) 22:34, 19 February 2017 (UTC)[reply]

Euro 1968 example
 
Semi-finalsFinal
 
        
 
5 June – Naples
 
 
 Italy (coin toss)0
 
8 and 10 June – Rome
 
 Soviet Union0
 
 Italy12
 
5 June – Florence
 
 Yugoslavia10
 
 Yugoslavia1
 
 
 England0
 
Third place play-off
 
 
8 June – Rome
 
 
 England2
 
 
 Soviet Union0
Eight team example
 
Quarter-finalsSemi-finalsFinal
 
             
 
5 June – Naples
 
 
 Italy1
 
5 June – Naples
 
 Zimbabwe0
 
 Italy (coin toss)0
 
5 June – Naples
 
 Soviet Union0
 
 Mexico0
 
8 and 10 June – Rome
 
 Soviet Union2
 
 Italy12
 
5 June – Florence
 
 Yugoslavia10
 
 Yugoslavia3
 
5 June – Florence
 
 Australia0
 
 Yugoslavia1
 
5 June – Florence
 
 England0Third place play-off
 
 Argentina0
 
8 June – Rome
 
 England1
 
 England2
 
 
 Soviet Union0
 


  • @S.A. Julio: The score-boxes parameter was not designed to be used for rematches. Instead put the rematch score in parenthesis in the same score box, like so:
 
Semi-finalsFinal
 
      
 
5 June – Naples
 
 
 Italy (coin toss)0
 
8 and 10 June – Rome
 
 Soviet Union0
 
 Italy1 (2)
 
5 June – Florence
 
 Yugoslavia1 (0)
 
 Yugoslavia1
 
 
 England0
 
Third place play-off
 
 
8 June – Rome
 
 
 England2
 
 
 Soviet Union0

Does this work for you? —CodeHydro 20:12, 21 February 2017 (UTC)[reply]

@Codehydro: Hmm, the only issue as that numbers in parentheses usually refer to penalty shoot-out scores. Also, the problem applies to normal tournaments over two legs that have a third place match (see below). S.A. Julio (talk) 20:32, 21 February 2017 (UTC)[reply]
 
Semi-finalsFinal
 
          
 
5 June – Naples
 
 
 Canada224
 
8 and 10 June – Rome
 
 Angola01 1
 
 Canada123
 
5 June – Florence
 
 Argentina10 1
 
 Argentina145
 
 
 Australia02 2
 
Third place play-off
 
 
8 June – Rome
 
 
 Angola224
 
 
 Australia02 2
  • @S.A. Julio: I hadn't encountered a real-life multi-leg tournament with a third place match during the development of RoundN. Is your above example based on an actual tournament or is it purely theoretical? Granted I should have probably programmed the third place spot to tolerate multiple legs (and it wouldn't be difficult), but the score-boxes param still wasn't meant to be used in the way you wanted since the tournament was not actually multi-legged. If you don't like parenthesis, RoundN's score processing can tolerate most other characters of your choosing:
 
Semi-finalsFinal
 
      
 
5 June – Naples
 
 
 Italy (coin toss)0
 
8 June / 10 June – Rome
 
 Soviet Union0
 
 Italy1 / 2
 
5 June – Florence
 
 Yugoslavia1 / 0
 
 Yugoslavia1
 
 
 England0
 
Third place play-off
 
 
8 June – Rome
 
 
 England2
 
 
 Soviet Union0
I will have to find the time to update RoundN's documentation since the score-boxes parameter isn't "officially" available yet. —CodeHydro 14:03, 22 February 2017 (UTC)[reply]
@Codehydro: All right thanks, I adjusted the article with the slash. But while maybe this situation is rare, I think it would be a good idea anyways to fix the issue with the third place match when the bracket has multiple legs. Also, why is the score-box parameter not yet "official" yet? S.A. Julio (talk) 00:01, 23 February 2017 (UTC)[reply]

Alternate name for Final

[edit]

@Codehydro Can you add an option to add an alternate name for the Final, similar to |Consol= ? I'd like to change the name of the Final to 'Gold Medal Match' but I can't see a way to do this. 09:04, 21 May 2018 (UTC)

Nevermind, I figured it out. TheBigJagielka (talk) 09:08, 21 May 2018 (UTC)[reply]

Code to insert bold tags

[edit]

I edited Module:RoundN twice. The first was to clean whitespace and remove some of the globals which I assume were unintended. The second was to fix a problem in several articles which were showing Lua error in Module:RoundN at line 282: bad argument #2 to 'format' (no value). The articles follow. These had problems because they have (I think) broken wikitext, namely an odd number of occurrences of ''' (triple apostrophe). Someone familiar with the topic might like to fix them.

Re the first edit: I did not fix the following because I couldn't quickly work out what was wanted. They should be investigated. The remaining globals are: fontSize + nonFunc + text (at rowspan = m.r + 9 - rows - (text and 0 or 2),).

Re the second edit: The original had some problems which meant that replacing '''example''' with <b>example</b> was not occurring. When it was attempted (due to broken wikitext in the above articles), the runtime error occurred. The code is quite complex—please check what I did! Johnuniq (talk) 09:13, 14 August 2018 (UTC)[reply]

@Johnuniq: Thanks for working on RoundN! I think this was my 3rd Lua module and I am pretty sure I didn't even know that making function local was a thing at the time (FYI, I hadn't even heard of Lua just 6 weeks prior to when I stopped working on RoundN in Jan 2015). I agree that making those functions local sounds like a good idea.

As for your changes around the line local hasBold, b = ..., the changes miss the purpose of original, which was to bold text when users enter something like '''text (as opposed to properly closing it with '''text'''). Unclosed bold is works fine in MediaWiki-based templates but doesn't work in Lua-based templates, so those lines were an attempt maintain backwards compatibility. Your edit only affected paired/closed wiki-bold mark-up, which left, for example, left all of the score numbers (33, 40, etc.) unbolded in 2015–16 Magyar Kupa (men's handball)#Final four.

That said, non-working bolding is better than the error that was there before, so good job restoring partial functionality while I was MIA :) It's fixed now. —CodeHydro 23:32, 8 September 2018 (UTC)[reply]

@Codehydro: It's good code! I monitor script errors and my edits here were, I'm afraid, merely intended to remove those errors. I know nothing about this topic or exactly what the module is supposed to do so I was working in the dark. If you want to support a single occurrence of ''' as valid bolding I suppose that is ok, but my humble opinion is that it would be better to throw an error or put the article in a hidden category so the broken wikitext can be fixed. The purpose of my edit was to remove a problem, but while doing that I chose to only replace ''' if there were exactly two occurrences as a quick workaround. Anyway, that's up to you.

You may not be aware that the global variables I mentioned are almost certainly bugs that need to be fixed. I can explain more if you like, but searching for each will show places where they would give nil as an uninitialized global. I could take a stab at fixing a couple of them but it would take longer than I have to work out the underlying intention regarding what should happen. Johnuniq (talk) 01:30, 9 September 2018 (UTC)[reply]

"previewnumbers" do not work

[edit]

"previewnumbers" do not work, the template claims that match 1 is match 2, match 2 is match 3 and then it continues. Instead, the number 1 ("match 1") is next to the headings. DenSportgladeSkåningen (talk) 18:23, 17 August 2018 (UTC)[reply]

score-boxes=0 and 3rdplace=yes does not display correctly

[edit]

The following code combinations do not display correctly:

{{#invoke:RoundN|N8|score-boxes=0|3rdplace=yes}}
{{#invoke:RoundN|N4|score-boxes=0|3rdplace=yes}}

I'm not yet skilled enough with Lua to make the correction myself. Can somebody help? chi (talk) 15:40, 23 August 2018 (UTC)[reply]

Pinging @Codehydro and Johnuniq:. chi (talk) 17:12, 25 August 2018 (UTC)[reply]
I know nothing about this module and only dropped in to fix an error as mentioned two sections up. I might get time to look but I definitely do not want to spend time working out what the problem is and what is wanted. I would need a very clear explanation of what happens now and what should happen. Also, I'd like to see an example of a working template with results close to what is wanted. I removed the formatting from the section header because it breaks anchors. Johnuniq (talk) 23:38, 25 August 2018 (UTC)[reply]
Sorry for the vagueness. Here is my understanding of the problem. score-boxes is used to determine how many cells are needed for the score. For early Olympic wrestling, and perhaps other sports, there was no score at all so I've used score-boxes=0. This works fine except for the 3rd place match of 4- or 8-teams competitions:
 
Semi-finalsFinal
 
    
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Third place
 
 
 
 
 
 
 
 
 
I'm assuming the module is expecting a score for the 3rd place match, so it actually puts the two 3rd-place adversaries side-by-side instead of one over the other. I noticed that this is a problem for Firefox, but not for Edge, which puzzles me even more. chi (talk) 11:07, 27 August 2018 (UTC)[reply]
I put an example from above in my sandbox (permalink) showing what HTML is produced by the module. One problem has been identified, namely that different browsers show the results differently. Is there any other problem with the above? I ask because it is not clear to me why empty boxes should be displayed. Are you saying that what Edge shows in my sandbox is what is wanted? Is there an article showing empty boxes? If the only problem is the browser difference, the next step would be to ask at WP:VPT where HTML experts live. Someone would need to say what HTML output should occur before edits to the module can be contemplated. Johnuniq (talk) 00:42, 28 August 2018 (UTC)[reply]

Lines between matches not in line with centre of box

[edit]

Hi - It appears that the bold lines connecting any two matches starts from either slightly above or below the middle of the box, and then enters slightly above or below the middle of the box it's connecting to. How easy is this to fix? M00036 (talk) 14:40, 7 January 2019 (UTC)[reply]

@M00036: This aesthetic compromise is intentional. Due to the way the CSS box model works and the fact the Wikipedia makes us use only inline CSS, making the lines balanced required generating a lot more HTML/CSS and slowed down page loads too much. The current compromise was found to be the optimal balance between visual acceptability and code bulk. —CodeHydro 16:06, 19 May 2019 (UTC)[reply]

Right to Left Wikis

[edit]

Hi, everyone. How can I use this module in the right to left WIKIs such as azb.wikipedia.org? I have created a copy of this module in azb but I have a small problem with this module in our wiki and It is the float of the Brackets' connector lines. All the vertical lines have stood on the right side of connectors, and I could not move these lines to the left side of connectors. For example please check here to understand clearly my issue. I am thankful for your guidance: Ziraksima (talk) 11:24, 17 January 2019 (UTC)[reply]

I suggest you make a far simpler example in a sandbox with the minimum required to demonstrate the problem. Put the same wikitext (perhaps in English) in a sandbox here, then spell out what the problem is (what text is wrong and what should it be). Once that is available, you might consider asking at WP:VPT because ultimately the question regards the html output by the module. Fixing the module would be easy if it were known what html was required. Johnuniq (talk) 22:35, 17 January 2019 (UTC)[reply]

|score-boxes=2+sum don't allow penalties

[edit]

If you use |score-boxes=2+sum, you don't have the option to add penalties result to the sum box. Alternatively, you can display penalties' result between parenthesis on the second leg box but the sum won't work (e.g. |1 |1 (4) would display 15 on the sum box because 1+14=15).A.Caseiro (talk) 19:43, 23 February 2019 (UTC)[reply]

  • @A.Caseiro: Automatic sum is meant for simple numbers. Just use score-boxes=3 and do the math manually, e.g. |1 |1 (4)|6. If you want a different width sum box then use something like score-width=30;30;50CodeHydro 03:38, 14 May 2019 (UTC)[reply]

Issue with first match byes

[edit]

If the top match in the first round is a bye, there is a larger than normal spacing between the top of the knock-out bracket and the round descriptors...M00036 (talk) 14:48, 11 March 2019 (UTC)[reply]

Cambs. & Hunts. County Knockout
Round 1Round 2Semi-FinalsFinal
              
Lloyd Team39
Joy Team95
 
Joy Team54
 
Liebeschuetz Team47
Jackson Team24
 
Anderson Team44
Anderson Team17
 
Liebeschuetz Team94
Tarlow Team39
 
Liebeschuetz Team40
Joy Team
Negreanu Teamw/o
 
Heames Team68
 
Courtney Team58
Jacobsberg Team25
 
Courtney Team89
Heames Team39
 
Negreanu Team61
Negreanu Team61
 
Galpin Team50
Negreanu Team59
May Team23

M00036 (talk) 07:16, 15 May 2019 (UTC)[reply]

@M00036: I edited the above to use flex_tree=yes and added &nbsp; to all but top one. I also added bold_winner=high because... why do it manually? See edit historyCodeHydro 21:54, 16 May 2019 (UTC)[reply]
@Codehydro: Thanks for the above - very useful (and thanks also for emboldening tip!). Also wondered whether it's possible to set up a knockout with R1, R2 and QFs but no SFs or Final? (and with boxes for SF and Final hidden). Similar to the question below in some ways I guess. M00036 (talk) 16:43, 17 May 2019 (UTC)[reply]
Don't worry about the above - just found it in the code M00036 (talk) 16:47, 17 May 2019 (UTC)[reply]
@M00036:Just made this testcase as food for thought:
A1
B11
B11
 
D2
C2
D10
 
E3
F9
F12
 
H1
G4
H8
 
I5
J7
J4
 
K1
K6

Qualification for Championship

L6
 
M7
N5
 
O8
P4
O1
 
Q4
Q9
R3
 
S10
T2
S2
 
U3
U11
V1
CodeHydro 17:09, 20 May 2019 (UTC)[reply]
@Codehydro: Well this is how I did it (which I think looks quite good - see once-defeated pool section):

M00036 (talk) 13:12, 21 May 2019 (UTC)[reply]

Bronze match and no final, title "bronze match" is not in place

[edit]

I created a compilation in Swedish wikipedia about the qualification for the 2017 World Beach Football Championship. But I chose to remove the final, as both finalists are qualified for the World Championship. This means that the title "bronze match" is not in place, see examples here (on svwp). It is the same in English wikipedia, as you can see in my sandbox. DenSportgladeSkåningen (talk) 12:37, 16 April 2019 (UTC)[reply]

Is that related to this module? I can see Module:RoundN is used in your sandbox but what makes you think this module is a problem? Johnuniq (talk) 03:38, 17 April 2019 (UTC)[reply]
It is exactly the same module. But since you are rude, just forget it. I create a custom template for this purpose in Swedish wikipedia instead. DenSportgladeSkåningen (talk) 11:08, 17 April 2019 (UTC)[reply]
Sorry, I was only trying to be helpful. However, my comment was mistaken because I forgot what this page is about (I'm watching it after fixing a couple of errors in August 2018). There is a recent proposal to merge certain modules that I am interested in, modules which round numbers to a specified number of decimal places. I'm afraid I thought I was commenting regarding one of those. Total confusion. Johnuniq (talk) 11:27, 17 April 2019 (UTC)[reply]
* @DenSportgladeSkåningen: You can use Module:RoundN's undocumented node_function feature:
SemifinalerBronsmatch
      
B1
 Brazil
7
A2
 Argentina
1
A2
 Argentina
4 (0)
 
B2
 Ecuador (p)
4 (1)
A1
 Paraguay (a.e.t.)
5
B2
 Ecuador
3
CodeHydro 03:20, 14 May 2019 (UTC)[reply]

Width with em value

[edit]

Width cannot be specified with em value in the team-width and score-width parameters. Since the em value is useful for specifying width in number of characters, I would like you to be able to specify the width with the em value. --Nekohan (talk) 17:07, 10 June 2020 (UTC)[reply]

  • @Nekohan: This limitation is inherited from the pre-Lua versions of the various RoundN-like templates. RoundN was designed to be fully backwards compatible so that the thousands of pages using the original templates would not need to be edited after the templates they used were converted to RoundN. While adding EM widths support is probably doable without breaking backwards compatibility, implementing such support is probably not worth it because it is easy enough to simply multiply whatever EM value you want by 12.6 (wikitables put font at 90% of the surrounding font size, which is generally the article text size of 14px = 1em; thus, 14px * 0.9 = 12.6px = 1em in wikitables). —CodeHydro 14:07, 25 August 2020 (UTC)[reply]

"Template:RoundN" listed at Redirects for discussion

[edit]

A discussion is taking place to address the redirect Template:RoundN. The discussion will occur at Wikipedia:Redirects for discussion/Log/2021 February 10#Template:RoundN until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Hhkohh (talk) 19:26, 10 February 2021 (UTC)[reply]

Missing line in second round bye

[edit]

In the 1926 JBUs Pokalturnering, both a first and second round bye was issued to two different teams. While the actual teams getting byes are not displayed in the knock-out bracket, a visual line between the first round match and third round match (involving the second team getting a bye) should be displayed. Any ideas to how can this be made possible? Froztbyte (talk) 13:21, 21 February 2021 (UTC)[reply]

Change to |color field

[edit]

A suggestion for the |color field: Use it like bold_winner= to color the winner, instead of in a predetermined order.


Thanks. Deancarmeli (talk) 10:16, 29 June 2021 (UTC) Edited. Deancarmeli (talk) 10:18, 29 June 2021 (UTC)[reply]

Horizontal lines

[edit]

I'm trying to get horizontal lines with RoundN (like here: 2013 World Snooker Championship#Main qualifying which currently uses a bespoke template) but haven't found anything. Best I can do is:

Round of 32Round of 16Quarter-finalsSemi-finals
              
Wales Ryan Day 9
England Ben Woollaston 10
England Ben Woollaston 10
Thailand Thepchaiya Un-Nooh 3
Northern Ireland Gerard Greene 4
Thailand Thepchaiya Un-Nooh 10
Thailand Thepchaiya Un-Nooh 10
Scotland Scott Donaldson 6
England Andrew Higginson 4
Wales Michael White 10
Wales Michael White 10
China Zhang Anda 5
China Cao Yupeng 7
China Zhang Anda 10
China Zhang Anda 10
Thailand Passakorn Suwannawat 6

Any ideas? Nigej (talk) 10:16, 16 December 2021 (UTC)[reply]


Two Round 8 matches for Single-Elimination Tournament

[edit]

Hey there! I'm currently doing a playoff bracket wherein after the Round of 16, would go on to two Rounds of 8 and then would proceed to the Semis and Grand Finals. Can I possibly know what feature I can add to the bracket that will allow me to show Two Rounds of 8?

 
Round of 16Quarter-finalsSemi-finalsFinal
 
              
 
November 28, 2021 Bo3 series
 
 
Indonesia EVOS Legends0
 
2
 
Indonesia Alter-Ego2
 
November 29, 2021 Bo3 seriesIndonesia Alter-Ego
 
November 27, 2021 Bo3 series
 
2Indonesia Genflix Aerowolf
 
Philippines Omega Esports0
 
2
 
Indonesia Genflix Aerowolf
 
 
 
2
 
 
 
November 27, 2021 Bo3 seriesIndonesia Bigetron Alpha
 
0
 
0Indonesia Geek Fam
 
November 29, 2021 Bo3 seriesIndonesia Geek Fam
 
2
 
2Philippines Blacklist International
 
November 28, 2021 Bo3 seriesSingapore RSG Singapore
 
 
 
1Philippines Blacklist International
 
 
 
2
 
 
 
November 28, 2021 Bo3 seriesIndonesia Aura Fire
 
0
 
1Philippines Aura PH
 
November 29, 2021 Bo3 seriesPhilippines Aura PH
 
2
 
2Philippines ONIC Philippines
 
November 27, 2021 Bo3 seriesIndonesia ONIC Esports
 
 
 
1Philippines ONIC Philippines
 
 
 
2
 
 
 
November 28, 2021 Bo3 seriesMalaysia Orange Louvre Esports
 
1
 
1Singapore EVOS SG
 
November 29, 2021 Bo3 seriesSingapore EVOS SG
 
2
 
1Myanmar Ronin Esports
 
November 27, 2021 Bo3 seriesPhilippines Execration
 
 
1Myanmar Ronin Esports
 

talk 01:56, 30 December 2021 (UTC)[reply]

Try:
 
Round of 16Quarter-finalsSemi-finalsFinal
 
              
 
Date_A
 
 
Team_A11
 
Date_I
 
Team_A22
 
Team_I117
 
Date_B
 
Team_I218
 
Team_B13
 
Date_M
 
Team_B24
 
Team_M125
 
Date_C
 
Team_M226
 
Team_C15
 
Date_J
 
Team_C26
 
Team_J119
 
Date_D
 
Team_J220
 
Team_D17
 
Date_O
 
Team_D28
 
Team_O129
 
Date_E
 
Team_O230
 
Team_E19
 
Date_K
 
Team_E210
 
Team_K121
 
Date_F
 
Team_K222
 
Team_F111
 
Date_N
 
Team_F212
 
Team_N127
 
Date_G
 
Team_N228
 
Team_G113
 
Date_L
 
Team_G214
 
Team_L123
 
Date_H
 
Team_L224
 
Team_H115
 
 
Team_H216
 

Deancarmeli (talk) 07:31, 30 December 2021 (UTC)[reply]

About the 2x-to-beat

[edit]

Currently making a bracket with qf. How do you add a 2x-to-beat? Homaisyou100 (talk) 14:44, 11 January 2022 (UTC)[reply]

Orphan function

[edit]

It appears the orphan function is not working for the 2022 men's Olympic ice hockey bracket. Can someone offer guidance to help get it fixed? Taxman1913 (talk) 07:54, 16 February 2022 (UTC)[reply]

Remove annoying thicker line

[edit]

As soon as you add seeds, the line to the left for each entry becomes thicker. For instance as shown here (borrowed from DenSportgladeSkåningen above):

SemifinalerBronsmatch
      
B1
 Brazil
7
A2
 Argentina
1
A2
 Argentina
4 (0)
 
B2
 Ecuador (p)
4 (1)
A1
 Paraguay (a.e.t.)
5
B2
 Ecuador
3

In the Swedish Wiki I've adjusted the code to correct this. See how it looks like in svwp.

The code I changed was on row 833, where I changed -%s to -0.7ex. Perhaps it can be done in a better way, but this way I got it to work after testing around. May I propose you do the same change in enwp? Inno (talk) 04:44, 22 May 2022 (UTC) Added edit request Inno (talk) 18:34, 25 May 2022 (UTC)[reply]

 Not done: made your edit to the sandbox, and it didn't appear to make a difference, at least not in my browser:
{{#invoke:RoundN/sandbox|...}}
SemifinalerBronsmatch
      
B1
 Brazil
7
A2
 Argentina
1
A2
 Argentina
4 (0)
 
B2
 Ecuador (p)
4 (1)
A1
 Paraguay (a.e.t.)
5
B2
 Ecuador
3
Also not crazy about the way the a.e.t. link overlaps with the number 5 in the Paraguay box. Never mind, that's just my browser's font-size setting. P.I. Ellsworth - ed. put'r there 09:09, 27 May 2022 (UTC)[reply]
I have changed the values on row 833 in sandbox to 'margin = ('-2px %s -2px -2ex'):format(padding, padding)', still no difference so the tree above doesn't seem to use the code in the sandbox. Inno (talk) 14:50, 27 May 2022 (UTC)[reply]
Tried ('-10px %s -10px -10ex') and still no change. Moved the request template to the top of this section and left it open so other template editors can have a look at this. P.I. Ellsworth - ed. put'r there 16:17, 27 May 2022 (UTC)[reply]

I have no clue how the sandbox works. Obviously not well. Why not implement my proposed change to the template like I did in svwp? Works like a charm. The thicker border to the left is gone. Here's the link again. Inno (talk) 04:38, 28 May 2022 (UTC)[reply]

 Done – seems pragmatic enough. P.I. Ellsworth - ed. put'r there 09:09, 28 May 2022 (UTC)[reply]
Great Ellsworth, thanks :) Inno (talk) 10:24, 28 May 2022 (UTC)[reply]
my pleasure! Paine  17:36, 28 May 2022 (UTC)[reply]

Four-way final

[edit]

Is it possible to do this using the RoundN module?

  Qualifiers
Dynamite
(June 8, 2022)
Final
Forbidden Door
(June 26, 2022)
             
10:32
Pin
 
 
United Kingdom Pac
   
 
 
 

MordecaiXLII (talk) 13:45, 13 June 2022 (UTC)[reply]

Template-protected edit request on 21 June 2022 — Enabling automatic winner background color

[edit]

The proposed change comes to address the color parameter functionality:

  1. When set to yes it will work exactly as before. no change.
  2. When set to yes, while bold_winner is also set to yes, the cells for the winners of both the final and the 3rdplace match will be colored correctly, as was suggested in #Change to |color field

Current state, lines 652–656:

					if m.showBox[m.phase] then
						p.teamBoxCSS = colorFinal and
							{border = p.teamBoxNormal.border, background = p.bgColor[m.phase + (col.show3rd or 0)]}
							or p.teamBoxNormal
						local f = {phase = m.phase, bold = m.bold.win(m.phase)}

Wanted state:

					if m.showBox[m.phase] then
						if p.bold then
							if m.bold.win(m.phase) and colorFinal then
								color_index = 1 + (col.show3rd or 0)
							else
								color_index = 2 + (col.show3rd or 0)
							end
							p.teamBoxCSS = colorFinal and
								{border = p.teamBoxNormal.border, background = p.bgColor[color_index]}
								or p.teamBoxNormal
						else
							p.teamBoxCSS = colorFinal and
								{border = p.teamBoxNormal.border, background = p.bgColor[m.phase + (col.show3rd or 0)]}
								or p.teamBoxNormal
						end
						local f = {phase = m.phase, bold = m.bold.win(m.phase)}

CLalgo (talk) 16:20, 21 June 2022 (UTC)[reply]

To editor CLalgo: curious as to how and where this has been tested? P.I. Ellsworth , ed. put'r there 05:46, 27 June 2022 (UTC)[reply]
@Paine Ellsworth: Fair question. I've copied the code of Module:RoundN to the empty page of Module:RoundN test, with the relevant changes. Then, I've used the latter to preview User:CLalgo/sandbox/RoundN test, which is a userspace page I've created and tested on that shows the 4 combinations of final an 3rd place match winners. The userspace page uses the syntax of Module:RoundN, but invokes Module:RoundN test. CLalgo (talk) 10:53, 27 June 2022 (UTC)[reply]
Trying to understand... don't see how placing the module code in a non-existing module page can be tested like that. However, I did place the module code along with your changes into the sandbox module, and then placed your userpage sandbox code into my user sandbox (using {{#invoke:RoundN/sandbox...) to compare it with your user sandbox (using {{#invoke:RoundN... in preview) and saw the color switches in the second, third and fourth examples. So I've seen the changes your edit brings about, but how are these changes improvements over what the module presently produces? P.I. Ellsworth , ed. put'r there 11:41, 27 June 2022 (UTC)[reply]
@Paine Ellsworth: Currently, when one sets |color = yes, the module is hardcoded to color specific, predetermined cells in specific, predetermined colors regardless of input. If the brackets were made before the competition has ended, in all but one case their structure would have to be changed in order to use the color functionality correctly. With my change, the coloring wouldn't be hardcoded to specific cells, but would be done automatically to match the input. CLalgo (talk) 11:57, 27 June 2022 (UTC)[reply]
Okay, sounds very good so  done, and thank you for your patience and your explanation! P.I. Ellsworth , ed. put'r there 12:27, 27 June 2022 (UTC)[reply]
Thank you, and sorry that the change wasn't clear enough to begin with. CLalgo (talk) 12:45, 27 June 2022 (UTC)[reply]

Template-protected edit request on 28 June 2022 — Enabling repechage color

[edit]

The proposed change comes to address the color parameter functionality, in Repechage cases were the winner of the brackets is awarded a bronze medal:

  1. color_repechage — a new parameter, taking yes and no values.
  2. When set to yes, it is hardcoded to color the upper box of each match at the final stage of the brackets, which is usually 1, in bronze. That is, it works with the same logic as the color parameter.
  3. When set to yes while bold_winner is also set to yes, the cells of the winners of each match at the final stage of the brackets, which is usually 1, are colored bronze.

Proposed changes

Changes to be done:
Lines 349–350:

  • Current state:
		'color',
		'3rdplace',
  • Wanted state:
		'color',
		'color_repechage',
		'3rdplace',

Lines 534–535:

  • Current state:
		p.span = p.tCols > c and bump * 2 or p.branch_upwards or math.max((bump - 1) / 2, 2)
		col.show3rd = p['3rdplace'] and c == p.tCols and rowNum.third
  • Wanted state:
		p.span = p.tCols > c and bump * 2 or p.branch_upwards or math.max((bump - 1) / 2, 2)
		col.color_repechage = p['color_repechage'] and ((c == p.tCols) or ((c == p.tCols-1) and skipMatch[math.pow(2, p.tCols) - 1]))
		col.show3rd = p['3rdplace'] and c == p.tCols and rowNum.third

Lines 652–665:

  • Current state:
					if m.showBox[m.phase] then
						if p.bold then
							if m.bold.win(m.phase) and colorFinal then
								color_index = 1 + (col.show3rd or 0)
							else
								color_index = 2 + (col.show3rd or 0)
							end
							p.teamBoxCSS = colorFinal and
								{border = p.teamBoxNormal.border, background = p.bgColor[color_index]}
								or p.teamBoxNormal
						else
							p.teamBoxCSS = colorFinal and
								{border = p.teamBoxNormal.border, background = p.bgColor[m.phase + (col.show3rd or 0)]}
								or p.teamBoxNormal
  • Wanted state:
					if m.showBox[m.phase] then
						if col.color_repechage then
							col.color_repechage = 2
						end
						if p.bold then
							if m.bold.win(m.phase) and (colorFinal or col.color_repechage)  then
								color_index = 1 + (col.show3rd or 0) + (col.color_repechage or 0)
							else
								color_index = 2 + (col.show3rd or 0) + (col.color_repechage or 0)
							end
							p.teamBoxCSS = (colorFinal or col.color_repechage) and
								{border = p.teamBoxNormal.border, background = p.bgColor[color_index]}
								or p.teamBoxNormal
						else
							p.teamBoxCSS = (colorFinal or col.color_repechage) and
								{border = p.teamBoxNormal.border, background = p.bgColor[m.phase + (col.show3rd or 0) + (col.color_repechage or 0)]}
								or p.teamBoxNormal

CLalgo (talk) 09:54, 28 June 2022 (UTC)[reply]

 Done, and please update the /doc page as needed. P.I. Ellsworth , ed. put'r there 19:56, 28 June 2022 (UTC)[reply]

Template-protected edit request on 30 June 2022 — Fixed bug: Empty finals color

[edit]

Currently, when the color parameter is used, the final match is colored even when empty. With the proposed change, when color will be used with bold_winner, the coloring will only be done when the matchboxes are no longer empty.

Lines 659–663:

  • Current state:
							if m.bold.win(m.phase) and (colorFinal or col.color_repechage)  then
								color_index = 1 + (col.show3rd or 0) + (col.color_repechage or 0)
							else
								color_index = 2 + (col.show3rd or 0) + (col.color_repechage or 0)
							end
  • Wanted state:
							if m.bold.win(m.phase) and (colorFinal or col.color_repechage)  then
								color_index = 1 + (col.show3rd or 0) + (col.color_repechage or 0)
							elseif m.bold.box[#m.nonEmpty] then 
								color_index = 2 + (col.show3rd or 0) + (col.color_repechage or 0)
							else
								color_index = 4
							end

CLalgo (talk) 10:41, 30 June 2022 (UTC)[reply]

@CLalgo: Could you point to a page where this problem is occurring? (Not that I don't believe you, I just want to be able to do my own testing to make sure the change indeed fixes the problem before deploying it) * Pppery * it has begun... 15:26, 8 July 2022 (UTC)[reply]
@Pppery: this is an older version of Judo at the 2022 Mediterranean Games – Women's 78 kg: [1]. Is that good enough? CLalgo (talk) 19:09, 8 July 2022 (UTC)[reply]
Yep.  Done * Pppery * it has begun... 19:12, 8 July 2022 (UTC)[reply]

Medal colors for gold/silver/bronze

[edit]

Hi there, the parameters color and color_repechage allow for the background of a cell to be colored in gold / silver / bronze. I was wondering whether these colors should perhaps be adjusted for accessibility as, for example, when visiting a red link, the contrast between the link and the bronze background (on a page such as this one) is fairly low. If they need to be adjusted, some options (mentioned here) could include: mandatory lighter colors or an option to make them available. Is this perhaps something to consider or are the current colors ok? Another option could be to only color the background of the cell with the score and leave the background of the athlete name "as is"? Simeon (talk) 19:51, 30 June 2022 (UTC)[reply]

As I said in my talk page, I also find the current color contrast troubling, and thank Simeon for starting this discussion. Both options mentioned are doable. Changing the colors to lighter one could be done very easily. Creating an option for lighter ones is also an option, and I've already written the code for it and tested it. I haven't submitted it because I was wondering myself if it is a good solution, or should the lighter colors should be the only option. As this is a widely used module, I'd like to invite more people to take part in this discussion. CLalgo (talk) 20:25, 30 June 2022 (UTC)[reply]
@Simeon: Here is an example of the current version and an alternative with lighter colors, and their contrasts:
Current version
Examples AA Compliant AAA Compliant Ref.
1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s)
Unvisited links Unvisited links Unvisited links Yes Yes No No No No [2] [3] [4]
Visited links Visited links Visited links Yes Yes Yes Yes Yes No [5] [6] [7]
Unvisited red-links Unvisited red-links Unvisited red-links Yes No No No No No [8] [9] [10]
Visited red-links Visited red-links Visited red-links No No No No No No [11] [12] [13]
No link No link No link Yes Yes Yes Yes Yes Yes [14] [15] [16]
Light-color version
Examples AA Compliant AAA Compliant Ref.
1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s)
Unvisited links Unvisited links Unvisited links Yes Yes Yes Yes No No [17] [18] [19]
Visited links Visited links Visited links Yes Yes Yes Yes Yes Yes [20] [21] [22]
Unvisited red-links Unvisited red-links Unvisited red-links Yes Yes Yes No No No [23] [24] [25]
Visited red-links Visited red-links Visited red-links Yes No No No No No [26] [27] [28]
No link No link No link Yes Yes Yes Yes Yes Yes [29] [30] [31]
CLalgo (talk) 20:58, 3 July 2022 (UTC)[reply]
It seems like we need some additional changes to make the light-color version compliant? I'm not very familiar with what it'd mean if we're not compliant but, if possible, I'd prefer to make it compliant - even if that means fewer / no colors. Simeon (talk) 19:17, 4 July 2022 (UTC)[reply]
I agree, that's why I haven't pushed these lighter colors. I'll try other silver and bronze shades to achieve AA compliance. CLalgo (talk) 19:32, 4 July 2022 (UTC)[reply]
Would Light Yellow be more compliant? I.e.
example
Example 1 example
>> Lil-unique1 (talk)13:56, 18 July 2022 (UTC)[reply]
Actually, the light gold is the the only one of the three that is AA Compliant. CLalgo (talk) 06:07, 19 July 2022 (UTC)[reply]

Visited and unvisited redlinks are essentially impossible to make AAA compliant, as they are not AAA compliant against white backgrounds. However, we can (and need to per MOS:COLOR) make the colors AAA compliant and AA compliant where possible. Here is my proposal:

AA compliant proposal version
Examples AA Compliant AAA Compliant Ref.
1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s) 1st place, gold medalist(s) 2nd place, silver medalist(s) 3rd place, bronze medalist(s)
Unvisited links Unvisited links Unvisited links Yes Yes Yes Yes Yes Yes [32] [33] [34]
Visited links Visited links Visited links Yes Yes Yes Yes Yes Yes [35] [36] [37]
Unvisited red-links Unvisited red-links Unvisited red-links Yes Yes Yes No No No [38] [39] [40]
Visited red-links Visited red-links Visited red-links Yes Yes Yes No No No [41] [42] [43]
No link No link No link Yes Yes Yes Yes Yes Yes [44] [45] [46]

Frankly, I'd be fine with removing the color altogether, but I understand if people want them. Pinging previous participants @Simeon, CLalgo, and Lil-unique1:, as this discussion has been stale for a few months. – Pbrks (t • c) 14:46, 9 September 2022 (UTC)[reply]

I have no preference on colour so long as we're compliant. >> Lil-unique1 (talk)15:26, 9 September 2022 (UTC)[reply]
Are those the darkest shades still AAA compliant for visited an AA compliant for unvisited? CLalgo (talk) 09:03, 10 September 2022 (UTC)[reply]
Do you mean for AAA for bluelinks and AA for redlinks? If so, then no, the gold could be darker. I lightened it for aesthetic reasons, as it looked much darker than the others. It could be as dark as  #FFEA70  If not, then no, since we cannot get AAA compliance for unvisited redlinks. – Pbrks (t • c) 13:49, 10 September 2022 (UTC)[reply]
Perhaps we should consider: do we need these background colours? I would prefer AA compliance and AAA compliance first, without background colours, and we should only add background colours if it can be justified not being compliant with a particular guideline. Simeon (talk) 17:14, 10 September 2022 (UTC)[reply]
I do not care for the colors; I don't see any good reason to have them. With that said, we would have the same compliance rating as my proposal if all of the backgrounds were the default light grey color. – Pbrks (t • c) 18:32, 10 September 2022 (UTC)[reply]

Templatestyles

[edit]

This template really should be converted to make use of template styles, its reusing lots of style statements, and using template styles would reduce the size of the generated output significantly. If I can find some time, I'll attempt to have a go at it. —TheDJ (talkcontribs) 14:30, 15 July 2022 (UTC)[reply]

@TheDJ: What is this undocumented edit you've made to this module? CLalgo (talk) 16:03, 15 July 2022 (UTC)[reply]
It's not undocumented, the edit summary tells exactly why it was made, which is what edit summaries are for. If you set a css background color you should always set the text color as well. If you don't, you break accessibility for people not using standard colors. Pretty basic rule of background color usage. See also Wikipedia_talk:Manual_of_Style/Accessibility#2023_FIFA_Women's_World_Cup_qualificationTheDJ (talkcontribs) 17:16, 15 July 2022 (UTC)[reply]
@TheDJ: Was anything changed in terms of module functionality? Any added features\parameters? CLalgo (talk) 12:11, 16 July 2022 (UTC)[reply]
no —TheDJ (talkcontribs) 08:03, 18 July 2022 (UTC)[reply]

node_function{orphan}

[edit]

Maybe I missed something, but node_function{orphan} doesn't seem to work as it should. Look in my sandbox (copied it from 2022 MLS on svwp) for an example, it still shows lines from Conference Semifinal 1 and Conference Semifinal 2 to Conference Final 1, but not from 3 and 4. DenSportgladeSkåningen (talk) 07:01, 18 October 2022 (UTC)[reply]

I'm seeing the same issue for brackets of any size. It seems that it works fine in the first column but in subsequent columns, the top two matches won't have their lines hidden. See my testcases here: User:Blaixx/sandbox/RoundN-main. I have a hunch that the bug is somewhere below the comment --col.t and col.t2 control whether lines are drawn but the code is really hard (for me) to understand! BLAIXX 14:58, 23 February 2024 (UTC)[reply]
[edit]

any objections to adding automatic VTE links? with Module:Sports table, you don't need to add the |name= to tell the module the name of the parent, which reduces errors when the module/template is moved to a new location. we could still have the |template=, but would not need the |name=. Frietjes (talk) 16:12, 5 December 2022 (UTC)[reply]

Frietjes, I think it's going to be a very rare case when you want to put the bracket in its own template. This might have been the case awhile ago, but the current trend is to put the brackets directly in the article and use WP:LST when necessary. A quick check of "WhatLinksHere" in template space shows only a handful. Thanks! Plastikspork ―Œ(talk) 16:04, 21 December 2022 (UTC)[reply]
okay, now removed. Frietjes (talk) 21:08, 21 December 2022 (UTC)[reply]

Unbold aet and pen when using bold_winner

[edit]

per this discussion with S.A. Julio, I have tweaked the code so that aet and pen and other parenthetical links are not bolded when using bold_winner. let me know if you see any problems and I can adjust the code. see 2022 FIFA World Cup knockout stage for a live example. Frietjes (talk) 21:22, 21 December 2022 (UTC)[reply]

Frietjes: Please see Misnested Tags in Article namespace and note the many articles with misnested tags attributed directly to this module. Cheers! —Anomalocaris (talk) 00:51, 22 December 2022 (UTC)[reply]
okay, I changed it to a less aggressive pattern match. Frietjes (talk) 18:17, 22 December 2022 (UTC)[reply]
Frietjes: OK, the misnested tags are cleared, so, thanks! —Anomalocaris (talk) 22:53, 22 December 2022 (UTC)[reply]

Edit request 25 February 2024 Fix node_function orphan bug

[edit]

Description of suggested change: A fix for the longstanding node_function{orphan} bug where the lines from the first two matches in each round (after the first) would not be hidden (see examples here: User:Blaixx/sandbox/RoundN-main). This is what it looks like when fixed: User:Blaixx/sandbox/RoundN (tables generated using the Module:RoundN/sandbox).

The fix took a long time to find but is actually pretty simple. We just need to null out a variable once per column. That way all subsequent rounds will work the same way as the first. I also added some comments.

Diff: See diff here: [47] BLAIXX 01:04, 25 February 2024 (UTC)[reply]

@Paine Ellsworth: sorry for the ping. Would you mind taking a look at this edit request when you have a chance? I saw that you've made some edits to this module before. Thanks! BLAIXX 15:55, 2 March 2024 (UTC)[reply]
Blaixx the bug is the connecting lines wrongly appearing, yes? SWinxy (talk) 23:00, 3 March 2024 (UTC)[reply]
Yes, "node_function{orphan}" should hide the lines to the next column of boxes and the bug is what you've said: the lines wrongly appearing. BLAIXX 04:46, 4 March 2024 (UTC)[reply]
 Completed. P.I. Ellsworth , ed. put'er there 13:57, 7 March 2024 (UTC)[reply]

Text overlapping issue

[edit]

It got worse readability when the template is implement to the 2023 Copa Libertadores. Any idea?

 
Round of 16Quarter-finalsSemi-finalsFinal
 
                      
 
 
 
 
11
Uruguay Nacional
112 (2)
 
 
 
4
Argentina Boca Juniors (p)
112 (3)
 
4
Argentina Boca Juniors (p)
000 (4)
 
 
 
3
Argentina Racing
000 (1)
 
15
Colombia Atlético Nacional
404
 
 
 
3
Argentina Racing
235
 
4
Argentina Boca Juniors (p)
011 (4)
 
 
 
1
Brazil Palmeiras
011 (2)
 
16
Colombia Deportivo Pereira
112
 
 
 
6
Ecuador Independiente del Valle
011
 
16
Colombia Deportivo Pereira
000
 
 
 
1
Brazil Palmeiras
404
 
13
Brazil Atlético Mineiro
000
 
4 November – Rio de Janeiro
 
1
Brazil Palmeiras
101
 
4
Argentina Boca Juniors
1
 
 
 
8
Brazil Fluminense (a.e.t.)
2
 
12
Argentina Argentinos Juniors
101
 
 
 
8
Brazil Fluminense
123
 
8
Brazil Fluminense
235
 
 
 
2
Paraguay Olimpia
011
 
10
Brazil Flamengo
112
 
 
 
2
Paraguay Olimpia
033
 
8
Brazil Fluminense
224
 
 
 
7
Brazil Internacional
213
 
9
Bolivia Bolívar (p)
303 (5)
 
 
 
5
Brazil Athletico Paranaense
123 (4)
 
9
Bolivia Bolívar
000
 
 
 
7
Brazil Internacional
123
 
14
Argentina River Plate
213 (8)
 
 
7
Brazil Internacional (p)
123 (9)
 

KyleRGiggs (talk) 08:21, 18 July 2024 (UTC)[reply]

Can you elaborate? What got worse? Worse than what? BLAIXX 21:26, 21 July 2024 (UTC)[reply]
I don't know how to elaborate but CodeMars04 said very clearly in his edit summary, I will quote it.

…some team names were overlapping on scores, which shows even more on mobile version. IMO, this needs further testing (in a sandbox, for example) before being implemented on a permanent basis.

KyleRGiggs (talk) 17:34, 22 July 2024 (UTC)[reply]
I think I resolved the issue by increasing the team-width parameter from 180px to 215. BLAIXX 20:17, 22 July 2024 (UTC)[reply]

Using RDseed with long names?

[edit]

This is not for any particular edit request, but a request for advice on where to take this. I've implemented this style of bracket at 2024 Arena Football League season among other arena football season articles, and have noticed that when I include the {{RDseed}} template, even with {{nowrap}}, some cells take up two lines. I know there's something technical that might be causing this, but any advice on how I can fix this? The current version of the bracket as of writing this is below. Jalen Folf (Bark[s]) 18:56, 21 July 2024 (UTC)[reply]

Scratch that. I figured it out using the team-width parameter, as described in the RDseed documentation. Jalen Folf (Bark[s]) 20:28, 21 July 2024 (UTC)[reply]
 
Round 1Semi-finalsFinal
 
          
 
July 6 – Tony's Pizza Events Center
 
 
5
Southwest Kansas Storm
35
 
July 13 – MVP Arena
 
3
Salina Liberty
41
 
3
Salina Liberty
59
 
 
2
Albany Firebirds
80
 
 
July 19 – American Dream Center
 
 
2
Albany Firebirds
41
 
July 5 – Kia Center
 
1
Billings Outlaws
46
 
6
Nashville Kats
62
 
July 13 – MetraPark First Interstate Arena
 
4
Orlando Predators
32
 
6
Nashville Kats
32
 
 
1
Billings Outlaws
35
 
 
 
 
@JalenFolf: {{RDseed}} may not go within {{nowrap}} due to Div-Span-Flip errors (HTML hierarchy), a tracked syntax error on Wikipedia. However, I did find a solution for you that you might have overlooked. The Template:RDseed comes with a parameter (towards the bottom of the page) that accomodates the need for wider team entries; just add |team-width=auto to the parameter set as I have here, and it will self adjust based on input. If that causes issues with being too wide, just change auto to some integer that works better (170 is the default width). Does this work for you? Zinnober9 (talk) 21:12, 21 July 2024 (UTC)[reply]

omit_label for consolation matches

[edit]

I noticed that that using omit_label works for regular headings, but for consolation matches it results in an error. Is there any way this could be resolved? Thanks, S.A. Julio (talk) 03:07, 6 September 2024 (UTC)[reply]