Jump to content

Module talk:RoundN: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Inno (talk | contribs)
No edit summary
Inno (talk | contribs)
No edit summary
Line 1,161: Line 1,161:


== Remove annoying thicker line ==
== Remove annoying thicker line ==

As soon as you add seeds, the line to the left for each entry becomes thicker. For instance as shown here (borrowed from [[User:DenSportgladeSkåningen|DenSportgladeSkåningen]] above):
As soon as you add seeds, the line to the left for each entry becomes thicker. For instance as shown here (borrowed from [[User:DenSportgladeSkåningen|DenSportgladeSkåningen]] above):
{{#invoke:RoundN|N4|style=white-space:nowrap|omit_blanks = yes|RD1=Semifinaler|RD2=Bronsmatch|flex_tree=yes|bold_winner=high|skipmatch=|3rdplace=no
{{#invoke:RoundN|N4|style=white-space:nowrap|omit_blanks = yes|RD1=Semifinaler|RD2=Bronsmatch|flex_tree=yes|bold_winner=high|skipmatch=|3rdplace=no
Line 1,174: Line 1,173:


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? [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 04:44, 22 May 2022 (UTC)
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? [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 04:44, 22 May 2022 (UTC)
{{Edit template-protected}}
Added edit request [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 18:34, 25 May 2022 (UTC)

Revision as of 18:34, 25 May 2022

Check request

  • @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

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

@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

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

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

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

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

@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

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

@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

@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

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

"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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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)[reply]

Added edit request Inno (talk) 18:34, 25 May 2022 (UTC)[reply]