Plantilla discusión:Infobox television season
This template was considered for deletion on 2018 December 17. The result of the discussion was "Do not merge". |
La página Plantilla:Talk header/styles.css debe tener el modelo de contenido "CSS expurgado" para TemplateStyles (el modelo de contenido que tiene actualmente es "texto wiki").
This is the talk page for discussing improvements to the Infobox television season template. |
|
WikiProject Infoboxes | |||||||
|
{{#assessment:Infoboxes||}}
WikiProject Television | (Rated NA-class) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
{{#assessment:Television|NA|NA}}
Automatic italicization of List of Episodes[editar código]
We need to take a look at the regex used for |episode_list=
and its automatic italicization. There's issues caused when LoE articles with years at the end are linked; examples of this can be seen at articles such as The Simpsons (season 1) and Doctor Who (series 12), where the LoE appears as List of The Simpsons episodes (seasons 1–20) and List of Doctor Who episodes (2005–present) respectively. That is, "episodes" should not be italicized. -- /Alex/21 08:09, 14 July 2020 (UTC)
- @Alex 21: I've done some work that you can check with the sandbox version. What it does is as follows:
- If the
|episode_list=
parameter is empty, it generates the list of episode title based on the current page title without the season disambiguation. You can check this on Lost (season 1) by removing the parameter. - If the parameter is set it uses it and italics the series name based on the current page title. You can also check this on Lost (season 1).
- Works also when the season has extended disambiguation. You can check this on Teenage Mutant Ninja Turtles (2012 TV series, season 1).
- If the parameter is used and the link has an additional seasons range, it uses it. You can check this on The Simpsons (season 1) and Doctor Who (series 12).
- In any case it only shows the link if the page exists.
- Let me know if you have any comments. --Gonnym (talk) 12:42, 14 July 2020 (UTC)
- Gonnym, perfect, thank you! I recall implementing the wikicode regex, but that was too long ago to remember how I went about it, and moving it to module code is a great idea. Looks like it's readt to implement, then. -- /Alex/21 23:09, 14 July 2020 (UTC)
- Done. If any errors show up, revert and link to the page with the error and I'll look into it. --Gonnym (talk) 00:44, 15 July 2020 (UTC)
- Hi, Gonnym, could you check Strike the Blood II, Strike the Blood III, ... Thanks! Plastikspork ―Œ(talk) 12:18, 15 July 2020 (UTC)
- Sure. Checking them now. --Gonnym (talk) 12:19, 15 July 2020 (UTC)
- Gonnym, also Nura: Rise of the Yokai Clan - Demon Capital isn't showing a link to the episode list. I am finding these while cleaning up Category:Pages with script errors which is finding all the pages where the episode list is linked. Thanks! Plastikspork ―Œ(talk) 12:23, 15 July 2020 (UTC)
- I've made a change earlier that fixed an error so most of these just need to be purged. But the first one you posted is a real issue. --Gonnym (talk) 12:27, 15 July 2020 (UTC)
- Gonnym, Is there a tracking category for when the episode list linking fails? Like Coke Studio (Pakistani season 2), for example? Plastikspork ―Œ(talk) 12:52, 15 July 2020 (UTC)
- Or ones that need to be delinked like Attack on Titan (season 1)? Plastikspork ―Œ(talk) 13:01, 15 July 2020 (UTC)
- @Plastikspork: all of this was much appreciated. I've now fixed the issues for pages like Strike the Blood II, Strike the Blood III and have enabled the list of episodes link to show for pages like Attack on Titan (season 1). Let me know if you see anything else that isn't working. --Gonnym (talk) 13:06, 15 July 2020 (UTC)
- I've made a change earlier that fixed an error so most of these just need to be purged. But the first one you posted is a real issue. --Gonnym (talk) 12:27, 15 July 2020 (UTC)
- Gonnym, also Nura: Rise of the Yokai Clan - Demon Capital isn't showing a link to the episode list. I am finding these while cleaning up Category:Pages with script errors which is finding all the pages where the episode list is linked. Thanks! Plastikspork ―Œ(talk) 12:23, 15 July 2020 (UTC)
- Sure. Checking them now. --Gonnym (talk) 12:19, 15 July 2020 (UTC)
- Hi, Gonnym, could you check Strike the Blood II, Strike the Blood III, ... Thanks! Plastikspork ―Œ(talk) 12:18, 15 July 2020 (UTC)
- Done. If any errors show up, revert and link to the page with the error and I'll look into it. --Gonnym (talk) 00:44, 15 July 2020 (UTC)
- Gonnym, perfect, thank you! I recall implementing the wikicode regex, but that was too long ago to remember how I went about it, and moving it to module code is a great idea. Looks like it's readt to implement, then. -- /Alex/21 23:09, 14 July 2020 (UTC)
- Gonnym, how about articles such as The Crown (season 3), that use
|episode_list=The Crown (TV series)#Episodes
? -- /Alex/21 04:36, 21 July 2020 (UTC)
- Create the redirect and it should work if I'm not mistaken. Gonnym (talk) 07:13, 21 July 2020 (UTC)
- The module should support all situations that were/are already in use across a number of articles, and were supported before the module, instead of breaking articles that had a previously functioning link before the module. It's a few lines of code that support even more articles; what's the harm? -- /Alex/21 10:30, 21 July 2020 (UTC)
- Every line of code adds complexity to the whole program and makes maintaining it that much harder. Before adding a line of code, it's worth asking if the "fix" is actually fixing an issue that needs fixing or patching a broken scenario which should be fixed at the root. In this case, what you are trying to fix at the module level should actually be fixed at the page level. Anchored links are bad links. They are unhelpful as when the target changes, the links needs to be updated in each and every place. So for example, currently the link you used is The Crown (TV series)#Episodes, but if the series receives a proper list page, each link will have to be changed to List of The Crown episodes (in a larger view, it's also not possible now to find all links to the episodes without going through all incoming links, making updating links in articles that much harder). This is all explained at MOS:REDIR. The season page also works fine now by either removing the parameter (which is the recommended method as that requires never updating the link) or using "List of The Crown episodes". It's even possible, if wanted, to set up a temp tracking category to catch all current hash links and fix those. The patch-fix is just the worst possible solution here. --Gonnym (talk) 10:41, 21 July 2020 (UTC)
- A half dozen lines is not "complex" or hard to maintain. I've ran a search and found 93 articles that use the format that the code supported; plenty enough to warrant the addition, so yes, I've "asked" if the fix is actually fixing the issue.
- If the module cannot support cases that were already supported by the wikicode, then I disagree with the move to module-code and oppose it; the template should be reverted to its status quo and a better agreement found. If an agreement cannot be made, then I shall do this presently. Updates should only ever add support, not deliberately break articles that were previously supported. -- /Alex/21 10:45, 21 July 2020 (UTC)
- Alex, you are free to do whatever you wish. You asked for a solution, I gave you one. If you don't like it, you are more then welcome to revert it to the template code and handle it yourself. No idea why you are making such a fuss over 93 articles that can easily be fixed with AWB in a matter of minutes. --Gonnym (talk) 11:01, 21 July 2020 (UTC)
- I asked for a solution and I found one myself. I have no idea why you're making a fuss over a half-dozen lines of code that automatically fix those 93 articles in a second. Your argument of complexity has no basis; if my half-dozen lines of code make articles too hard to maintain and too complex to run, then your 50-odd for the getListOfEpisodes absolutely do. Are other editors not allowed to contribute to your module? -- /Alex/21 11:06, 21 July 2020 (UTC)
- You are comparing two completely different things. The lines of code I've added are necessary for the feature requested to actually work. Yours add no value as the feature already works and it works for The Crown (season 3). As I pointed above, what you are trying to fix should fix at the template level. For what it's worth, I would have even changed the anchor link anyways if I came across it, regardless if the module feature was implemented or not. --Gonnym (talk) 11:11, 21 July 2020 (UTC)
- My code works for 93 articles, not just one. Your lines of code aren't required for it to work; it already worked beforehand via wikicode. They just added extra functionality. Exactly as my lines of code have, they add extra functionality for even more articles. There is zero valid reason not to include it if it fixes articles, and they are two completely identical things to compare. -- /Alex/21 11:15, 21 July 2020 (UTC)
- As I said Alex, feel free to return to your template implementation before I wasted my time to answer your help request. You have an ugly habit of discussion fighting for no apparent reason. If aren't willing to read MOS:REDIR and understand why those 93 links are bad, then there is nothing more for me to engage here. I'm officially done with this discussion. --Gonnym (talk) 11:18, 21 July 2020 (UTC)
- MOS:RDR states nothing about how redirects are not allowed. Absolutely nothing.
- La página Plantilla:Talk quote inline/styles.css debe tener el modelo de contenido "CSS expurgado" para TemplateStyles (el modelo de contenido que tiene actualmente es "texto wiki").
You have an ugly habit of discussion fighting for no apparent reason.
And there was zero reason to revert the module code, other than your desire to edit-war because you just don't want people touching your module. If you're done with this discussion, then there was clearly no reason to revert, because you refuse to discuss it. I'll reinstate the valid module code presently. -- /Alex/21 11:21, 21 July 2020 (UTC)
- As I said Alex, feel free to return to your template implementation before I wasted my time to answer your help request. You have an ugly habit of discussion fighting for no apparent reason. If aren't willing to read MOS:REDIR and understand why those 93 links are bad, then there is nothing more for me to engage here. I'm officially done with this discussion. --Gonnym (talk) 11:18, 21 July 2020 (UTC)
- My code works for 93 articles, not just one. Your lines of code aren't required for it to work; it already worked beforehand via wikicode. They just added extra functionality. Exactly as my lines of code have, they add extra functionality for even more articles. There is zero valid reason not to include it if it fixes articles, and they are two completely identical things to compare. -- /Alex/21 11:15, 21 July 2020 (UTC)
- You are comparing two completely different things. The lines of code I've added are necessary for the feature requested to actually work. Yours add no value as the feature already works and it works for The Crown (season 3). As I pointed above, what you are trying to fix should fix at the template level. For what it's worth, I would have even changed the anchor link anyways if I came across it, regardless if the module feature was implemented or not. --Gonnym (talk) 11:11, 21 July 2020 (UTC)
- I asked for a solution and I found one myself. I have no idea why you're making a fuss over a half-dozen lines of code that automatically fix those 93 articles in a second. Your argument of complexity has no basis; if my half-dozen lines of code make articles too hard to maintain and too complex to run, then your 50-odd for the getListOfEpisodes absolutely do. Are other editors not allowed to contribute to your module? -- /Alex/21 11:06, 21 July 2020 (UTC)
- Alex, you are free to do whatever you wish. You asked for a solution, I gave you one. If you don't like it, you are more then welcome to revert it to the template code and handle it yourself. No idea why you are making such a fuss over 93 articles that can easily be fixed with AWB in a matter of minutes. --Gonnym (talk) 11:01, 21 July 2020 (UTC)
- Every line of code adds complexity to the whole program and makes maintaining it that much harder. Before adding a line of code, it's worth asking if the "fix" is actually fixing an issue that needs fixing or patching a broken scenario which should be fixed at the root. In this case, what you are trying to fix at the module level should actually be fixed at the page level. Anchored links are bad links. They are unhelpful as when the target changes, the links needs to be updated in each and every place. So for example, currently the link you used is The Crown (TV series)#Episodes, but if the series receives a proper list page, each link will have to be changed to List of The Crown episodes (in a larger view, it's also not possible now to find all links to the episodes without going through all incoming links, making updating links in articles that much harder). This is all explained at MOS:REDIR. The season page also works fine now by either removing the parameter (which is the recommended method as that requires never updating the link) or using "List of The Crown episodes". It's even possible, if wanted, to set up a temp tracking category to catch all current hash links and fix those. The patch-fix is just the worst possible solution here. --Gonnym (talk) 10:41, 21 July 2020 (UTC)
- The module should support all situations that were/are already in use across a number of articles, and were supported before the module, instead of breaking articles that had a previously functioning link before the module. It's a few lines of code that support even more articles; what's the harm? -- /Alex/21 10:30, 21 July 2020 (UTC)
- Create the redirect and it should work if I'm not mistaken. Gonnym (talk) 07:13, 21 July 2020 (UTC)
Lowercase "chronology"?[editar código]
Is there a reason that the "chronology" label is displayed in lowercase? Shouldn't the first letter be capitalized, like the other labels? — Goszei (talk) 22:13, 28 July 2020 (UTC)
- It normally isn't, as it takes either "Season" or "Series" notion to make the label "Season/Series chronology". A lot of that is handled behind the scenes of the template, so it's hard to generate it for the example instance. But if you look at any use of the template in the mainspace, it should appear correctly. - Favre1fan93 (talk) 22:28, 28 July 2020 (UTC)
- @Favre1fan93: Hmm, I came here because I had spotted the problem in the mainspace. It seems to be fixed now with Alex's change, though. — Goszei (talk) 01:43, 29 July 2020 (UTC)
- I've added a default, so that there's no confusion or "odd" cases in the mainspace. -- /Alex/21 00:58, 29 July 2020 (UTC)
- @Alex 21: See Template:Infobox_television_season/testcases; it seems like the change was incomplete. — Goszei (talk) 01:41, 29 July 2020 (UTC)
- Goszei, that's just the sandbox testcases. I directly updated the parent module. -- /Alex/21 01:43, 29 July 2020 (UTC)
- @Alex 21: Oh, I see now. Your change fixed where I had seen the problem in the mainspace, so all is well. Thanks. — Goszei (talk) 01:46, 29 July 2020 (UTC)
- No worries! Just out of curiousity, what article in the mainspace had the issue? -- /Alex/21 01:47, 29 July 2020 (UTC)
- @Alex 21: At One Piece (season 1), and at the subsequent seasons as well. I also saw the problem when I checked at My Hero Academia (season 1). It also appeared in the template doc at Template:Infobox_television_season#Example. I imagine the problem is due to the lack of the "season_number" parameter? — Goszei (talk) 01:55, 29 July 2020 (UTC)
- No worries! Just out of curiousity, what article in the mainspace had the issue? -- /Alex/21 01:47, 29 July 2020 (UTC)
- @Alex 21: Oh, I see now. Your change fixed where I had seen the problem in the mainspace, so all is well. Thanks. — Goszei (talk) 01:46, 29 July 2020 (UTC)
- Goszei, that's just the sandbox testcases. I directly updated the parent module. -- /Alex/21 01:43, 29 July 2020 (UTC)
- @Alex 21: See Template:Infobox_television_season/testcases; it seems like the change was incomplete. — Goszei (talk) 01:41, 29 July 2020 (UTC)
Series vs. season[editar código]
Whoever changed series to season on all the relevant articles needs to change it back because it is wrong. MSalmon (talk) 10:49, 8 August 2020 (UTC)
- What articles are you talking about? 7,250 articles use this infobox. Courld you narrow it down a bit? --AussieLegend (✉) 13:55, 8 August 2020 (UTC)
- Yes, can you be more specific? Also, please note that the parameters
|season_number=
and|series_number=
help determine what terminology is used in the infobox. So it's quite possible the articles you are talking about have the incorrect parameter. - Favre1fan93 (talk) 19:33, 8 August 2020 (UTC)
- Yes, can you be more specific? Also, please note that the parameters
Series chronology section change[editar código]
Hello, I have just made a change on Template:Infobox television season/sandbox where the Previous and Next sections can now be hidden if the value of N/A is given to any of the 4 parameters. This is because I noticed on some articles they will appear as Module:Infobox television season name would pick up the years of the articles but this is pointless if it is the first and last season and should be able to hide these not just display N/A. I also fixed an error where the If empty template for the Next section was not properly implemented. Does anyone object to me requesing a template edit for this change? Thanks Terasail[Talk] 09:11, 2 October 2020 (UTC)
- The template already does that without needing a parameter. See Arrow (season 1). Can you point to the article that is not working like this? --Gonnym (talk) 09:57, 2 October 2020 (UTC)
- @Gonnym: On this article: The Seven Deadly Sins (2014 TV series) if you set
|prev_season=
from|prev_season=N/A
it will then list Previous as Series 2013. Terasail[Talk] 10:09, 2 October 2020 (UTC)- It seems the article is using conflicting terminology. The title says it is a "TV series" while the categories say it's a season. If the article is a season, it should be titled per WP:NCTV as seasons do. If it is TV series, it should use the correct infobox and remove the season categories. The above issue should be resolved when one or the other happens. --Gonnym (talk) 10:19, 2 October 2020 (UTC)