Template talk:Infobox sports season

From WikiProjectMed
Jump to navigation Jump to search

Recent changes

I recently made some changes to the next/prev years and list of season links at the bottom - the changes mean that if any article doesn't exist, it will not redlink. It also means that if some parameters are not included (e.g. "prevlink"/"prevyear" for the first season of a league) it will not break the template. I made these change only after thorough testing, so I don't believe I have broken anything - please let me know if there are any issues. -- Chuq (talk) 00:57, 16 February 2008 (UTC)[reply]

I've just made another change - introduced the optional parameters for season_champ_name, league_champ_name, etc. so alternate names for "League champion" and "Season champion" can be used. The example is for the A-League, where "champions" and "premiers" are used. See User:Chuq/A-League season for usage examples. -- Chuq (talk) 06:43, 16 February 2008 (UTC)[reply]

I've added a separate "Minor premiers" to the infobox. Essentially it's the same as "League champion" above, but in some leagues the title has less importance than runners-up. I wasn't sure how best to accommodate it, so I added a separate parameter below runners-up. Cheers. Liveste (talkedits) 23:37, 14 November 2010 (UTC)[reply]

'Next' link does not work!

Hi, The 'previous' link works, but the 'next' does not. I've noticed this in the pages 2011–12 A-League where a next page does exists but cannot be accessed. Can someone please help! Thanks. -- User:2nyte 10:27, 13 April 2012 (AEST)

Promotion/relegation

I'm a little frustrated with the rigidity of the "promoted" function here. In the context in which I'm trying to use it (lets call it Division 2), I want to say who was promoted and relegated from Division 2 as a result of this season described in the infobox in question. So in that case, what it needs to say isn't "promoted from…" but "Promoted to Division 1:". Doesn't that make sense? Would it be possible to add a function to the template allowing for a "promoted to" field as opposed to the existing "promoted from"? — SwedishPenguin | Talk 13:58, 1 July 2013 (UTC)[reply]

Apparently, this was fixed in an incorrect way. Now the template works for the second tier, but not for the first anymore. There is a difference between "promoted to" and "promoted from". The label for the value promote_from should say "promoted from" and it should only say "promoted to" if promote_to is used. --GregorBungensheim (talk) 11:55, 2 May 2022 (UTC)[reply]

Top goalkeeper/goaltender

Any objections to adding a 'Top goalkeeper/goaltender' line below 'Top scorer'? It would be either goalkeeper or goaltender, not goalkeeper/goaltender. I suggest it be optional, of course. Alaney2k (talk) 20:30, 26 February 2014 (UTC)[reply]

This'll open the floodgates on adding best <insert position here>, although goalkeepers has to be the most special(ized) ones out there. Kinda unfair though that we'd leave out the "best defender" if there's a "top scorer"... –HTD 00:02, 27 February 2014 (UTC)[reply]
Association football (goalkeeper) has a separate infobox so if they can be obliged to add one, do we add one here too for the rest of the sports with goalkeepers/tenders (the hockey codes, water polo, what else?). –HTD 01:20, 27 February 2014 (UTC)[reply]

Problems with prev/alt/next seasons

There's a problem with these. If prev is left blank there's something strange, see: 1958 FIBA European Champions Cup. Maybe the first altseason_link should have left not right (3 lines after data56) but even so it needs to check if alt is set or not. In fact I'm confused about what the alt is trying to achieve. Is it intended that all 3 can be defined or is the alt intended to be an alternative for prev/next. See: 2000–01 FIBA SuproLeague which looks okish but shorten altseason_year to xxx and it looks a bit odd. Nigej (talk) 08:17, 11 January 2015 (UTC)[reply]

Nigej, not exactly sure what it's for either, but clearly the 1958 example shows there was a typo with it being stuck in there twice. seems to me that it should be centre aligned? Frietjes (talk) 16:40, 11 January 2015 (UTC)[reply]

Template-protected edit request on 23 March 2019

Could someone add

request inside

| header40 = {{{season4|}}}

| label41 = {{{season_champ4_name|Season champions}}}

| data41 = {{{season_champs4|}}}

| label42 = {{{league_champ4_name|League champions}}}

| data42 = {{{league_champs4|}}}

| label43 =   Runners-up

