Wikipedia talk:Scripts++/Archive 1

New, improved, updated, revamped, etc scripts

 * User:SD0001/parseTemplate.js - ok, this isn't a script, this is a JS utility function for dealing with templates in wikitext. I'm looking forward to seeing this get used in others' scripts. SD0001 (talk) 09:08, 21 January 2019 (UTC)
 * Cool. I'll label this as a "meta-script" if that's okay with you. Can you make a doc page? --DannyS712 (talk) 09:17, 21 January 2019 (UTC)
 * Don't know if you saw my comment - can you make a doc for this, seeing how you want it to be used as a "JS utility function"? --DannyS712 (talk) 06:41, 23 January 2019 (UTC)
 * Sorry, didn't see this earlier. Usage instructions are given at the top of the js page as a comment. Still I'll try to make a dedicated /doc page whenever I get time. SD0001 (talk) 14:22, 23 January 2019 (UTC)
 * FYI I've got a modified version of this at MediaWiki:Gadget-libExtraUtil.js - Evad37 &#91;talk] 07:04, 28 November 2019 (UTC)
 * User:SD0001/twinkleos.js - a proposed oversight module for Twinkle. Can be used by Twinkle users only. (Should I bother to create a /doc page, or is it ok without it?). SD0001 (talk) 09:08, 21 January 2019 (UTC)
 * Nice. 3 things. Please do bother with a doc page, if not for me than for twinkle. Can I suggest you check that the user has oversight rights before adding the portlet, to avoid any potential errors? And, have you submitted this to twinkle/made a pull request/what's the status of getting this integrated? --DannyS712 (talk) 09:18, 21 January 2019 (UTC)
 * To be clear, it's a module for requesting oversight. I've updated the Git version so that this is hidden from oversighters, but I've left this out on-wiki as it'd hinder oversighters from testing it for reviewing the PR.
 * Doc created. Twinkle PR is at https://github.com/azatoth/twinkle/pull/463. SD0001 (talk) 17:18, 21 January 2019 (UTC)
 * Thanks for the explanation. I installed it, but can't seem to find the portlet in the TW menu... --DannyS712 (talk) 19:39, 21 January 2019 (UTC)
 * Figure out the problem. At
 * There is an error:
 * --DannyS712 (talk) 21:04, 21 January 2019 (UTC)
 * Oh, I updated the script yesterday but forgot to add the initialisation line! Should be fixed now. SD0001 (talk) 06:48, 22 January 2019 (UTC)
 * It worked. Also, thanks for the "hit cancel to email yourself" thing. I'll be sure to include it, and I hope it gets added to TW --DannyS712 (talk) 07:11, 22 January 2019 (UTC)
 * Actually, given how much is already in this issue, I'm going to hold off until its fully incorporated into twinkle, or just list it next month. Is that okay? --DannyS712 (talk) 06:13, 25 January 2019 (UTC)
 * 2 questions - when will it be incorporated into twinkle, and any progress on the doc for parseTemplate? --DannyS712 (talk) 18:25, 23 February 2019 (UTC)
 * --DannyS712 (talk) 21:04, 21 January 2019 (UTC)
 * Oh, I updated the script yesterday but forgot to add the initialisation line! Should be fixed now. SD0001 (talk) 06:48, 22 January 2019 (UTC)
 * It worked. Also, thanks for the "hit cancel to email yourself" thing. I'll be sure to include it, and I hope it gets added to TW --DannyS712 (talk) 07:11, 22 January 2019 (UTC)
 * Actually, given how much is already in this issue, I'm going to hold off until its fully incorporated into twinkle, or just list it next month. Is that okay? --DannyS712 (talk) 06:13, 25 January 2019 (UTC)
 * 2 questions - when will it be incorporated into twinkle, and any progress on the doc for parseTemplate? --DannyS712 (talk) 18:25, 23 February 2019 (UTC)
 * Actually, given how much is already in this issue, I'm going to hold off until its fully incorporated into twinkle, or just list it next month. Is that okay? --DannyS712 (talk) 06:13, 25 January 2019 (UTC)
 * 2 questions - when will it be incorporated into twinkle, and any progress on the doc for parseTemplate? --DannyS712 (talk) 18:25, 23 February 2019 (UTC)

