Module talk:Sports table/Archive 1: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
m Archiving 2 discussion(s) from Module talk:Sports table) (bot
Line 2,803:
 
I added an initial attempt at input argument parameter checking to find typos or other unintended output. this is definitely a work in progress, but at the moment, it should be only generating false positives, and only using hidden tracking categories (and notes in preview). please let me know if you see any serious problems. I will be working on making the tracking more meaningful and accurate of the next several days. the base category for the tracking is [[:Category:Sports table tracking]] with subcategories for various issues. I would definitely note worry about the "ignored parameters" category right now, since some of those are parameters which may be implemented in the future. I will try to document each category as soon as the categories fill up. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:48, 22 October 2019 (UTC)
 
== Team list ==
 
Basic usage of WDL module for listing 20 team positions is like:
 
|team1=ARS |team2=AVL |team3=BOU|team4=BHA |team5=BUR |team6=CHE |team7=CRY |team8=EVE|team9=LEI|team10=LIV |team11=MCI |team12=MUN |team13=NEW |team14=NOR |team15=SHU |team16=SOU |team17=TOT |team18=WAT |team19=WHU |team20=WOL
 
Updating team positions after a single match is played is awkward: See [https://en.wikipedia.org/w/index.php?title=Template:2019%E2%80%9320_Premier_League_table&diff=next&oldid=909752199]
 
|team1=<span style='background:cyan'>LIV</span> |team2=<span style='background:cyan'>ARS</span> |team3=<span style='background:cyan'>AVL</span> |team4=<span style='background:cyan'>BOU</span> |team5=<span style='background:cyan'>BHA</span> |team6=<span style='background:cyan'>BUR</span> |team7=<span style='background:cyan'>CHE</span> |team8=<span style='background:cyan'>CRY</span> |team9=<span style='background:cyan'>EVE</span> |team10=<span style='background:cyan'>LEI</span> |team11=<span style='background:cyan'>MCI</span> |team12=<span style='background:cyan'>MUN</span> |team13=<span style='background:cyan'>NEW</span> |team14=<span style='background:cyan'>SHU</span> |team15=<span style='background:cyan'>SOU</span> |team16=<span style='background:cyan'>TOT</span> |team17=<span style='background:cyan'>WAT</span> |team18=<span style='background:cyan'>WHU</span> |team19=<span style='background:cyan'>WOL</span> |team20=<span style='background:cyan'>NOR</span>
 
Wouldn't it be possible to allow a parameter team_list? like:
 
|team_list==ARS,AVL,BOU,BHA,BUR,CHE,CRY,EVE,LEI,LIV,MCI,MUN,NEW,NOR,SHU,SOU,TOT,WAT,WHU,WOL
 
That would make changes easier to handle:
 
|team_list==<span style='background:cyan'>LIV,</span>ARS,AVL,BOU,BHA,BUR,CHE,CRY,EVE,LEI,MCI,MUN,NEW,SHU,SOU,TOT,WAT,WHU,WOL<span style='background:cyan'>,NOR</span>
 
Cheers,--[[User:Tykyheg|Tykyheg]] ([[User talk:Tykyheg|talk]]) 07:53, 17 October 2019 (UTC)
:[[User:Tykyheg|Tykyheg]], okay, this should work now, but using {{para|team_order|LIV, ARS, ...}} I have also been thinking we could probably make the team ordering automatic with some keyword, but that would require more work. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:03, 20 October 2019 (UTC)
::If the order is based on the points column (as an example), then that can be used to initially sort the data into an array then continue with the rest of the code based on that. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:33, 20 October 2019 (UTC)
::: This change in articles edited by experienced editors who have been using this module for years may come with some resistance, I wonder if it should be discussed somewhere where more responses would be expected. I like the automatic ordering idea, but it sounds difficult considering the different tie-breaking rules in each league. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 15:50, 20 October 2019 (UTC)
::::Could you give an example of a league table you'd think would be hard to implement it for? From the various tables I've seen, there seems to always be a column that the team order is based on. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:53, 20 October 2019 (UTC)
::::: if I recall, we had about 7 different orderings in the old {{tl|fb cl footer}} so we could have something like {{para|team_order|Pts/GD/GF}} which would mean 1) points, 2) goal difference, 3) Goals for. of course, the default would be to have the order manually specified. unfortunately, the way that the module currently works, it will require either 2 passes, or some post processing to fix the order after the first pass. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:56, 20 October 2019 (UTC)
:::::: I imagine implementation may be more difficult when head-to-head is the tie-breaker, which many leagues use, some as the first tie-breaker. Maybe it's easier than I assume, though. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 16:01, 20 October 2019 (UTC)
::::::: no, you are correct, making head-to-head work automatically would be difficult, and probably not possible to code for all the cases. the question is if it's worth it to have the option to auto sort for some cases. just because we can't make automatic sorting work for all cases doesn't mean we can't have as an option for some cases. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:12, 20 October 2019 (UTC)
:::::::: Like I said, I like the idea, I just wasn't sure how difficult it would be. If it was done automatically and editors have to adjust manual for head-to-head, I'm sure it would work smoothly. Adjustments and notes are already needed to deal with head-to-head anyway. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 16:54, 20 October 2019 (UTC)
{{od|::::::::}} I do think this would be an extremely useful option to have. I'm also curious if it would be possible to have an entire table built from all the match results? Basically formatting the information as done with [[Module:Sports results]], except the module would then calculate each team's W/D/L/GF/GA from these results. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 18:45, 24 October 2019 (UTC)
:Agree, would make it much easier to have it kind of automatic. With the results or "just" by adding the data. [[User:Kante4|Kante4]] ([[User talk:Kante4|talk]]) 18:30, 25 October 2019 (UTC)
 
== Volleyball ==
 
I want to ask for some changes for '''Module:Sports table/Volleyball'''
: 1) In general in tables for football and other sports, you have that option to sometimes leave it blank or put something like "—" in case all results are not available, this option is not possible with volleyball, the table replaces it with a Zero. I hope this can be the same as other sports, for both Sets and Points.
: 2) If Sl or Spl = 0 and sw/spw has a value (and not zero) the outcome for SR/SPR should be "MAX" and not "—", this is how it works for FIVB tables.
: 3) I'm not sure if this one is possible but it doesn't hurt asking, in past for a period time, SPR has adventage over SR as the first tiebreaker , is it possible to have that option to have those columns of SPW/SPL/SPR before SW/SL/SR ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 14:18, 23 October 2019 (UTC)
: 1) Blank defaults to zero per [[Module_talk:Sports_table/Archive_1#WDL_default|this comment]] from {{U|Hhkohh}} which I don't agree with. However, making it so '-' works shouldn't be a problem (now done). 2) probably done now. 3) for football, we have {{para|loss_before_draw|y}} so we could probably do something similar here, just need to decide on the parameter. how about {{para|setpoints_before_sets|y}}? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:41, 24 October 2019 (UTC)
:: Thanks. 1 and 2 changes look very good. and that's also a good parameter, I just want to ask something more if possible. is it possible to simply remove the SPW/SPL/SPR columns in case most results are not available in details (pages like [[Nine-a-side volleyball at the 1958 Asian Games – Men|this]]) ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 01:21, 25 October 2019 (UTC)
:::[[User:Mohsen1248|Mohsen1248]], okay, this should work now: {{para|setpoints_before_sets|y}} (default no), {{para|show_sets|n}} (default yes), and {{para|show_setpoints|n}} (default yes). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:36, 25 October 2019 (UTC)
:::: Thanks, works perfectly. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 19:34, 25 October 2019 (UTC)