User talk:Awesome Aasim/xfdvote

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 1234qwer1234qwer4 (talk | contribs) at 11:49, 6 September 2020 (→‎Publishing old text: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

XFD Voting tool

Love it. If you're accepting feature requests, here are a few:

  • Having a larger or expandable text box to see your full comment
  • A preview option would be a great addition.
  • Adding "Weak" and "Strong" options alongside the "Speedy" option

I appreciate you placing it on the article and not on the AfD nomination. Sorry to bombard you with requests, I'm sure you're busy, but I really like this script and plan to mention it to others at AfD. Thanks for creating something I think will get a lot of use.   // Timothy :: talk  21:39, 18 August 2020 (UTC)[reply]

TimothyBlue, Thanks for the feedback! Aasim 21:40, 18 August 2020 (UTC)[reply]
TimothyBlue, I got live previews working. Thanks for your feedback again! About the "weak"/"strong", I will need to do a little bit more work. Hopefully the live preview is as good as the expandable text box. I think maybe it would be good to work on an XFD tools project with the goal of gathering all the tools for XfDs into one gadget (maybe). Aasim 23:04, 18 August 2020 (UTC)[reply]
Thank you I like the idea of an all in one tool that would facilitate nomination, !voting and closing. The preview works :), but JQuery is a little laggy at times; you might consider making it similar to twinkles XfD tool just for consistency. The preview is great for viewing the comment, but the expandable text box would facilitate editing your comment better. But ultimately its the feedback you get that should guide this. I was wondering if Wikipedia supports vue.js? maybe some consideration of it? My total novice JS experience leads me to think this might be better than JQuery. Again, thanks for what is a great tool. I hope this feedback helps in a tiny way make it even better.   // Timothy :: talk  04:14, 19 August 2020 (UTC)[reply]
TimothyBlue, Thanks again for the feedback. I know there are many ways to approach the same problem. Ed6767 uses Material Design for his RedWarn tool, some other users use MediaWiki's OOUI. I am using JQuery UI for this as that is what I find easiest. That does not mean I could not switch to something else, but it is what I find a little more intuitive. Aasim 04:32, 19 August 2020 (UTC)[reply]
TimothyBlue, I think I fixed the live preview glitching for the most part? Wanna try again? Aasim 05:06, 19 August 2020 (UTC)[reply]
Gladly. I'm off to find a suitable sacrificial article now :)   // Timothy :: talk  05:10, 19 August 2020 (UTC)[reply]
TimothyBlue, same xD Aasim 05:23, 19 August 2020 (UTC)[reply]
  • Awesome Aasim This time I did a redirect. It was for 2020 Sparta earthquake. I like the two step, enter a target, then enter a reason. On the second step, where you enter the reason, the box is prefilled with the redirect target. When I clicked it disappeared and it took me a couple of moments to realize it wasn't removing the target, the filler just disappeared. Might be better to have the target as text above the box and have the reason box blank.
This one took some time and editing to get my thoughts into the right words and it was a meaningfully long comment. The lack of an expandable text box was felt more keenly here. I think this might unintentionally discourage longer more thought out explanations and well edited comments.
As I started my comment the preview was even more laggy than before. This improved to the point it was at before by the time I finished the comment. This time I also noticed the text updating was distracting me as I was typing, which I hadn't noticed before.
I love that you mention "AFD votes are weighted based on the strength of arguments, not based on number of votes." and I saw it in other places as well. Baseless votes bug the heck out of me.
I thought I would take the liberty to ping a few people I see at AfD often. They might be interested in this tool and providing feedback on its development. They leave meaningful well crafted comments on nominations and might be willing to provide valuable feedback. @AleatoryPonderings, Surtsicna, Mztourist, Gleeanon409, Celestina007, Spiderone, Adamant1, and Ravenswing:. I have no idea what they will think, but I know they do think, so whatever feedback you get will be meaningful. (I hope none of you minds the ping).   // Timothy :: talk  06:03, 19 August 2020 (UTC)[reply]
TimothyBlue, text box made a little bigger. You should also be able to resize it. My concern was that pressing ENTER would create a line break and, well, create an inappropriate line break for the vote. :)
Also, figured out why the live previews glitching and fixed it (finally!)
Tell me how you like it now.
On a side note, about your "novice to JavaScript", have you thought of learning JavaScript? There are many resources, including Khan Academy, Codecademy, Stack Overflow, and W3Schools. That and learning the MediaWiki API can do wonders like help you develop scripts and gadgets. Aasim 06:28, 19 August 2020 (UTC)[reply]