Feedback
I think it would be helpful if people who submit scripts for inclusion provide a short description of what the script does. —  python coder    (talk &#124; contribs) 02:52, 30 January 2019 (UTC)
 * No far, I've just been finding the new scripts on my own (mostly). Why? Do you want explanations within the newsletter? --DannyS712 (talk) 03:01, 30 January 2019 (UTC)
 * —Actually, I just remembered WP:US/L is on my watchlist, so if I want explanations I can go there. —  python coder    (talk &#124; contribs) 03:08, 30 January 2019 (UTC)
 * Yeah, that's where I've been getting a lot of them --DannyS712 (talk) 03:17, 30 January 2019 (UTC)

Template
Hello, Is there a template version of this newsletter (like signpost have)? If not please consider creating it. Also it would be nice if there is a separate section for scripts for other wiki's or for xwiki work. Thanks for newsletter! &#8208;&#8208;1997kB (talk) 13:52, 5 July 2019 (UTC)
 * sure, I'll make a template, but it'll just transclude the current version (in the same format and layout). As for the other wikis or xwiki scripts, I haven't had any to include yet, but when I do I'll add it. --DannyS712 (talk) 15:58, 5 July 2019 (UTC)
 * See Scripts++/current --DannyS712 (talk) 16:00, 5 July 2019 (UTC)
 * , Thanks I'm fine with current version. &#8208;&#8208;1997kB (talk) 16:17, 5 July 2019 (UTC)
 * I tweaked the appearance to link to the previous issues / all past issues btw. &#32; Headbomb {t · c · p · b} 07:45, 28 November 2019 (UTC)
 * I saw - neat DannyS712 (talk) 08:10, 28 November 2019 (UTC)

December issue
Hi. Didn't have time to write an issue for December, and have some other ongoing projects right now. If someone else wants to right something in the next few days I'd appreciate it, otherwise will combine with January. Happy new year, --DannyS712 (talk) 00:17, 3 January 2020 (UTC)

Update current and next via Template:Scripts++/current
this change meant that two places (Scripts++/current and Scripts++) would need to be updated during next publishing. I've created Template:Scripts++/current, which now controls the existing page Scripts++/current and a new page Scripts++/next. With these changes, one would need to update Template:Scripts++/current to publish the next issue, instead of updating Scripts++/current (,, etc). —⁠andrybak (talk) 12:15, 1 March 2020 (UTC)
 * I saw that. A few things, however. A lot of helper templates were created that I don't think are needed, and the /next page isn't really what I had in mind. I'm going to finish and send this month's issue, and then take a look DannyS712 (talk) 15:47, 1 March 2020 (UTC)
 * I'm not sure what the point of the /next page is, since until the issue is published its not at Scripts++/Issues X DannyS712 (talk) 02:52, 23 March 2020 (UTC)
 * , the purpose of /next was to automate the "Next edition" section added by, and later removed. —⁠andrybak (talk) 09:18, 23 March 2020 (UTC)

UX simplification for Scripts++/Shell
I've tried improving UX for in sandbox. With these changes instead of using, one would use. Ordinal issue number is substituted using ordinal, month-year is generated using parser function, and page is automatically categorized into Category:Wikipedia Scripts++ issues. Demo in my sandbox. —⁠andrybak (talk) 16:43, 1 March 2020 (UTC)
 * Further tweaks, demo. —⁠andrybak (talk) 17:09, 1 March 2020 (UTC)
 * I like it. Syncing the sandbox to main DannyS712 (talk) 02:53, 23 March 2020 (UTC)
 * , here's another simplification: Special:Diff/954348346 (documentation update: Special:Diff/954348495). Now the /Shell template requires a single argument. —⁠andrybak (talk) 00:09, 2 May 2020 (UTC)
 * okay. For this and the section below; I'm going to try and document the process better DannyS712 (talk) 00:14, 2 May 2020 (UTC)
 * Even less clicking and typing with a preload link: Special:Diff/954348495/954351706. —⁠andrybak (talk) 00:14, 2 May 2020 (UTC)
 * , for me personally, the Scripts++ newsletter allowed to . Less friction in publishing of Scripts++, means more automation goodness will appear in my subscription box faster. ;-) —⁠andrybak (talk) 00:27, 2 May 2020 (UTC)
 * Cool, worked for me! DannyS712 (talk) 03:11, 3 May 2020 (UTC)

Scripts++ templates in project namespace
I wonder if it would make sense to move all pages in Category:Wikipedia Scripts++ templates, which are in project namespace to the template namespace? —⁠andrybak (talk) 00:21, 2 May 2020 (UTC)
 * let me go through everything - some of it was created by others and isn't used DannyS712 (talk) 00:27, 2 May 2020 (UTC)
 * I looked through the category - Scripts%2B%2B/New issue and its sub template (Scripts%2B%2B/Content footer, Scripts%2B%2B/Header, etc) aren't used. Would you be willing to delete them as G7? DannyS712 (talk) 03:13, 3 May 2020 (UTC)
 * Done. — Wug·a·po·des​ 18:51, 3 May 2020 (UTC)
 * Can you also delete
 * Scripts%2B%2B/New issue
 * Scripts%2B%2B/Misc
 * Scripts%2B%2B/Open tasks
 * Scripts%2B%2B/Script updates
 * Please? DannyS712 (talk) 20:05, 3 May 2020 (UTC)
 * Also done. — Wug·a·po·des​ 20:10, 3 May 2020 (UTC)

Massive scripts
with bugger-all description—libExtraUtil.js and the Twinkle morebits—spring to mind, highlighted as they are in the current newsletter. I'm sure they're fantastic pieces of work, if only—in one case at least—going by the reputation of its creator. But instead of / as well as linking to the source code, how about some sort of indication as to what they do and how to use 'em?Ah, you tell me, there's already a page for that, and it's at "XYZ"? Good. Then howabout a link.FWIW, yours is a far more useful newsletter than the Signpost, respect. —— SN  54129  15:00, 28 November 2019 (UTC)
 * They both have inline documentation... otherwise no, I don't think there is help page DannyS712 (talk) 20:56, 28 November 2019 (UTC)
 * These are libraries of reusable components that assist in the development of user scripts (libExtraUtil contains simple and a few not-so-simple helper functions, whereas Morebits contains entire classes for GUI creation and api-based page interaction). They are hidden gadgets (you won't be able to see them in preferences or enable them) -- that can be loaded from within other scripts. That being said, a documentation page for morebits is well worth it. Someone should just boldly start Morebits. SD0001 (talk) 09:31, 29 November 2019 (UTC)

Contributing
I know I haven't explained much how to best help, and I'll elaborate further, but the biggest things are: --DannyS712 (talk) 02:55, 23 March 2020 (UTC)
 * Keeping track of newly created scripts to include
 * Keeping track of updates to scripts that warrant inclusion
 * Selecting a featured script
 * I boldy created the page for this month. I would propose User:BrandonXLF/QuickEdit as the featured script -- truly makes section editing easier. Brandon has even implemented AJAX-based reloads and edit conflict handling! SD0001 (talk) 14:53, 7 April 2020 (UTC)
 * I just installed it to try it out, and the first section I tried to edit, "Installation" at User:BrandonXLF/QuickEdit, errored with "An errored occurred while getting section wikitext, perhaps it was deleted. Try reloading the page." (also, should it be "error occurred"?) --DannyS712 (talk) 22:37, 7 April 2020 (UTC)
 * , it seems to be because the headings were in tags so when the scripts tries to load the section the API says it doesn't exist since it's hidden behind the includeonly tags. The issue is that and  return two very different results, with the latter returning the entire page, so using T-x as the section isn't an option, if it was this issue wouldn't exist. –  Brandon XLF  (talk) 02:10, 8 April 2020 (UTC)
 * I've filed the issue as a task at T249675 since it's unexpected behaviour that works as expected at all other entry points when you can get and set the page content. – Brandon XLF  (talk) 02:55, 8 April 2020 (UTC)
 * I saw the creation; I do all of the drafting at Scripts++/Next until its sent out (also, the next one is 15) DannyS712 (talk) 22:42, 7 April 2020 (UTC)
 * oops, I was following the instructions at Scripts%2B%2B/Shell/doc which I see that has now fixed. SD0001 (talk) 13:24, 8 April 2020 (UTC)
 * , there is also Scripts++/New issue, which adds to confusion. Wugapodes and myself tried to write down DannyS712's workflow. —⁠andrybak (talk) 14:21, 8 April 2020 (UTC)
 * Sorry for the confusion, there seem to have been some efforts I wasn't following. I'll try to review everything this week DannyS712 (talk) 15:47, 8 April 2020 (UTC)
 * @Andrybak @Wugapodes can be deleted, or is it needed? DannyS712 (talk) 18:27, 1 December 2020 (UTC)
 * I don't see a need for it. I can delete it if Andrybak is fine with it. — Wug·a·po·des​ 22:52, 1 December 2020 (UTC)
 * , Scripts++/Shell/doc uses Template:Scripts++/Shell/preload directly, so the redirect can be removed. —⁠andrybak (talk) 09:50, 2 December 2020 (UTC)
 * @Wugapodes in that case would you mind deleted it? DannyS712 (talk) 23:57, 17 December 2020 (UTC)
 * ✅ — Wug·a·po·des​ 00:47, 18 December 2020 (UTC)

Script request
Hello,

After 5 years of being an admin, I've added a lot of scripts to several different pages. And, because this has been piecemeal (seeing a script recommended and pasting it in), I have found some scripts conflict and I have a feeling that some actions are duplicated by different scripts. It would be great if there was a script (or some code/gadget) that would scan an editor's scripts and find any ones that conflict with each other or are out-of-date.

OR, if an editor well-educated in scripts would volunteer to scan script pages and delete any dysfunctional scripts, that would be a very helpful skill to offer. — Preceding unsigned comment added by Liz (talk • contribs) 21:27, 1 December 2020 (UTC)
 * I would suggest trying User scripts/Requests for the first one, and reviewing User scripts/List for the second DannyS712 (talk) 00:04, 2 December 2020 (UTC)

This month's newsletter sent to me twice
I got this month's issue twice. Never happened before. Please explain/fix? Diff: — python coder  (talk &#124; contribs) 03:34, 5 February 2021 (UTC)


 * This appears to have been a bug with the software, since only some users got it twice. Sorry about that DannyS712 (talk) 03:54, 5 February 2021 (UTC)

Delayed issue 21
Sorry for the long delay, this has just slipped on my todo list. I plan to send it out this month, so it'll cover February-May. Please remind me if I forget! Thanks for the patience, --DannyS712 (talk) 20:27, 20 May 2021 (UTC)

Suggestion for next issue – Enterprisey's reply-link has been superseded
Enterprisey's user script reply-link has been superseded by mw:Extension:DiscussionTools. See Special:Diff/1023794302/1042684310 and discussion at User talk:Enterprisey/reply-link. This could be covered in the next issue of the newsletter. —⁠andrybak (talk) 12:29, 11 September 2021 (UTC)

Layout change: movement of "Pending requests" section
, I've noticed that between issue 18 and issue 19 the layout of the newsletter has changed: section "Pending requests" has been moved from second column to below section "Miscellaneous". And later, in issue 20, the positioning of File:Text-x-source.svg has changed. Shall these changes be reflected in Scripts++/Shell, to make it easier to keep the new layout? —⁠andrybak (talk) 11:41, 27 September 2021 (UTC)
 * After reading wikitext more closely I realized that positioning of File:Text-x-source.svg hasn't changed. It's just that #19 has really short paragraphs, while both #20 and #21 happen to have a couple of long paragraphs, so it looked as if the picture was repositioned to float to the right on my current screen width. I've struck out the misleading sentence. —⁠andrybak (talk) 11:48, 27 September 2021 (UTC)
 * I just try to adjust the layout to make it look better after filling everything in, not needed to adjust the shell. Wow, I've really fallen behind here, I'll try to get an issue out this week DannyS712 (talk) 14:28, 27 September 2021 (UTC)

Global subscription
Hello! Can I subscribe on the newsletter with my userpage on another wiki? How exactly would I do that? - Klein Muçi (talk) 11:56, 3 June 2022 (UTC)


 * You can try adding yourself to Scripts++/Subscribe with the other wiki's prefix. For example meta would be meta:User talk:Novem Linguae. Not sure if this will work but worth a try! – Novem Linguae (talk) 17:03, 3 June 2022 (UTC)
 * I think that you would need a mailing list on meta with someone with the global MMS permission. Terasail [✉️] 17:31, 3 June 2022 (UTC)
 * I see. Well, thank you for your answers! :)) - Klein Muçi (talk) 23:36, 3 June 2022 (UTC)