Module talk:Sports series

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 shoul

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)Reply

@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)Reply

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
|[[Stade Brestois 29|Brest]]|FRA|'''[[Liga Mistrzów UEFA (2024/2025)/Faza ligowa#Brest-Sturm Graz|2-1]] (aet)'''|[[SK Sturm Graz|Sturm Graz]]|AUT
|[[Stade Brestois 29|Brest]]|FRA|'''[[Liga Mistrzów UEFA (2024/2025)/Faza ligowa#Brest-Sturm Graz|2-1]]''' (aet)|[[SK Sturm Graz|Sturm Graz]]|AUT
|[[Stade Brestois 29|Brest]]|FRA|'''2-1''' (aet)|[[SK Sturm Graz|Sturm Graz]]|AUT
}}
<templatestyles src="Moduł:Wyniki rund/styles.css"></templatestyles>
<table class="wikitable sports-series" data-nowrap="n"><caption>Runda 1</caption><tr><th scope="col" style="width:190px">Gospodarz</th><th scope="col" style="width:70px">Wynik</th><th scope="col" style="width:190px">Gość</th></tr>

<tr><td class="winner"><strong>[[Stade Brestois 29|Brest]] <span class="flagicon">[[Plik:Flag of France (1794–1815, 1830–1974).svg|22x20px|border|alt=Francja|link=Francja]]</span></strong></td>
<td><strong>[[Liga Mistrzów UEFA (2024/2025)/Faza ligowa#Brest-Sturm Graz|2-1]] <span class="nowrap"></strong>([[dogrywka|dogr.]])</span>'''</td>
<td><span class="flagicon">[[Plik:Flag of Austria.svg|22x20px|border|alt=Austria|link=Austria]]</span> [[SK Sturm Graz|Sturm Graz]]</td></tr>

<tr><td class="winner"><strong>[[Stade Brestois 29|Brest]] <span class="flagicon">[[Plik:Flag of France (1794–1815, 1830–1974).svg|22x20px|border|alt=Francja|link=Francja]]</span></strong></td>
<td><strong>[[Liga Mistrzów UEFA (2024/2025)/Faza ligowa#Brest-Sturm Graz|2-1]] <span class="nowrap"></strong>([[dogrywka|dogr.]])</span></td>
<td><span class="flagicon">[[Plik:Flag of Austria.svg|22x20px|border|alt=Austria|link=Austria]]</span> [[SK Sturm Graz|Sturm Graz]]</td></tr>

<tr><td class="winner"><strong>[[Stade Brestois 29|Brest]] <span class="flagicon">[[Plik:Flag of France (1794–1815, 1830–1974).svg|22x20px|border|alt=Francja|link=Francja]]</span></strong></td>
<td><strong>2-1 </strong>([[dogrywka|dogr.]])</td>
<td><span class="flagicon">[[Plik:Flag of Austria.svg|22x20px|border|alt=Austria|link=Austria]]</span> [[SK Sturm Graz|Sturm Graz]]</td>

</tr></table>
<span class="nowrap"></strong>

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

@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)Reply
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)Reply

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)Reply

dark mode

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

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)Reply

@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)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.