I started off life with COBOL and FORTRAN on cp/m machines, did some 6502/6510 assembly language work and eventually moved into C and then C++, but as you can tell it's been a long time and I'm retired and rusty now and my knowledge is more theoretical (dangerous lol) than practical at this point. I do enjoy the nostalgia though :) Compiling C to JS or loading it in through something like Node would be interesting. Blessings to you for encouraging others to learn, I wish more people did that. I'm off to bed, but I will have more feedback in the morning.   // Timothy :: talk  07:14, 19 August 2020 (UTC)[reply]

Thank you for the praise. Yes we can go on forever but it is midnight where I am at as well. See you in the morning then :D Aasim 07:18, 19 August 2020 (UTC)[reply]
Thanks for the ping and kind words about my AfD comments. It's nice to know that people appreciate it when thought is put into them. I'll test your tool when I get some time and let you know what I think. As a side note, if your interested in tweaking around with JS and Node there's an open source project I'm pretty heavily involved with called the Name-Suggestion-Index (nsi.guide) that uses both and integrates with Wikipedia/Wikidata/OpenStreetMap. We are always looking for new contributors. --Adamant1 (talk) 08:20, 19 August 2020 (UTC)[reply]
  • Thank you for the kind words, Timothy. That being said, what does this tool offer that the Twinkle tool doesn't, and how do I go about previewing it? Ravenswing 10:53, 19 August 2020 (UTC)[reply]
    • Ravenswing, this tool makes it easier to vote in XfD discussions. It does not nominate pages for deletion. Currently the tool supports AfD and MfD. My hope is to get support for FfD, CfD, TfD, and RfD soon. Like I said as well many times in my tool and on the tool's documentation page, votes are weighted based on the strength of arguments, not based on the number of votes. So if a user gives a compelling reason not to delete the article, that may have precedent over a bunch of "per nom" deletion votes. Aasim 17:45, 19 August 2020 (UTC)[reply]
    • Ravenswing, it now supports RfD as well. Aasim 00:29, 20 August 2020 (UTC)[reply]
  • Love the expanding text box. Love it. Made working on comments much easier and faster.
Today I did a Delete [1], a Keep [2], and a redirect [3].
The preview is working much much better. I didn't notice any lag and it was smooth, so the distraction problem from yesterday was gone. The preview is growing on me, its different from what I'm used to, so it takes some adjusting, but that is coming quickly and I don't see it as a problem.
One thing I did note that others might not see: I use a VPN and turn it off when editing, sometimes I forget and get an error when doing something with Twinkle or Closer. I tried to see what would happen with this script and it did nothing, no error message, no crash, just didn't move on. It was still active so when I turned the VPN off and clicked to finish, I completed as expected. On the plus side, I didn't have to go back and redo, but others might not realize what was happening.
Keep up the great work.   // Timothy :: talk  00:53, 20 August 2020 (UTC)[reply]
PS > I will try out MfD and RfD soon.   // Timothy :: talk 
  • Comment Hi Awesome Aasim I saw the message at the top of the AfD nominations and thought I would suggest it be changed to something like this: User:TimothyBlue/sandbox/XfDVotingToolMessage. Sorry I haven't had a chance to test the RfD or MfD functions yet, but I love the tool. Still hoping for Strong and Weak options :) Best wishes.   // Timothy :: talk  07:11, 25 August 2020 (UTC)[reply]
    TimothyBlue, those are currently disabled right now. I am still working out a few bugs and hopefully it will be available soon :) Aasim 07:14, 25 August 2020 (UTC)[reply]
  • Everything is back up. TimothyBlue I am going to go ahead and move this thread to the XFD vote talk page as this discussion is getting a bit long and cluttered. I hope you understand.  :) Aasim 18:14, 25 August 2020 (UTC)[reply]
    I mean, CfD, TfD, and FfD are disabled right now. Aasim 07:16, 25 August 2020 (UTC)[reply]
Ok, I accepted your suggestion. How do you like it now? Aasim 07:18, 25 August 2020 (UTC)[reply]


Edit summary

