Jump to content

Wikipedia:User scripts/Requests/Archive 6

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lowercase sigmabot III (talk | contribs) at 06:42, 16 June 2022 (Archiving 1 discussion(s) from Wikipedia:User scripts/Requests) (bot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 1Archive 4Archive 5Archive 6Archive 7Archive 8Archive 9

Please Read the FAQ

I hope this doesn't seem bitey, but it would be so helpful to have a script that could let me answer/close a post with a kindly-worded "Please read the FAQ" message on articles that are getting huge numbers of redundant posts for days and weeks on end after a major incident. It's a major time-waster for editors. —valereee (talk) 18:42, 11 November 2020 (UTC)

Valereee, is this just a script to reply to a person on a talk page with that message, your signature, maybe a ping, and using the proper indent? Does the script need to add {{archivetop}}{{archivebottom}} around it? Any other requirements? –Novem Linguae (talk) 14:03, 10 December 2020 (UTC)
Novem Linguae, ideally it would be able to answer and close a discussion or semi-protected edit request, in the case of a semi-protected edit request also mark it answered, but not archive it. I usually don't archive early as I'm hoping other new editors coming in to make similar requests will see there are already ten on the page and maybe not ask after all. :) —valereee (talk) 15:32, 10 December 2020 (UTC)
Some sort of language like, "Hi, and welcome to Wikipedia. The edit you're requesting has been discussed multiple times. For more information, see the FAQ at the top of this page. Thank you!" —valereee (talk) 15:33, 10 December 2020 (UTC)
 In progress User:Novem_Linguae/Scripts/edit-request-read-faq.jsNovem Linguae (talk) 17:37, 10 December 2020 (UTC)
Sorry. I haven't had as much time to work on this as I would like. I will try to finish this when I get some free time. Also, I ran across another tool that doesn't do exactly this, but might be helpful for quickly replying to edit requests: User:Jackmcbarn/editProtectedHelperNovem Linguae (talk) 07:32, 28 December 2020 (UTC)
@Novem Linguae, that .js -- is that safe to install and try, or were you saying it's not quite ready for prime time yet? —valereee (talk) 11:09, 12 June 2021 (UTC)
 Done. Valereee. Hello there! I'm happy to report that I spent a few hours on it this morning and got it working. Feel free to install and use. It probably has some bugs, please check carefully each time you use it, and please report any buggy diffs. Happy editing. –Novem Linguae (talk) 14:03, 12 June 2021 (UTC)
Wow, thanks! Will do! —valereee (talk) 14:05, 12 June 2021 (UTC)
@Valereee: I think this one is relevant and probably may be reused: User:Enterprisey/reply-link. You can configure it in your commons.js to point out to the FAQ like so: window.replyLinkPreloadPingTpl = "Please, READ [[Wikipedia:FAQ]]"; . AXONOV (talk) 09:46, 14 May 2021 (UTC)
An addition to DannyS712's User:DannyS712/DiscussionCloser.js ? Cabayi (talk) 10:31, 14 May 2021 (UTC)

The idea would be to identify a list common sources in the publication= field of a news citation, and use the script to wikilink them to the relevant page.

For example, Reuters to Reuters or New York Times to The New York Times. — Preceding unsigned comment added by RoanokeVirginia (talkcontribs) 10:28, 7 June 2021 (UTC)

There is no |publication= parameter in cs1|2. When Reuters or AP or AFP or other news agencies are directly referenced, their name goes in |work=. When The New York Times or San Francisco Chronicle or other news papers are referenced, their names (without italic markup) go in |newspaper= (or optionally, |work=). When citing a news source that is using work from a news agency (Reuters, AP, AFP, etc), the agency name goes in |agency= and the news source name goes in the appropriate 'work' parameter. None of these types of names belong in |publisher=.
I would otherwise object to this script because, in general, wikilinking every news source name just because it is a news source name seems to me to be sea-of-blue-like clutter. Wikilink news sources that are not familiar so that readers can easily evaluate that source's reliability; common sources, like the two you mentioned, do not need to be wikilinked to establish their reliability.
Trappist the monk (talk) 15:08, 14 June 2021 (UTC)

A script for changing external links to internal links if applicable. ― Qwerfjkl | 𝕋𝔸𝕃𝕂  (please use {{reply to|Qwerfjkl}} on reply) 20:32, 23 June 2021 (UTC)

meta:User:TMg/autoFormatter claims to fix this problem. You can find a list of pages at CheckWiki error 90. – Jonesey95 (talk) 21:46, 23 June 2021 (UTC)

Previous warnings

