Module talk:Sports results
Add topic| Module:Sports results is indefinitely protected from editing as it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
| This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
| |||||||||||||||
Improved variant with Freeze Columns option
[edit]Could this table be improved by adding some optional parameter setting to freeze the first column having team names?
Such an option will be useful in articles like 2023–24_EFL_Championship, 2023–24_EFL_League_One where this template is used.
Currently the team names are not visible when we scroll the table to the right extreme.
Anish Viswa 09:43, 22 April 2024 (UTC)
- asked a question similar to the current ongoing discussion, no support received
Anish Viswa 07:03, 8 October 2025 (UTC)
Edit request 8 October 2024
[edit]This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Description of suggested change:
Please transfer the Module:Sports results/sandbox code to the live module; it contains fixes to eliminate unnecessary uses of background: transparent as the "default" table cell styling. Setting background: transparent, particularly without setting a foreground text color, leads to invisible text in dark mode. (See mw:Recommendations for night mode compatibility on Wikimedia wikis#Avoid_using_background:_none_or_background:_transparent.)
Viewing the Module:Sports results/testcases wikitext page in dark mode will show that the live module rendering contains a large number of cells with invisible text, whereas the sandbox code renders with all text readable. FeRDNYC (talk) 14:50, 8 October 2024 (UTC)
Done Thanks FeRDNYC! --Ahecht (TALK
PAGE) 21:03, 10 October 2024 (UTC)
Possible dark-mode fixes for Module:Sports results/Chess
[edit]Along similar lines to my edit request above, I have what I believe are fixes for dark-mode issues with the rendering of Chess match results, specifically (as those are handled specially) in Module:Sports results/Chess/sandbox. The problem is, there's no way I can figure out to test those changes, because that module is a helper that's only called from Module:Sports table, and only when it's loaded in place of Module:Sports results because the outer module was invoked with {{#invoke:Sports table|main|style=Chess| ... }}.
Module:Sports table recognizes the |style= parameter value by exact string equality when choosing the results output module:
local p_matches = match_table and
(style_def == 'Chess' and require('Module:Sports results/'..style_def) or require('Module:Sports results'))
So passing |style=Chess/sandbox won't work to activate Module:Sports results/Chess/sandbox in place of the live version — it'll actually cause Module:Sports results to be used instead.
This isn't an edit request, because I have no real way of knowing whether Module:Sports results/Chess/sandbox fixes the dark-mode issues with Module:Sports results/Chess, or even if it works at all, in either skin. I think it does, but I haven't verified it and I'm not really sure how to. Ideas for how the sandbox code can be evaluated vs. the live module, to determine whether it does what it's supposed to, would be very welcome. Right now, these modules are making a mess of things in dark mode. FeRDNYC (talk) 00:58, 9 October 2024 (UTC)
- Actually, Module:Sports results/Chess doesn't require an edit request, as it's not protected. And now that I've hacked together a test case for my Module:Sports results/Chess/sandbox code (see Module:Sports table/testcases wikitext#Chess) and confirmed that it fixes the dark-mode issues, I'll make those changes live. FeRDNYC (talk) 06:19, 15 October 2024 (UTC)
To freeze the first column, or both the column and the header
[edit]Can someone help me with the following? The results table for the 2024/25 UEFA Champions League competition phase is so large that you have to scroll to see all the rounds. The first row and first column scroll along, making the content difficult to read. There's an option in a wikitable, just like in Excel, to freeze the first column, or both the column and the header. See:
- nl:Help:Gebruik_van_tabellen#Brede_tabel_met_vaste_eerste_kolom (code for each first cell)
- nl:Help:Gebruik_van_tabellen#Lange_tabel_met_vaste_kop (code for the entire row)
It would be more readable if the first column were fixed. Is it possible to implement this in the technology used? Like the following example nl:Competitiefase van de UEFA Champions League 2025/26#Resultaten van de loting. I've looked everywhere, but I haven't found anything that might solve this. Like here. BT1985 (talk) 20:43, 16 September 2025 (UTC)
- BT1985, if you look at Module:Sports_results#L-277 we are already wrapping the table in a
<div>...</div>so it would probably be pretty easy to add support for {{Sticky table start}}. Frietjes (talk) 15:00, 2 October 2025 (UTC)- Frietjes thanks for your answer, but the template you're proposing isn't recognized on the Dutch Wikipedia. I've tried several other things, but I can't get it to work. Maybe you have another solution or have tried something yourself to solve this.
- Anishviswa I asked the same question here as you, but specifically for the Dutch Wikipedia. Because the same problem exists here. BT1985 (talk) 21:53, 7 October 2025 (UTC) / 14:36, 8 October 2025 (UTC)