User talk:MusikAnimal/responseHelper.js

Latest comment: 8 months ago by MusikAnimal in topic Incorrect indentation

Update UAA responses edit

@MusikAnimal: Could you add a template that I recently added in the WP:UAA section? What I added. Thanks, Dat GuyTalkContribs 16:52, 14 January 2016 (UTC)Reply

@DatGuy: Thanks, we definitely needed this. Are we sure the bots will recognize it? Pinging maintainers JamesR and Darkwind MusikAnimal talk 16:57, 14 January 2016 (UTC)Reply
Oh man, I really felt pressured that you won't like it since you are one of the best-known administrators, atleast from my POV (:P). Also, didn't notify the editors of it so it probably won't. Dat GuyTalkContribs 16:59, 14 January 2016 (UTC)Reply
Also, I forgot to mention this but I hoped that there would be a way to make it possible for editors to sort of clerk UAA and AIV without making others think they are administrators and not being bureaucratic. Dat GuyTalkContribs 17:00, 14 January 2016 (UTC)Reply
Any contributions to scripts/gadgets etc are welcomed! :) Not sure about the clerking, that's something you'll need to bring up at WT:UAA or another appropriate venue. I know at AIV non-admin declines aren't usually well-received. In general reports are processed quickly so it's not much of an issue MusikAnimal talk 17:06, 14 January 2016 (UTC)Reply
@MusikAnimal: It is impossible for me to add the template to the script since it contains your personal settings (?). Dat GuyTalkContribs 06:44, 15 January 2016 (UTC)Reply
Yes but you don't need to edit the script directly to contribute. You can make suggestions or paste code on the talk page, just like you are now! ;) MusikAnimal talk 07:06, 15 January 2016 (UTC)Reply

Add ANI, AN and AE edit

@MusikAnimal: Thanks very much for this script - it's highly useful. Is there any way you could add ANI, AN, and AE to it, as well? I don't want to make a fool of myself by trying   Thanks, GABgab 21:36, 9 February 2018 (UTC)Reply

@GeneralizationsAreBad: Thanks! I don't think ANI, AN and AE have templated responses, right? If you just want a link, add this code to the bottom of Special:MyPage/common.js:
mw.util.addPortletLink("p-navigation", "https://en.wikipedia.org/wiki/WP:ANI", "WP:ANI");
...and so forth for other venues. I'm not sure if I want to add these to the core script because not everyone works there, and responseHelper doesn't offer any functionality when editing those pages. Hope this helps MusikAnimal talk 21:55, 9 February 2018 (UTC)Reply

Add {{RFPP|co}} to RfPP responses edit

@MusikAnimal: {{RFPP|co}} was added here for use when protecting will lead to collateral damage. As a side note, is there any particular reason PERM and RFPP require you to be editing a section? Bit of a first world problem, but occasionally when I check it out there's a backlog and I must copy the correct template code. DatGuyTalkContribs 19:40, 30 September 2022 (UTC)Reply

@DatGuy First off, a belated congrats on your adminship! I was upset when I saw I missed the opportunity to cast my support !vote, but you didn't need it anyway :)
I've added the "co" option with Special:Diff/1115769302. Sorry it took a while to get back to this, and thanks for the ping so that I could keep the notification active to remind me to revisit it!
I guess there's not a good reason that PERM pages require to edit a section. RFPP I imagine you'll get some edit conflicts time to time. At any rate, it's possible to make them work for both sections and the entire page, but it's a bit of work that I'm afraid I don't have time for right now. Note also the behaviour is different; for an entire page (like AIV), you need to have the cursor in the right place. For sections, it puts the content at the bottom.
Taking this a step further, I have long thought about making this work with DiscussionTool's reply feature. I was digging through their code the other day and it looks like this could be possible. At the next Hackathon I might devote to working on that, and then you don't ever need to hit [edit] at all. For now I'm going to keep your ping notification active, as a reminder ;)
Thanks for letting me know about the new RFPP option. Kind regards and hope you're enjoying adminship, MusikAnimal talk 03:32, 13 October 2022 (UTC)Reply

Make p-navigation portlet links optional? edit

Hey @MusikAnimal. Any interest in changing if (!mw.config.get('wgEditMessage')) { to something like if (!mw.config.get('wgEditMessage') && window.responseHelperLeftMenuLinks !== false) {? That way the user could set window.responseHelperLeftMenuLinks = false; to not display the left menu links. If not no worries. –Novem Linguae (talk) 11:57, 30 June 2023 (UTC)Reply

@Novem Linguae   Done with Special:Diff/1163581043 and documented. I want with window.responseHelperNavLinks as theoretically this script could (with modifications) be used on RTL wikis in which case "LeftMenu" would be misleading. And heck, Vector-2022 and such is constantly changing things so it may not stay on the left even for LTR languages :)
Thanks for the fine suggestion, MusikAnimal talk 16:55, 5 July 2023 (UTC)Reply

Incorrect indentation edit

Hi MusikAnimal. The RFP replies for rollback, confirmed, and page mover are double indented (::). Could these be changed to single indents (:) so they're consistent with the other pages? Thanks, Anarchyte (talk) 11:10, 19 September 2023 (UTC)Reply

@Anarchyte   Done I believe at some point the submission template at PERM had the request body indented but that has since changed, hence why the replies were double-indented. Thanks for pointing out that things have changed (I agree consistency is key).
Also WP:RFP = Request for Page Protection! Confusingly though Special:PrefixIndex/WP:RFP/ all points to WP:PERM pages. This is why I always use PERM and not RFP. I proposed changing the target at RFP ~8 years ago but the discussion didn't gain much traction. Maybe a proper RfD is in order. MusikAnimal talk 15:44, 19 September 2023 (UTC)Reply