Module talk:Sports table
![]() | Module:Sports table is permanently protected from editing because 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 is the talk page for discussing improvements to the Sports table module. |
|
Archives: 1, 2Auto-archiving period: 3 months ![]() |
![]() | This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
![]() | To help centralize discussions and keep related topics together, the following pages redirect here: |
|
||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
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 |
Giacontigers (talk) 12:10, 6 February 2022 (AEDT)
Totals check
[edit]@Frietjes: One other quick question: often this module will be used to show how teams rank from different groups, for example: UEFA Euro 2016#Ranking of third-placed teams. However, then the totals check will give a number of warnings when previewing an edit that the wins/losses, goals for/against, etc. do not total each other. Is there any way the totals check feature could be disabled when groups are present? Would be really appreciated if possible! Thanks, S.A. Julio (talk) 20:48, 17 October 2024 (UTC)
- @S.A. Julio try adding
|notracking=yes
to the table. Nthep (talk) 21:07, 17 October 2024 (UTC)- @Nthep: The only issue is that there are hundreds of such tables, having a simpler way of disabling the totals check would be nice. I would say almost all tables with the 'group' column do not need a total check. S.A. Julio (talk) 21:17, 17 October 2024 (UTC)
- The test to display total checks could be set to depend on either of the
|show_groups=
or|notracking=
parameters without too much difficulty (I think). But there would need to be a way to allow total checks to be shown, if wanted, on tables with groups so the logic would need to allow that. - There's probably more investigation needed into how many tables there are that use groups and how many of those don't need total checks. Nthep (talk) 21:51, 17 October 2024 (UTC)
- The test to display total checks could be set to depend on either of the
- @Nthep: The only issue is that there are hundreds of such tables, having a simpler way of disabling the totals check would be nice. I would say almost all tables with the 'group' column do not need a total check. S.A. Julio (talk) 21:17, 17 October 2024 (UTC)
See for example NCAA Season 6 basketball tournaments. Howard the Duck (talk) 01:33, 6 January 2025 (UTC)
- If tried using
|group=
but it doesn't solve the issue. Howard the Duck (talk) 01:55, 6 January 2025 (UTC)- Do you mean that you don't want the notes to appear under the group B table and, instead, appear in the notes section at the end of the article? Nthep (talk) 09:19, 6 January 2025 (UTC)
- Yeah. Howard the Duck (talk) 14:03, 6 January 2025 (UTC)
- The module automatically add a notelist equivalent to {{notelist}} / {{notelist-la}} so don't use
|note_XXX=
, instead use {{efn-ua}} (or any of the other options) and the corresponding {{notelist-ua}} Nthep (talk) 16:05, 6 January 2025 (UTC)- That's noted. Howard the Duck (talk) 19:25, 6 January 2025 (UTC)
- Thanks. Using {{efn-ua}} and {{notelist-ua}} worked. Howard the Duck (talk) 19:30, 6 January 2025 (UTC)
- That's noted. Howard the Duck (talk) 19:25, 6 January 2025 (UTC)
- The module automatically add a notelist equivalent to {{notelist}} / {{notelist-la}} so don't use
- Yeah. Howard the Duck (talk) 14:03, 6 January 2025 (UTC)
- Do you mean that you don't want the notes to appear under the group B table and, instead, appear in the notes section at the end of the article? Nthep (talk) 09:19, 6 January 2025 (UTC)
Winning percentage
[edit]As our article is at winning percentage, shouldn't the tooltip say "winning percentage" as well, instead of "win percentage"?
Also, all league tables that use this method do not boldface the winning percentage column (see NBA.com, ESPN, Y!Sports, CBS, etc., unlike assoc. football tables that boldface the "Pts." columns. With that, can the boldfaced columns be converted to regular text? Howard the Duck (talk) 17:44, 18 April 2025 (UTC)
- win percentage or winning percentage looks like it's a bit of a UK/US thing, win is more common in the UK than winning. Regarding bolding, just because those sources don't bold the column is not necessarily a reason for WP not to, you could call it WP's house style. That said, almost anything is possible and looking at the code for WDL it doesn't look the most difficult change to put a bold/normal font weight flag in, although for backwards compatibility with all the existing tables there would have to be an acceptance that bold is the default. Nthep (talk) 20:26, 18 April 2025 (UTC)
- FWIW, re: WP:ENGVAR, "winning percentage" is used in sports such as basketball, and in league tables that this is used, it's a safe bet none of those are from the UK. Re MOS:BOLD, we do have a house style, and it seems that this is not one of the cases... at least I can WP:IAR association football usage since it is near universal. The league table not having boldface for teams using winning percentage, it's all near universal. Howard the Duck (talk) 20:38, 18 April 2025 (UTC)
- @Howard the Duck I'll have a play around in the sandbox. Is this only WDL or are there any others that need to be considered? Nthep (talk) 10:58, 19 April 2025 (UTC)
- Good question. AFAIK winning percentage is only relevant on WL style. Howard the Duck (talk) 12:33, 19 April 2025 (UTC)
- thanks. WL invokes WDL anyway. Nthep (talk) 12:42, 19 April 2025 (UTC)
- @Howard the Duck can you give me some example tables to look at. I picked up {{2011 PBA Governors' Cup standings}} as something you'd edited but I could do with a wider range to play around with. I've identified which lines affect the bolding and I've hard changed it in the module sandbox. My sandbox page User:Nthep/sandbox2 shows the results as well as a UK table which used both percentage points and competition points. If this is what you're looking for then next step is to make it a variable. Nthep (talk) 17:57, 19 April 2025 (UTC)
- That's more or less how it looks like; see for example 2020–21 NBA G League season#Regular season. Winning percentage is used primarily on Module:Sports table/WL (not WDL) for basketball and baseball. In these sports, the "Pld" column is denoted as "GP" (or games played). Another sport that uses winning percentage but has draws (or tied games) is American football, but North American based leagues do not use this module except for that one instance in the NBA G League during covid. Howard the Duck (talk) 21:47, 19 April 2025 (UTC)
- To think about it, this can also be applied to WDL as both baseball and American football have tied games and use winning percentages, it's just that the value of tied games have changed through time in some leagues. Also, the ties column is after losses, or WLT, not WDL. Howard the Duck (talk) 21:54, 19 April 2025 (UTC)
- @Howard the Duck can you give me some example tables to look at. I picked up {{2011 PBA Governors' Cup standings}} as something you'd edited but I could do with a wider range to play around with. I've identified which lines affect the bolding and I've hard changed it in the module sandbox. My sandbox page User:Nthep/sandbox2 shows the results as well as a UK table which used both percentage points and competition points. If this is what you're looking for then next step is to make it a variable. Nthep (talk) 17:57, 19 April 2025 (UTC)
- thanks. WL invokes WDL anyway. Nthep (talk) 12:42, 19 April 2025 (UTC)
- Good question. AFAIK winning percentage is only relevant on WL style. Howard the Duck (talk) 12:33, 19 April 2025 (UTC)
- @Howard the Duck I'll have a play around in the sandbox. Is this only WDL or are there any others that need to be considered? Nthep (talk) 10:58, 19 April 2025 (UTC)
- FWIW, re: WP:ENGVAR, "winning percentage" is used in sports such as basketball, and in league tables that this is used, it's a safe bet none of those are from the UK. Re MOS:BOLD, we do have a house style, and it seems that this is not one of the cases... at least I can WP:IAR association football usage since it is near universal. The league table not having boldface for teams using winning percentage, it's all near universal. Howard the Duck (talk) 20:38, 18 April 2025 (UTC)