đŸ‡źđŸ‡· Iran Proxy | https://www.wikipedia.org/wiki/Module_talk:Sports_table/WDL
Jump to content

Module talk:Sports table

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Winning percentage four digits

[edit]

Can an option be done for goal percentage with 4 digits, for example like the win percentage with notratio setting?

I need help if there is another notratio code for goal percentage please, anyone who can help me?

Example

[edit]
Pos Team Pld W L GF GA PP PCT Qualification
1 South East Melbourne Phoenix 8 6 2 686 636 107.9 75.00 Semi-Finals
2 Melbourne United 11 8 3 931 830 112.2 72.73
3 Perth Wildcats 10 7 3 880 809 108.8 70.00
4 Illawarra Hawks 11 6 5 962 966 99.6 54.55
5 Tasmania JackJumpers 11 5 6 834 837 99.6 45.45
6 Sydney Kings 12 5 7 959 987 97.2 41.67
7 Brisbane Bullets 10 4 6 844 880 95.9 40.00
8 Adelaide 36ers 10 4 6 805 854 94.3 40.00
9 Cairns Taipans 6 2 4 459 484 94.8 33.33
10 New Zealand Breakers 11 3 8 866 943 91.8 27.27
Updated to match(es) played on 4 February 2022. Source: NBL.com.au

Giacontigers (talk) 12:10, 6 February 2022 (AEDT)


color:inherit needed to accompany more background-colors

[edit]

When | match_BOD_LIL = 0–4 is rendered at 2004 Tippeligaen, it renders as style="white-space:nowrap;font-weight:normal;background: #FBB;". Can someone please edit this module to add color:inherit; to this style declaration? Background colors without colors cause Linter errors. Thanks. – Jonesey95 (talk) 03:39, 3 October 2025 (UTC)[reply]

Winning percentage requests

[edit]
  • For the entire column not to be boldfaced. Standings tables that use this typically don't boldface it. See NBA, ESPN, NPb, PBA, NBL (scroll down) etc.
  • Allow for customizable ways to denote "percentages"; most use .###, but some use ##.##% and ##.## (without "%"). See also [[#Winning percentage four digits above]

Howard the Duck (talk) 01:32, 25 October 2025 (UTC)[reply]

Accessibility problems

[edit]

Looking at e.g. 2017 OFC Champions League, this module seems to be violating MOS:NOTOOLTIPS by producing table headers like "Pld" which are unintelligible without hovering over the text. The majority of readers, roughly speaking, are on mobile devices and cannot hover. -- Beland (talk) 01:47, 1 November 2025 (UTC)[reply]

Abbreviations are exempt from these requirements, so the {{abbr}} template (a wrapper for the <abbr> element) may be used to indicate the long form of an abbreviation (including an acronym or initialism). This module uses <abbr> tags to generate the headers, so it is exempt. — Jkudlick âš“ (talk) 15:14, 1 November 2025 (UTC)[reply]
Hmm, this exception seems to have been designed in 2011 with screenreaders in mind, not mobile devices which have since become a lot more popular. I've started a discussion at Wikipedia talk:Manual of Style/Accessibility#Abbreviations and hover about changing it. -- Beland (talk) 09:00, 3 November 2025 (UTC)[reply]

Two teams in the same position

[edit]

Please add an example of how I should insert rowspan=2 into the table. For example, when two teams finish together in 3rd place. Thanks, Maiƍ T. (talk) 14:36, 12 November 2025 (UTC)[reply]

I'd just use |pos_XXX=3= and |pos_YYY=3= for this purpose. (Sometimes the "=" is not necessary.) Howard the Duck (talk) 14:48, 12 November 2025 (UTC)[reply]
Yeah, I know that trick. But a double, shared cell with one number would look better. Never mind, maybe later... Maiƍ T. (talk) 15:52, 12 November 2025 (UTC)[reply]

Dashes instead of zeros

[edit]

