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,261:
{{outdent|::::::}} {{ping|Hhkohh}} Isn't that exactly what I'm saying from the start? In the adjust point (penalty point) scenario the table cell is left blank whenever the parameter is '''undefined''' (In the code there's '''no''' line "<s>adjust_points_XXX=</s>"). In the startpoint scenario a 0 is placed in the table cell because I '''define''' the value as 0 (In the code there '''is''' a line saying "startpoints_XXX=0"). Blank unless specifically defined as 0. --[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 16:45, 28 September 2018 (UTC)
:Aren't this what notes are for? Why add a column where only one team has an entry? You'd never see such a table in the newspaper. -[[User:Koppapa|Koppapa]] ([[User talk:Koppapa|talk]]) 11:59, 29 September 2018 (UTC)
 
== Non-numeric gf and ga ==
 
I have updated the WDL and WL styles to better handle non-numeric input. before the change, any non-numeric or missing input was converted to 0. after the change, any missing input is still converted to 0, but any non-numeric input is unchanged. but, if there is non-numeric input, clearly you can't calculate a goal difference or goal percentage or goal ratio, so an mdash is reported (consistent with what was done before if there was division by zero). let me know if you see any problems. we could do the same for wins, draws, losses, ... with the points left uncalculated if the input is non-numeric. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:44, 25 September 2018 (UTC)
:{{ping|Frietjes}} Seems there is an error in [[Template:2019 Chinese Super League table]]. When I write {{para|ga_XXX}}, it should be converted to 0, not just a blank [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 06:56, 1 October 2018 (UTC)
::{{ping|Frietjes}}But the table now only show 1 line, not 16 lines [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 14:21, 1 October 2018 (UTC)
:::should work now. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:50, 1 October 2018 (UTC)
 
== Additional optional columns ==
 
So that the U.S.-based teams can use these, perhaps adding Conference, Division, Home and Away columns, and making the text size smaller? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 11:31, 27 September 2018 (UTC)
:{{ping|Howard the Duck}} Why not using [[Module:Sports table/WDLHA]]? [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 11:54, 27 September 2018 (UTC)
::like [[2007–08 Football Conference]]. Not sure this module applies {{para|show_groups|yes}} and {{para|group_name}} [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 11:56, 27 September 2018 (UTC)
:::Baseball and basketball do not have tied games. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 12:16, 27 September 2018 (UTC)
::::Oh, I suggest let {{u|Frietjes}} to create [[Module:Sports table/WLHA]] [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 12:36, 27 September 2018 (UTC)
:::::[[User:Howard the Duck|Howard the Duck]], in the spirit of reducing the number of submodules, I have added {{para|show_draw|no}} to [[Module:Sports table/WDLHA]]. but, I have also made [[Module:Sports table/WLHA]] a shortcut for this option, so you can use that as well (which has show_draw=no as the default). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 12:59, 27 September 2018 (UTC)
::::::The NBA and MLB do not use points in ranking teams; instead, both use [[winning percentage]] (PCT, denoted to the nearest hundredths) and [[games behind]] (GB). Points/runs scored either home or away are never included in league tables. Instead, one column is used for home record, away record, divisional record and conference record, all in W-L format. For example, if you'd use the [[2017–18 NBA season#Regular season]] Atlantic Division standings using that module, you'd get
 
{{#invoke:sports table|main|style=WLHA|res_col_header=Q
|team1=TOR|name_TOR=[[Toronto Raptors]]
|team2=BOS|name_BOS=[[Boston Celtics]]
|team3=PHI|name_PHI=[[Philadelphia 76ers]]
|team4=NY|name_NY=[[New York Knicks]]
|team5=BKN|name_BKN=[[Brooklyn Nets]]
 
|hwin_TOR=34|hloss_TOR=7|awin_TOR=25|aloss_TOR=16|status_TOR=Y
|hwin_BOS=27|hloss_BOS=14|awin_BOS=28|aloss_BOS=13|status_BOS=X
|hwin_PHI=30|hloss_PHI=11|awin_PHI=22|aloss_PHI=19|status_PHI=X
|hwin_NY=19|hloss_NY=22|awin_NY=10|aloss_NY=31|status_NY=
|hwin_BKN=15|hloss_BKN=26|awin_BKN=13|aloss_BKN=28|status_BKN=
 
|col_Y=green1|text_Y=Clinched division
|col_X=green2|text_X=Clinched playoffs
|result1=Y|result2=X|result3=X
|class_rules=1) Head-to-head record, 2) Division record, 3) Conference record, 4) Record against playoff teams, 5) Overall point differential
|update=complete
}}
 
::::::Which means absolutely nothing to a basketball fan. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 02:56, 2 October 2018 (UTC)
::::::FWIW, I tried coughing up the simplified conference table, and [[Talk:2018–19 NBA season#New template|it actually turned out neat]]. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 03:00, 2 October 2018 (UTC)