Trialpears (talk | contribs) →Yearly and alphabetic archives: new section Tag: New topic |
|||
Line 55: | Line 55: | ||
Ok, it wasn't easy, but I figured this out and it's working now. [[User:GA-RT-22|GA-RT-22]] ([[User talk:GA-RT-22|talk]]) 17:51, 27 November 2021 (UTC) |
Ok, it wasn't easy, but I figured this out and it's working now. [[User:GA-RT-22|GA-RT-22]] ([[User talk:GA-RT-22|talk]]) 17:51, 27 November 2021 (UTC) |
||
== Yearly and alphabetic archives == |
|||
I've made a version supporting yearly and alphabetic archives using {{tl|yearly archive list}} and {{tl|archive list alpha}}, just like with {{tl|talk header}}. If there are no objections I plan on implementing this in a couple days. This will cause there to be about 21 more expensive parser function uses, but this is far from the limit of 500 and most talk pages don't use many expensive parser functions anyway. I will monitor for issues if this is implemented. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 18:57, 26 December 2021 (UTC) |
Revision as of 18:57, 26 December 2021
Index
|
||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Fixes and question
@Trialpears: as I have been going through the template on the sandbox, attempting to make the above (collapsable banner) work, it is working I just need to test it on a few pages... I noticed that you made |list=
& |1=
have the same functionality with this edit. As stated in the parameter descriptions, they were slightly different. In the current sandbox I have given the functionality back but if there was a problem caused by this I can remove it again. Terasail[✉️] 21:15, 26 June 2021 (UTC)
- Terasail That was a while ago so I may have some details wrong, but I believe before said edit if list was provided it used the list without checking auto options. After this edit I think it does the same but in a different way. There are some things I really would want done to simplify this template and make it less confusing. Merging
|1=
and|list=
is a prime example of such a thing. Others include archivelists and box-width. --Trialpears (talk) 21:35, 26 June 2021 (UTC)- Yeah, I "sortof" merged the two parameters in the sandbox & removed the whole switching entirely since it was acting as an if with only 2 options anyway. I just added an "#if" to turn off auto detection if list is used... I am slowly trying to simplyfy the template since its such a nightmare to read (May have not helped here with previous tpers) Terasail[✉️] 21:39, 26 June 2021 (UTC)
- Doing this without loss of funtionality will probably require not insignificant numbers of edits to current uses. The list parameter is used ballpark 570 times with it only being different to
|1=
if|auto=
is given an affirmative value which it then ignores which is really confusing behaivior anyways. I at least think that's the case. If that's all we really should get rid of it. I believe almost all such cases should have been removed in my cleanup for the above mentioned edit but I can't be sure. I would probably wait until the first and use the template data report to generate a list of pages that would be affected and then cleanup that handful before removing the feature. --Trialpears (talk) 22:01, 26 June 2021 (UTC)- I would have to agree that
|list=
is currently pretty much useless, since someone could just use|auto=no
if they don't want auto detection and since it is such a limited number of cases it really seems pointless. Terasail[✉️] 22:17, 26 June 2021 (UTC)- Template data report doesn't exist for talk pages so I'm creating a list where a non empty list parameter is used. Looks like really very few pages. If you want to do your rewrite with list as an alias for 1 that should be completely fine since these can very easily be handled manually. I'm also quite tempted to ask Primefac to do a run with their bot dealing with the box width parameter replacing it with the equivalent in the style parameter. --Trialpears (talk) 22:41, 26 June 2021 (UTC)
- Sure, it would just require a slight change to line 10 of the sandbox, just trying to
search for any problems with the sandbox on pages at the momentGoing to make more testcases and split them onto 2 pages (1 for banners & one for the box size). Should the parameters still allow auto detection of archive lists or act as|list=
and block it? Terasail[✉️] 22:46, 26 June 2021 (UTC)- Like
|1=
is currently handled with auto detection? --Trialpears (talk) 22:54, 26 June 2021 (UTC)- Yeah but I just realised that I have slightly altered how
|1=
works (see my sandbox) but its an easy fix, just working on better testcases to catch these slight differences more easily. Terasail[✉️] 23:07, 26 June 2021 (UTC)
- Yeah but I just realised that I have slightly altered how
- Like
- Sure, it would just require a slight change to line 10 of the sandbox, just trying to
- Template data report doesn't exist for talk pages so I'm creating a list where a non empty list parameter is used. Looks like really very few pages. If you want to do your rewrite with list as an alias for 1 that should be completely fine since these can very easily be handled manually. I'm also quite tempted to ask Primefac to do a run with their bot dealing with the box width parameter replacing it with the equivalent in the style parameter. --Trialpears (talk) 22:41, 26 June 2021 (UTC)
- I would have to agree that
- Doing this without loss of funtionality will probably require not insignificant numbers of edits to current uses. The list parameter is used ballpark 570 times with it only being different to
- Yeah, I "sortof" merged the two parameters in the sandbox & removed the whole switching entirely since it was acting as an if with only 2 options anyway. I just added an "#if" to turn off auto detection if list is used... I am slowly trying to simplyfy the template since its such a nightmare to read (May have not helped here with previous tpers) Terasail[✉️] 21:39, 26 June 2021 (UTC)
- The recent edit to this template has broken its use on my talk page. Thanks. --- Possibly ☎ 07:01, 4 July 2021 (UTC)
- Fixed by [1]. PrimeHunter (talk) 10:56, 4 July 2021 (UTC)
box-width and Category:Archive boxes with unusual parameters
Would anyone here mind if I took a bot and went through this category fixing the cases where there's no style parameter present? I'll file a BRFA if there are no objections in a while. --Trialpears (talk) 23:08, 12 August 2021 (UTC)
- I support removing
|box-width=
from all usecases shown at Category:Archive boxes with unusual parameters. -Side note: @Trialpears: The sandbox you have been working on has removed|style=
entirely, is this intentional? Since there are a lot of archiveboxes which use this. Terasail[✉️] 23:03, 14 August 2021 (UTC)
Template-protected edit request on 1 October 2021
Please replace {{#ifeq:{{{collapsed}}}|yes|collapsible collapsed|{{#ifeq:{{{collapsible}}}|yes|collapsible}}}}
with the following fragment {{#ifeq:{{{collapsed}}}|yes|mw-collapsible mw-collapsed|{{#ifeq:{{{collapsible}}}|yes|mw-collapsible}}}}
the classes for collapsible were renamed when they were moved to core years ago and the old ones are deprecated (and less performant). —TheDJ (talk • contribs) 09:52, 1 October 2021 (UTC)
Mention of "Threads" in BOT text changed to "Sections"
I have been bold and altered "Threads" to "Sections" in the text displayed by the BOT parameter. This is because threads" has more than one meaning in this context.
A section could contain several distinct threads about different aspects of the issue under discussion. Using the word threads could be misunderstood to mean that separate threads in a section would be archived at different times depending on when they terminated.
This is not what is meant. What is meant is that a whole section (which might contain several threads) will be archived if the last comment was made more than a pre-determined time ago, unless the last thread in the section means that that section will not be archived until newer sections are created. -- PBS (talk) 12:04, 4 October 2021 (UTC)
Mad Men
The index is not getting updated at Talk:Mad Men. I'm not clear on how it's supposed to work. There is a list of archive pages in the Archive box template. Are those auto generated somehow or are we supposed to update the list manually? No one is doing it, so is there a way to get rid of the manual list and have it generated automatically like it would be for numbered archives? GA-RT-22 (talk) 00:56, 27 November 2021 (UTC)
Ok, it wasn't easy, but I figured this out and it's working now. GA-RT-22 (talk) 17:51, 27 November 2021 (UTC)
Yearly and alphabetic archives
I've made a version supporting yearly and alphabetic archives using {{yearly archive list}} and {{archive list alpha}}, just like with {{talk header}}. If there are no objections I plan on implementing this in a couple days. This will cause there to be about 21 more expensive parser function uses, but this is far from the limit of 500 and most talk pages don't use many expensive parser functions anyway. I will monitor for issues if this is implemented. --Trialpears (talk) 18:57, 26 December 2021 (UTC)