Hello, please see the second sports table in this section. How could those two zeros in 23rd row be replaced with mdashes? Maiƍ T. (talk) 20:55, 13 November 2025 (UTC)[reply]

Why should they? Tvx1 09:20, 15 November 2025 (UTC)[reply]
Because now it says that Malta earned 0 points. But Malta didn't play at all. So they earned — points. This style looks more logical. Maiƍ T. (talk) 09:42, 15 November 2025 (UTC)[reply]
If they didn't play, why are they even in the table? Nthep (talk) 21:51, 21 November 2025 (UTC)[reply]
Because that table is actually a seeding list of participating teams that will play in the current season. All those numbers are actually results from the previous season. So Malta must be in that table, but without results. Okay, and now remove those two zeros! Maiƍ T. (talk) 18:17, 29 November 2025 (UTC)[reply]
so it's not actually a league table but a list of seedings based on previous performance? That really is an edge case to the module and I don't see the benefit in amending the module when the tables you replaced in this edit could have been expanded to contain the necessary information - whatever that is. Nthep (talk) 18:50, 29 November 2025 (UTC)[reply]
@Maiƍ T.: The purpose of this module is not for draw pots, as it includes a lot of information that is just not necessary. Wikitables have worked perfectly well for that purpose for a very long time, even on World Cup and Olympics articles. Your use of this module to create the draw pots made that article needlessly complicated to view and understand. Frankly, the module shouldn't have even been used for the Round 2 draw pots. Your comment "now remove those two zeros!" comes across as very demanding and uncivil, as if you are just a petulant child. I suggest you WP:DROPTHESTICK on this issue, as it will take far too much time and effort for a single use case. — Jkudlick âš“ (talk) 19:30, 29 November 2025 (UTC)[reply]
@Jkudlick: I apologize for my strange behavior. I just read the articles you suggested:
WP:CIVIL – I took it to heart and I will follow it in the future.
WP:DROPTHESTICK – Please wait a few days. I think it shouldn't be a problem to add the option to set custom values ​​for two parameters to the module. You wrote: a single use case but this year alone there were two cases (I mean new entries in two qualifications) and there will certainly be more cases in the future, as this system will be used in four events each year. So we should leave some time for further discussion. Maiƍ T. (talk) 22:00, 29 November 2025 (UTC)[reply]
@Maiƍ T.: Again, this is not the purpose of this module. Just use wikitables like the ones used at 2026 FIFA World Cup qualification (UEFA)#Draw or 2026 FIFA World Cup qualification (UEFA)#Second round. They are much easier to build and maintain as well as being much smaller bit-wise. I don't understand why you insist on reinventing the wheel. — Jkudlick âš“ (talk) 23:49, 29 November 2025 (UTC)[reply]
Pos Gr (Rk) Team Pld 2 3 4 5 6 7 Pts Seeding
1 B5 (4)  Georgia 0 0 0 3 13 0 0 0 Pot 1
2 New entry  Malta
— — — — — — — —
Source: UEFA
Rules for classification: 1) round 1 position; 2) points; 3) goal difference; 4) goals scored; 5) disciplinary points; 6) position in the applicable rankings.

you're welcome @Maiƍ T.: Quri.inka (talk) 22:17, 29 November 2025 (UTC)[reply]

@Quri.inka: You may also wish to read WP:CIVIL. That comment is not appropriate. — Jkudlick âš“ (talk) 23:41, 29 November 2025 (UTC)[reply]
I'm sorry, I didn't like Maiƍ T.'s commanding tone. I shouldn't have responded to him. Quri.inka (talk) 08:26, 30 November 2025 (UTC)[reply]
This is awful... Please take one more look at the current, official source code of this module. When we use the GF (or GA) parameter with a non-numeric value, the GD result in the table is â€” and that's perfect. I have a dream that someday I will use a non-numeric value for the win (or draw or loss) parameter and the table will display the Pld and Pts results as â€”
Maiƍ T. (talk) 16:24, 30 November 2025 (UTC)[reply]

