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

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
m Archiving 3 discussion(s) from Module talk:Sports table) (bot
Line 1,356:
: [[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)