Module talk:Sports table
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)
- 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)
- 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)
- 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)
- That could be a solution yes. CRwikiCA talk 15:11, 10 October 2014 (UTC)
- 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)
- 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)
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)
- 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)
- @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)
- I now resolved the issue and implemented it in the live version. CRwikiCA talk 19:26, 4 November 2014 (UTC)
- Awesome. Great work! -- Jkudlick (talk) 14:58, 5 November 2014 (UTC)
- I now resolved the issue and implemented it in the live version. CRwikiCA talk 19:26, 4 November 2014 (UTC)
- @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)
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)
- @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 |
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 |
Notes:
I hope this answers your questions. CRwikiCA talk 15:17, 7 November 2014 (UTC)
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)