Module talk:RoundN: Difference between revisions
No edit summary |
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
This module was considered for deletion on 10 February 2021. The result of the discussion was "no consensus". |
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)
Byes
Two byes to a match leave a black line to the next round, see
Quarter-finals | Semi-finals | Final | ||||||||
Day 2 | ||||||||||
C | ||||||||||
D | ||||||||||
tdb | ||||||||||
A | ||||||||||
tdb | ||||||||||
A | ||||||||||
tdb | ||||||||||
A | ||||||||||
Day 1 | ||||||||||
A | 7 | |||||||||
B | 5 | |||||||||
-Koppapa (talk) 11:25, 6 January 2015 (UTC)
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)
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)
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)
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)
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)
- @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)
- @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
- @Codehydro: How does the score-boxes parameter work? QED237 (talk) 16:20, 23 March 2015 (UTC)
- @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)
- @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)
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)
- @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)
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)
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)
- Hmm, well there is a way.. .but why would you need score boxes for team by itself? Why not use something like Module_talk:RoundN/testcases/6--i.e., the losing teams are in a separate branch? I don't see a situation how a team by itself with no other team can score anything. —CodeHydro 01:43, 10 July 2015 (UTC)
- @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)
- @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)
- @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)
- @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)
- @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)
Two-legged matches
Are there any plans to add support for two-legged knock out rounds? TheBigJagielka (talk) 12:49, 30 October 2015 (UTC)
- I think that already exists. TheBigJagielka are you thinking about something like
Quarter-finals | Semi-finals | Final | ||||||||||||||
Day 1 | ||||||||||||||||
Team A | 7 | 2 | 9 | |||||||||||||
Day 5 | ||||||||||||||||
Team B | 5 | 3 | 8 | |||||||||||||
Team A | 3 | 2 | 5 | |||||||||||||
Day 2 | ||||||||||||||||
Team C | 0 | 2 | 2 | |||||||||||||
Team C | 4 | 1 | 5 | |||||||||||||
Day 7 | ||||||||||||||||
Team D | 0 | 0 | 0 | |||||||||||||
Team A | 2 | |||||||||||||||
Day 3 | ||||||||||||||||
Team G | 5 | |||||||||||||||
Team E | 0 | 2 | 2 | |||||||||||||
Day 6 | ||||||||||||||||
Team F | 5 | 3 | 8 | |||||||||||||
Team F | 1 | 1 | 2 | |||||||||||||
Day 4 | ||||||||||||||||
Team G | 2 | 1 | 3 | |||||||||||||
Team G | 2 | 1 | 3 | |||||||||||||
Team H | 1 | 1 | 2 | |||||||||||||
Just use |score-boxes=2+sum
. Was that what you had in mind? Qed237 (talk) 13:29, 30 October 2015 (UTC)
- It is. Thanks, I didn't know that that feature existed. TheBigJagielka (talk) 13:33, 30 October 2015 (UTC)
- 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)
- 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 Round | Semifinals | Final | ||||||||||||||
1 Vancouver Whitecaps FC | 1 | 2 | 3 | |||||||||||||
4 FC Edmonton | 1 | 1 | 2 | |||||||||||||
FC Edmonton | 3 | 3 | 6 | |||||||||||||
Ottawa Fury FC | 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 (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)
- @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)
- @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)
- @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
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)
- Euro 1968 example
Semi-finals | Final | |||||||
5 June – Naples | ||||||||
Italy (coin toss) | 0 | |||||||
8 and 10 June – Rome | ||||||||
Soviet Union | 0 | |||||||
Italy | 1 | 2 | ||||||
5 June – Florence | ||||||||
Yugoslavia | 1 | 0 | ||||||
Yugoslavia | 1 | |||||||
England | 0 | |||||||
Third place play-off | ||||||||
8 June – Rome | ||||||||
England | 2 | |||||||
Soviet Union | 0 |
- Eight team example
Quarter-finals | Semi-finals | Final | |||||||||||
5 June – Naples | |||||||||||||
Italy | 1 | ||||||||||||
5 June – Naples | |||||||||||||
Zimbabwe | 0 | ||||||||||||
Italy (coin toss) | 0 | ||||||||||||
5 June – Naples | |||||||||||||
Soviet Union | 0 | ||||||||||||
Mexico | 0 | ||||||||||||
8 and 10 June – Rome | |||||||||||||
Soviet Union | 2 | ||||||||||||
Italy | 1 | 2 | |||||||||||
5 June – Florence | |||||||||||||
Yugoslavia | 1 | 0 | |||||||||||
Yugoslavia | 3 | ||||||||||||
5 June – Florence | |||||||||||||
Australia | 0 | ||||||||||||
Yugoslavia | 1 | ||||||||||||
5 June – Florence | |||||||||||||
England | 0 | Third place play-off | |||||||||||
Argentina | 0 | ||||||||||||
8 June – Rome | |||||||||||||
England | 1 | ||||||||||||
England | 2 | ||||||||||||
Soviet Union | 0 | ||||||||||||
- @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-finals Final 5 June – Naples Italy (coin toss) 0 8 and 10 June – Rome Soviet Union 0 Italy 1 (2) 5 June – Florence Yugoslavia 1 (0) Yugoslavia 1 England 0 Third place play-off 8 June – Rome England 2 Soviet Union 0
Does this work for you? —CodeHydro 20:12, 21 February 2017 (UTC)
- @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)
Semi-finals | Final | |||||||||
5 June – Naples | ||||||||||
Canada | 2 | 2 | 4 | |||||||
8 and 10 June – Rome | ||||||||||
Angola | 0 | 1 | 1 | |||||||
Canada | 1 | 2 | 3 | |||||||
5 June – Florence | ||||||||||
Argentina | 1 | 0 | 1 | |||||||
Argentina | 1 | 4 | 5 | |||||||
Australia | 0 | 2 | 2 | |||||||
Third place play-off | ||||||||||
8 June – Rome | ||||||||||
Angola | 2 | 2 | 4 | |||||||
Australia | 0 | 2 | 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-finals Final 5 June – Naples Italy (coin toss) 0 8 June / 10 June – Rome Soviet Union 0 Italy 1 / 2 5 June – Florence Yugoslavia 1 / 0 Yugoslavia 1 England 0 Third place play-off 8 June – Rome England 2 Soviet Union 0
- 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)
- @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)
- @S.A. Julio: - Sorry it took a year, but I finally got around to fixing this bug. —CodeHydro 17:35, 4 September 2018 (UTC)
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)
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.
- 2015–16 Magyar Kupa (men's handball)
- 2016–17 Magyar Kupa (women's handball)
- 2017–18 Magyar Kupa (women's handball)
- Archery at the 2010 Commonwealth Games – Men's recurve individual
- Fencing at the 1996 Summer Olympics – Men's épée
- Fencing at the 1996 Summer Olympics – Men's foil
- Fencing at the 1996 Summer Olympics – Men's sabre
- Fencing at the 1996 Summer Olympics – Women's épée
- Fencing at the 2008 Summer Olympics – Women's sabre
- Fencing at the 2016 Summer Olympics – Men's sabre
- Fencing at the 2016 Summer Olympics – Women's foil
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)
@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)
- @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)
- @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
"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)
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)
- Pinging @Codehydro and Johnuniq:. chi (talk) 17:12, 25 August 2018 (UTC)
- 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)
- 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 usedscore-boxes=0
. This works fine except for the 3rd place match of 4- or 8-teams competitions:
- Sorry for the vagueness. Here is my understanding of the problem.
- 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)
Semi-finals | Final | |||
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)
- 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)
- 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)
- @Johnuniq and Χ: This bug has now been patched. —CodeHydro 17:32, 4 September 2018 (UTC)
- @Codehydro: Thanks. Please also see my earlier post above with "remaining globals". The variables are almost certainly bugs that should be fixed. Johnuniq (talk) 23:11, 4 September 2018 (UTC)
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)
- @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)
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)
- 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)
|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)
- @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 likescore-width=30;30;50
—CodeHydro 03:38, 14 May 2019 (UTC)
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)
- @M00036: Example? —CodeHydro 03:27, 14 May 2019 (UTC)
Cambs. & Hunts. County Knockout | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
M00036 (talk) 07:16, 15 May 2019 (UTC)
- @M00036: I edited the above to use
flex_tree=yes
and added
to all but top one. I also addedbold_winner=high
because... why do it manually? See edit history —CodeHydro 21:54, 16 May 2019 (UTC)
- @M00036: I edited the above to use
- @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)
- Don't worry about the above - just found it in the code M00036 (talk) 16:47, 17 May 2019 (UTC)
|
- @Codehydro: Well this is how I did it (which I think looks quite good - see once-defeated pool section):
May 2019 . | Schapiro Spring Foursomes | National Knockout (Congress) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Schapiro Spring Foursomes - May 2019 | . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
M00036 (talk) 13:12, 21 May 2019 (UTC)
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)
- 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)
- 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)
- 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)
- 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)
|
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)
- @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)
"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)
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)
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.
Current state:
|
Current state:
|
Wanted state:
|
Wanted state:
|
Wanted state:
|
Wanted state:
|
Wanted state:
|
Thanks. Deancarmeli (talk) 10:16, 29 June 2021 (UTC) Edited. Deancarmeli (talk) 10:18, 29 June 2021 (UTC)
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 32 | Round of 16 | Quarter-finals | Semi-finals | |||||||||||
Ryan Day | 9 | |||||||||||||
Ben Woollaston | 10 | |||||||||||||
Ben Woollaston | 10 | |||||||||||||
Thepchaiya Un-Nooh | 3 | |||||||||||||
Gerard Greene | 4 | |||||||||||||
Thepchaiya Un-Nooh | 10 | |||||||||||||
Thepchaiya Un-Nooh | 10 | |||||||||||||
Scott Donaldson | 6 | |||||||||||||
Andrew Higginson | 4 | |||||||||||||
Michael White | 10 | |||||||||||||
Michael White | 10 | |||||||||||||
Zhang Anda | 5 | |||||||||||||
Cao Yupeng | 7 | |||||||||||||
Zhang Anda | 10 | |||||||||||||
Zhang Anda | 10 | |||||||||||||
Passakorn Suwannawat | 6 | |||||||||||||
Any ideas? Nigej (talk) 10:16, 16 December 2021 (UTC)
|
|
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 16 | Quarter-finals | Semi-finals | Final | |||||||||||
November 28, 2021 Bo3 series | ||||||||||||||
EVOS Legends | 0 | |||||||||||||
2 | ||||||||||||||
Alter-Ego | 2 | |||||||||||||
November 29, 2021 Bo3 series | Alter-Ego | |||||||||||||
November 27, 2021 Bo3 series | ||||||||||||||
2 | Genflix Aerowolf | |||||||||||||
Omega Esports | 0 | |||||||||||||
2 | ||||||||||||||
Genflix Aerowolf | ||||||||||||||
2 | ||||||||||||||
November 27, 2021 Bo3 series | Bigetron Alpha | |||||||||||||
0 | ||||||||||||||
0 | Geek Fam | |||||||||||||
November 29, 2021 Bo3 series | Geek Fam | |||||||||||||
2 | ||||||||||||||
2 | Blacklist International | |||||||||||||
November 28, 2021 Bo3 series | RSG Singapore | |||||||||||||
1 | Blacklist International | |||||||||||||
2 | ||||||||||||||
November 28, 2021 Bo3 series | Aura Fire | |||||||||||||
0 | ||||||||||||||
1 | Aura PH | |||||||||||||
November 29, 2021 Bo3 series | Aura PH | |||||||||||||
2 | ||||||||||||||
2 | ONIC Philippines | |||||||||||||
November 27, 2021 Bo3 series | ONIC Esports | |||||||||||||
1 | ONIC Philippines | |||||||||||||
2 | ||||||||||||||
November 28, 2021 Bo3 series | Orange Louvre Esports | |||||||||||||
1 | ||||||||||||||
1 | EVOS SG | |||||||||||||
November 29, 2021 Bo3 series | EVOS SG | |||||||||||||
2 | ||||||||||||||
1 | Ronin Esports | |||||||||||||
November 27, 2021 Bo3 series | Execration | |||||||||||||
1 | Ronin Esports | |||||||||||||
talk 01:56, 30 December 2021 (UTC)
- Try:
Round of 16 | Quarter-finals | Semi-finals | Final | |||||||||||
Date_A | ||||||||||||||
Team_A1 | 1 | |||||||||||||
Date_I | ||||||||||||||
Team_A2 | 2 | |||||||||||||
Team_I1 | 17 | |||||||||||||
Date_B | ||||||||||||||
Team_I2 | 18 | |||||||||||||
Team_B1 | 3 | |||||||||||||
Date_M | ||||||||||||||
Team_B2 | 4 | |||||||||||||
Team_M1 | 25 | |||||||||||||
Date_C | ||||||||||||||
Team_M2 | 26 | |||||||||||||
Team_C1 | 5 | |||||||||||||
Date_J | ||||||||||||||
Team_C2 | 6 | |||||||||||||
Team_J1 | 19 | |||||||||||||
Date_D | ||||||||||||||
Team_J2 | 20 | |||||||||||||
Team_D1 | 7 | |||||||||||||
Date_O | ||||||||||||||
Team_D2 | 8 | |||||||||||||
Team_O1 | 29 | |||||||||||||
Date_E | ||||||||||||||
Team_O2 | 30 | |||||||||||||
Team_E1 | 9 | |||||||||||||
Date_K | ||||||||||||||
Team_E2 | 10 | |||||||||||||
Team_K1 | 21 | |||||||||||||
Date_F | ||||||||||||||
Team_K2 | 22 | |||||||||||||
Team_F1 | 11 | |||||||||||||
Date_N | ||||||||||||||
Team_F2 | 12 | |||||||||||||
Team_N1 | 27 | |||||||||||||
Date_G | ||||||||||||||
Team_N2 | 28 | |||||||||||||
Team_G1 | 13 | |||||||||||||
Date_L | ||||||||||||||
Team_G2 | 14 | |||||||||||||
Team_L1 | 23 | |||||||||||||
Date_H | ||||||||||||||
Team_L2 | 24 | |||||||||||||
Team_H1 | 15 | |||||||||||||
Team_H2 | 16 | |||||||||||||
Deancarmeli (talk) 07:31, 30 December 2021 (UTC)
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)
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)
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):
Semifinaler | Bronsmatch | |||||
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)
It is requested that an edit be made to the template-protected module at Module:RoundN. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Added edit request Inno (talk) 18:34, 25 May 2022 (UTC)