Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
||
Line 1,318:
: {{u|CRwikiCA}}, you have to be careful when mixing [[WP:LST]] with {{tag|onlyinclude}}. basically, if you add {{tag|onlyinclude}} to a page, then any <code><nowiki>{{#lst:</nowiki></code> or <code><nowiki>{{#section:</nowiki></code> will only read what is inside the {{tag|onlyinclude}}. to fix this, you have two choices: (1) don't use {{tag|onlyinclude}} and instead wrap the table in {{tag|section}} or (2) switch the {{tag|section}} to use the [[Module:Transcludable section]] syntax. for an example of the [[Module:Transcludable section]] syntax, see links to that module. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:50, 27 March 2023 (UTC)
::{{u|Frietjes}}, I will play around with that, thanks! <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:57, 27 March 2023 (UTC)
== Rugby bonus points ==
Wanted to see if this could be used for rugby tables but couldn't find much mention of it in the talk archives or examples of it being used in wiki articles.
I can use |winpoints=4, |drawpoints=2 to fix the points awarded, and |for_against_style=points to change the goals columns to points.
But the main thing missing is the columns for bonus points - "Try Bonus (TB)" / |tb_AAA (for scoring four or more tries) and "Losing Bonus (LB)" / |lb_AAA (for being with 7 points after losing a match). Sometimes these are combined into a single bonus column (could use |bonus_combined for that) but generally they are displayed separately.
Is it possible for someone to code |tb_AAA, |lb_AAA, and |bonus_combined into this module? [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 14:31, 28 April 2023 (UTC)
:@[[User:Boothy m|Boothy m]] have a look at {{tl|2022–23 Top 14 Table}} and its use of the <code>custom </code>option which I think does what you want, albeit with bonus points combined into one column. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 14:39, 28 April 2023 (UTC)
::Thanks, that looks useful. Would of course still be good to have the additional parameters to avoid all the custom ones :) [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 15:23, 28 April 2023 (UTC)
::Hmm, unfortunately looks like you can't add three custom columns together, for example "| colstyle10=sum_points_col8_col9" doesn't work so the separate try and losing bonus columns can't be implemented using the Top14 table. [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 15:54, 28 April 2023 (UTC)
::: [[User:Boothy m|Boothy m]], have you looked at [[Module:Sports table/Rugby]]? if {{para|show_bonus|yes}} then {{para|tbp_XXX}} and {{para|lbp_XXX}} both work, see [[2010_Currie_Cup_Premier_Division#Standings|here for an example]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:18, 9 May 2023 (UTC)
::::@[[User:Frietjes|Frietjes]] no but I have now - can't see it listed on the [[Module:Sports table]] page so didn't know it existed! Seems to work well though, thanks. [[User:Boothy m|Boothy m]] ([[User talk:Boothy m|talk]]) 22:55, 9 May 2023 (UTC)
::::: Great, I have added it to the list. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 00:12, 10 May 2023 (UTC)
|