Module talk:Sports series
Appearance
(Redirected from Module talk:Sports series/styles.css)
Non adherence to MOS.
[edit]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)
- @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
[edit]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)
- @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 to the TemplateStyles. S.A. Julio (talk) 01:21, 8 October 2024 (UTC)
.sports-series td:nth-child(2) { font-weight: bold; }
- 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)
- The changes helped. Thank you for your help and for the css tip. We (plwiki) use different result formats, including those with a colon
proposal
[edit]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
[edit]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; } }