User talk:Elli/OneClickArchiver

edit

Skins tested: vector (2010) and vector-2022.

Possible fix: Check for Category:Non-talk pages that are automatically signed. If present, display the "Archive" link on that page. –Novem Linguae (talk) 05:50, 10 June 2024 (UTC)Reply

@Novem Linguae: very late reply here, but... this script already does that. The reason it doesn't show up is because that page is also in Category:Pages that should not be manually archived, a category that exists specifically to disable this script. Why is it there? I dunno. Elli (talk | contribs) 02:52, 24 August 2024 (UTC)Reply
Thanks. Just now I deleted that category from the page. Let's see if anyone objects. –Novem Linguae (talk) 03:27, 24 August 2024 (UTC)Reply
Yes, I object. VPT is one of those pages where we leave archiving for the bot. Using OCA can sometimes mean that the user of OCA is wilfully suppressing all further discussion, but at VPT situations sometimes arise where the original reason for raising a thread no longer exists but others may have suggestions on how the problem can be avoided in future. See for example WP:VPT#Can't save edit due to blacklisted link, but edit doesn't contain blacklisted link - the edit has been saved but further advice was offered just four days ago. --Redrose64 🌹 (talk) 07:23, 24 August 2024 (UTC)Reply

Archive number

edit

I may be a fool or blind, but for me this script only archives to /talkpage/Archive 1 even if there are later number archives available. Is there a way to change that which i'm just not seeing? Happy days, ~ LindsayHello 15:25, 15 June 2024 (UTC)Reply

@LindsayH: is there an example of a page where this is an issue? Elli (talk | contribs) 21:15, 15 June 2024 (UTC)Reply
Hi Elli. Well, yes. I stopped using Evad37's archiver after i had to manually redo all the archiving i did at talk:Dalida; so, i have tried again, with yours, at that page, and it archives to Talk:Dalida/Archive 1, although Talk:Dalida/Archive 2 exists. Also, which is what prompted me here yesterday, a test action i did at user_talk:LindsayH went to /Archive 1 although archives up to Archive 8 exist. If i'm not being clear, please ask. Happy days, ~ LindsayHello 07:52, 16 June 2024 (UTC)Reply
I set auto-archive at Talk:Fortnite Battle Royale and then advanced the counter, OCA worked just fine with /Archive 2 (OCA created the page and archived the correct section and page. Special:Diff/1229260901) - FlightTime (open channel) 13:08, 16 June 2024 (UTC)Reply
FlightTime ~ so i'm misunderstanding how a one click archiver works? My assumption was that you can click to archive finished sections on a talk page; that's why i thought i could use it on Talk:Dalida and my usertalk. Am i wrong, the page has to be set up to auto-archive for the one step script to work? That seems...counter-intuitive, no? Happy days, ~ LindsayHello 14:17, 16 June 2024 (UTC)Reply
@LindsayH: You have to have a archiving script set for OCA to work. If not User:MiszaBot/config then {{Archive basics}}, something like these scripts need to be set or OCA will not work. - FlightTime (open channel) 16:05, 16 June 2024 (UTC)Reply
Scripts that descend from Technical13's version use the configuration for MiszaBot (now being processed by lowercase sigmabot III), or the {{Archive basics}} template, which has the two configuration values needed by the script (see User:Technical 13/Scripts/OneClickArchiver § Archive page). In the case where there is no configured bot, the script still needs to be told what archive page to use, as the archiving naming conventions can differ from page to page. isaacl (talk) 15:10, 16 June 2024 (UTC)Reply
Thank you both; i guess i did misunderstand ~ i don't recall ever seeing that information when i first used either Technical13's or Evad37's, so now i think i've got it. Cheers! Happy days, ~ LindsayHello 06:37, 17 June 2024 (UTC)Reply

Bug reports for Evad37's script

edit

I was wondering: which of the bugs reported at User talk:Evad37/OneClickArchiver.js have been fixed in this version?

Perhaps reporters of bugs could be advised to use User:Elli/OneClickArchiver. —⁠andrybak (talk) 21:08, 15 June 2024 (UTC)Reply

