Module talk:Sports table

This is an old revision of this page, as edited by Asturkian (talk | contribs) at 11:42, 16 December 2014 (About other sports: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 10 years ago by Asturkian in topic About other sports

Sorting

Is sorting based on class_rules or is that just never used? 2014–15_BeNe_League#League_table does not sort first 3 places correctly. -Koppapa (talk) 06:47, 10 October 2014 (UTC)Reply

I get it now. There is no sorting at all. Positions are set by team1=... and so on. -Koppapa (talk) 09:24, 10 October 2014 (UTC)Reply
Yes, that's correct, I followed the standings on the BeNe League website, but it's easy enough to change. Hopefully you find the new format easy to understand and edit. CRwikiCA talk 13:50, 10 October 2014 (UTC)Reply
An easy way to get around this confusion is to add comments in the table, such as <!-- Team positions --> above team1, team2 parameters and so on to explain what each section does and what the parameters are for (as many users dont read documentation). QED237 (talk) 14:31, 10 October 2014 (UTC)Reply
That could be a solution yes. CRwikiCA talk 15:11, 10 October 2014 (UTC)Reply

Head-to-head results

@CRwikiCA: The documentation seems to indicate that notes entered in |hth_TTT= will appear in the points column, but nothing shows up in the example or in my sandbox. -- Jkudlick (talk) 17:58, 4 November 2014 (UTC)Reply

Something went wrong when implementing the option to create different styles of tables. I'll try to find the issue and let you know when it's fixed.CRwikiCA talk 19:01, 4 November 2014 (UTC)Reply
@Jkudlick: I reverted the live version, so the functionality works now. I will resolve the issue in the sandbox and then bring it to the live version once it fully works. CRwikiCA talk 19:12, 4 November 2014 (UTC)Reply
I now resolved the issue and implemented it in the live version. CRwikiCA talk 19:26, 4 November 2014 (UTC)Reply
Awesome. Great work! -- Jkudlick (talk) 14:58, 5 November 2014 (UTC)Reply

res_col_header

For res_col_header= can you also have Comments as per 2014–15 Ukrainian First League ? Brudder Andrusha (talk) 05:28, 7 November 2014 (UTC)Reply

@Brudder Andrusha: Yes, see reply at WT:FOOTY:
Pos Team Pld W D L GF GA GD Pts Comments
1 FIFA World Cup Dream Team 5 5 0 0 10 0 +10 15 New
Updated to match(es) played on unknown. Source: [citation needed]

It can be customized that way, although you might want to indicate the new status with footnotes instead:

Pos Team Pld W D L GF GA GD Pts Qualification or relegation
1 FIFA World Cup Dream Team[a] 5 5 0 0 10 0 +10 15 1974 FIFA World Cup
2 Team 2 5 3 1 1 3 2 +1 10
3 Team 3[b] 5 3 0 2 3 3 0 9
4 DDD[a] 5 1 1 3 1 4 −3 4
5   Gibraltar 5 0 0 5 0 6 −6 0
Updated to match(es) played on unknown. Source: [citation needed]
Notes:
  1. ^ a b New team, promoted from lower division
  2. ^ New team, relegated from higher division

I hope this answers your questions. CRwikiCA talk 15:17, 7 November 2014 (UTC)Reply

Passing parameters via template calls

Would it be possible to write the code to allow for parameter values to be passed via template call? I'm specifically thinking of |only_pld_pts=, which is presently coded so that a truncated table is displayed if called (even if no value is assigned). If you look at the UEFA Group Stage tables on the 2015 WWC qual article you can see that the tables are truncated to fit better in the article, but the tables are full size on the main UEFA article and on each of the group articles. Could the coding for |only_pld_pts= be changed to require a specific yes or true value to activate? If that can be done, would passing the value via the template call be possible, e.g. set |only_pld_pts={{{trunc}}} in the module and call {{2015 FIFA Women's World Cup Group A table|trunc=true}}? -- Jkudlick (talk) 12:38, 7 November 2014 (UTC)Reply

@Jkudlick:This would be possible, do you want me to implement it for the group A to see whether my idea works? I think having values yes, y, true, t and 1 (independent of case) would catch all options, or should there be more options? CRwikiCA talk 15:21, 7 November 2014 (UTC)Reply
@CRwikiCA:Those options should be enough. If you want to test it on Group A, I have no problem with that. -- Jkudlick (talk) 15:37, 7 November 2014 (UTC)Reply

@Jkudlick: Done: Template:2015 FIFA Women's World Cup Group A table Template:2015 FIFA Women's World Cup Group A table I kept the same parameter name to keep it easier to follow if people end up reading the Lua code. CRwikiCA talk 17:29, 7 November 2014 (UTC)Reply

Last updated and source

I would be in favour of this being changed to <small> text, in line with some of the other templates used on football pages (I'm not aware for other sports), such as Template:Fb rs (footer is at Template:Fb rs footer). I don't know if there's any guidelines or policies on the use of small text here, but I'd be in favour of a change. - 97rob (talk) 17:51, 6 December 2014 (UTC)Reply

Using <small></small> in table footers is likely a violation of MOS:FONTSIZE, thus the reason the footers in the module are not as small as many editors are accustomed to. -- Jkudlick tcs 18:28, 6 December 2014 (UTC)Reply
The size was indeed brought up in one of the discussions leading up to the introduction of the module. It is now set at the user-defined reference list size, which has 90% as default. Some small text on Wikipedia does indeed seem to violate MOS:FONTSIZE. CRwikiCA talk 20:38, 6 December 2014 (UTC)Reply

About other sports

As this module is called "Sports table", are you going to prepare it for other sports (e.g., deleting the draws column for basketball, different point criteria at rugby union or volleyball, etc)? Great job, btw. Asturkian (talk) 11:42, 16 December 2014 (UTC)Reply