Look what I can do with the WDL/sandbox version:

Pos Gr (Rk) Team Pld W D L GF GA GD Pts Seeding
1 B5 (4)  Georgia 4 1 0 3 2 13 −11 3 Pot 1
2 New entry  Malta — — — — — — — —
Source: UEFA

I added just a hundred bytes to the Module:Sports table/WDL/sandbox and it works perfectly. It's ready to be copied to live. And then we could happily close this topic and forget about bad things. Maiƍ T. (talk) 18:38, 1 December 2025 (UTC)[reply]

Whether it works or not, and it needs more than one example to establish that, there's still no explanation, let alone a consensus, to push the module into doing things it was never intended for. A more than adequate way of doing exactly what you want to display with a standard wikitable has been demonstrated and I'm not understanding why you want to deflect this module to achieve the same end. Nthep (talk) 09:27, 2 December 2025 (UTC)[reply]
Above is written something about reinventing the wheel. However, I don't want to reinvent the wheel, but to put a fender on it. So I'm gonna be bold an I'm gonna add those 100 B of data to that module. And in ten minutes someone will come, do a revert, and say: "It is forbidden to use fenders on our wheels. If you want a wheel with a fender, make one yourself at home." 😉 Maiƍ T. (talk) 12:25, 2 December 2025 (UTC)[reply]
There's no consensus for the change. WP:BRD says Discuss, not ignore and do what you want. Nthep (talk) 15:21, 2 December 2025 (UTC)[reply]

Okay, let's ask Wikipedia users which table is prettier: the one from the sandbox above, or the current version below...

Pos Gr (Rk) Team Pld W D L GF GA GD Pts Seeding
1 B5 (4)  Georgia 4 1 0 3 2 13 −11 3 Pot 1
2 New entry  Malta — — — — — — — 0
Source: UEFA

In the current, official version of the Module:Sports table/WDL, it is possible to write 7 out of 8 parameters in the form of a mdash, as you can see. So why not all 8? I think it's a bug that needs to be fixed. Maiƍ T. (talk) 19:38, 2 December 2025 (UTC)[reply]

It's not a bug, the module isn't designed to do what you're wanting it to do. It's for recording league tables where matches have been played (or are due to be played). It's not for recording seeding pools where some member hasn't done anything.
Prettiness of one version of this module or another isn't the point. You're still not answering the question about why using a normal wikitable to achieve what you want as demonstrated above by Quri.inka isn't the solution. Nthep (talk) 19:58, 2 December 2025 (UTC)[reply]
Aaahhh, wikitables... And all those style=text-align:center codes, etc... Okay Nthep, you could write an essay about using modules to create sports tables: What is allowed and what is not. Or there is also a second option: I'm gonna reinvent something. Not the wheel, but a simple template version of sports tables. When I was young, there was such a possibility on Wikipedia. Those were beautiful times... 24 foreign-language Wikipedias have adopted that template; they are still ready to use. And here it was removed... Do you remember? For example, see this Czech version: cs:Ơablona:Fb cl2 header navbar/Fb cl2 team. But I would still rather use the original idea: adding an eighth mdash to the module. Maiƍ T. (talk) 22:22, 2 December 2025 (UTC)[reply]
That czech table you link to is just another results table, not a seedings list like we’re discussing here. Tvx1 15:31, 3 December 2025 (UTC)[reply]
@Maiƍ T.: You stated "Aaahhh, wikitables... And all those style=text-align:center codes, etc... It seems you are not aware of {{Table alignment}} and {{Vertical align rows}} which make building and maintaining wikitables much simpler. You also stated you are not trying to reinvent the wheel, when that is EXACTLY what you are doing. A simple way of displaying the information you want already exists in wikitables; forcing the module to do something it was not designed to do could break its functionality elsewhere if not properly tested and vetted. So far, you are the only person asking for this, and everyone else is happy to use wikitables. You may wish to WP:DROPTHESTICK here, since consensus is clearly against adding code for this edge case. Alternatively, you could do what Quri.inka has already shown to do exactly what you want and use |style=custom. — Jkudlick âš“ (talk) 16:54, 3 December 2025 (UTC)[reply]
This is not wikitables. This is a module with |style=Custom. Quri.inka (talk) 23:21, 2 December 2025 (UTC)[reply]
This is pretty much what you want. You just add the column names. Quri.inka (talk) 23:24, 2 December 2025 (UTC)[reply]