For CFD and RFD, which have all nominations for a given day on a single log page instead of each nomination being a separate page as at AFD, it would be helpful for watchers of the log page if the edit summary generated by these scripts (e.g. line 79 of User:Awesome Aasim/xfdvote.js/rfd.js) included and wikilinked the section name where the vote is being inserted - I believe it's already in the target variable? E.g. something like

summary: "[[#" + target + "|" + target + "]]: " + ((vote.toLowerCase() == "comment") ? "Comment" : "Vote") + " via [[User:Awesome Aasim/xfdvote|XFD voting tool]]")

Thanks, 59.149.124.29 (talk) 05:55, 21 August 2020 (UTC)[reply]

@Awesome Aasim: pinging in case you didn't notice. 1234qwer1234qwer4 (talk) 14:45, 23 August 2020 (UTC)[reply]
Thanks for the feedback! I will definitely consider it for RfD (and hopefully CFD, FFD, and TFD). Aasim 23:10, 23 August 2020 (UTC)[reply]
And I think I implemented it. Aasim 23:12, 23 August 2020 (UTC)[reply]


Nice script. Regarding edit summary: it would be great if you can make it say "Voting keep (using xfdvote)" or "Voting delete (using xfdvote)" etc as the case may be. Also, in the UI, it'd help to have greater control over the bolded part of the comment: provide a text box containing the bolded part which the user can change -- such as to make it "weak keep" and the like. Best, SD0001 (talk) 07:41, 28 August 2020 (UTC)[reply]

+1 A summary of "keep", "delete", etc., would be really helpful for reviewing AfDs in a watchlist. Thanks so much for creating this tool! AleatoryPonderings (talk) 14:42, 29 August 2020 (UTC)[reply]

Also, the script is not linked in the edit summary of a comment action: Special:Diff/976353885 was done with the tool. 1234qwer1234qwer4 (talk) 13:57, 2 September 2020 (UTC)[reply]

  • Comment: uninstalled today, due repetitive pageid messages and failures to vote. This, unfortunately, occurred after I installed a few new scripts from User:Lourdes --Whiteguru (talk) 10:43, 3 September 2020 (UTC)[reply]
@1234qwer1234qwer4 The linking to the tool with the edit summary "Comment" has been fixed. Thanks for pointing that out :) Aasim 20:55, 4 September 2020 (UTC)[reply]

Reason: undefined

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Any idea since a few days ago I can't use the tool at all with the error message One of the parameters "title" and "pageid" is required.? The reason is also Reason: undefined. This is happening on all AfD discussions for me. — Preceding unsigned comment added by Berrely (talkcontribs) 18:18, 3 September 2020 (UTC)[reply]

@Berrely can you tell me which pages this is happening on so I can troubleshoot? Aasim 20:55, 4 September 2020 (UTC)[reply]
@Berrely is it possibly an Internet issue? It would be really helpful if you gave more details. You can post your browser information by going to https://whatsmybrowser.com/ and copying the resulting link in the box. You should also tell me what pages in particular you see the thing happening on. Aasim 03:54, 5 September 2020 (UTC)[reply]
Awesome Aasim, I doubt it was, it was working fine before. I have quite fast internet as well. Something weird happened, now pages have the reasons with the buttons, but they disappear 5 seconds later. Here is the browser link I was given: https://www.whatsmybrowser.org/b/KK419 — Yours, Berrely • TalkContribs 08:42, 5 September 2020 (UTC)[reply]
@Berrely can you show me the particular page this is happening on as well? I would like to see if I can replicate the issue. Aasim 08:46, 5 September 2020 (UTC)[reply]
Awesome Aasim, David Yang (entrepreneur), I can record a video as well if you want. — Yours, Berrely • TalkContribs 08:52, 5 September 2020 (UTC)[reply]
https://streamable.com/31ft0z — Yours, Berrely • TalkContribs 08:54, 5 September 2020 (UTC)[reply]
Nevermind discovered the issue, User:EpochFail/wikignome was interfering with it. — Yours, Berrely • TalkContribs 08:58, 5 September 2020 (UTC)[reply]
Yep, some user scripts can and will interfere with the functionality of other scripts. At least we know that some decade old script was causing the problem. :) Aasim 09:01, 5 September 2020 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Publishing old text

xfdvote published an old, incomplete version of my vote twice already: yesterday, today. Maybe this is related to my internet connection, but other tools seem to work fine. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 11:49, 6 September 2020 (UTC)[reply]