Module talk:Build bracket: Difference between revisions

Content deleted Content added
 
(28 intermediate revisions by 6 users not shown)
Line 171:
# How to change the color of the "aggregate" field? Alternatively, how to thicken the left border? I'm asking because at the moment this field is very poorly distinguished from the others.
Thank you very much for the previous answers! [[User:Mateusz.ns|Mateusz.ns]] ([[User talk:Mateusz.ns|talk]]) 13:57, 11 July 2024 (UTC)
 
== Home and away teams? ==
 
Would there be any way to individually point to the home and away slots? For example, trying to figure out who will play the home finals in the [[2024 AFL season]] is hard/impossible. And most or all other graphs seem to not show it either. [[User:MarkiPoli|MarkiPoli]] ([[User talk:MarkiPoli|talk]]) 14:08, 9 September 2024 (UTC)
 
== Use boldwinner for only the aggregate score? ==
 
{{ping|Pbrks}} I was wondering, if the aggregate parameter is present for a given round, is there a way that the automatic bolding provided by {{para|boldwinner}} could only be applied to the aggregate score (with the leg scores not bolded)? See the below example. Would appreciate any help! Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 16:04, 14 November 2024 (UTC)
 
'''Current output'''
{{#invoke:Build bracket|main|paramstyle=numbered|boldwinner=y
| rounds = 3
| nowrap = y
| RD1-legs = 2
| aggregate = y
| agg-width = 40
| score-width= 20
| team-width = 170
| col-spacing = 17.5
 
| col1-headers = 1
| col2-headers = 1
| col3-headers = 1,11
 
| col1-matches = 3,6,9,12
| col2-matches = 4.5,10.5
| col3-matches = 7.5,13
 
| col1-col2-paths = (3,6)-4.5, (9,12)-10.5
| col2-col3-paths = (4.5,10.5)-7.5
 
| RD1 = [[#Quarter-finals|Quarter-finals]]
| RD2 = [[#Semi-finals|Semi-finals]]
| RD3 = [[#Final|Final]]
| RD3b = [[#Third place play-off|Third place play-off]]
 
||Team 1|3|1|4|Team 2|0|5|5
|||||||||
|||||||||
|||||||||
 
||Team 2|3|Team 4|1
|||||
 
|||||
|||||
}}
 
'''Desired output'''
{{#invoke:Build bracket|main|paramstyle=numbered
| rounds = 3
| nowrap = y
| RD1-legs = 2
| aggregate = y
| agg-width = 40
| score-width= 20
| team-width = 170
| col-spacing = 17.5
 
| col1-headers = 1
| col2-headers = 1
| col3-headers = 1,11
 
| col1-matches = 3,6,9,12
| col2-matches = 4.5,10.5
| col3-matches = 7.5,13
 
| col1-col2-paths = (3,6)-4.5, (9,12)-10.5
| col2-col3-paths = (4.5,10.5)-7.5
 
| RD1 = [[#Quarter-finals|Quarter-finals]]
| RD2 = [[#Semi-finals|Semi-finals]]
| RD3 = [[#Final|Final]]
| RD3b = [[#Third place play-off|Third place play-off]]
 
||Team 1|3|1|4|'''Team 2'''|0|5|'''5'''
|||||||||
|||||||||
|||||||||
 
||'''Team 2'''|'''3'''|Team 4|1
|||||
 
|||||
|||||
}}
:{{re|S.A. Julio}} This feature now works with <code>|boldwinner=aggregate</code>. –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 01:01, 12 August 2025 (UTC)
 
== Dark mode ==
 
Would it be possible for an experienced editor to add the dark mode theme used in [[:Module:Team bracket]] to match that template? [[User:Bbb2007|Bbb2007]] ([[User talk:Bbb2007|talk]]) 23:53, 29 December 2024 (UTC)
 
:{{ping|Pbrks}} Hi, in dark mode aggregate blends with partial results. [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 19:10, 20 August 2025 (UTC)
::{{re|Quri.inka}} Can you be more clear? What do you mean "with partial results"? –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 19:11, 20 August 2025 (UTC)
:::{{ping|Pbrks}} legs (sry translate google). The line between legs and aggregate is barely visible in dark mode. Of course, this could be due to my poor eyesight :) [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 19:22, 20 August 2025 (UTC)
 
== colors for legs ==
 
{{ping|Pbrks}} Hello! Could you please implement the use of colors for legs? [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 17:05, 11 August 2025 (UTC)
:{{re|Quri.inka}} Hello. Where and why would this be used? I have concerns, in particular relating to [[MOS:COLOR]]. –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 17:31, 11 August 2025 (UTC)
::{{ping|Pbrks}} For aggregate score, one user wasn't satisfied with the bold line. I added it myself, along with the ability to colorize the remaining legs (plwiki, overwritten by the new version) [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 17:48, 11 August 2025 (UTC)
 
== problem with manual bolding ==
 
{{ping|Pbrks}} Hi, <code>| aggregate = sets</code> does not work when used <code><nowiki>'''</nowiki></code>.
 
{{#invoke:Build bracket|main
| rounds=2
| legs = 2
| RD1-legs = 3
| aggregate = sets
 
| col1-matches = 3,6
| col2-matches = 4.5
| col3-matches = 7.5
 
| col1-col2-paths = (3,6)-4.5
 
| RD1-seed1=1
| RD1-team1={{flagicon|POL}} [[Iga Świątek]]
| RD1-score1-1=2
| RD1-score1-2=4
| RD1-score1-3=
| RD1-seed2=6
| RD1-team2='''{{flagicon|USA}} [[Jessica Pegula]]'''
| RD1-score2-1=6
| RD1-score2-2=6
| RD1-score2-3=
 
| RD1-seed3=22
| RD1-team3={{flagicon|BRA}} [[Beatriz Haddad Maia]]
| RD1-score3-1=1
| RD1-score3-2=4<sup>6</sup>
| RD1-score3-3=
| RD1-seed4=
| RD1-team4='''{{flagicon|CZE}} [[Karolína Muchová]]'''
| RD1-score4-1='''6'''
| RD1-score4-2='''7'''<sup>8</sup>
| RD1-score4-3=
 
| RD2-seed1=6
| RD2-team1='''{{flagicon|USA}} [[Jessica Pegula]]'''
| RD2-score1-1=1
| RD2-score1-2='''6'''
| RD2-seed2=
| RD2-team2={{flagicon|CZE}} [[Karolína Muchová]]
| RD2-score2-1='''6'''
| RD2-score2-2=4
 
}}
{{ping|Pbrks}} and <code><nowiki><sup></nowiki></code>
 
[[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 14:08, 18 August 2025 (UTC)
:{{re|Quri.inka}} Thanks for pointing that out. It should be working now. –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 14:32, 18 August 2025 (UTC)
::{{re|Quri.inka}} Also, consider using <code>| boldwinner = high</code> for automatic markup. –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 14:33, 18 August 2025 (UTC)
 
== bold for chess scoring ==
 
{{ping|Pbrks}} Hi
{{4TeamBracket-info |paramstyle=numbered|boldwinner=high
<!--Date-Place|Team 1|Score 1|Team 2|Score 2 -->
<!--quarter finals -->
| [[8 listopada]] [[2007]]| ESP |½|MEX|1½
| [[8 listopada]] [[2007]]| NGA |1|URY|1½
| [[8 listopada]] [[2007]]|BRA|2 (3)| PRT|2 (4)
}} [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 09:04, 23 August 2025 (UTC)
{{re|Quri.inka}} {{done}} –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 21:22, 23 August 2025 (UTC)
 
:Thank you. [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 05:29, 24 August 2025 (UTC)
{{ping|Pbrks}} Hi it's broken <code>2 (3)</code> [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 12:33, 24 August 2025 (UTC)
 
== RD-hide ==
{{ping|Pbrks}} Hi,
Hiding headers doesn't work? First column is empty, second not.
 
{{#invoke:Build bracket|main
|paramstyle=numbered
|boldwinner=y
|rounds=5
 
|RD1 = Pierwsza runda
|RD2 = Druga runda
|RD3 = Ćwierćfinały
|RD4 = Półfinały
|RD5 = O brązowy medal
 
|RD1-hide=yes
|RD2a-hide=yes
|RD3-hide=yes
|RD4a-hide=yes
|RD5-hide=yes
 
|col1-matches = 5
|col2-matches = 4,7
|col3-matches = 3,6
|col4-matches = 4.5
|col5-matches = 3
 
|col1-col2-paths = 5-4
|col2-col3-paths = 4-3,7-6
|col3-col4-paths = (3,6)-4.5
|col4-col5-paths = 4.5-3
 
|||||
||WWW|100|VVV|000
||EEE|101|BBB|000
||RRR|012|NNN|000
||RRR|010|MMM|000
}} [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 13:23, 24 August 2025 (UTC)
:{{re|Quri.inka}} {{done}} –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 02:15, 26 August 2025 (UTC)
 
== automatic markup 2 (3) ==
 
{{ping|Pbrks}} Hi,
Thank you for the RD-hide parameter. While implementing new features, we lost the automatic markup of <code>2 (3)</code> (example in section ''bold for chess scoring''). [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 05:38, 26 August 2025 (UTC)
 
== Color parameter ==
 
Please add the color parameter as it is in the Module:RoundN. Here is one small example:<br>
This code creates the following bracket:
{{demo|<nowiki>{{Round4-with third
|bold_winner=high
|color=yes
 
|1 January|{{fb|GER}}|2|{{fb|ITA}}|1
|1 January|{{fb|ESP}}|1|{{fb|POR}}|2
 
|2 January|{{fb|GER}}|2|{{fb|POR}}|1
 
|2 January|{{fb|ITA}}|1|{{fb|ESP}}|2
}}</nowiki>}}
Thanks, [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 20:22, 27 August 2025 (UTC)
:{{re|Maiō T.}} Sorry, I will not be making this change. The colors do not comply with the WCAG 2.0 AA standard for color contrast, let alone the AAA level. You can see my concerns that I, and other editors, have discussed at [[Module talk:RoundN#Medal colors for gold/silver/bronze]]. –&nbsp;[[User:Pbrks|Pbrks]]&nbsp;<sup>(<span style="font-variant: small-caps;">[[User talk:Pbrks#top|t]]·[[Special:Contribs/Pbrks|c]]</span>)</sup> 12:17, 29 August 2025 (UTC)