Module talk:Sports table

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]

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]