It would be a timesaver for me to have a script that would show me previous "month year" sections heads on user talks, which is commonly how warnings are sectioned, maybe allowing me to limit to just the past year or two. I usually scan the section heads in the history, but I'm sure I miss things, and others probably do too: Special:Permalink/1030562622#User:Ulises142 - When a user receives three final warnings, and yet continues vandalizing. It would be good if this caught section heads that were later changed. —valereee (talk) 18:31, 26 June 2021 (UTC)

FUR

I want a script that adds FURs of the user's choice, similar to WP:FURME. --Kailash29792 (talk) 17:44, 13 February 2021 (UTC)

+1 this would be amazingly useful. Just a simple script to fill in the parameters of {{logo fur}} would even be useful. — Berrely • TalkContribs 18:54, 1 July 2021 (UTC)

Mass-patrolling at Special:NewPages

I'd like a script that allows a user to select multiple unpatrolled pages at Special:NewPages and mark them as patrolled, without leaving the page. This would be useful in patrolling, for example, talk namespaces, where the vast majority of creations are good and can be quickly patrolled without going to the page itself. Elli (talk | contribs) 20:01, 6 July 2021 (UTC)

Script requests

Copied from User talk:DannyS712#Script requests
Please can you make these scripts (ordered by prority):

  1. A copy-vio check for AfC (similar to User:DannyS712/copyvio-check)
  2. A one-click undo button(User:BrandonXLF/AJAXUndo)
  3. (If possible) A script which replaces alert notifications and input boxes with text boxes (because alert notifications don't appear for me)

Thanks! ―Qwerfjkltalk 18:45, 11 July 2021 (UTC)

Is there, or could there be, a script that puts thanks links on talk pages? Evad37's excellent TimestampDiffs already puts the diff link on each comment date; I'd imagine picking the oldid from that to put on a (thanks) link would be a breeze, no? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 06:03, 12 May 2021 (UTC)

@Guarapiranga Aren't there a couple of tools around that do this already? One I know is c:User:Jack who built the house/Convenient Discussions. – SD0001 (talk) 12:55, 28 May 2021 (UTC)
Just now I've disabled Discussion Tools to try this, @SD0001. So far: Wow! — Guarapiranga  06:24, 21 July 2021 (UTC)

GAN User script

Hi! I'll preface this and say my coding knowledge is very basic. I did make an effort to complete this myself, but I'm better at forking existing scripts than writing a new one. Some of this is quite personal to me, but easy enough to make this more useful to more editors. This would only be of help to serial nominators of GANs though! Here's what I've been looking to get:

When attempting to nominate an article for WP:GAN, you need to {{subst:GAN|subtopic=X}} on talk page. I'd like to add this, plus some additional actions in one go.

  1. {{subst:GAN|subtopic=X}} onto talk page of article being edited. Maybe a pop-up box for |subtopic, and |note.
  2. Adds page to User:Lee Vilenski/GANs or, substitute the user's page. Create if not already exists. I think this is [[{{{USERPAGE}}}/GANs]] - you'd know better than I.
  3. Potentially the most difficult, it watchlists /GA# page, such as Talk:2020 World Snooker Championship/GA1 or Talk:League of Legends/GA2 for example.

For future enhancement, most Wikiprojects have a nominations pane, it'd be nice for this to automatically add to these if possible (probably needs some sort of case-by-case addition.

In addition, something that closes GANs might also be good. To do:

  1. Close the discussion on the GAN page.
  2. Change {{GAN|subtopic=X|nominator=Y|page=Z|etc.}} to {{GA|subtopic=X|page=Z|~~~~~}} or {{failed GA|subtopic=X|page=Z|~~~~~}} on talk page of article dependent if GAN passes or fails.
  3. Change ratings on all WikiProjects to GA (or leave alone if failed).
  4. List article at WP:GA - this may need a drop down as to where it needs to go within the lists.

I think this is quite an ask, but if anyone wants to help me work on this, let me know. I'm happy to give some more specific steps if wanted :). Best Wishes, Lee Vilenski (talkcontribs) 09:56, 23 November 2020 (UTC)

@Lee Vilenski: Interesting. For creating nominations, I already have a DYK-helper.js and GAR-helper.js. Would love to complete the collection by bundling in GAN, FAC, FAR, etc. A GAN nomination script is pretty straightforward but the unusual thing is actually #2 since every person may have their personal GAN log formatted in a different way and we wouldn't know. One way to go about it is to make it an opt-in function which blindly appends * [[Article name]] to the page, leaving it upon the user to ensure that such an addition would fit into the formatting of the page.
As for a closure script, I think it also needs to handle options like WP:GAN/I#HOLD and WP:GAN/I#2O?
Also, since you say did make an effort to complete this myself is that code available so that i can take parts from it? – SD0001 (talk) 18:15, 23 November 2020 (UTC)
I didn't get it far enough into doing so. I spent a little bit of time, and panicked at the scripting that is far above my head! I suppose the thing about #2 is that it wouldn't be too difficult to change the place, and I would likely just set my nominations page to transcribe.Best Wishes, Lee Vilenski (talkcontribs) 18:38, 23 November 2020 (UTC)
@Lee Vilenski:  Done for first part. See User:SD0001/GAN-helper.js. For logging, you can specify page name and the log entry in the interface. – SD0001 (talk) 21:09, 23 November 2020 (UTC)
That is some quick fantastic work! I've asked some friends to also test this out as I don't have anything written to nominate now. The interface looks fantastic. Best Wishes, Lee Vilenski (talkcontribs) 21:17, 23 November 2020 (UTC)
Ha, I mostly just copied stuff from GAR-helper and changed things here and there ... – SD0001 (talk) 21:24, 23 November 2020 (UTC)

Hi SD0001 - I've been using your script a lot, it's been super helpful. I wonder if you'd be interested in something for closing GANs. Here's the list that I would want it to do:

  1. Close the discussion on the GAN page, either pass or fail.
  2. Change {{GAN|subtopic=X|nominator=Y|page=Z|etc.}} to {{GA|subtopic=X|page=Z|~~~~~}} or {{failed GA|subtopic=X|page=Z|~~~~~}} on talk page of article dependent if GAN passes or fails.
  3. Change ratings on all WikiProjects to GA (or leave alone if failed).
  4. List article at WP:GA - this may need a drop down as to where it needs to go within the lists. I think this is the hardest bit, but let me know what you think.

Currently, I think this is the most strenuous part of the review process, as you generally have to edit at least three pages at the bare minimum just to close the GAN. When I close, I currently use discussion closer and rater to do the work, but I think this could be a lot more convenient. Is this something we could automate? There's a lot of people who do hundreds of reviews, and this might just make it a little bit more streamlined. Best Wishes, Lee Vilenski (talkcontribs) 19:39, 23 July 2021 (UTC)

Vector/Timeless background color customizer script

So i want to change my background colors from the basic grey and white and due to my limited knowledge of javascript, i cannot figure out any of that stuff. I want a script that adds a button to the menu (pop-down on Timeless) and allows you to change 4 of the colors, 1 for The top bar. 1 for the secondary background (the grey portion), 1 for the main background (the thing where the text stands) and 1 for the text itself. MoonlightVectorTalk page 17:47, 6 October 2021 (UTC)

Contraction fixer

I'd like a user script that turns contractions into proper phrasing per MOS:CONTRACTION. Should be easy to code. WIKINIGHTS talk 16:11, 9 August 2021 (UTC)

Taking up the mantle of an almost completed peer review javascript bot

Hi all. Hope that you're well during these crazy times. I know this is technically a bot request but owing to the use of Javascript User:GreenC pointed me here. I was wondering if someone could take over a JavaScript bot request from a user who's now retired? (Wikipedia:Bots/Requests for approval/AWMBot 2)

Short summary of the problem is - old peer reviews are linked using CURRENTPAGENAME/ArchiveX. That means though when a page gets renamed, the link is lost. We have now about 680 broken reviews in this manner and a user created an almost complete javascript bot to fix it (code available via the bot request). There was only one slight problem which was that sometimes duplicate parameters got inserted into the fixed up peer review template. If you had time I'd be very very grateful to have this fixed up. Once this is done I plan to insert the peer review links into all the outstanding old peer reviews but can't do this until the broken ones are fixed up.

Fingers crossed! Tom (LT) (talk) 07:16, 19 August 2021 (UTC)

Rotating through lists

I just create the Go portal. In it, I created a box showing the top international title holders. The code for that is: {{#lst:List of top title holders in Go|titleholders}}. To make this work I added a section "titleholders" to part of the article List of top title holders in Go. This seems to work fine. Now, what I'd like to do, and I can't seem to figure out how to make it work, is to rotate through the various lists of title holders in the article List of top title holders in Go. For example, the next list in the article is for "Continental" title holders. I know how to display that list with appropriate code, i.e., {{#lst:List of top title holders in Go|Continental titleholders}} with an appropriate section label for that list. The problem is how to make a template or other script in the portal that will allow switching form one list to the next. It would be a bit like a slide show, as with {{Transclude linked excerpts as random slideshow}} except I need it to be clear when you select one list or another. Ideally, I would create a horizontal list of links for "International", "Continental", "China", etc., and the reader could click on the type and the list would automatically update. Alternatively, there could be a left/right arrow above the list and the reader could simply click to advance through each list with an appropriate label appearing above the list. I would appreciate any help understanding how this can be done. Coastside (talk) 06:39, 9 October 2021 (UTC)