@Max2610: Hello, according to consensus, we should reconsider using the Module:Sports table/WDL for creating the seeding tables. So you, Max, as the most hardworking editor of youth football articles, decide now: Do we change those huge seeding tables to wikitables or to custom-style modules? Here's a list of articles with WDL-style modules:

I noticed that wikitables are used in the boys' qualifications. And even without the W, D and L parameters. I realized that basically only the Pts, GD, and GF parameters are mandatory for the seeding tables. So when I project this fact into a custom-module table, it might look something like this:

Pos Gr (Rk) Team Pts GD GF Seeding
1 B5 (4)  Georgia 1 2 3 Pot 4
2 New entry  Malta — — —
Source: UEFA

So what do you say: Which direction are we going to go? Thanks, Maiƍ T. (talk) 20:15, 3 December 2025 (UTC)[reply]

That’s not how wikipedia works. No individual makes such a decision. Tvx1 22:05, 3 December 2025 (UTC)[reply]

Possibly ignored parameters

[edit]

@Frietjes: I believe you worked on the parameter tracking for this module, I was wondering if there is any way to not add pages to Category:Pages using sports table with possibly ignored parameters when the #switch parser function is used (for templates containing multiple tables)? For example {{2025 FIFA U-17 World Cup group tables}}, which causes that page and 2025 FIFA U-17 World Cup to end up in the tracking category for using the {{{1}}} parameter. Thanks! S.A. Julio (talk) 19:40, 21 November 2025 (UTC)[reply]

S.A. Julio, it would be difficult to have the module read the wrapping template, but we can have a parameter to signal that |1= is valid. I made this work, but I am not sure if that is the best name for the option. let me know if you have a suggestion for a better name for the option. Frietjes (talk) 19:07, 24 November 2025 (UTC)[reply]
@Frietjes: perhaps |param1_valid=y or simply |param1=y? — Jkudlick âš“ (talk) 19:29, 24 November 2025 (UTC)[reply]
@Frietjes: Great, thank you! I made a slight modification to the parameter name based on the above comment, which should still be clear. S.A. Julio (talk) 21:53, 3 December 2025 (UTC)[reply]
looks good. Frietjes (talk) 23:03, 3 December 2025 (UTC)[reply]
@Frietjes: While on the topic, I noticed Category:Pages using sports table with possibly ignored parameters is populated with a lot of pages using |team= instead of |showteam=. Should we consider adding it as an alias? And also, would it be possible to exclude the tracking categories from outside the template/article mainspace, as well as template testcases/sandboxes? Thanks, S.A. Julio (talk) 06:33, 4 December 2025 (UTC)[reply]
S.A. Julio, I like that idea. it would mean that the bolding in articles like 2009 Chicago Fire season would suddenly start to work, and any templates with | showteam = {{{team|}}} could be simplified as well. I will do that right now. as far as the namespace restrictions go, that should be possible as well. I can work on that later today. Frietjes (talk) 17:23, 4 December 2025 (UTC)[reply]
I filtered out userspace, and will work on more filtering later. Frietjes (talk) 18:11, 4 December 2025 (UTC)[reply]
@Frietjes: Wonderful, thank you so much! S.A. Julio (talk) 18:36, 4 December 2025 (UTC)[reply]