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 |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1,448:
On [[2023–24 Nigeria Premier Football League#League table|this table]], it was reported that Gombe United were deducted 6 points and 6 goals, I was able to adjust the points but not the same for the goals. <span style="color:#9400D3;">[[User:Josedimaria237|Jõsé]]<sup>[[User talk:Josedimaria237| ''hola'']]</sup></span> 10:51, 4 April 2024 (UTC)
== How to indicate that two teams have tied in a Sports Table module. ==
On my current draft page, at [[User:Yoblyblob/1985 Niue Soccer Tournament]], the two top teams in Division 1 officially tied for a joint championship. Does anyone know how to edit the number to show them both finishing in first? [[User:Yoblyblob|Yoblyblob]] ([[User talk:Yoblyblob|Talk]]) :) 15:20, 30 May 2024 (UTC)
:<s>@[[User:Yoblyblob|Yoblyblob]] I don't think you can, but you can use the status column to show that the title was shared (see [[Module:Sports table/WDL#Results and status]]). Otherwise I think you'd have to use a normal table and not this module. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:16, 30 May 2024 (UTC)</s>
:|pos_XXX=1 [[User:Quri.inka|Quri.inka]] ([[User talk:Quri.inka|talk]]) 17:09, 31 May 2024 (UTC)
::This is true. I'd forgotten about the {{para|POS}} parameter. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 19:38, 31 May 2024 (UTC)
== Edit request 18 September 2024 ==
{{Edit template-protected|answered=yes}}
'''Description of suggested change:'''
Allow custom text inside <code>splitN</code> for tables like [[2014 FIFA World Cup#Final standings]].
'''Diff:'''
{{TextDiff|1=<nowiki> table.insert(t,'|- style="background-color:'..result_col['black1']..'; line-height:3pt;"\n')
table.insert(t,string.rep('|',2*N_cols)..'\n')
</nowiki>
|2=<nowiki> if yesno(Args['split'..ii]) == nil then
table.insert(t,'|-\n')
table.insert(t,'|colspan='..(2*N_cols)..'|'..Args['split'..ii]..'\n')
else
table.insert(t,'|- style="background-color:'..result_col['black1']..'; line-height:3pt;"\n')
table.insert(t,string.rep('|',2*N_cols)..'\n')
end
</nowiki>
}} [[User:SocietyBox|SocietyBox]] ([[User talk:SocietyBox|talk]]) 23:46, 18 September 2024 (UTC)
:The {{param|res_col_header}} parameter allows grouping and has the benefit of positively identifying which rows the comment applies to. It's not always apparent which rows a heading like those in [[2014 FIFA World Cup#Final standings]] applies to. [[MOS:COLHEAD]] actively discourages the use of inserted summary rows like this. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 13:42, 19 September 2024 (UTC)
::Thanks. Just the excuse I needed to rewrite that table. [[User:SocietyBox|SocietyBox]] ([[User talk:SocietyBox|talk]]) 23:59, 20 September 2024 (UTC)
== Help with a custom table ==
I've been trying to convert the wikitable at [[2024 USL Cup#Ranking of non-group leading teams]] to use [[Module:Sports table]], but have come across some issues. When using [[Module:Sports table/Custom]], the following issues arise:
*Played column calculation: cannot add W+PKW+PKL+L
*Points column calculation: cannot assign 2 points for a PKW and 1 point for a PKL
*Points column formatting: cannot disable bolding
See the below code for an example.
{{Hidden|Using Sports table/Custom|text=
{{#invoke:Sports table|main|style=Custom/sandbox
|num_cols=9
|plus_sign_diffs=y
|colstyle1=played
|colstyle2=win
|colstyle3=PKwin
|col_header3={{Abbr|PKW|Penalty kicks win}}
|colstyle4=PKloss
|col_header4={{Abbr|PKL|Penalty kicks loss}}
|colstyle5=loss
|bold_col6=yes
|col_header6={{Abbr|GF|Goals for}}
|colstyle6=gf
|col_header7={{Abbr|GA|Goals against}}
|colstyle7=ga
|col_header8={{Abbr|GD|Goal difference}}
|colstyle8=diff_gf_ga
|colstyle9=points
|team_order=OMA, LEX, GVL, CHA, RIC, SPK, KNX, CV, TRM
|win_CV =1 |PKwin_CV =1 |PKloss_CV =3 |loss_CV =3 |gf_CV =8 |ga_CV =10
|win_SPK=1 |PKwin_SPK=0 |PKloss_SPK=2 |loss_SPK=5 |gf_SPK=9 |ga_SPK=17
|win_OMA=3 |PKwin_OMA=2 |PKloss_OMA=1 |loss_OMA=2 |gf_OMA=16 |ga_OMA=13
|win_CHA=1 |PKwin_CHA=1 |PKloss_CHA=1 |loss_CHA=5 |gf_CHA=10 |ga_CHA=15
|win_LEX=3 |PKwin_LEX=2 |PKloss_LEX=1 |loss_LEX=2 |gf_LEX=10 |ga_LEX=10
|win_KNX=4 |PKwin_KNX=1 |PKloss_KNX=1 |loss_KNX=2 |gf_KNX=8 |ga_KNX=7
|win_GVL=3 |PKwin_GVL=1 |PKloss_GVL=1 |loss_GVL=3 |gf_GVL=10 |ga_GVL=8
|win_RIC=2 |PKwin_RIC=3 |PKloss_RIC=0 |loss_RIC=3 |gf_RIC=9 |ga_RIC=11
|win_TRM=0 |PKwin_TRM=2 |PKloss_TRM=2 |loss_TRM=4 |gf_TRM=8 |ga_TRM=13
|name_CV = [[Central Valley Fuego FC]]
|name_SPK = [[Spokane Velocity|Spokane Velocity FC]]
|name_OMA = [[Union Omaha]]
|name_CHA = [[Chattanooga Red Wolves SC]]
|name_LEX = [[Lexington SC]]
|name_KNX = [[One Knoxville SC]]
|name_GVL = [[Greenville Triumph SC]]
|name_RIC = [[Richmond Kickers]]
|name_TRM = [[Tormenta FC|South Georgia Tormenta FC]]
|res_col_header=Q
|result1=KO
|col_KO = green1 |text_KO = Advanced to [[2024 USL Cup#Knockout stage|knockout stage]]
}}
}}
Or, instead of using the Custom module, would it be easier to allow an option to modify [[Module:Sports table/WL PK|WL PK]]/[[Module:Sports table/WDL OT|WDL OT]] to change which columns are and are not bolded? What would be the best solution? Pining {{u|Frietjes}}, who is very knowledgeable with this module. Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 18:06, 15 October 2024 (UTC)
: [[User:S.A. Julio|S.A. Julio]], yes, changing [[Module:Sports table/WL PK|WL PK]]/[[Module:Sports table/WDL OT|WDL OT]] would probably be less complicated, with a lot less code in the article. looking at [[Module:Sports table/WDL OT|WDL OT]]. we may be able to trigger it through {{para|ranking_style}} without adding another parameter. I have to look. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:17, 15 October 2024 (UTC)
:: I added {{para|ranking_style|forpts}} which bolds the goals for column. I could have it unbold the points column, but the looking at the logic for {{para|ranking_style}} in the other cases, I would expect it to bold both. to selectively turn on and off bolding, we should have a different parameter for clarity. but, in this case, the ranking is first by points scored, and second by points, so it seems okay to have both bolded. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:44, 15 October 2024 (UTC)
:::{{re|Frietjes}} Ok, great thank you! I will note that for this article, only head-to-head points is a tiebreaker. Therefore, the points column doesn't really need to be emphasized, but it's not a big deal if it requires too many changes for another parameter. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 20:06, 15 October 2024 (UTC)
== Totals check ==
{{ping|Frietjes}} One other quick question: often this module will be used to show how teams rank from different groups, for example: [[UEFA Euro 2016#Ranking of third-placed teams]]. However, then the totals check will give a number of warnings when previewing an edit that the wins/losses, goals for/against, etc. do not total each other. Is there any way the totals check feature could be disabled when groups are present? Would be really appreciated if possible! Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 20:48, 17 October 2024 (UTC)
:@[[User:S.A. Julio|S.A. Julio]] try adding {{para|notracking|yes}} to the table. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:07, 17 October 2024 (UTC)
::{{re|Nthep}} The only issue is that there are hundreds of such tables, having a simpler way of disabling the totals check would be nice. I would say almost all tables with the 'group' column do not need a total check. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 21:17, 17 October 2024 (UTC)
:::The test to display total checks could be set to depend on either of the {{para|show_groups}} or {{para|notracking}} parameters without too much difficulty (I think). But there would need to be a way to allow total checks to be shown, if wanted, on tables with groups so the logic would need to allow that.
:::There's probably more investigation needed into how many tables there are that use groups and how many of those don't need total checks. [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 21:51, 17 October 2024 (UTC)
== This module interfering with {{tl|efn}} on {{tl|notelist}} ==
See for example [[NCAA Season 6 basketball tournaments]]. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 01:33, 6 January 2025 (UTC)
:If tried using <code>|group=</code> but it doesn't solve the issue. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 01:55, 6 January 2025 (UTC)
::Do you mean that you don't want the notes to appear under the group B table and, instead, appear in the notes section at the end of the article? [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 09:19, 6 January 2025 (UTC)
:::Yeah. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 14:03, 6 January 2025 (UTC)
::::The module automatically add a notelist equivalent to {{tl|notelist}} / {{tl|notelist-la}} so don't use <code>|note_XXX=</code>, instead use {{tl|efn-ua}} (or any of the other options) and the corresponding {{tl|notelist-ua}} [[User:Nthep|Nthep]] ([[User talk:Nthep|talk]]) 16:05, 6 January 2025 (UTC)
:::::That's noted. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 19:25, 6 January 2025 (UTC)
::::::Thanks. Using {{tl|efn-ua}} and {{tl|notelist-ua}} worked. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 19:30, 6 January 2025 (UTC)
== Sports table/WDL GD/PP and Pts/PCT headers ==
Can the headers of these columns (and any others not currently editable) be made to be changeable, such as the current <code>|postitle=</code> or <code>|team_header=</code>?
Eg. <code>|ptstitle=</code> or <code>|gd_header=</code> (something of this nature) [[User:KeneRink63|KeneRink63]] ([[User talk:KeneRink63|talk]]) 04:56, 13 May 2025 (UTC)
|