Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a225f10ebb81a151

Jump to content

Template talk:Sidebar games events

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Sidebar games events/doc)
Latest comment: 7 months ago by Zackmann08 in topic Refactor coming

TemplateStyles

[edit]

I've moved this module to TemplateStyles a la Module talk:Sidebar#TemplateStyles. Let me know if things are glitchy. --Izno (talk) 21:07, 15 February 2021 (UTC)Reply

@Izno: I think the recent change may have impacted Football at the 2020 Summer Olympics – Women's qualification? The sidebar {{Football at the 2020 Summer Olympics}} appears much wider than normal in my browser, which seems to be caused by the presence of {{Qualification for women's championships (UEFA)}} lower on the page. S.A. Julio (talk) 20:14, 19 February 2021 (UTC)Reply
@S.A. Julio: Indeed it did. There are two ways to fix this (in the styles sheets)
  1. Be a bit more specific in Module:Sidebar games events/styles.css where it differs from Module:Sidebar styles.
  2. Change Sidebar to act more like SGE in regard to width. I started a discussion at Module talk:Sidebar#Width auto and similar sidebars regarding that.
I'll take option 1 for now (and sync other styles that have drifted for some reason or another). --Izno (talk) 20:25, 19 February 2021 (UTC)Reply

hlist

[edit]

Frietjes Do you remember why you added hlist to the module? I'm sampling uses but I haven't seen a case that actually needs it. I could be blind or I could not realize how this module is used sometimes.

Probably ditto the recommendation for plainlist in the documentation. Izno (talk) 19:46, 9 March 2022 (UTC)Reply

Izno, no idea. I have added some tracking to check to see if this is used anywhere which we can remove as soon as we know the category has had a chance to fill and is empty. the number of uses is going to be low enough that we can definitely remove hlist, and probably remove the class parameter completely. Frietjes (talk) 23:09, 9 March 2022 (UTC)Reply
I fixed about 30 templates, and have now remove the class parameter and the hlist class. I am going to keep the tracking there for the moment to see if anything new pops up in the tracking categories for fixing. Frietjes (talk) 19:59, 10 March 2022 (UTC)Reply

Urgent: Please fix this template for printed content Module:Sidebar games events/styles.css.

[edit]

Firstly, apologies for writing in English if this is not your first language (this is an automated message).

This template has been detected as one of 436 pages using styles that break the page when printed when the user is using dark mode. The fix is very straightforward - all your styles relating to dark mode must be scoped to. Since there is a high risk of this templates being copied to other wikis it is important this notice is acted on ASAP.

To fix this:

  1. Update `@media (prefers-color-scheme: dark` to `@media screen and (prefers-color-scheme: dark`
  2. Wrap any styles relating to `html.skin-theme-clientpref-night` in `@media screen`

If this message has not been acted on in 7 days, this will be fixed by an automated script. Thank you for your help fixing this important issue.

For any questions feel free to ask them at phab:T369874.

Jon (WMF) (talk) 18:21, 2 August 2024 (UTC) on behalf of the web team.Reply

Done. Izno (talk) 22:30, 3 August 2024 (UTC)Reply

Refactor coming

[edit]

So at a recent discussion, WOSlinker brought to my attention that many of the images used in these sidebars are public domain and therefore there is no reason to link back to the image. That sent me down a rabbit hole and I'm going to start a refactor of this module/template soon with the following goals:

  1. Implement Module:InfoboxImage so that images can simply be supplied with |image=FileName.svg instead of requiring the full file syntax.
  2. In the event that one of the pictograms is used, set the |link=nil so that it goes nowhere.

If anyone has any feelings on this refactor, please feel free to share them! Zackmann (Talk to me/What I been doing) 06:30, 24 December 2025 (UTC)Reply

Additionally after finding that |imageright= was only used about a dozen times, I am removing it in favor of consistency. Just use |image=. Zackmann (Talk to me/What I been doing) 23:05, 24 December 2025 (UTC)Reply
Update! The module has been refactored with the following changes:
  1. |image= and |imageXX= will now work with just the file name (so for example |image=FileName.svg). No need for the full image syntax anymore.
  2. The default image size is 50px but can be overridden with either |image_size= or |imageXX_size=
  3. If the image name contains pictogram and .svg the link functionality will be disabled on the image. NOTE this ONLY works if the filename is supplied alone. For cases where the full image syntax is supplied, then the link will remain.
  4. All documentation has been updated to reflect these changes.
Thanks WOSlinker for the idea! Zackmann (Talk to me/What I been doing) 23:15, 24 December 2025 (UTC)Reply