Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
||
(25 intermediate revisions by the same user not shown) | |||
Line 1,237:
[[Ice hockey at the 2022 Winter Olympics – Men's tournament#Group A]] uses Sports table to produce a table (surrounded by a "section" called AStandings). [[Canada at the 2022 Winter Olympics#Ice hockey]] then accesses that section using <nowiki>{{#section:Ice hockey at the 2022 Winter Olympics – Men's tournament|AStandings}}</nowiki>. However it also adds a navbar. I can see the sense in this when the original is in a template but it seems odd when it's in another article. Is there any way to remove this navbar in this situation? (excuse my ignorance of the technical terms) [[User:Nigej|Nigej]] ([[User talk:Nigej|talk]]) 17:31, 9 February 2022 (UTC)
== Template edit request ==
{{edit template-protected|Module:Sports table/WDL|answered=yes}}
Gramatically, change "Qualified to" to "Qualified for" and "Qualified, but not yet to" to "Qualified, but not yet for" because "qualify for something" is not equal to "qualify to do something." [[User:Santiago Claudio|Santiago Claudio]] ([[User talk:Santiago Claudio|talk]]) 04:22, 21 June 2022 (UTC)
:{{done}}. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>07:04, 21 June 2022 (UTC)</small>
== Winning percentage ==
[[Winning percentage|Winning percentages]] can be presented in a variety of ways:
# Almost all of tables/standings I've seen ([https://www.nba.com/standings NBA], [https://www.nfl.com/standings/ NFL], [https://www.mlb.com/standings MLB], [https://npb.jp/bis/eng/2022/standings/ NPB], [http://eng.koreabaseball.com/Standings/TeamStandings.aspx KBO], [https://www.pba.ph/standings PBA]) do not emphasize ('''boldface''') the winning percentage column. I suggest for this to be removed.
# Some have different ways on presenting the actual value. The American leagues and NPB present it with no leading zero; the KBO has a [[leading zero]]; the PBA uses actual percentages in the hundredths. Perhaps this can be added as a feature.
[[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 16:40, 15 July 2022 (UTC)
== References in transcluding articles? ==
This moudle seems very complicated, and I can't sort out how to fix problems it is causing with references in transcluding articles. At the moment, [[1988–89 Norwich City F.C. season#Final league table]] transcludes the "First Division" section from [[1988–89 Football League]]. This leaves the Norwich City article with an undefined error for the reference "Liverpool-ban".
This reference, however, is defined in the "col_EXEC" parameter in the invocation of this template. It seems like the template will add columns depending on certain results, but the documentation isn't too approachable and I'm not sure how reference definitions can be established to correctly appear in the different configurations that the template might output.
For now, I've worked around this issue by repeating the reference definition in each column. This seems pretty cumbersome, but perhaps it's the only solution for now. What alternative solutions are available? Are there plans to better document this template, make it easier to use (particularly for new users!), or address the referencing issues it regularly causes? -- [[User:Mikeblas|Mikeblas]] ([[User talk:Mikeblas|talk]]) 18:05, 28 August 2022 (UTC)
== float=center ==
Why not allow float=center? —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 20:29, 20 September 2022 (UTC)
:It's strange, isn't it? float=center is just not a thing, even though it seems like an obvious option. AFAICT, this module calls {{tl|stack begin}} to apply floating, and that template applies a CSS class. See [https://www.w3schools.com/css/css_float.asp the CSS spec] for details. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 21:04, 20 September 2022 (UTC)
{{outdent}}
[[User:Jonesey95|Jonesey95]]: I asked the question because I edited [[Draft:2022–23 National Basketball League (England) season]], where someone had two of these tables side-by-side with markup like this:
<pre>
{{col-begin}}
{{col-2}}
<center>
{{#invoke:Sports table|main|style=WL
...
}}
</center>
{{col-2}}
<center>
{{#invoke:Sports table|main|style=WL
...
}}
</center>
{{col-end}}
</pre>
The obvious way to get rid of the obsolete center tags would be to add a <code><nowiki>|float=center</nowiki></code> to each call of this module. Of course, that didn't work, so I replaced <code><nowiki><center>...</center></nowiki></code> with <code><nowiki><div align="center">...</div></nowiki></code>, which actually worked, to my surprise. I realize that "float" carries extra baggage allowing other stuff to display on the non-float side, and for centering, one would typically want nothing to display on either side, so perhaps centering would need to be accomplished with a parameter other than "float". —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 22:36, 20 September 2022 (UTC)
== Possibly ignored parameters ==
Hi there, I've got a problem with the argcheck function. Everytime we use Sports table on Italian Wikipedia, the article falls into [[:w:it:Categoria:Errori nella compilazione di Sports table - parametri potenzialmente ignorati|this category for possibly ignored parameters]]. Why is that? And how can we fix this? [[User:Sannita|Sannita]] - <small>''[[User talk:Sannita|not just another it.wiki sysop]]''</small> 15:33, 8 February 2023 (UTC)
== Matches showing on Sports Table ==
How to make it show in 2 or more legs? Just like the [[Module:Sports results#Two legs|Two Legs in Sports Results]].. [[User:Innocence8|Innocence8]] ([[User talk:Innocence8|talk]]) 06:09, 22 November 2022 (UTC)
:{{Reply to|Innocence8}}Better late than never. This calls the other one directly, so you can use the {{para|legs|2}} option as discussed there. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 20:21, 3 March 2023 (UTC)
== "First match(es) will be played on" ==
For future competitions, there is an option to use the <code>|start_date=</code> parameter to list when the first match will take place. While the exact day may often be known, occasionally only the month has been confirmed. However, if only the month and the year are listed in this parameter, the wording becomes awkward, for example at [[2024 CONCACAF W Gold Cup]]: {{tq|First match(es) will be played on February 2024}}. Is there any way if only the month and year are listed in this parameter, that the wording is adjusted to "First match(es) will be played in [month] [year]"? Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 12:57, 13 March 2023 (UTC)
: [[User:S.A. Julio|S.A. Julio]], fixed. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:11, 13 March 2023 (UTC)
::Great, thanks! [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 18:17, 13 March 2023 (UTC)
== Edit link when transcluding from page ==
When you use the module on a page, you can use {{para|article_section}} to link to the specific section specific section on the source page (V), or the talk page (T), the edit link includes a <nowiki>#Section</nowiki> under the (E), which does not edit the specific section, but the whole page instead. Are there any browser/platform settings that this is supposed to work/not work for? {{ping|Frietjes}} I think you have been relatively active in dev for this lately. My worry is that a non-specific edit link does more harm than good, I for one would prefer to link to the section through V, and hit the section edit link on the article, rather than change a sports table with a preview of the whole page. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 20:27, 9 March 2023 (UTC)
: {{u|CRwikiCA}}, it may be possible to engineer something where the VTE goes to the article section, but that would require the module to (1) read the page containing the module, and (2) count the sections to get the section number. my concern is that may be expensive string processing. as far as the {{para|article_section}} is concerned, I don't think it is used very frequently.[//en.wikipedia.org/w/index.php?go=Go&search=hastemplate%3AModule%3ASports_table+insource%3A%2Farticle_section%2F&title=Special%3ASearch&ns0=1] before, people were using {{para|template_name}} to hack a <nowiki>#Section</nowiki> for the view, with the difference now that the base part of the link is automatically determined. I believe you are suggesting to just omit the edit link when {{para|article_section}} is used, and scrub the <nowiki>#Section</nowiki> from the talk? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:43, 9 March 2023 (UTC)
::{{u|Frietjes}}, I couldn't find a straightforward fix, e.g., there is no [[WP:MAGIC]] for the section number from the section name. I understand that {{para|article_section}} nor {{para|section}} are always used, but from experience I know defining stuff like this explicitly prevents some nasty to find bugs for users (like when there is multiple tables on a source page). The talk page already links correctly (there is no section link), but for editing, I don't know what is best to do, the result is the same whether you use <nowiki>#Section</nowiki> or not, you get to the full page edit anyway. The only better alternative would be to get the section number, but that's only realistic if there is an existing way to get that. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 22:26, 9 March 2023 (UTC)
::: {{u|CRwikiCA}}, it is technically possible for the module to read the page and figure out which section number to use (for example see [[Module:Calendar TOC]]). however, it may result in performance limits for large pages. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:41, 9 March 2023 (UTC)
:::: {{u|Frietjes}} some of these pages are heavily used and shouldn't be slowed down for such a minor reason. Maybe the best thing is to leave it as it is for now. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:30, 10 March 2023 (UTC)
::::: {{u|CRwikiCA}}, sounds good. one thing we could do would be to add say <code>id="sports-table-SECTION"</code> to the table if {{para|section|SECTION}} is used, and then automatically create an anchor link for the view button. that would cost basically nothing and eliminate the need for {{para|article_section}}. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:23, 10 March 2023 (UTC)
:::::: {{u|Frietjes}} What would this generate, especially if {{para|article_section}} and {{para|section}} are different? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 17:55, 10 March 2023 (UTC)
::::::: {{u|CRwikiCA}}, I don't think you need {{para|article_section}} at all. the module would add the id to table, which would allow the anchor link to work. the anchor link would then send you to the table. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:00, 10 March 2023 (UTC)
::::::::{{u|Frietjes}} Okay, then I think that would be all that we need. I don't think the {{para|section}} is included in the current documentation, but I think it would be best practice to use it explicitly. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 04:22, 11 March 2023 (UTC)
::::::::: {{u|CRwikiCA}}, now added, and tested with [[Field hockey at the 2020 Summer Olympics – Men's tournament]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:14, 13 March 2023 (UTC)
:::::::::: {{u|Frietjes}}, great work! <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 17:21, 13 March 2023 (UTC)
=== Error for other sections ===
{{u|Frietjes}} I tried using this for the tables in [[UEFA Euro 1980]] on the group pages. Although this worked (see edit history), it caused the pre-existing LST transclusion of the match results to break (show nothing) in the main article. Do you have any idea what is going on? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:41, 27 March 2023 (UTC)
: {{u|CRwikiCA}}, you have to be careful when mixing [[WP:LST]] with {{tag|onlyinclude}}. basically, if you add {{tag|onlyinclude}} to a page, then any <code><nowiki>{{#lst:</nowiki></code> or <code><nowiki>{{#section:</nowiki></code> will only read what is inside the {{tag|onlyinclude}}. to fix this, you have two choices: (1) don't use {{tag|onlyinclude}} and instead wrap the table in {{tag|section}} or (2) switch the {{tag|section}} to use the [[Module:Transcludable section]] syntax. for an example of the [[Module:Transcludable section]] syntax, see links to that module. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:50, 27 March 2023 (UTC)
::{{u|Frietjes}}, I will play around with that, thanks! <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:57, 27 March 2023 (UTC)
== Rugby bonus points ==
Wanted to see if this could be used for rugby tables but couldn't find much mention of it in the talk archives or examples of it being used in wiki articles.
I can use |winpoints=4, |drawpoints=2 to fix the points awarded, and |for_against_style=points to change the goals columns to points.
But the main thing missing is the columns for bonus points - "Try Bonus (TB)" / |tb_AAA (for scoring four or more tries) and "Losing Bonus (LB)" / |lb_AAA (for being with 7 points after losing a match). Sometimes these are combined into a single bonus column (could use |bonus_combined for that) but generally they are displayed separately.
Is it possible for someone to code |tb_AAA, |lb_AAA, and |bonus_combined into this module? [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 14:31, 28 April 2023 (UTC)
:@[[User:Boothy m|Boothy m]] have a look at {{tl|2022–23 Top 14 Table}} and its use of the <code>custom </code>option which I think does what you want, albeit with bonus points combined into one column. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 14:39, 28 April 2023 (UTC)
::Thanks, that looks useful. Would of course still be good to have the additional parameters to avoid all the custom ones :) [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 15:23, 28 April 2023 (UTC)
::Hmm, unfortunately looks like you can't add three custom columns together, for example "| colstyle10=sum_points_col8_col9" doesn't work so the separate try and losing bonus columns can't be implemented using the Top14 table. [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 15:54, 28 April 2023 (UTC)
::: [[User:Boothy m|Boothy m]], have you looked at [[Module:Sports table/Rugby]]? if {{para|show_bonus|yes}} then {{para|tbp_XXX}} and {{para|lbp_XXX}} both work, see [[2010_Currie_Cup_Premier_Division#Standings|here for an example]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:18, 9 May 2023 (UTC)
::::@[[User:Frietjes|Frietjes]] no but I have now - can't see it listed on the [[Module:Sports table]] page so didn't know it existed! Seems to work well though, thanks. [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 22:55, 9 May 2023 (UTC)
::::: Great, I have added it to the list. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 00:12, 10 May 2023 (UTC)
== Turning off source and status footnotes ==
Is there any option to turn off the source and status footnotes for a particular table? This would be especially convenient for two tables placed one directly under the other, as such footnotes are otherwise unnecessarily repeated as exemplified below. If not, I would like to see the option to turn them off added.
{{#invoke:Sports table|main|style=WDL|title=Eastern Conference|hide_footer=yes|show_draw=no|res_col_header=Q|col_QF=green2|text_QF=Finals series
|team1=PBE|win_PBE=7|loss_PBE=3|gf_PBE=15|ga_PBE=5|status_PBE=CQ|result1=QF|name_PBE=Philadelphia Liberty
|team2=NYA|win_NYA=5|loss_NYA=5|gf_NYA=9|ga_NYA=11|status_NYA=Q|result2=QF|name_NYA=New York Apples
|team3=BTP|win_BTP=3|loss_BTP=7|gf_BTP=6|ga_BTP=14|name_BTP=Boston Tea Party}}{{#invoke:Sports table|main|style=WDL|title=Western Conference|source=Americana League Soccer|update=complete|show_draw=no|res_col_header=Q|col_QF=green2|text_QF=Finals series
|team1=TCO|win_TCO=8|loss_TCO=2|gf_TCO=11|ga_TCO=6|status_TCO=Q|result1=QF|name_TCO=Tacoma Dome
|team2=BAS|win_BAS=5|loss_BAS=5|gf_BAS=7|ga_BAS=5|status_BAS=Q|result2=QF|name_BAS=Bay Area Seagulls
|team3=POR|win_POR=2|loss_POR=8|gf_POR=5|ga_POR=12|name_POR=Portland FC}}
— [[User talk:AFC Vixen|AFC Vixen]] 🦊 19:50, 6 June 2023 (UTC)
: [[User talk:AFC Vixen|AFC Vixen]], you need three parameters to turn these all off (your example updated above), but we could probably make a single parameter that triggers all three. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:41, 6 June 2023 (UTC)
::This seems to disable statuses altogether, which is unideal. I'd like to have just the text at the bottom be disabled, yet still have "'''(Q)'''", "'''(C)'''", ect. show up in the table itself. Otherwise, a single-parameter solution to disable all footnotes for a table would be appreciated. — [[User talk:AFC Vixen|AFC Vixen]] 🦊 22:23, 6 June 2023 (UTC)
::: [[User talk:AFC Vixen|AFC Vixen]], right, I have added an optional {{para|hide_footer|y}} and updated the example above. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:50, 7 June 2023 (UTC)
== WL has a point scored as default for a loss ==
I noticed that the WL style by default currently awards one point for al loss. Is there any logical reason for this? In almost any sport I know a loss equals no points. [[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 15:28, 21 June 2023 (UTC)
: [[User:Tvx1]], [[Module:Sports table/WL]] is a wrapper for [[Module:Sports_table/WDL]] with {{para|show_draws|no}}, but the default value for losspoints has been 1 since [[User:CRwikiCA|CRwikiCA]] created it back in 2015. examples of sports with 1 loss point include [[Basketball at the 1968 Summer Olympics]]. we could change it, but that would require checking (and possibly changing) all of the pages using it first. but, many of the pages using it aren't using the points, so it might not be that bad. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:45, 21 June 2023 (UTC)
::I did certainly expect there to be some sport that yields a point for a loss, but I strongly doubt that's the most common situation. Anyway, this nuisance can always be dealt with with <code>losspoints</code> parameter. Thanks for your reply. [[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:19, 21 June 2023 (UTC)
== Try difference ==
For [[Module:Sports table/Rugby]], would an editor please make a "try difference" column that automatically sums the inputs for tries for and against? I would also like to see a function to show/hide that column, the points for column and points against column. Thanks! — [[User talk:AFC Vixen|AFC Vixen]] 🦊 15:31, 24 June 2023 (UTC)
: okay, done. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:46, 13 July 2023 (UTC)
== For_against_style ==
I was wondering whether the for_against_style or their headers could be made to be more customizable? Currently you can only make a basic change from goals to points, but many sports use different parameters like sets, games, frames, racks or legs in their classifications.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 15:37, 21 June 2023 (UTC)
: [[User:Tvx1]], see [[Module:Sports_table/WDL#L-66|WDL]] which supports goals, frames, matches, games, points, sets, and runs. however, not all styles support all these options. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:40, 21 June 2023 (UTC)
::Ah I see, that wasn't quite clear from the documentation. And I had to stumble on sport which uses something else, legs, of course. Typical me. Anyway, I was already able to create the tables I needed using the custom style. Thanks anyway. [[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:22, 21 June 2023 (UTC)
::: I added <code>legs</code> and simplified the darts example. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:01, 13 July 2023 (UTC)
== Problems with rugby ==
Two problems are currently plaguing [[Module:Sports table/Rugby]]. Firstly, the module fails to add the value of <code>b</code>, the total bonus points, to the '''Pts''' column. Secondly, the table resets to 3 points for a win and 1 point for a draw, instead of 4 points for a win and 2 points for a draw, when <code>show_draw=no</code> is active. Some examples of what's happening:
<code>show_draw=no</code>, <code>b_FRA=2</code>{{#invoke:Sports table | main | style=Rugby | show_tries_for=no | show_tries_against=no | bonus_total=yes | team_order=TSE, FRA, RAC | hide_footer=yes | show_draw=no
| win_TSE=2 | draw_TSE=0 | loss_TSE=0 | pf_TSE=80 | pa_TSE=20 | b_TSE=1 | name_TSE = [[Stade Toulousain]]
| win_FRA=1 | draw_FRA=0 | loss_FRA=1 | pf_FRA=15 | pa_FRA=40 | b_FRA=2 | name_FRA = [[Stade Français]]
| win_RAC=0 | draw_RAC=0 | loss_RAC=2 | pf_RAC=5 | pa_RAC=40 | b_RAC=1 | name_RAC = [[Racing 92]]
}}<code>show_draw=no</code>, <code>tb_FRA=1</code>, <code>lb_FRA=1</code>{{#invoke:Sports table | main | style=Rugby | show_tries_for=no | show_tries_against=no | bonus_total=yes | team_order=TSE, FRA, RAC | hide_footer=yes | show_draw=no
| win_TSE=2 | draw_TSE=0 | loss_TSE=0 | pf_TSE=80 | pa_TSE=20 | tb_TSE=1 | lb_TSE=0 | name_TSE = [[Stade Toulousain]]
| win_FRA=1 | draw_FRA=0 | loss_FRA=1 | pf_FRA=15 | pa_FRA=40 | tb_FRA=1 | lb_FRA=1 | name_FRA = [[Stade Français]]
| win_RAC=0 | draw_RAC=0 | loss_RAC=2 | pf_RAC=5 | pa_RAC=40 | tb_RAC=0 | lb_RAC=1 | name_RAC = [[Racing 92]]
}}<code>tb_FRA=1</code>, <code>lb_FRA=1</code>
{{#invoke:Sports table | main | style=Rugby | show_tries_for=no | show_tries_against=no | team_order=TSE, FRA, RAC | hide_footer=yes
| win_TSE=2 | draw_TSE=0 | loss_TSE=0 | pf_TSE=80 | pa_TSE=20 | tb_TSE=1 | lb_TSE=0 | name_TSE = [[Stade Toulousain]]
| win_FRA=1 | draw_FRA=0 | loss_FRA=1 | pf_FRA=15 | pa_FRA=40 | tb_FRA=1 | lb_FRA=1 | name_FRA = [[Stade Français]]
| win_RAC=0 | draw_RAC=0 | loss_RAC=2 | pf_RAC=5 | pa_RAC=40 | tb_RAC=0 | lb_RAC=1 | name_RAC = [[Racing 92]]
}}
— [[User talk:AFC Vixen|AFC Vixen]] 🦊 16:32, 24 June 2023 (UTC)
:Pinging {{u|Frietjes}}, since you seem experienced with this template. — [[User talk:AFC Vixen|AFC Vixen]] 🦊 19:17, 9 July 2023 (UTC)
:: {{u|AFC Vixen}} okay, now fixed. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:23, 13 July 2023 (UTC)
:::Thank you very, very much! Your work is very much appreciated. — [[User talk:AFC Vixen|AFC Vixen]] 🦊 06:22, 14 July 2023 (UTC)
== Is there a way to create a version of this template that uses the word "games"? ==
I note the footer that refers to the standings being updated through "match(es)" played on a particular date. I know that word is common in soccer parlance. It's less common as to various other sports. What prompts me to raise the issue is the new [[2023 NBA In-Season Tournament]], which will (uniquely for North American pro sports leagues) use a group stage. A version of this template is therefore in use in that article, but it uses the word "match(es)" and I'm trying to figure out how to change it to the more-appropriate word "game(s)." If anyone can explain what to do, I would appreciate the help! Thanks in advance. [[User:1995hoo|1995hoo]] ([[User talk:1995hoo|talk]]) 21:46, 14 July 2023 (UTC)
:Yeah, U.S. leagues use "games" instead of "matches". Yes "matches" can be perfectly understood, but "games" are more natural. See for example "[[Games behind]]". [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 11:33, 15 July 2023 (UTC)
::The functionality is already there. There's a parameter called {{para|matches_text}} which defaults to matches, just set it to <code>|matches_text=games</code> and it will solve the issue for you. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 11:51, 15 July 2023 (UTC)
:::Thanks very much! That indeed did the job. Much appreciated. [[User:1995hoo|1995hoo]] ([[User talk:1995hoo|talk]]) 18:44, 15 July 2023 (UTC)
== Status codes in WDL ==
I propose changing the {{para|status_code}} values C='Champion', G='Guest', H='Host'& O='Play-off winner' to the plurals Champions, Guests, Hosts & Play-off winners as the module is more often used with teams/nations and not individuals. When talking about teams, it is more common to use the plural than the singular values. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 15:53, 8 August 2023 (UTC)
:No comments received, so change made. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 11:37, 6 September 2023 (UTC)
== Altering point total for one team ==
A single team in a league of nine teams was issued a six point reduction to their season point total as the result of not filing required paperwork for an international import player. The team's number of wins was not altered. Is there a way to edit only that team's point total, while continuing the use the standard module for the other eight teams?<br>
For context, this question is specific to the sports table at [[2023–24 Naisten Liiga season#Standings]]. [[User:Spitzmauskc|Spitzmauskc]] ([[User talk:Spitzmauskc|talk]]) 16:14, 21 September 2023 (UTC)
:@[[User:Spitzmauskc|Spitzmauskc]] yes. There's a parameter {{para|adjust_points_XXX}} you can use to add or delete points to a teams total. Just replace XXX with the relevant team code. See {{tl|2018 RFL League 1 regular season table}} for an example. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 16:48, 21 September 2023 (UTC)
== Remove bolding of winning percentages column for PCT version ==
AFAIK, none of the [[WP:RS]] do this. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 19:30, 23 October 2023 (UTC)
== The template_name parameter ==
{{ping|Mediocre Legacy}} In almost all cases, the {{para|template_name}} parameter is not needed since the module knows the name of the parent, so edits like [https://en.wikipedia.org/w/index.php?title=Template:UEFA_Euro_2012_qualifying_group_tables&diff=prev&oldid=1186131483 this one] are pointless. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:10, 21 November 2023 (UTC)
:I just put it back because without it some tables in articles like [[England at the UEFA European Championship|this]] won't show up properly. [[User:Mediocre Legacy|Mediocre Legacy]] ([[User talk:Mediocre Legacy|talk]]) 19:01, 21 November 2023 (UTC)
:: {{ping|Mediocre Legacy}} no idea what you are talking about, the [[England_at_the_UEFA_European_Championship#UEFA_Euro_2012:_Poland–Ukraine|UEFA Euro 2012]] tables in that article are showing up just fine. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 22:24, 21 November 2023 (UTC)
== What's the difference between status letters "A" and "Q"? ==
And "T" as well. Presumably "Q" and "T" should be together, but never "A" and "T". Is that right? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 22:43, 7 January 2024 (UTC)
:Fairly semantic between A and Q. The next match might not be another round but could be another tournament altogether. T is for when you know the team have qualified for something but not sure what. For example, rugby league in the UK has post-season play-offs. The stage at which a club might start the play-offs depends on where they finish in the regular season. T is the status used when we know they will definitely make the play-offs but, as yet, not sure which bit of it they will start at. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 17:24, 8 January 2024 (UTC)
::I reason I asked this is there's a dispute on what to use between A and Q. I'd argue that if there's a T, Q should be exclusively used, and if there's no confusion on what the "next round" should be, use A. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 23:01, 8 January 2024 (UTC)
:::That sounds context specific and not something where there is a 100% definite answer. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 07:56, 9 January 2024 (UTC)
::::Okay; there should be guidance on this. FWIW, I've noticed that A is used if all teams are competing for the same set of berths on the next round (like FIFA World Cup teams in the group stages all gunning for a knockout stage berth), while Q and T if there are several types of berths, or if some teams wins byes or has an easier path to the title, or advance to a more prestigious competition based on its seeding (like in the UEFA Champions League where a team can advance to the knockout stage, to the Europa League, or be eliminated altogether).
::::This is not always clear-cut and there it should be distinguished when we should use Q/T and A. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 22:17, 9 January 2024 (UTC)
== Making this template compatible for night mode ==
Hi [[User:Frietjes]] this template has been flagged by https://night-mode-checker.wmcloud.org/en-mobile-night/ and <nowiki>[[Special:LintErrors/night-mode-unaware-background-color]]</nowiki> as having an issue in the upcoming night mode theme (example link: https://en.m.wikipedia.org/wiki/UEFA_Euro_2024_qualifying?minervanightmode=1 )
In Cyprus and Norway in Group A the text appears black on black background. Could the "background-color:transparent;" rule be removed per [[mw:Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis#Avoid_using_background:_none_or_background:_transparent|this recommendation]]? If not, happy to help find other solutions! <span style="background:white; color: black;">🐸</span> [[User:Jdlrobson|Jdlrobson]] ([[User talk:Jdlrobson|talk]]) 21:23, 23 March 2024 (UTC)
: [[User:Jdlrobson|Jdlrobson]], removing it almost works, but now the team cells are colored the same as the header cells. we use the default wikitable background color (#f8f9fa) instead of transparent, or try to add something to the css to override the grey background for "row scoped" table rows? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:06, 25 March 2024 (UTC)
::Thanks for trying out the fix! I think the remaining issues will be covered by https://phabricator.wikimedia.org/T357998 ! <span style="background:white; color: black;">🐸</span> [[User:Jdlrobson|Jdlrobson]] ([[User talk:Jdlrobson|talk]]) 01:13, 26 March 2024 (UTC)
:::Another example: https://en.m.wikipedia.org/wiki/2024_Indian_Premier_League?minervanightmode=1#Points_table
:::Another approach would be to add color: inherit alongside the background color definitions when they are transparent e.g. `background-color:transparent; color: inherit;` <span style="background:white; color: black;">🐸</span> [[User:Jdlrobson|Jdlrobson]] ([[User talk:Jdlrobson|talk]]) 07:50, 26 March 2024 (UTC)
== How do I adjust goals for ==
On [[2023–24 Nigeria Premier Football League#League table|this table]], it was reported that Gombe United were deducted 6 points and 6 goals, I was able to adjust the points but not the same for the goals. <span style="color:#9400D3;">[[User:Josedimaria237|Jõsé]]<sup>[[User talk:Josedimaria237| ''hola'']]</sup></span> 10:51, 4 April 2024 (UTC)
== How to indicate that two teams have tied in a Sports Table module. ==
On my current draft page, at [[User:Yoblyblob/1985 Niue Soccer Tournament]], the two top teams in Division 1 officially tied for a joint championship. Does anyone know how to edit the number to show them both finishing in first? [[User:Yoblyblob|Yoblyblob]] ([[User talk:Yoblyblob|Talk]]) :) 15:20, 30 May 2024 (UTC)
:<s>@[[User:Yoblyblob|Yoblyblob]] I don't think you can, but you can use the status column to show that the title was shared (see [[Module:Sports table/WDL#Results and status]]). Otherwise I think you'd have to use a normal table and not this module. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:16, 30 May 2024 (UTC)</s>
:|pos_XXX=1 [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 17:09, 31 May 2024 (UTC)
::This is true. I'd forgotten about the {{para|POS}} parameter. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 19:38, 31 May 2024 (UTC)
== Edit request 18 September 2024 ==
{{Edit template-protected|answered=yes}}
'''Description of suggested change:'''
Allow custom text inside <code>splitN</code> for tables like [[2014 FIFA World Cup#Final standings]].
'''Diff:'''
{{TextDiff|1=<nowiki> table.insert(t,'|- style="background-color:'..result_col['black1']..'; line-height:3pt;"\n')
table.insert(t,string.rep('|',2*N_cols)..'\n')
</nowiki>
|2=<nowiki> if yesno(Args['split'..ii]) == nil then
table.insert(t,'|-\n')
table.insert(t,'|colspan='..(2*N_cols)..'|'..Args['split'..ii]..'\n')
else
table.insert(t,'|- style="background-color:'..result_col['black1']..'; line-height:3pt;"\n')
table.insert(t,string.rep('|',2*N_cols)..'\n')
end
</nowiki>
}} [[User:SocietyBox|SocietyBox]] ([[User talk:SocietyBox|talk]]) 23:46, 18 September 2024 (UTC)
:The {{param|res_col_header}} parameter allows grouping and has the benefit of positively identifying which rows the comment applies to. It's not always apparent which rows a heading like those in [[2014 FIFA World Cup#Final standings]] applies to. [[MOS:COLHEAD]] actively discourages the use of inserted summary rows like this. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 13:42, 19 September 2024 (UTC)
::Thanks. Just the excuse I needed to rewrite that table. [[User:SocietyBox|SocietyBox]] ([[User talk:SocietyBox|talk]]) 23:59, 20 September 2024 (UTC)
== Help with a custom table ==
I've been trying to convert the wikitable at [[2024 USL Cup#Ranking of non-group leading teams]] to use [[Module:Sports table]], but have come across some issues. When using [[Module:Sports table/Custom]], the following issues arise:
*Played column calculation: cannot add W+PKW+PKL+L
*Points column calculation: cannot assign 2 points for a PKW and 1 point for a PKL
*Points column formatting: cannot disable bolding
See the below code for an example.
{{Hidden|Using Sports table/Custom|text=
{{#invoke:Sports table|main|style=Custom/sandbox
|num_cols=9
|plus_sign_diffs=y
|colstyle1=played
|colstyle2=win
|colstyle3=PKwin
|col_header3={{Abbr|PKW|Penalty kicks win}}
|colstyle4=PKloss
|col_header4={{Abbr|PKL|Penalty kicks loss}}
|colstyle5=loss
|bold_col6=yes
|col_header6={{Abbr|GF|Goals for}}
|colstyle6=gf
|col_header7={{Abbr|GA|Goals against}}
|colstyle7=ga
|col_header8={{Abbr|GD|Goal difference}}
|colstyle8=diff_gf_ga
|colstyle9=points
|team_order=OMA, LEX, GVL, CHA, RIC, SPK, KNX, CV, TRM
|win_CV =1 |PKwin_CV =1 |PKloss_CV =3 |loss_CV =3 |gf_CV =8 |ga_CV =10
|win_SPK=1 |PKwin_SPK=0 |PKloss_SPK=2 |loss_SPK=5 |gf_SPK=9 |ga_SPK=17
|win_OMA=3 |PKwin_OMA=2 |PKloss_OMA=1 |loss_OMA=2 |gf_OMA=16 |ga_OMA=13
|win_CHA=1 |PKwin_CHA=1 |PKloss_CHA=1 |loss_CHA=5 |gf_CHA=10 |ga_CHA=15
|win_LEX=3 |PKwin_LEX=2 |PKloss_LEX=1 |loss_LEX=2 |gf_LEX=10 |ga_LEX=10
|win_KNX=4 |PKwin_KNX=1 |PKloss_KNX=1 |loss_KNX=2 |gf_KNX=8 |ga_KNX=7
|win_GVL=3 |PKwin_GVL=1 |PKloss_GVL=1 |loss_GVL=3 |gf_GVL=10 |ga_GVL=8
|win_RIC=2 |PKwin_RIC=3 |PKloss_RIC=0 |loss_RIC=3 |gf_RIC=9 |ga_RIC=11
|win_TRM=0 |PKwin_TRM=2 |PKloss_TRM=2 |loss_TRM=4 |gf_TRM=8 |ga_TRM=13
|name_CV = [[Central Valley Fuego FC]]
|name_SPK = [[Spokane Velocity|Spokane Velocity FC]]
|name_OMA = [[Union Omaha]]
|name_CHA = [[Chattanooga Red Wolves SC]]
|name_LEX = [[Lexington SC]]
|name_KNX = [[One Knoxville SC]]
|name_GVL = [[Greenville Triumph SC]]
|name_RIC = [[Richmond Kickers]]
|name_TRM = [[Tormenta FC|South Georgia Tormenta FC]]
|res_col_header=Q
|result1=KO
|col_KO = green1 |text_KO = Advanced to [[2024 USL Cup#Knockout stage|knockout stage]]
}}
}}
Or, instead of using the Custom module, would it be easier to allow an option to modify [[Module:Sports table/WL PK|WL PK]]/[[Module:Sports table/WDL OT|WDL OT]] to change which columns are and are not bolded? What would be the best solution? Pining {{u|Frietjes}}, who is very knowledgeable with this module. Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 18:06, 15 October 2024 (UTC)
: [[User:S.A. Julio|S.A. Julio]], yes, changing [[Module:Sports table/WL PK|WL PK]]/[[Module:Sports table/WDL OT|WDL OT]] would probably be less complicated, with a lot less code in the article. looking at [[Module:Sports table/WDL OT|WDL OT]]. we may be able to trigger it through {{para|ranking_style}} without adding another parameter. I have to look. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:17, 15 October 2024 (UTC)
:: I added {{para|ranking_style|forpts}} which bolds the goals for column. I could have it unbold the points column, but the looking at the logic for {{para|ranking_style}} in the other cases, I would expect it to bold both. to selectively turn on and off bolding, we should have a different parameter for clarity. but, in this case, the ranking is first by points scored, and second by points, so it seems okay to have both bolded. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:44, 15 October 2024 (UTC)
:::{{re|Frietjes}} Ok, great thank you! I will note that for this article, only head-to-head points is a tiebreaker. Therefore, the points column doesn't really need to be emphasized, but it's not a big deal if it requires too many changes for another parameter. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 20:06, 15 October 2024 (UTC)
== Totals check ==
{{ping|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, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 20:48, 17 October 2024 (UTC)
:@[[User:S.A. Julio|S.A. Julio]] try adding {{para|notracking|yes}} to the table. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:07, 17 October 2024 (UTC)
::{{re|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. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 21:17, 17 October 2024 (UTC)
:::The test to display total checks could be set to depend on either of the {{para|show_groups}} or {{para|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. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:51, 17 October 2024 (UTC)
== This module interfering with {{tl|efn}} on {{tl|notelist}} ==
See for example [[NCAA Season 6 basketball tournaments]]. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 01:33, 6 January 2025 (UTC)
:If tried using <code>|group=</code> but it doesn't solve the issue. [[User:Howard the Duck|Howard the Duck]] ([[User talk: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? [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 09:19, 6 January 2025 (UTC)
:::Yeah. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 14:03, 6 January 2025 (UTC)
::::The module automatically add a notelist equivalent to {{tl|notelist}} / {{tl|notelist-la}} so don't use <code>|note_XXX=</code>, instead use {{tl|efn-ua}} (or any of the other options) and the corresponding {{tl|notelist-ua}} [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 16:05, 6 January 2025 (UTC)
:::::That's noted. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 19:25, 6 January 2025 (UTC)
::::::Thanks. Using {{tl|efn-ua}} and {{tl|notelist-ua}} worked. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 19:30, 6 January 2025 (UTC)
== Sports table/WDL GD/PP and Pts/PCT headers ==
Can the headers of these columns (and any others not currently editable) be made to be changeable, such as the current <code>|postitle=</code> or <code>|team_header=</code>?
Eg. <code>|ptstitle=</code> or <code>|gd_header=</code> (something of this nature) [[User:KeneRink63|KeneRink63]] ([[User talk:KeneRink63|talk]]) 04:56, 13 May 2025 (UTC)
|