@Andrybak: I'll get to working on these soon :) thanks for collecting them. Elli (talk | contribs) 21:17, 15 June 2024 (UTC)Reply

Wikispecies

edit

I've just tried to use this script on Wikispecies (where mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/archiver.js&action=raw&ctype=text/javascript'); used to work).

I get an error:

Unable to find |headerlevel=
Default value: 2

Can anyone assist, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:28, 25 July 2024 (UTC)Reply

@Pigsonthewing: What page were you working on? - FlightTime (open channel) 18:45, 25 July 2024 (UTC)Reply
@FlightTime: species:Wikispecies:Village Pump. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:34, 25 July 2024 (UTC)Reply
@Pigsonthewing: I loaded my call mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:FlightTime/OneClickArchiver.js&action=raw&ctype=text/javascript' ); the archive links for sections showed up, but I wasn't sure what to archive. Try it it might work. Cheers, - FlightTime (open channel) 21:41, 25 July 2024 (UTC)Reply
@FlightTime: Thank you, but when I do that, the error persists. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:04, 26 July 2024 (UTC)Reply

Increase "archive" font size

edit

Archive link is too small. Increase the font size by a factor of 2 or 3. Line 317, I presume:

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 7px 7px 5px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

, namely box-shadow: 7px 7px 5px to be increased to 14px 14px 10px or 21px 21px 20px. Qwerty284651 (talk) 00:36, 13 August 2024 (UTC)Reply

Completely agree, way too small. Thank you @Qwerty284651:. - FlightTime (open channel) 00:41, 13 August 2024 (UTC)Reply
See below:   Done Elli (talk | contribs) 18:41, 23 August 2024 (UTC)Reply

Bug: archived section to "Archive 1" when "Archive 2" and "Archive 3" both exist

edit

I've just tried this on my user talk page. I have pages up to Archive 3, but the archived section was added to Archive 1. I have no bots or other settings templates on my talk page. Rjjiii (talk) 07:25, 16 August 2024 (UTC)Reply

The FlightTime script had the same issue.[1] The OCA script correctly finds the highest archive.[2] I had thought it may be that the scripts relied on a bot config (which is absent on my talk page), but I sneezed while reading H:CS1 discussions on my phone and accidentally archived something to "Archive 1".[3] The OCA script again correctly sees "Archive 95" as the highest and correct target. Changing themes didn't affect "Archive N" choice. On pages like Talk:Roswell incident that use "User:MiszaBot/config" it seems to choose the correct archive. On pages like Help talk:Citation Style 1 that use "User:ClueBot III/ArchiveThis" the "one click" scripts always choose "Archive 1". Adding {{Archive basics}} seems to be the thing I was meant to do, and works.[4] I see links to it on some talk pages now, but don't see it explained on the script pages or on Wikipedia:One click archiving. So do these scripts require some type of config written on the talk page? And will they ignore ClueBot's config? Why can't they treat "numberstart" like "counter"? This should probably be explained in documentation somewhere along the user's path to install one of these. Maybe notes from User:Equazcion/OneClickArchiver can be copied to the documentation for the new scripts? Also, pings to FlightTime, andrybak, and Elli. Rjjiii (talk) 01:54, 23 August 2024 (UTC)Reply
Rjjiii, thank you for the ping. Here you go: User:Andrybak/Scripts/Archiver#Destination page calculation. If anything isn't clear, feel free to reach out on the script's talk page. —⁠andrybak (talk) 09:26, 23 August 2024 (UTC)Reply
That's fantastic, I didn't even realize it could parse slashes. Thanks! Rjjiii (talk) 13:48, 23 August 2024 (UTC)Reply
There are pages which use slashes, but I don't recommend doing it on new pages. I suggest using the most popular format – it tends to have better support from templates and bots, it's easier to investigate in case of issues, etc. —⁠andrybak (talk) 14:02, 23 August 2024 (UTC)Reply
Note: "numberstart" does not work like "counter"; see User talk:ClueBot Commons/Archives/2024/August#How does "numberstart" work?. Rjjiii (talk) 16:22, 23 August 2024 (UTC)Reply

Interface-protected edit request on 21 August 2024

edit

The "Archive" button is way too small. Increase the font size by a factor of 3 to make the archive link easier to see. Line 317 in the code:

