Module talk:Sports series

Non adherence to MOS.

This module has a parameter that functions in a way that is discouraged by our Manual of Style, specifically MOS:DTT. Table wide headers is something that should be avoided.Tvx1 16:37, 12 August 2024 (UTC)

:{{re|Tvx1}} The row generated in these cases is not actually a header row, it is simply a regular row spanning across all columns. From what I can tell at MOS:COLHEAD, only the use of headers is discouraged from the middle of tables. Thus I don't necessarily see the issue here? S.A. Julio (talk) 16:08, 17 August 2024 (UTC)

problem

Hi, I found the problem with tags

{{#invoke:Sports series|main|legs=1|h_a=y|caption=Runda 1|team_width=190|score_width=70|color_winner=y|small_text=y

|Brest|FRA|2-1 (aet)|Sturm Graz|AUT

|Brest|FRA|2-1 (aet)|Sturm Graz|AUT

|Brest|FRA|2-1 (aet)|Sturm Graz|AUT

}}

Runda 1
GospodarzWynikGość
Brest Plik:Flag of France (1794–1815, 1830–1974).svg 2-1 (dogr.)''' Plik:Flag of Austria.svg Sturm Graz
Brest Plik:Flag of France (1794–1815, 1830–1974).svg 2-1 (dogr.) Plik:Flag of Austria.svg Sturm Graz
Brest Plik:Flag of France (1794–1815, 1830–1974).svg 2-1 (dogr.) Plik:Flag of Austria.svg Sturm Graz

Quri.inka (talk) 17:42, 7 October 2024 (UTC)

:{{re|Quri.inka}} Thank you for pointing out the issue. I made some changes, it looks like it should be resolved now? Also, if you are using this on another wiki, and want to always have the aggregate score column bolded, you can add .sports-series td:nth-child(2) { font-weight: bold; } to the TemplateStyles. S.A. Julio (talk) 01:21, 8 October 2024 (UTC)

::The changes helped. Thank you for your help and for the css tip. We (plwiki) use different result formats, including those with a colon :. I also reduce overtime and penalties 1:1 (dogr.)(4:3 k.). I added some small inserts, they are not elegant, but they work :). Quri.inka (talk) 17:18, 8 October 2024 (UTC)

proposal

Hi, for the purposes of transclusion, I have implemented the 'first record' and 'last record' parameters of the table. Example, Conference League: the table contains a championship track and a league track, both of which have their own articles. Quri.inka (talk) 08:47, 12 October 2024 (UTC)

dark mode

Hello, could you help me with .sports-series .heading-row and dark mode? Quri.inka (talk) 06:42, 18 October 2024 (UTC)

:I found it (thx User:Nux), it works

@media screen {

html.skin-theme-clientpref-night .sports-series .heading-row { background-color: #383838; color: #fff; }

}

@media screen and (prefers-color-scheme: dark) {

html.skin-theme-clientpref-os .sports-series .heading-row { background-color: #383838; color: #fff; }

}

Quri.inka (talk) 11:07, 19 October 2024 (UTC)

:@Quri.inka I just removed the forced background-color for .sports-series .heading-row from the TemplateStyles for the module, since there's no reason to be setting the background color for those rows. But your CSS will still work to set the color, since it doesn't violate the rule: Always define color when defining background. (The TemplateStyles WERE violating this rule, which was the problem.) FeRDNYC (talk) 09:37, 6 February 2025 (UTC)