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

Content deleted Content added
m Archiving 2 discussion(s) from Module talk:Sports table) (bot
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
Line 2,778:
: probably done. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:16, 19 August 2019 (UTC)
::Thank you, looks good in the test I setup. [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 13:33, 19 August 2019 (UTC)
 
== Additional column with bonus points ==
 
Hi, I'm thinking of using <code>Module:Sports table</code> in articles related to motorcycle speedway. But in many leagues there is a additional bonus points column. I like the <code>WDL</code> style table, but it must have extra bonus column. Please tell me what should I do. I need to create a new WDL based module with extra column? Or it's more complex problem and some changes in <code>Module:Sports table</code> are needed? [[User:Klima|Klima]] ([[User talk:Klima|talk]]) 11:28, 2 October 2019 (UTC)
:If you use WDL, you can use {{para|show_bonus_points|yes}} in the module setup to display a bonus points column and {{para|adjust_points_AAA|0}} and {{para|adjust_points_BBB|1}} to assign bonuses to the individual teams in the data. [[User:Spike &#39;em|Spike &#39;em]] ([[User talk:Spike &#39;em|talk]]) 11:59, 2 October 2019 (UTC)
:e.g.
{{#invoke:Sports table|main|style=WDL
|show_bonus_points=yes|for_against_style=P
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
|win_FDT=5 |loss_FDT=0 |gf_FDT=10 |ga_FDT=0
|win_BBB=3 |draw_BBB=1 |loss_BBB=1 |gf_BBB= 3 |ga_BBB=2|adjust_points_BBB=-1
|win_CCC=3 |loss_CCC=2 |gf_CCC= 3 |ga_CCC=3
|win_DDD=1 |draw_DDD=1 |loss_DDD=3 |gf_DDD= 1 |ga_DDD=4
|win_EEE=0 |loss_EEE=5 |gf_EEE= 0 |ga_EEE=6|adjust_points_EEE=3
|name_FDT=Team A
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=DDD
|name_EEE=The E's
}} [[User:Spike &#39;em|Spike &#39;em]] ([[User talk:Spike &#39;em|talk]]) 12:05, 2 October 2019 (UTC)
::Thanks a lot. I study module documentation, but missed {{para|show_bonus_points}} parameter. [[User:Klima|Klima]] ([[User talk:Klima|talk]]) 16:44, 6 October 2019 (UTC)