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 2 discussion(s) from Module talk:Sports table) (bot
Line 947:
::::::{{ping|PrimeHunter}} That's a wonderful explanation. But as these templates get more and more complex, these issues will get tougher to handle to naive users. [[User:Coderzombie|Coderzombie]] ([[User talk:Coderzombie|talk]]) 14:13, 6 July 2020 (UTC)
::::::: you can also wrap the content in {{tl|trim}}, but removing the newlines is the better approach. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:20, 14 July 2020 (UTC)
 
== Custom columns ==
 
Is there an easy way on adding additional columns aside from switching to Custom? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 15:14, 14 July 2020 (UTC)
: [[User:Howard the Duck|Howard the Duck]], what column to you want to add? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:18, 14 July 2020 (UTC)
:: It's to show the record of the team in that particular stage of the tournament; the other parts of the table show its overall record. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 17:27, 14 July 2020 (UTC)
:::[[User:Howard the Duck|Howard the Duck]], do you have an example? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:10, 14 July 2020 (UTC)
::::[[2012 PBA Governors' Cup#Semifinals]]. I used 2 tables in here, but could've used just one with an extra column for the teams' semifinal round record. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 18:15, 14 July 2020 (UTC)
::::I tried doing this using Custom version, but I can't since it doesn't allow you to calculating by winning percentage, just points. I'd suggest allowing that functionality... or allow adding extra columns in the WL version, just in case those US leagues start using this module. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 18:39, 14 July 2020 (UTC)
 
== Floating tables and moving the source to the title ==
 
Per request at [[1993 Football League First Division play-off Final]], I have added two more features. (1) if you use {{para|float|left}} or {{para|float|right}} it essentially uses {{tl|stack begin}} and {{tl|stack end}} to float the table to the left or right. (2) if you use {{para|title}} and {{para|title_source}} then a source is appended to the title, and the source in the footer is no longer required. I will work on updating the documentation. please let me know if I broke something. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:18, 14 July 2020 (UTC)
: I also added an optional {{para|digitpad|1}} for WDL style, which _should_ do nothing if omitted, but otherwise pads under 10 by one {{tl|0}}. to have the module first scan the columns to determine the alignment would require a lot more work (two passes), but this seems to work in many cases where it's wanted. if this addition is controversial, I will remove it. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:22, 15 July 2020 (UTC)
 
{{outdent}}
How about {{para|float|center}} as an option as well? —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 17:19, 2 October 2020 (UTC)