Content deleted Content added
S.A. Julio (talk | contribs) →omit label for consolation matches: new section |
|||
(97 intermediate revisions by 29 users not shown) | |||
Line 1:
{{Permanently protected}}
{{oldtfdfull|date= 10 February 2021 |result=no consensus |disc=Module:RoundN}}
==Check request==
*{{ping|Mr Stradivarius|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 {{t|Round16}} and {{t|Round8}} are nearly identical, I think; I have not attempted to emulate the spacing of {{t|Round2}} and {{t|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? —[[User:Codehydro|<b style="color:#aaaaaa; font-family:Unicode; font-size:12pt;">Code</b>]][[User talk:Codehydro|<b style="color:#5577aa">Hydro</b>]] 02:26, 2 January 2015 (UTC)
Line 77 ⟶ 80:
From this:
{{2TeamBracket
| RD1=[[#Preliminary Round|Preliminary Round]]
| team-width=160px
Line 84 ⟶ 87:
| RD1-score1-1= 3
| RD1-score1-2= 3
| RD1-seed2=
| RD1-team2= [[Ottawa Fury FC]]
| RD1-score2-1= 1
| RD1-score2-2= 1
}}
{{4TeamBracket
| RD1=[[#Semifinals|Semifinals]]
| RD2=[[#Final|Final]]
Line 100 ⟶ 101:
| RD1-score1-1=1
| RD1-score1-2=2
| RD1-seed2= 4
| RD1-team2= [[FC Edmonton]]
| RD1-score2-1=1
| RD1-score2-2=1
| RD1-seed3= 2
| RD1-team3= [[Toronto FC]]
| RD1-score3-1=0
| RD1-score3-2=3
| RD1-seed4= 3
| RD1-team4= '''[[Montreal Impact]]'''
| RD1-score4-1=1
| RD1-score4-2=2
| RD2-seed1= 1
| RD2-team1= '''[[Vancouver Whitecaps FC]]'''
| RD2-score1-1=2
| RD2-score1-2=2
| RD2-seed2= 3
| RD2-team2= [[Montreal Impact]]
| RD2-score2-1=2
| RD2-score2-2=0
}}
Line 935 ⟶ 930:
Width cannot be specified with em value in the <code>team-width</code> and <code>score-width</code> 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. --[[User:Nekohan|Nekohan]] ([[User talk:Nekohan|talk]]) 17:07, 10 June 2020 (UTC)
* {{re|Nekohan}} This limitation is inherited from the {{oldid|
== "Template:RoundN" listed at [[Wikipedia:Redirects for discussion|Redirects for discussion]] ==
[[File:Information.svg|30px]]
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. <!-- from Template:RFDNote --> [[User:Hhkohh|Hhkohh]] ([[User talk: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? [[User:Froztbyte|Froztbyte]] ([[User talk:Froztbyte|talk]]) 13:21, 21 February 2021 (UTC)
== Change to |color field ==
A suggestion for the <code>|color</code> field:
Use it like <code>bold_winner=</code> to color the winner, instead of in a predetermined order.
{{Col-begin}}
{{Col-2}}
<big>'''Current state:''' <code>|color=no</code></big>
{{#invoke:RoundN|main|columns=1
|color=no
|3rdplace=yes
|7|Gold medalist|3|Silver medalist|2
|8|Bronze medalist|1||0
}}
{{Col-2}}
<big>'''Current state:''' <code>|color=yes</code></big>
{{#invoke:RoundN|main|columns=1
|color=yes
|3rdplace=yes
|7|Gold medalist|3|Silver medalist|2
|8|Bronze medalist|1||0
}}
{{Col-end}}
<hr>
{{Col-begin}}
{{Col-5}}
<big>'''Wanted state:''' <code>|color=no</code></big>
{{#invoke:RoundN|main|columns=1
|color=no
|3rdplace=yes
|7|Gold medalist|3|Silver medalist|2
|8|Bronze medalist|1||0
}}
{{Col-5}}
<big>'''Wanted state:''' <code>|color=yes</code></big>
{| class="wikitable" style="width:200px; border: none; background: none; font-size:90%;"
|-
| colspan=2 align=center bgcolor=#f2f2f2| Final
|-
| style="border: none; background: none;"|
|-
| style="border: none; background: none;"| 7
|- bgcolor=gold
| style="width:170px;"| Gold medalist ||style="width:30px" align=center| 3
|- bgcolor=silver
| style="width:170px;"|Silver medalist ||align=center| 2
|-
| style="border: none; background: none;"|
|-
| colspan=2 align=center bgcolor=#f2f2f2| Third place
|-
| style="border: none; background: none;"| 8
|- bgcolor=#C96
| style="width:170px;"| Bronze medalist ||style="width:30px" align=center| 1
|-
| style="width:170px;"| ||align=center| 0
|}
{{Col-5}}
<big>'''Wanted state:''' <code>|color=yes</code></big>
{| class="wikitable" style="width:200px; border: none; background: none; font-size:90%;"
|-
| colspan=2 align=center bgcolor=#f2f2f2| Final
|-
| style="border: none; background: none;"|
|-
| style="border: none; background: none;"| 7
|- bgcolor=silver
| style="width:170px;"|Silver medalist ||align=center| 2
|- bgcolor=gold
| style="width:170px;"| Gold medalist ||style="width:30px" align=center| 3
|-
| style="border: none; background: none;"|
|-
| colspan=2 align=center bgcolor=#f2f2f2| Third place
|-
| style="border: none; background: none;"| 8
|- bgcolor=#C96
| style="width:170px;"| Bronze medalist ||style="width:30px" align=center| 1
|-
| style="width:170px;"| ||align=center| 0
|}
{{Col-5}}
<big>'''Wanted state:''' <code>|color=yes</code></big>
{| class="wikitable" style="width:200px; border: none; background: none; font-size:90%;"
|-
| colspan=2 align=center bgcolor=#f2f2f2| Final
|-
| style="border: none; background: none;"|
|-
| style="border: none; background: none;"| 7
|- bgcolor=gold
| style="width:170px;"| Gold medalist ||style="width:30px" align=center| 3
|- bgcolor=silver
| style="width:170px;"|Silver medalist ||align=center| 2
|-
| style="border: none; background: none;"|
|-
| colspan=2 align=center bgcolor=#f2f2f2| Third place
|-
| style="border: none; background: none;"| 8
|-
| style="width:170px;"| ||align=center| 0
|- bgcolor=#C96
| style="width:170px;"| Bronze medalist ||style="width:30px" align=center| 1
|}
{{Col-5}}
<big>'''Wanted state:''' <code>|color=yes</code></big>
{| class="wikitable" style="width:200px; border: none; background: none; font-size:90%;"
|-
| colspan=2 align=center bgcolor=#f2f2f2| Final
|-
| style="border: none; background: none;"|
|-
| style="border: none; background: none;"| 7
|- bgcolor=silver
| style="width:170px;"| Silver medalist ||align=center| 2
|- bgcolor=gold
| style="width:170px;"| Gold medalist ||style="width:30px" align=center| 3
|-
| style="border: none; background: none;"|
|-
| colspan=2 align=center bgcolor=#f2f2f2| Third place
|-
| style="border: none; background: none;"| 8
|-
| style="width:170px;"| ||align=center| 0
|- bgcolor=#C96
| style="width:170px;"| Bronze medalist ||style="width:30px" align=center| 1
|}
{{Col-end}}
Thanks. [[User:Deancarmeli|Deancarmeli]] ([[User talk:Deancarmeli|talk]]) 10:16, 29 June 2021 (UTC)
Edited. [[User:Deancarmeli|Deancarmeli]] ([[User talk: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:
{{#invoke:RoundN|main|columns=4
|bold_winner = high
|team-width = 200
|short_brackets=yes
|flex_tree=yes
|final_RDs_excluded=1
|omit_blanks=yes
|skipmatch = 1-7;9-15;17-19;21-23;25;27
||{{flagicon|THA}} [[Thepchaiya Un-Nooh]]| 10| {{flagicon|SCO}} [[Scott Donaldson]]| 6
||{{flagicon|CHN}} [[Zhang Anda]]| 10| {{flagicon|THA}} [[Passakorn Suwannawat]]| 6
||{{flagicon|NIR}} [[Gerard Greene]]| 4| {{flagicon|THA}} [[Thepchaiya Un-Nooh]]| 10
||{{flagicon|CHN}} [[Cao Yupeng]]| 7| {{flagicon|CHN}} [[Zhang Anda]]| 10
||{{flagicon|ENG}} [[Ben Woollaston]]| 10| {{flagicon|THA}} [[Thepchaiya Un-Nooh]]| 3
||{{flagicon|WAL}} [[Michael White (snooker player)|Michael White]]| 10| {{flagicon|CHN}} [[Zhang Anda]]| 5
||{{flagicon|WAL}} [[Ryan Day (snooker player)|Ryan Day]]| 9| {{flagicon|ENG}} [[Ben Woollaston]]| 10
||{{flagicon|ENG}} [[Andrew Higginson]]| 4| {{flagicon|WAL}} [[Michael White (snooker player)|Michael White]]| 10
}}
Any ideas? [[User:Nigej|Nigej]] ([[User talk:Nigej|talk]]) 10:16, 16 December 2021 (UTC)
----
{{col-begin}}
{{col-2}}
:That's the best I could do, it only works for <code><nowiki>|columns=2</nowiki></code> and it still looks bad. [[User:Deancarmeli|Deancarmeli]] ([[User talk:Deancarmeli|talk]]) 11:00, 16 December 2021 (UTC)
{{col-2}}
{{#invoke:RoundN|main|columns=2
| bold_winner = high
| 3rdplace = no
| team-width = 90
| flex_tree = no
| omit_blanks = yes
| branch_upwards = yes
| skipmatch = 2
||A|2|B|1
||A|3|C|4
}}
{{col-end}}
== 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?
{{#invoke:RoundN|main|46=0|32=November 28, 2021 {{Abbr|Bo3|Best-of-3}} series|33={{flagicon|MAS}} Orange Louvre Esports|34=1|35={{flagicon|SGP}} [[EVOS Esports|EVOS SG]]|36=2|37=November 27, 2021 {{Abbr|Bo3|Best-of-3}} series|38={{flagicon|PHI}} Execration|39=1|40={{flagicon|MYA}} Ronin Esports|41=2|42=<!-- Round 2 -->
November 29, 2021 {{Abbr|Bo3|Best-of-3}} series|43={{flagicon|INA}} Alter-Ego|44=2|45={{flagicon|INA}} Genflix Aerowolf|47=November 29, 2021 {{Abbr|Bo3|Best-of-3}} series|30={{flagicon|PHI}} [[ONIC Philippines]]|48={{flagicon|INA}} Geek Fam|49=2|50={{flagicon|PHI}} [[Blacklist International]]|51=0|52=November 29, 2021 {{Abbr|Bo3|Best-of-3}} series|53={{flagicon|PHI}} Aura PH|54=2|55={{flagicon|PHI}} [[ONIC Philippines]]|56=1|57=November 29, 2021 {{Abbr|Bo3|Best-of-3}} series|58={{flagicon|SGP}} EVOS SG|59=1|60={{flagicon|MYA}} Ronin Esports|61=2|31=2|29=1|columns=4|11=2|widescore=yes|bold_winner=high|3rdplace=no|semifinals=no|finals=no
<!-- Date-Place/Team 1/Score 1/Team 2/Score 2 -->|November 28, 2021 {{Abbr|Bo3|Best-of-3}} series|{{flagicon|INA}} [[EVOS Esports|EVOS Legends]]|0|{{flagicon|INA}} Alter-Ego|2|November 27, 2021 {{Abbr|Bo3|Best-of-3}} series|{{flagicon|PHI}} [[Smart Omega|Omega Esports]]|0|{{flagicon|INA}} Genflix Aerowolf|12=November 27, 2021 {{Abbr|Bo3|Best-of-3}} series|28={{flagicon|INA}} ONIC Esports|21=2|27=November 27, 2021 {{Abbr|Bo3|Best-of-3}} series|26=2|25={{flagicon|PHI}} Aura PH|24=1|23={{flagicon|INA}} Aura Fire|22=November 28, 2021 {{Abbr|Bo3|Best-of-3}} series|20={{flagicon|PHI}} [[Blacklist International]]|13={{flagicon|INA}} Bigetron Alpha|19=1|18={{flagicon|SGP}} RSG Singapore|17=November 28, 2021 {{Abbr|Bo3|Best-of-3}} series|16=2|15={{flagicon|INA}} Geek Fam|14=0|62=}} [[User talk:WIZ*ONEI|talk]] 01:56, 30 December 2021 (UTC)
: Try:
{{#invoke:RoundN|N16
| 3rdplace = no
| bold_winner = high
| color = no
| widescore = no
| flex_tree = no
<!-- Round of 16 -->
|Date_A|Team_A1|1|Team_A2|2
|Date_B|Team_B1|3|Team_B2|4
|Date_C|Team_C1|5|Team_C2|6
|Date_D|Team_D1|7|Team_D2|8
|Date_E|Team_E1|9|Team_E2|10
|Date_F|Team_F1|11|Team_F2|12
|Date_G|Team_G1|13|Team_G2|14
|Date_H|Team_H1|15|Team_H2|16
<!-- Quarter finales -->
|Date_I|Team_I1|17|Team_I2|18
|Date_J|Team_J1|19|Team_J2|20
|Date_K|Team_K1|21|Team_K2|22
|Date_L|Team_L1|23|Team_L2|24
<!-- Semi finals -->
|Date_M|Team_M1|25|Team_M2|26
|Date_N|Team_N1|27|Team_N2|28
<!-- Final -->
|Date_O|Team_O1|29|Team_O2|30
}}
[[User:Deancarmeli|Deancarmeli]] ([[User talk: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?
[[User:Homaisyou100|Homaisyou100]] ([[User talk:Homaisyou100|talk]]) 14:44, 11 January 2022 (UTC)
== Orphan function ==
It appears the orphan function is not working for the [[Ice hockey at the 2022 Winter Olympics – Men's tournament#Bracket|2022 men's Olympic ice hockey bracket]]. Can someone offer guidance to help get it fixed? [[User:Taxman1913|Taxman1913]] ([[User talk:Taxman1913|talk]]) 07:54, 16 February 2022 (UTC)
== Remove annoying thicker line ==
{{Edit template-protected|answered=yes}}
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
<!-- semifinaler -->
|node_function{orphan}|{{RDseed|B1}}{{beachsoccer|BRA}}|7|{{RDseed|A2}}{{beachsoccer|ARG}}|1
|node_function{orphan} |{{RDseed|A1}}{{beachsoccer|PAR}} {{aet}}|5|{{RDseed|B2}}{{beachsoccer|ECU}}|3
<!--Bronsmatch-->
||{{RDseed|A2}}{{beachsoccer|ARG}}|4 (0)|{{RDseed|B2}}{{beachsoccer|ECU}} {{pen}}|4 (1)
}}
In the Swedish Wiki I've adjusted the code to correct this. See how it looks like in [[:sv:Kvalspelet_till_världsmästerskapet_i_strandfotboll_2017#Omgång_2_5|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? [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 04:44, 22 May 2022 (UTC)
Added edit request [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 18:34, 25 May 2022 (UTC)
: [[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done:'''<!-- Template:ETp --> made your edit to the [[Module:RoundN/sandbox|sandbox]], and it didn't appear to make a difference, at least not in my browser:
:: <code><nowiki>{{#invoke:RoundN/sandbox|...}}</nowiki></code>
{{#invoke:RoundN/sandbox|N4|style=white-space:nowrap|omit_blanks = yes|RD1=Semifinaler|RD2=Bronsmatch|flex_tree=yes|bold_winner=high|skipmatch=|3rdplace=no
<!-- semifinaler -->
|node_function{orphan}|{{RDseed|B1}}{{beachsoccer|BRA}}|7|{{RDseed|A2}}{{beachsoccer|ARG}}|1
|node_function{orphan} |{{RDseed|A1}}{{beachsoccer|PAR}} {{aet}}|5|{{RDseed|B2}}{{beachsoccer|ECU}}|3
<!--Bronsmatch-->
||{{RDseed|A2}}{{beachsoccer|ARG}}|4 (0)|{{RDseed|B2}}{{beachsoccer|ECU}} {{pen}}|4 (1)
}}
: <s>Also not crazy about the way the a.e.t. link overlaps with the number 5 in the Paraguay box.</s> Never mind, that's just my browser's font-size setting. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' - [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>09:09, 27 May 2022 (UTC)</small>
:: 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. [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 14:50, 27 May 2022 (UTC)
:::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. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' - [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>16:17, 27 May 2022 (UTC)</small>
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 [[:sv:Kvalspelet_till_världsmästerskapet_i_strandfotboll_2017#Omgång_2_5|link again]]. [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 04:38, 28 May 2022 (UTC)
:{{done}} – seems pragmatic enough. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' - [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>09:09, 28 May 2022 (UTC)</small>
::Great Ellsworth, thanks :) [[User:Inno|Inno]] ([[User talk:Inno|talk]]) 10:24, 28 May 2022 (UTC)
:::''my pleasure!'' '''''[[User:Paine Ellsworth|<span style="font-size:100%;color:darkblue;font-family:Segoe Script">Paine</span>]]''''' <small>17:36, 28 May 2022 (UTC)</small>
== Four-way final ==
Is it possible to do this using the RoundN module?
{| border="0" cellpadding="0" cellspacing="0" style="font-size: 90%; margin:1em 2em 1em 1em;"
|
| colspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f2f2f2" |Qualifiers<br />''[[AEW Dynamite|Dynamite]]''<br />{{small|(June 8, 2022)}}
| colspan="2" |
| colspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f2f2f2" |Final<br />[[AEW×NJPW: Forbidden Door|Forbidden Door]]<br />{{small|(June 26, 2022)}}
|
|-
| width="1" |
| width="175" |
| width="50" |
| width="10" |
| width="10" |
| width="175" |
| width="50" |
|
|-
| height="14" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|AUS}} [[Buddy Matthews]]</div>
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |10:32
| style="border-width:0 0 2px 0; border-style:solid;border-color:black;" |
|-
| height="7" |
| rowspan="2" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|GBR}} '''[[Pac (wrestler)|Pac]]'''</div>
| rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |Pin
| rowspan="6" style="border-width:2px 2px 2px 0; border-style:solid;border-color:black;" |
|-
| height="7" |
| rowspan="7" style="border-width:0 0 2px 0; border-style:solid;border-color:black;" |
|
|
|
|
|-
| height="7" |
| colspan="2" rowspan="2" align="center" |
|
|
|
|
|-
| height="7" |
|
|
|
|
|-
| height="7" |
| rowspan="2" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|CAN}} [[Ethan Page]]</div>
| rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|-
| height="7" |
|
|-
| height="14" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|BUL}} [[Miro (wrestler)|Miro]]</div>
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| rowspan="2" style="border-width:2px 2px 0 0; border-style:solid;border-color:black;" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|GBR}} Pac</div>
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|-
| height="14" |
| colspan="2" rowspan="2" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|-
| height="14" |
| rowspan="2" style="border-width:0 2px 2px 0; border-style:solid;border-color:black;" |
| rowspan="7" style="border-width:2px 0 0 0; border-style:solid;border-color:black;" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|-
|
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|MEX}} [[Penta Oscuro]]</div>
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|-
|
| rowspan="2" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">{{flagicon|NED}} [[Malakai Black]]</div>
| rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| rowspan="6" style="border-width:2px 2px 2px 0; border-style:solid;border-color:black;" |
|
|
|
|
|-
|
|
|-
|
| colspan="3" rowspan="2" |
|
|-
|
|
|
|
|
|-
|
| rowspan="2" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">''[[TBA]]''</div>
| rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
|
|
|
|
|-
| height="14" |
|-
| height="7" |
| style="border:1px solid #aaa;" bgcolor="#f9f9f9" |<div style="padding: 0 2px">''[[TBA]]''</div>
| align="center" style="border:1px solid #aaa;" bgcolor="#f9f9f9" |
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;" |
|} '''''[[User:MordecaiXLII|<span style="color: #009B77">MordecaiXLII</span>]]''''' ([[User talk:MordecaiXLII|talk]]) 13:45, 13 June 2022 (UTC)
== Template-protected edit request on 21 June 2022 — Enabling automatic winner background color ==
{{edit template-protected|Module:RoundN|answered=yes}}
The proposed change comes to address the '''''color''''' parameter functionality:
# When set to ''yes'' it will work exactly as before. no change.
# 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:'''
<pre style="overflow: auto;">
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)}
</pre>
'''Wanted state:'''
<pre style="overflow: auto;">
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)}
</pre> [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 16:20, 21 June 2022 (UTC)
:{{to|CLalgo}} curious as to how and where this has been tested? '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>05:46, 27 June 2022 (UTC)</small>
::{{re|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'''''. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 10:53, 27 June 2022 (UTC)
:::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 [[Module:RoundN/sandbox|sandbox module]], and then placed your userpage sandbox code into [[User:Paine Ellsworth/sandbox|my user sandbox]] (using {{code|<nowiki>{{#invoke:RoundN/sandbox...</nowiki>}}) to compare it with [[User:CLalgo/sandbox/RoundN test|your user sandbox]] (using {{code|<nowiki>{{#invoke:RoundN...</nowiki>}} 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? '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>11:41, 27 June 2022 (UTC)</small>
::::{{re|Paine Ellsworth}} Currently, when one sets <code><nowiki>|color = yes</nowiki></code>, 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. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 11:57, 27 June 2022 (UTC)
:::::Okay, sounds very good so {{done|done}}, and thank you for your patience and your explanation''!'' '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>12:27, 27 June 2022 (UTC)</small>
:::::: Thank you, and sorry that the change wasn't clear enough to begin with. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 12:45, 27 June 2022 (UTC)
== Template-protected edit request on 28 June 2022 — Enabling repechage color ==
{{edit template-protected|Module:RoundN|answered=yes}}
The proposed change comes to address the color parameter functionality, in ''[[Repechage]]'' cases were the winner of the brackets is awarded a bronze medal:
# '''''color_repechage''''' — a new parameter, taking <code><nowiki>yes</nowiki></code> and <code><nowiki>no</nowiki></code> values.
# When set to <code><nowiki>yes</nowiki></code>, 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.
# When set to <code><nowiki>yes</nowiki></code> while '''''bold_winner''''' is also set to <code><nowiki>yes</nowiki></code>, the cells of the winners of each match at the final stage of the brackets, which is usually 1, are colored bronze.
----
{{cot|Proposed changes}}
<big>'''Changes to be done:'''</big><br>
<big>'''Lines 349–350:'''</big><br>
* '''Current state:'''
<pre style="overflow: auto;">
'color',
'3rdplace',
</pre>
* '''Wanted state:'''
<pre style="overflow: auto;">
'color',
'color_repechage',
'3rdplace',
</pre>
----
<big>'''Lines 534–535:'''</big><br>
* '''Current state:'''
<pre style="overflow: auto;">
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
</pre>
* '''Wanted state:'''
<pre style="overflow: auto;">
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
</pre>
----
<big>'''Lines 652–665:'''</big><br>
* '''Current state:'''
<pre style="overflow: auto;">
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
</pre>
* '''Wanted state:'''
<pre style="overflow: auto;">
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
</pre>
{{cob}}
----
– [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 09:54, 28 June 2022 (UTC)
:{{done}}, and please update the /doc page as needed. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>19:56, 28 June 2022 (UTC)</small>
== Template-protected edit request on 30 June 2022 — Fixed bug: Empty finals color ==
{{edit template-protected|Module:RoundN|answered=yes}}
Currently, when the <code><nowiki>color</nowiki></code> parameter is used, the final match is colored even when empty. With the proposed change, when <code><nowiki>color</nowiki></code> will be used with <code><nowiki>bold_winner</nowiki></code>, the coloring will only be done when the matchboxes are no longer empty.
<big>'''Lines 659–663:'''</big><br>
* '''Current state:'''
<pre style="overflow: auto;">
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
</pre>
* '''Wanted state:'''
<pre style="overflow: auto;">
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
</pre> [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 10:41, 30 June 2022 (UTC)
: {{ping|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) [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 15:26, 8 July 2022 (UTC)
:: {{re|Pppery}} this is an older version of [[Judo at the 2022 Mediterranean Games – Women's 78 kg]]: [https://en.wikipedia.org/w/index.php?title=Judo_at_the_2022_Mediterranean_Games_%E2%80%93_Women%27s_78_kg&oldid=1095778047]. Is that good enough? [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 19:09, 8 July 2022 (UTC)
::: Yep. {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 19:12, 8 July 2022 (UTC)
== Medal colors for gold/silver/bronze ==
Hi there, the parameters <code>color</code> and <code>color_repechage</code> 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 [[2022 European Judo Championships – Women's +78 kg|this one]]) is fairly low. If they need to be adjusted, some options (mentioned [https://en.wikipedia.org/w/index.php?title=User_talk:CLalgo&oldid=1095848836 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"? [[User:Simeon|Simeon]] ([[User talk:Simeon|talk]]) 19:51, 30 June 2022 (UTC)
: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. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 20:25, 30 June 2022 (UTC)
::{{re|Simeon}} Here is an example of the current version and an alternative with lighter colors, and their contrasts:
::{| class=wikitable style="border: none; background: none;"
|-
|+ style="font-size:140%"| Current version
|-
! rowspan=2 colspan=3| Examples
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AAA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| Ref.
|-
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
|- style="color:#0645AD"
| bgcolor=gold| '''Unvisited''' links
| bgcolor=silver| '''Unvisited''' links
| bgcolor=#C96| '''Unvisited''' links
| {{ya}} || {{ya}} || {{na}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=FFD700]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=C0C0C0]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=CC9966]
|- style="color:#0B0080"
| bgcolor=gold| '''Visited''' links
| bgcolor=silver| '''Visited''' links
| bgcolor=#C96| '''Visited''' links
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=FFD700]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=C0C0C0]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=CC9966]
|- style="color:#BA0000"
| bgcolor=gold| '''Unvisited''' red-links
| bgcolor=silver| '''Unvisited''' red-links
| bgcolor=#C96| '''Unvisited''' red-links
| {{ya}} || {{na}} || {{na}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=FFD700]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=C0C0C0]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=CC9966]
|- style="color:#A55858"
| bgcolor=gold| '''Visited''' red-links
| bgcolor=silver| '''Visited''' red-links
| bgcolor=#C96| '''Visited''' red-links
| {{na}} || {{na}} || {{na}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=FFD700]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=C0C0C0]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=CC9966]
|-
| bgcolor=gold| '''No''' link
| bgcolor=silver| '''No''' link
| bgcolor=#C96| '''No''' link
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=FFD700]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=C0C0C0]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=CC9966]
|}
::{| class=wikitable style="border: none; background: none;"
|-
|+ style="font-size:140%"| Light-color version
|-
! rowspan=2 colspan=3| Examples
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AAA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| Ref.
|-
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
|- style="color:#0645AD"
| bgcolor=F7F6A8| '''Unvisited''' links
| bgcolor=DCE5E5| '''Unvisited''' links
| bgcolor=FFDAB9| '''Unvisited''' links
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=F7F6A8]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=DCE5E5]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=FFDAB9]
|- style="color:#0B0080"
| bgcolor=F7F6A8| '''Visited''' links
| bgcolor=DCE5E5| '''Visited''' links
| bgcolor=FFDAB9| '''Visited''' links
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=F7F6A8]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=DCE5E5]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=FFDAB9]
|- style="color:#BA0000"
| bgcolor=F7F6A8| '''Unvisited''' red-links
| bgcolor=DCE5E5| '''Unvisited''' red-links
| bgcolor=FFDAB9| '''Unvisited''' red-links
| {{ya}} || {{ya}} || {{ya}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=F7F6A8]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=DCE5E5]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=FFDAB9]
|- style="color:#A55858"
| bgcolor=F7F6A8| '''Visited''' red-links
| bgcolor=DCE5E5| '''Visited''' red-links
| bgcolor=FFDAB9| '''Visited''' red-links
| {{ya}} || {{na}} || {{na}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=F7F6A8]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=DCE5E5]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=FFDAB9]
|-
| bgcolor=F7F6A8| '''No''' link
| bgcolor=DCE5E5| '''No''' link
| bgcolor=FFDAB9| '''No''' link
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=F7F6A8]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=DCE5E5]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=FFDAB9]
|}
::[[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 20:58, 3 July 2022 (UTC)
:::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. [[User:Simeon|Simeon]] ([[User talk:Simeon|talk]]) 19:17, 4 July 2022 (UTC)
::::I agree, that's why I haven't pushed these lighter colors. I'll try other silver and bronze shades to achieve AA compliance. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 19:32, 4 July 2022 (UTC)
:::::Would Light Yellow be more compliant? I.e.
:::::{| class="wikitable plainrowheaders" style="text-align:center"
|+ example
|-
! scope=row| Example 1
| style="background-color:lightyellow"| example
|} <span style="color:#01260d">>></span> [[User:Lil-unique1|<span style="color:#01260d">'''Lil-unique1'''</span>]] <span style="color:#01260d">'''('''</span>[[User talk:Lil-unique1|<span style="color:#08752d">'''talk'''</span>]]<span style="color:#01260d">''')'''</span> — 13:56, 18 July 2022 (UTC)
:::::: Actually, the light gold is the the only one of the three that is AA Compliant. [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 06:07, 19 July 2022 (UTC)
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:
{| class=wikitable style="border: none; background: none;"
|-
|+ style="font-size:140%"| AA compliant proposal version
|-
! rowspan=2 colspan=3| Examples
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| AAA Compliant
| rowspan=7 style="width:15px; border: none; background: none;"|
! colspan=3| Ref.
|-
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
! {{Gold1}} !! {{Silver2}} !! {{Bronze3}}
|- style="color:#0645AD"
| bgcolor=F9F9CD| '''Unvisited''' links
| bgcolor=F1F4F4| '''Unvisited''' links
| bgcolor=FFEFDB| '''Unvisited''' links
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=F9F9CD]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=F1F4F4]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0645AD,bg=FFEFDB]
|- style="color:#0B0080"
| bgcolor=F9F9CD| '''Visited''' links
| bgcolor=F1F4F4| '''Visited''' links
| bgcolor=FFEFDB| '''Visited''' links
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=F9F9CD]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=F1F4F4]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=0B0080,bg=FFEFDB]
|- style="color:#BA0000"
| bgcolor=F9F9CD| '''Unvisited''' red-links
| bgcolor=F1F4F4| '''Unvisited''' red-links
| bgcolor=FFEFDB| '''Unvisited''' red-links
| {{ya}} || {{ya}} || {{ya}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=F9F9CD]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=F1F4F4]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=BA0000,bg=FFEFDB]
|- style="color:#A55858"
| bgcolor=F9F9CD| '''Visited''' red-links
| bgcolor=F1F4F4| '''Visited''' red-links
| bgcolor=FFEFDB| '''Visited''' red-links
| {{ya}} || {{ya}} || {{ya}}
| {{na}} || {{na}} || {{na}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=F9F9CD]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=F1F4F4]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=A55858,bg=FFEFDB]
|-
| bgcolor=F9F9CD| '''No''' link
| bgcolor=F1F4F4| '''No''' link
| bgcolor=FFEFDB| '''No''' link
| {{ya}} || {{ya}} || {{ya}}
| {{ya}} || {{ya}} || {{ya}}
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=F9F9CD]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=F1F4F4]
| [https://snook.ca/technical/colour_contrast/colour.html#fg=000000,bg=FFEFDB]
|}
Frankly, I'd be fine with removing the color altogether, but I understand if people want them. Pinging previous participants {{ping|Simeon|CLalgo|Lil-unique1}}, as this discussion has been stale for a few months. – [[User:Pbrks|Pbrks]] <sup><span style="font-variant:small-caps">([[User talk:Pbrks#top|t]] • [[Special:Contribs/Pbrks|c]])</span></sup> 14:46, 9 September 2022 (UTC)
:I have no preference on colour so long as we're compliant. <span style="color:#01260d">>></span> [[User:Lil-unique1|<span style="color:#01260d">'''Lil-unique1'''</span>]] <span style="color:#01260d">'''('''</span>[[User talk:Lil-unique1|<span style="color:#08752d">'''talk'''</span>]]<span style="color:#01260d">''')'''</span> — 15:26, 9 September 2022 (UTC)
::Are those the darkest shades still AAA compliant for visited an AA compliant for unvisited? [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 09:03, 10 September 2022 (UTC)
:::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 {{color box|FFEA70|#FFEA70}} If not, then no, since we cannot get AAA compliance for unvisited redlinks. – [[User:Pbrks|Pbrks]] <sup><span style="font-variant:small-caps">([[User talk:Pbrks#top|t]] • [[Special:Contribs/Pbrks|c]])</span></sup> 13:49, 10 September 2022 (UTC)
::::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. [[User:Simeon|Simeon]] ([[User talk:Simeon|talk]]) 17:14, 10 September 2022 (UTC)
:::::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. – [[User:Pbrks|Pbrks]] <sup><span style="font-variant:small-caps">([[User talk:Pbrks#top|t]] • [[Special:Contribs/Pbrks|c]])</span></sup> 18:32, 10 September 2022 (UTC)
== Templatestyles ==
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. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 14:30, 15 July 2022 (UTC)
: {{re|TheDJ}} What is [https://en.wikipedia.org/w/index.php?title=Module%3ARoundN&type=revision&diff=1098372531&oldid=1097114516 this undocumented edit] you've made to this module? [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 16:03, 15 July 2022 (UTC)
::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_qualification]] —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 17:16, 15 July 2022 (UTC)
::: {{re|TheDJ}} Was anything changed in terms of module functionality? Any added features\parameters? [[User:CLalgo|CLalgo]] ([[User talk:CLalgo|talk]]) 12:11, 16 July 2022 (UTC)
::::no —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 08:03, 18 July 2022 (UTC)
== node_function{orphan} ==
Maybe I missed something, but <code>node_function{orphan}</code> doesn't seem to work as it should. Look in [[User:DenSportgladeSkåningen/sandbox|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. [[User:DenSportgladeSkåningen|DenSportgladeSkåningen]] ([[User talk:DenSportgladeSkåningen|talk]]) 07:01, 18 October 2022 (UTC)
: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 <code>--col.t and col.t2 control whether lines are drawn</code> but the code is really hard (for me) to understand! [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 14:58, 23 February 2024 (UTC)
== Automatic VTE links ==
any objections to adding automatic VTE links? with [[Module:Sports table]], you don't need to add the {{para|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 {{para|template}}, but would not need the {{para|name}}. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:12, 5 December 2022 (UTC)
: [[User:Frietjes|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! [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 16:04, 21 December 2022 (UTC)
:: okay, now removed. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:08, 21 December 2022 (UTC)
== Unbold aet and pen when using bold_winner ==
per [[Module_talk:Team_bracket#Option_to_not_bold_text_in_parentheses?|this discussion]] with [[User:S.A. Julio|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#Bracket|2022 FIFA World Cup knockout stage]] for a live example. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:22, 21 December 2022 (UTC)
:[[User:Frietjes|Frietjes]]: Please see [https://en.wikipedia.org/wiki/Special:LintErrors/misnested-tag?namespace=0 Misnested Tags in Article namespace] and note the many articles with misnested tags attributed directly to this module. Cheers! —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 00:51, 22 December 2022 (UTC)
:: okay, I changed it to a less aggressive pattern match. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:17, 22 December 2022 (UTC)
:::[[User:Frietjes|Frietjes]]: OK, the misnested tags are cleared, so, thanks! —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 22:53, 22 December 2022 (UTC)
== Edit request 25 February 2024 Fix node_function orphan bug ==
{{Edit template-protected|answered=yes}}
'''Description of suggested change:''' A fix for the longstanding <code>node_function{orphan}</code> 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: {{diff|diff=1210101008|oldid=1210100067}} [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 01:04, 25 February 2024 (UTC)
:{{Ping|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! [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 15:55, 2 March 2024 (UTC)
:[[User:Blaixx|Blaixx]] the bug is the connecting lines wrongly appearing, yes? [[User:SWinxy|SWinxy]] ([[User talk:SWinxy|talk]]) 23:00, 3 March 2024 (UTC)
::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. [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 04:46, 4 March 2024 (UTC)
:{{complete2}}. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'er there</sup>]] <small>13:57, 7 March 2024 (UTC)</small>
==Text overlapping issue==
It got worse readability when the template is implement to the [[2023 Copa Libertadores]]. Any idea?
{{#invoke:RoundN|main|columns=4
|style=font-size:90%; white-space:nowrap
|score-boxes=3|3rdplace=no|short_brackets=yes
|team-width=180|score-width=18
|RD1=[[#Round of 16|Round of 16]]
|RD2=[[#Quarter-finals|Quarter-finals]]
|RD3=[[#Semi-finals|Semi-finals]]
|RD4=[[#Final|Final]]
<!--Round of 16-->
||{{RDseed|11}}{{fbaicon|URU}} [[Club Nacional de Football|Nacional]]|1|1|'''2 (2)'''|{{RDseed|4}}{{fbaicon|ARG}} '''[[Boca Juniors]]''' {{pso}}|1|1|'''2 (3)'''
||{{RDseed|15}}{{fbaicon|COL}} [[Atlético Nacional]]|4|0|'''4'''|{{RDseed|3}}{{fbaicon|ARG}} '''[[Racing Club de Avellaneda|Racing]]'''|2|3|'''5'''
||{{RDseed|16}}{{fbaicon|COL}} '''[[Deportivo Pereira]]'''|1|1|'''2'''|{{RDseed|6}}{{fbaicon|ECU}} [[C.S.D. Independiente del Valle|Independiente del Valle]]|0|1|'''1'''
||{{RDseed|13}}{{fbaicon|BRA}} [[Clube Atlético Mineiro|Atlético Mineiro]]|0|0|'''0'''|{{RDseed|1}}{{fbaicon|BRA}} '''[[Sociedade Esportiva Palmeiras|Palmeiras]]'''|1|0|'''1'''
||{{RDseed|12}}{{fbaicon|ARG}} [[Argentinos Juniors]]|1|0|'''1'''|{{RDseed|8}}{{fbaicon|BRA}} '''[[Fluminense FC|Fluminense]]'''|1|2|'''3'''
||{{RDseed|10}}{{fbaicon|BRA}} [[CR Flamengo|Flamengo]]|1|1|'''2'''|{{RDseed|2}}{{fbaicon|PAR}} '''[[Club Olimpia|Olimpia]]'''|0|3|'''3'''
||{{RDseed|9}}{{fbaicon|BOL}} '''[[Club Bolívar|Bolívar]]''' {{pso}}|3|0|'''3 (5)'''|{{RDseed|5}}{{fbaicon|BRA}} [[Club Athletico Paranaense|Athletico Paranaense]]|1|2|'''3 (4)'''
||{{RDseed|14}}{{fbaicon|ARG}} [[Club Atlético River Plate|River Plate]]|2|1|'''3 (8)'''|{{RDseed|7}}{{fbaicon|BRA}} '''[[Sport Club Internacional|Internacional]]''' {{pso}}|1|2|'''3 (9)'''
<!--Quarter-finals-->
||{{RDseed|4}}{{fbaicon|ARG}} '''[[Boca Juniors]]''' {{pso}}|0|0|'''0 (4)'''|{{RDseed|3}}{{fbaicon|ARG}} [[Racing Club de Avellaneda|Racing]]|0|0|'''0 (1)'''
||{{RDseed|16}}{{fbaicon|COL}} [[Deportivo Pereira]]|0|0|'''0'''|{{RDseed|1}}{{fbaicon|BRA}} '''[[Sociedade Esportiva Palmeiras|Palmeiras]]'''|4|0|'''4'''
||{{RDseed|8}}{{fbaicon|BRA}} '''[[Fluminense FC|Fluminense]]'''|2|3|'''5'''|{{RDseed|2}}{{fbaicon|PAR}} [[Club Olimpia|Olimpia]]|0|1|'''1'''
||{{RDseed|9}}{{fbaicon|BOL}} [[Club Bolívar|Bolívar]]|0|0|'''0'''|{{RDseed|7}}{{fbaicon|BRA}} '''[[Sport Club Internacional|Internacional]]'''|1|2|'''3'''
<!--Semi-finals-->
||{{RDseed|4}}{{fbaicon|ARG}} '''[[Boca Juniors]]''' {{pso}}|0|1|'''1 (4)'''|{{RDseed|1}}{{fbaicon|BRA}} [[Sociedade Esportiva Palmeiras|Palmeiras]]|0|1|'''1 (2)'''
||{{RDseed|8}}{{fbaicon|BRA}} '''[[Fluminense FC|Fluminense]]'''|2|2|'''4'''|{{RDseed|7}}{{fbaicon|BRA}} [[Sport Club Internacional|Internacional]]|2|1|'''3'''
<!--Final-->
|4 November – [[Maracanã Stadium|Rio de Janeiro]]|{{RDseed|4}}{{fbaicon|ARG}} [[Boca Juniors]]|||1|{{RDseed|8}}{{fbaicon|BRA}} '''[[Fluminense FC|Fluminense]]''' {{aet}}|||'''2'''}}
[[User:KyleRGiggs|KyleRGiggs]] ([[User talk:KyleRGiggs|talk]]) 08:21, 18 July 2024 (UTC)
:Can you elaborate? What got worse? Worse than what? [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 21:26, 21 July 2024 (UTC)
::I don't know how to elaborate but [[User:CodeMars04|CodeMars04]] said very clearly in his edit summary, I will quote it. {{quote|…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.}} [[User:KyleRGiggs|KyleRGiggs]] ([[User talk:KyleRGiggs|talk]]) 17:34, 22 July 2024 (UTC)
:::I think I resolved the issue by increasing the team-width parameter from 180px to 215. [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 20:17, 22 July 2024 (UTC)
== Using RDseed with long names? ==
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 {{tl|RDseed}} template, even with {{tl|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. [[User:JalenFolf|<span style="font-size:1.2em;font-family:eurofurence;background:#368ec9;color:white">Jalen Folf</span>]] [[User talk:JalenFolf|<span style="background:#6babd6;color:black">(Bark[s])</span>]] 18:56, 21 July 2024 (UTC)
:Scratch that. I figured it out using the team-width parameter, as described in the RDseed documentation. [[User:JalenFolf|<span style="font-size:1.2em;font-family:eurofurence;background:#368ec9;color:white">Jalen Folf</span>]] [[User talk:JalenFolf|<span style="background:#6babd6;color:black">(Bark[s])</span>]] 20:28, 21 July 2024 (UTC)
{{#invoke:RoundN|N8
|RD1=Round 1
|skipmatch2=yes
|skipmatch4=yes
|bold_winner=high
|team-width=auto
<!--Round One-->
|July 6 – [[Tony's Pizza Events Center]]|{{RDseed|5}}{{nowrap|Southwest Kansas Storm}}|35|{{RDseed|3}}Salina Liberty|41
|||||
|July 5 – [[Kia Center]]|{{RDseed|6}}Nashville Kats|62|{{RDseed|4}}Orlando Predators|32
|||||
|July 13 – [[MVP Arena]]|{{RDseed|3}}Salina Liberty|59|{{RDseed|2}}Albany Firebirds|80
|{{nowrap|July 13 – MetraPark [[First Interstate Arena]]}}|{{RDseed|6}}Nashville Kats|32|{{RDseed|1}}Billings Outlaws|35
|July 19 – [[American Dream Meadowlands|American Dream Center]]|{{RDseed|2}}Albany Firebirds|41|{{RDseed|1}}Billings Outlaws|46
}}
::{{ping|JalenFolf}} {{TL|RDseed}} may not go within {{TL|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 <code><nowiki>|team-width=auto </nowiki></code> 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 <code>auto</code> to some integer that works better (170 is the default width). Does this work for you? [[User:Zinnober9|Zinnober9]] ([[User talk:Zinnober9|talk]]) 21:12, 21 July 2024 (UTC)
== omit_label for consolation matches ==
I noticed that that using <code>omit_label</code> works for regular headings, but for consolation matches it results in an error. Is there any way this could be resolved? Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 03:07, 6 September 2024 (UTC)
|