| data43 = {{#if:{{{second_place4|}}}|{{{second_place4|}}}}}

| label44 = Top seed

| data44 = {{{top_seed4|}}}

| header45 = {{{season4|}}}

| label46 = {{{season_champ4_name|Season champions}}}

| data46 = {{{season_champs4|}}}

| label47 = {{{league_champ4_name|League champions}}}

| data47 = {{{league_champs4|}}}

| label48 =   Runners-up

| data48 = {{#if:{{{second_place4|}}}|{{{second_place4|}}}}}

| label49 = Top seed

| data49 = {{{top_seed4|}}}

Which would also entail shifting everything from here:

| header40 = {{#if:{{{playoffs_link|}}} | [[{{{playoffs_link}}}|{{{playoffs}}}]] | {{{playoffs|}}} }}

onwards down. Thanks in advance! Pbroks13 (talk) 17:09, 23 March 2019 (UTC)[reply]

 Not done, @Pbroks13: please make the adjustments in the sandbox (Template:Infobox sports season/sandbox) and validate, then reactivate the edit request when it is ready to go live. Thank you, — xaosflux Talk 05:13, 24 March 2019 (UTC)[reply]
@Xaosflux: Thank you. The sandbox is ready to be put live. Pbroks13 (talk) 12:35, 24 March 2019 (UTC)[reply]
 Done @Pbroks13: loaded in, let us know if there are any issues that need adjusting. Thank you for working up the sandbox. — xaosflux Talk 13:58, 24 March 2019 (UTC)[reply]
@Xaosflux: Actually, just one more thing. I forgot to update the "check unknown parameters". I've updated it in the sandbox, if you could do it one more time. Thanks again. Pbroks13 (talk) 14:12, 24 March 2019 (UTC)[reply]
@Pbroks13: -  Donexaosflux Talk 14:21, 24 March 2019 (UTC)[reply]

Change "TV partner(s)" to "Media partner(s)" or "Broadcaster(s)"

As sports rights are now increasingly held by streaming video broadcasters that are not necessarily classified as "TV" in the sense implied by this template, I think the wording should be updated to reflect the current technological environment. ViperSnake151  Talk  15:25, 26 June 2020 (UTC)[reply]

 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. Make a proposal and get consensus for it please. – Jonesey95 (talk) 23:11, 26 June 2020 (UTC)[reply]

Template-protected edit request on 8 October 2020

The section of the template that does "Check for unknown parameters" should accept World_Series_MVP and World_Series_MVP_link as valid parameters. Currently, use of these fields produces spurious warning errors. See for example 2013 Major League Baseball season (Edit source, Show preview). Thank you. Dmoore5556 (talk) 08:41, 8 October 2020 (UTC)[reply]

To editor Dmoore5556:  done, and thank you very much! P.I. Ellsworth  ed. put'r there 09:36, 8 October 2020 (UTC)[reply]
Thank you for making that edit. Dmoore5556 (talk) 15:47, 8 October 2020 (UTC)[reply]

Number of games

Apparently in North American English, "number of games" doesn't refer to "number of games" but "number of games per team". Can we add another parameter for this, then change it to this new one for the Big 4 leagues' seasons? With discussion, of course. Howard the Duck (talk) 14:33, 14 December 2020 (UTC)[reply]

Template-protected edit request on 24 April 2021

Please add

label50 = {{{season_champ6_name|Season champions}}}

data50 = {{{season_champs6|}}}

label51 = {{{league_champ6_name|League champions}}}

data51 = {{{league_champs6|}}}

label52 =   Runners-up

data52 = {{#if:{{{second_place6|}}}|{{{second_place6|}}}}}

label53 = Top seed

data53 = {{{top_seed6|}}}

And adjust numbers afterwards as needed. Pbrks (talk) 22:06, 24 April 2021 (UTC)[reply]

@Pbrks: Did you intentionally omit |header50={{{season6|}}} (and thus a number increase for each other parameter) from your request? * Pppery * it has begun... 01:07, 18 May 2021 (UTC)[reply]
@Pppery: Ah, I overlooked that. For my purposes, yes, I don’t need that header, but for consistency’s sake, that should be included as well. Pbrks (talk) 01:50, 18 May 2021 (UTC)[reply]
@Pbrks: Thanks. I've now coded this in the sandbox, can you confirm that it looks good before I move the code to the main template? * Pppery * it has begun... 02:00, 18 May 2021 (UTC)[reply]
@Pppery: Looks all good as far as I can tell. Thank you! Pbrks (talk) 02:45, 18 May 2021 (UTC)[reply]

 Done * Pppery * it has begun... 02:46, 18 May 2021 (UTC)[reply]

Update placement of NFL Draft content

See CFB render:

Where the 2015 NFL Draft (person) content:

2015 NFL Draft
Top draft pick	Marcus Mariota (Oregon)
Picked by	Tennessee Titans, 2nd overall

is rendered above both the 2014 (team) Regular season and 2014 (team) Championship sections.

Contrast with:

While Draft/PotY/MOP content are slightly different individual accomplishments, the CFB render of NFL Draft content should follow latter those two models. Individual achievement should be located beneath the team-level achievements which are the core topic of the season and the article. UW Dawgs (talk) 19:23, 10 June 2021 (UTC)[reply]

Template-protected edit request on 17 April 2022

Change

| label16 = Runners-up and | label17 = Minor premiers

to

| label16 = &nbsp;&nbsp;Runners-up and | label17 = &nbsp;&nbsp;Minor premiers

to be consistent with the other "Runners-up" and "Minor premiers" rows. – Pbrks (t • c) 15:33, 17 April 2022 (UTC)[reply]

 Done. P.I. Ellsworth - ed. put'r there 17:17, 17 April 2022 (UTC)[reply]

Template-protected edit request on 20 June 2022

I've improved the way that the attendance parameter is displayed. And, average attendance will be automatically calculated if the number of games is entered. See the sandbox for these revisions. –Aidan721 (talk) 21:52, 20 June 2022 (UTC)[reply]

Sounds reasonable to me. The test case demonstrates it working.  — SMcCandlish ¢ 😼  17:04, 25 June 2022 (UTC)[reply]
 Done. P.I. Ellsworth , ed. put'r there 15:46, 1 July 2022 (UTC)[reply]
@Paine Ellsworth and Aidan721: The above change has caused expression errors to show up on around 30 articles. For some cases, like 2009–10 Turkish Basketball League, the fix is obvious (remove the redundant calculation), but for others like 2009–10 Turkish Basketball League it's not clear where the reference that can no longer be in that parameter should go instead. * Pppery * it has begun... 13:31, 2 July 2022 (UTC)[reply]
eraser Undone until resolved. P.I. Ellsworth , ed. put'r there 17:34, 2 July 2022 (UTC)[reply]
Resolved by testcase with 2009–10 Turkish Basketball League. Added {{#iferror: to detect error and if an error occurs, only the attendance parameter will be displayed and average attendance will not be calculated and only shown if passed to {{{average_attendance}}}. –Aidan721 (talk) 01:22, 5 July 2022 (UTC)[reply]
 Not done for now: looks like this needs more care. I've tested a few variations, and I found the first rendition a significant improvement; however, having to account for possible errors may have taken some of the wind out of its wings. Keep thinking, 'What if this?' and 'What if that?', so don't think this is as much of an improvement now. I could be wrong, so what is needed is more discussion and, hopefully, a consensus to emerge. And maybe some way to actually remove the problem automatically without throwing an error is needed? P.I. Ellsworth , ed. put'r there 16:02, 5 July 2022 (UTC)[reply]
Better documentation needs to be written so that users know what should be entered in each parameter because right now it is not very clear. –Aidan721 (talk) 16:29, 6 July 2022 (UTC)[reply]
Those articles should be edited to only pass an integer to {{{attendance}}}. {{{average_attendance}}} exists for that reason. Perhaps we would have to add {{{attendance_footnote}}} for the citation. –Aidan721 (talk) 17:44, 2 July 2022 (UTC)[reply]

TemplateData

Can we get TemplateData for this infobox? This infobox is used far too often to be missing it. –Aidan721 (talk) 19:23, 6 July 2022 (UTC)[reply]

TemplateData is added to the documentation, which in this case is not protected. P.I. Ellsworth , ed. put'r there 10:55, 8 July 2022 (UTC)[reply]
So why would that mean that it can't be added? Other protected templates have it. –Aidan721 (talk) 13:00, 8 July 2022 (UTC)[reply]
The implication was not that TD can't be added, the implication was that it does not take an admin or TE to add it. Even you could add it, isn't that correct? P.I. Ellsworth , ed. put'r there 00:30, 10 July 2022 (UTC)[reply]
From my experience, it's easier to auto-generate TD when you have access to edit the template. –Aidan721 (talk) 03:12, 10 July 2022 (UTC)[reply]
If the documentation is on a separate page, why would one need access to edit the template? Only access to read the template's code and find the parameters should be needed, whether auto- or manually-generated. And if the documentation is directly in the code of a protected template, then that needs updating to get the documentation a page of its own (/doc). P.I. Ellsworth , ed. put'r there 02:47, 11 July 2022 (UTC)[reply]

Add decimal separator into Total attendance13 October 2022

Right now the total attendance shown doesn't have decimal separator.(Example:2022–23 SuperLega) When the number is big, it's not convenient for people to read. Here is an example with decimal separator shown in the total attendance. (2022 FIVB Volleyball Women's World Championship) Hope we can add decimal separator into Total attendance. Also it's good to calculate the avg attendance. :

Diff:

ORIGINAL_TEXT
+
CHANGED_TEXT

Ojvolleyball (talk) 09:51, 13 October 2022 (UTC)[reply]

 Not done for now: This change is being tested in the sandbox by Aidan721. It is not ready to deploy. For one thing, the calculated average attendance is unable to determine whether to use "match", "game", or some other word for the per-event average attendance description. See Template:Infobox sports season/testcases. – Jonesey95 (talk) 16:32, 13 October 2022 (UTC)[reply]

Template-protected edit request on 1 December 2022

Add {{{preseason1}}} to use on college season articles. –Aidan721 (talk) 19:03, 1 December 2022 (UTC)[reply]

 Completed per your sandbox code. Please, Aidan721, update the template documentation as needed. P.I. Ellsworth , ed. put'r there 06:58, 2 December 2022 (UTC)[reply]
@Paine Ellsworth: I had the parameters in {{abbr}} backwards. Can you update now? –Aidan721 (talk) 16:05, 3 December 2022 (UTC)[reply]
 Completed. P.I. Ellsworth , ed. put'r there 18:00, 3 December 2022 (UTC)[reply]

Edit request 8 November 2023

Add MVP4 and MVP_link4 ~ Xehny (talk) 00:01, 8 November 2023 (UTC)[reply]

What article needs these parameters? Are you asking for the creation of a whole "season4" section? If not, where should MVP4 be displayed? – Jonesey95 (talk) 02:50, 8 November 2023 (UTC)[reply]
 Not done for now; please be explicit about exactly what code should be changed. Happymelon 10:27, 8 November 2023 (UTC)[reply]
Happy-melon, this is one of those times where it's a very straight-forward addition (we already have |MVP3= and |MVP_link3= for example) so extensive sandboxing isn't strictly necessary here. The answer to Jonesey's question, though, would be nice. Primefac (talk) 10:35, 8 November 2023 (UTC)[reply]
I shall leave implementation in your capable hands! :) Happymelon 12:26, 8 November 2023 (UTC)[reply]
There is already a season 4 section, it is just missing mvp parameters. The article I need it for is "2023 LEC season" (currently in draft), which has 4 seasons. I believe I have made the appropriate changes in the sandbox to show how this can be implemented. ~ Xehny (talk) 19:48, 8 November 2023 (UTC)[reply]

 Done * Pppery * it has begun... 18:33, 10 November 2023 (UTC)[reply]

Separate Streaming partners parameter

Unless there are any objections, I would like to add a |streaming= parameter here. For the same reason on Template talk:Infobox sports league#Separate TV Partners from Streaming partners, some leagues have multiple different partners for TV and internet. In the case here, these streaming partners may change each season. I have access to edit template-protected pages, so I will wait a week or two, or maybe longer, if anybody would like to make a comment on this. Thanks. Zzyzx11 (talk) 03:57, 22 January 2024 (UTC)[reply]

Added, as there is no objection yet. Zzyzx11 (talk) 09:08, 20 February 2024 (UTC)[reply]