from box-shadow: 7px 7px 5px

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 7px 7px 5px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

to box-shadow: 21px 21px 15px

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 21px 21px 15px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

See discussion. Qwerty284651 (talk) 22:17, 21 August 2024 (UTC)Reply

Fixed my request. Qwerty284651 (talk) 12:30, 22 August 2024 (UTC)Reply
  Not done (as to the immediate interface-admin edit request), of course @Elli: may implement your suggestion to their script if they would like to. — xaosflux Talk 22:49, 22 August 2024 (UTC)Reply
I'll take a look and probably implement it later today or tomorrow. Sorry for not seeing the comments here much; if there's something important pinging me or commenting on my usertalk will get my attention. Elli (talk | contribs) 23:53, 22 August 2024 (UTC)Reply
Thanks, @Elli. I'll keep in mind to ping you next time. Qwerty284651 (talk) 15:52, 23 August 2024 (UTC)Reply
  Done, though not with the code you provided. Elli (talk | contribs) 18:41, 23 August 2024 (UTC)Reply
Sorry to rain on the parade here, but now the archive button is in my opinion too big. And also bigger than similar buttons placed by other user scripts such as DiscussionCloser. Any interest in reverting this change? –Novem Linguae (talk) 22:35, 23 August 2024 (UTC)Reply
@Novem Linguae: Hm, yeah, I'll do that. But I'll add an option for it. Elli (talk | contribs) 23:03, 23 August 2024 (UTC)Reply
@Qwerty284651: as I've reverted the above, but made it customizable -- you can add something like window.OCALinkSize = 0.9; to your common.js (the default size is 0.6). Elli (talk | contribs) 23:10, 23 August 2024 (UTC)Reply
Updated the doc page with window.OCALinkSize = 0.9;. Qwerty284651 (talk) 23:52, 23 August 2024 (UTC)Reply

Interface-protected edit request on 23 August 2024

edit

Remove the {{clear}} template the archiver adds before each topic/discussion when archiving to an archive subpage in line 357 from

sectionContent = '\n\n{{Clear}}\n' + sectionContent;

to

sectionContent = '\n\n' + sectionContent;

Pinging @Elli: just in case. Qwerty284651 (talk) 19:25, 23 August 2024 (UTC) Qwerty284651 (talk) 19:25, 23 August 2024 (UTC)Reply

I don't really have a problem with doing that, but why? Izno (talk) 19:44, 23 August 2024 (UTC)Reply
This is the exact reason I made my fork, I wanted to remove the {{clear}} call, but after doing so I found a couple instances that the next archived section didn't post right. Sorry I can't remember exactly what happened and don't have a diff, but I ended up putting the clear call back in. - FlightTime (open channel) 19:47, 23 August 2024 (UTC)Reply
So, no dice then. Great. Qwerty284651 (talk) 19:49, 23 August 2024 (UTC)Reply
@Izno, it adds too much whitespace before each archived topic. I had requested this change to reduce whitespace by a couple of lines. That's all. Qwerty284651 (talk) 19:52, 23 August 2024 (UTC)Reply
The reason it's there (for read mode; I can't speak to FlightTime's commentary) is to prevent floated content from appearing in sections after it.
I do think it might make sense to change the current template use to the literal <br style="clear: both"/>, since I don't see a strong motivation to using the template directly. Izno (talk) 19:57, 23 August 2024 (UTC)Reply
@Izno, FlightTime, and Qwerty284651: Could do that if there would be a benefit? I do think keeping the clear functionality makes more sense than getting rid of it though; a bit more whitespace on archive pages is worth making sure stuff does not bleed between discussions. Elli (talk | contribs) 20:06, 23 August 2024 (UTC)Reply
@Qwerty284651: I can remove it off my fork so you could test it, if you want, let me know. - FlightTime (open channel) 20:12, 23 August 2024 (UTC)Reply
@FlightTime:, I wouldn't know how to test it, because I don't know any JS. I wish I did, but I don't. If clear is there to prevent other issues from occurring, then so be it. It was worth the request. Qwerty284651 (talk) 20:36, 23 August 2024 (UTC)Reply