Wikipedia:User scripts/Requests: Difference between revisions
→Mazana: new section |
|||
Line 527: | Line 527: | ||
(The reverse might also be helpful, though I don't have a need for it myself, but if you add a second-level heading, then selected headings below it could be automatically indented. This would be more complicated, because you'd need a mechanism to select the ones to indent. So I'm not actually requesting this part...) --[[User:IamNotU|IamNotU]] ([[User talk:IamNotU|talk]]) 21:51, 20 July 2020 (UTC) |
(The reverse might also be helpful, though I don't have a need for it myself, but if you add a second-level heading, then selected headings below it could be automatically indented. This would be more complicated, because you'd need a mechanism to select the ones to indent. So I'm not actually requesting this part...) --[[User:IamNotU|IamNotU]] ([[User talk:IamNotU|talk]]) 21:51, 20 July 2020 (UTC) |
||
== Mazana == |
|||
Mazana was born in the mid 1800's is a under the family clan of Maluleke, He was the first born son of Chali. The Mazana Family currently live at Matsakali Village under the Collins Chabane Municipality in Malamulele (South Africa, Limpopo Province, Vhembe District). |
|||
Mazana was born in the Tshimbupfe area then relocated to Matsakali Village. He had 2 wives and eleven children (four boys and seven girls). |
|||
with His first wife he had: Mdunwazi (male), Khubani(female), Mphephu(female), Khazamula(male), Mjaji(female) and Mbhazima(male), And with his second wife he had: Mthavini(female), Risimati(male), Mamayila(female), and Mphephu(female). |
Revision as of 17:44, 22 July 2020
Post your user script-related request or idea for a new user script (or gadget) as a new section below. Discussion in each section is encouraged. Note that most gadgets started out as mere user scripts. This page is intended for new user scripts, which affect the appearance of the site and may add additional functionality. Fully automated bots should be requested at Wikipedia:Bot requests instead. All user script-related requests are welcome, whether they be for assistance writing an existing user script, desire for a new user script that does what you want, etc. Ideas for new user scripts are welcome too! Before you request a script, please make sure it does not already exist. For a list of user scripts, see this list. If you have been helped, please let us know, so that we may archive the request. |
|
Extract data from a frozen VisualEditor
Often VisualEditor ends up frozen and won't allow me to save or switch to markup-mode, giving instead a "docserver-http-error", "500", or "404" error (when the article has been renamed while I was editing). This happens about once a day.
It seems VisualEditor's API doesn't allow for extracting the markup data without connecting to the server.
I have two ugly ideas for how to solve this:
1. Regularly log wikimarkup when using VisualEditor to prevent loss of data when it freezes
- Every 30 seconds, generate wiki-markup and console.log it.
- If the connection to the server is broken, alert() me so that I may retrieve my markup from the console and reload the editor.
2. Extract the data model
- Extract the data model, copy it to my clipboard
- Reload the window
- Paste the data model, and the user script applies it to the new instance of VisualEditor
Or if anyone knows a better way to retrieve data from a frozen VisualEditor, that'd be good to know.
With thanks, – Thjarkur (talk) 22:40, 3 August 2019 (UTC)
- @Whatamidoing (WMF): Any ideas/comments? SD0001 (talk) 04:58, 21 October 2019 (UTC)
- Þjarkur, the data model is actually already saved to
localsession storage in your browser. If you randomly refresh the page during an editor session, you will note a small notification top right: "Changes recovered; Your unsaved changes have been automatically recovered". No idea however what happens when the page is moved during that time. It probably wasn't designed with that in mind. You might consider opening a phabricator ticket on that feature request, as it is not an uncommon situation I'd think. —TheDJ (talk • contribs) 09:22, 21 October 2019 (UTC)- SD0001, thanks for the ping. I really appreciate it when editors let me know about conversations. Thjarkur, thanks for posting about the problems you were having. I apologize for the delay in finding it. Inside the visual editor, there's a
?
menu. At the end of that menu is an item for leaving feedback on the software. That posts your note over on MediaWiki.org, where the devs are likely to find it faster. - Yes, the ability to (usually) recover unsaved changes already exists. If the visual editor crashes, but your web browser doesn't, then you should be able to select-all and copy everything (or just the changes you were making) and then paste them back in. It won't work in 100% of the cases, but it usually works for me.
- There was a spate of 404 problems recently. That's a separate thing (all about mw:RESTBase, and supposedly it's finally fixed now (as of last WP:THURSDAY?). Hopefully you're already seeing fewer of these problems. Whatamidoing (WMF) (talk) 17:10, 23 October 2019 (UTC)
- The Restbase improvements did lessen the problem but I still run in to this way too often. The cookie-autosave is cleared if you accidentally clicked on Escape or clicked out of the VisualEditor, I think the cookie has only saved me in about 5% of cases. Does anybody know a way to interact with the VisualEditor instance in Javascript? – Thjarkur (talk) 15:51, 9 December 2019 (UTC)
- SD0001, thanks for the ping. I really appreciate it when editors let me know about conversations. Thjarkur, thanks for posting about the problems you were having. I apologize for the delay in finding it. Inside the visual editor, there's a
TFD holding cell: button to mark template as ready for deletion
- So I actually do have a suggestion/request. One thing that would be great is to be able to use this in the Holding cell. What I mean by that is that when a template that is currently listed in one of the holding sections is ready to be deleted, it would be great to be able to just click a button and have the entry moved to the bottom and to have the template in question updated as ready for deletion. Food for thought... --Zackmann (Talk to me/What I been doing) 00:24, 11 February 2019 (UTC)
- Does that make any sense? Not sure if I did a great job explaining it... --Zackmann (Talk to me/What I been doing) 19:32, 15 February 2019 (UTC)
- Yeah, something like this should be possible. I'll move this thread to WT:XFDC so this suggestion doesn't get lost in my talk page archives. - Evad37 [talk] 02:20, 16 February 2019 (UTC)
- So I actually do have a suggestion/request. One thing that would be great is to be able to use this in the Holding cell. What I mean by that is that when a template that is currently listed in one of the holding sections is ready to be deleted, it would be great to be able to just click a button and have the entry moved to the bottom and to have the template in question updated as ready for deletion. Food for thought... --Zackmann (Talk to me/What I been doing) 00:24, 11 February 2019 (UTC)
- Thinking about this further, it's probably better off as a separate script – I don't think being part of XFDcloser would save a significant amount of code - Evad37 [talk] 01:06, 20 November 2019 (UTC)
- Ping @Zackmann08: - Evad37 [talk] 01:12, 20 November 2019 (UTC)
- Alternatively we could just stop bothering with the
delete=1
business since it's completely useless anyway. ‑‑Trialpears (talk) 13:07, 3 December 2019 (UTC)
Some ideas
Some ideas copied from User:Enterprisey/Dashboard. If you make one of these scripts, strike the entry and add a link to your script.
Make a user script that is bound to a keyboard shortcut and pops up a modal where you can type a section header on the current page (auto-completed, of course) and jump to itUser:TheTVExpert/searchForSectionA user script to unify the "Alerts" and "Notices" icons (might not even be possible, but it would be cool if it happened) (see screenshots for the old icon with no notifications and one notification)User:Enterprisey/simple-notifs- The API supports getting alerts and notification at once, completely possible.– BrandonXLF (talk) 20:03, 18 December 2019 (UTC)
- A user script to display the same info as PleaseStand's script, but in a very compact way so it doesn't cause reflow when the info shows up - also incrementally showing the data as API responses get back would be cool
- A user script to expand a diff until it covers all contiguous edits made by that user (if a user made three consecutive edits and you view the diff of the middle, pressing a button should expand it to cover all three) (L235 suggestion)
- A user script to give you a browser push notification when you get a Wikipedia notification
- A user script so that whenever you go directly to a section, the section gets floated so that the header gets locked to the top of the screen. This will theoretically prevent the text from jumping around as the rest of the pages load. Now, the hard part is making sure that this script runs before the rest of the stuff making it jump around.
- A user script to quickly switch between tabs, on pages that have tabs at the top (WikiProjects, village pumps, etc)
- A user script to make stuff clickable in diffs. (Section headers, line numbers, etc.)
A script that puts a tab at the top of user script pages & user script documentation pages, to allow switching between themUser:TheTVExpert/scriptDocumentationTabs- A user script to highlight which content (in the HTML) comes from which template (suggested by MusikAnimal over IRC 23:18, 7 January 2019 (UTC))
- A user script to say where a given template is being used. How to do it: call the Extension:TemplateSandbox endpoint (the one that gets hit when you do the "Preview page with this template" text field on a template edit page) with the wikitext of that template (but with a yellow border), and previewing the current page.
- A user script that provides a button to mark all reverts (i.e. pages displayed with an edit summary that includes the word "reverted") as "visited" in the watchlist (suggested by Natureium)
A user script that takes an oldid and takes you to the deleted revision (idea was L235's, I think)User:Enterprisey/link-deleted-revs- A user script to automatically add unsigned/undated templates
A user script so that whenever you click on a "hist" link in a user contribs page, the resulting page history highlights all contributions by that user (also has form on history page to perform such highlighting)(link)- A user script to show a pop-up section preview when you hover over its TOC link
A user script to make a single section edit, without reloading the whole page (shoutout to Gryllida for the idea)A user script that redirects accidental navigation to 404's ending in a slash (say, Foo/) to the normal page (Foo)- A user script to put the current AIV count in your toolbar, Stack Overflow mod style.
- Holding down CTRL lets you click into any template or link in the edit window
- Note: Wikipedia:Tools/Navigation popups allows something similar if you select the template or link. —guywan (talk • contribs) 15:21, 24 March 2020 (UTC)
- A user script to move discussions
- A user script to hyperlink "per X" to the last comment X made
- Edit just one section w/ "true" (no server-roundtrip) live preview
In diffs, show previews for both the old and new versions (with anchors to allow jumping)- Minimap for big diffs
- A user script that removes newsletters and other recurring messages while viewing a talk page
- There should be a way to jump directly to a user's comment from the history page (or, more broadly, if a diff consists of just a few lines being added in one place, to jump directly to those new lines instead of just to the top of the section). Implementation notes: Parallel fetch diff (mw:Api:Compare) and current wikitext, then split the wikitext by lines, go from the line number (from the diff HTML) to a string index into the wikitext, add a sentinel marker at that point, run it through Parsoid, find the sentinel, go up in the MediaWiki DOM to highest "paragraph" (or list element, for discussions), obtain the start and end string indices of the added region in the paragraph, pack up the (section header, paragraph index, start idx, end idx), reload the page with that 4-tuple in window.location.hash, and do the jump.
- Replace page titles in watchlist & user contribs pages w/ their shortcuts for readability
- A link at the end of every comment to the diff in which it was added. Needs some thought about how to make this as efficient as possible.
GUYWAN ( t · c ) 19:33, 5 December 2019 (UTC)
Request for a source-finder
Can someone possibly make a script that adds {{Find sources mainspace}} (The template itself is "Find sources: "Requests" – news · newspapers · books · scholar · JSTOR") on each page when editing? Or is there already a script for this? Please keep me updated! dibbydib 💬/✏ 06:26, 12 December 2019 (UTC)
- Dibbydib, does User:BrandonXLF/FindSources.js work? – BrandonXLF (talk) 21:56, 13 December 2019 (UTC
- User:Enterprisey/quick-before might also be useful for this. Enterprisey (talk!) 06:51, 4 July 2020 (UTC)
unreliable.js, a predatory journals/vanity press highlighter
Similar to User:Anomie/linkclassifier.js/User:Anomie/linkclassifier.css, I'd like a user script to highlight citations to predatory journals and vanity presses. The regex can be stolen/adapted from Special:AbuseFilter/891.
Basically, if a URL with a domain that matches the urls :=
part, highlight those links by making them... let's say pink→pink/some annoying color. Likewise, if a DOI matches the dois :
part, highlight those in annoying pink as well (doi:10.4172/omicsjournalofnonsense→doi:10.4172/omicsjournalofnonsense). Or whatever other colour. If the script cannot dynamically be kept in sync with Special:AbuseFilter/891, I can take over and put it at User:Headbomb/unreliable.js and maintain it after that.
The idea is that, if you encounter a citation like
- Xu, Ting (2017-01-06). "The Relationship between Interest Rates, Income, GDP Growth and House Prices". Research in Economics and Management. 2 (1): 30. doi:10.22158/rem.v2n1p30. ISSN 2470-4393.
You get presented with something like
- Xu, Ting (2017-01-06). "The Relationship between Interest Rates, Income, GDP Growth and House Prices". Research in Economics and Management. 2 (1): 30. doi:10.22158/rem.v2n1p30. ISSN 2470-4393.
And know something's off. Multiple 'classes' and colors should be supported (each customisable as enabled/disabled), so that additional things like blacklisted links and possibly unreliable sources (like Forbes.com, which will often be fine, but sometimes not) can also be highlighted. Headbomb {t · c · p · b} 07:16, 6 February 2020 (UTC)
- The basic version would look like this:
var PREDATORY_HREFS_RGX = /academicjournals\.com|academicjournals\.net|academicjournals\.org|academicpub\.org|academicresearchjournals\.org|aiac\.org\.au|aicit\.org|alliedacademies\.org|ashdin\.com|aspbs\.com|avensonline\.org|biomedres\.info|biopublisher\.ca|bowenpublishing\.com|ccsenet\.org|cennser\.org|clinmedjournals\.org|cluteinstitute\.com|cpinet\.info|cscanada\.net|davidpublisher\.org|etpub\.com|eujournal\.org|growingscience\.com|hanspub\.org|hoajonline\.com|hrmars\.com|iacsit\.org|iamure\.com|\.idosi\.org|igi-global\.com|iises\.net|imedpub\.com|informaticsjournals\.com|innspub\.net|intechopen\.com|intechweb\.org|interesjournals\.org|ispacs\.com|ispub\.com|julypress\.com|juniperpublishers\.com|kowsarpub\.com|kspjournals\.org|m-hikari\.com|macrothink\.org|mathewsopenaccess\.com|mecs-press\.org|oapublishinglondon\.com|oatext\.com|omicsonline\.org|ospcindia\.org|researchleap\.com|sapub\.org|scholink\.org|scialert\.net|scidoc\.org|sciencedomain\.org|sciencedomains\.org|sciedu\.ca|sciencepg\.com|sciencepub\.net|sciencepubco\.com|sciencepublication\.org|sciencepublishinggroup\.com|scipg\.net|scipress\.com|scirp\.org|scopemed\.com|sersc\.org|sphinxsai\.com|\.ssjournals\.com|thesai\.org|waset\.org|witpress\.com|worldwidejournals\.com|zantworldpress\.com/i; var PREDATORY_DOIS_RGX = /doi.org\/10\.(11648|1166|1234|12677|12692|12720|12988|13005|13172|13188|14257|14303|14419|1453|14569|14662|15415|15373|15761|17265|18005|18052|18311|18775|19030|19044|19070|19080|1999|20472|20849|20902|21102|21767|22158|23937|2495|30654|30845|35841|36648|3844|3923|3968|4018|4156|4172|4236|4303|5267|5296|5376|5430|5455|5539|5567|5580|5772|5812|5815|5829|5897|5899|5923|5963|6007|7243|7439|7537|7575|7718|7763|9734)/i; var cssRules = { "margin-right": "0.1em", "padding": "3px 4px 2px", "background-color": "#ffdddd", "border": "1px", "border-radius": "3px", "box-shadow": "0.1em 0.1em 0.25em rgba(0,0,0,0.75)", "-moz-box-shadow": "2px 2px 4px #A0A080", "-webkit-box-shadow": "2px 2px 4px #A0A080", "box-shadow": "2px 2px 4px #A0A080" }; $('.mw-parser-output a.external').each(function() { if (PREDATORY_HREFS_RGX.test(this.href)) { $(this).css(cssRules); } else if (PREDATORY_DOIS_RGX.test(this.href)) { $(this).css(cssRules); } });
- Hopefully someone else can do the rest and provide customisability you ask for.
- You should definitely simplify the massive regex (for instance, make the .com part common for all .com domains) for better performance. SD0001 (talk) 12:43, 6 February 2020 (UTC)
- I can regex, what I can't do is .js from scratch, but the above should give me enough to get started. I'll give that piece of code a shot this afternoon. Performance probably isn't much of an issue. Headbomb {t · c · p · b} 13:54, 6 February 2020 (UTC)
- @SD0001: User:Headbomb/unreliable.js doesn't seem to work, including your original code. This can be tested on Science Publishing Group, which has both a url and doi that should match. Headbomb {t · c · p · b} 14:45, 6 February 2020 (UTC)
- Nevermind, I had a brainfart. Namely, I forgot to do this. Headbomb {t · c · p · b} 16:04, 6 February 2020 (UTC)
- I should have mentioned that for it to load reliably, it needs to be ensured that the page has fully loaded before the script code is run. You can do this by wrapping the whole code between
(function() {
... script code comes here ...})();
- I see that you removed doi.org from the DOIs regex - this would mean that anyinnocentdomain.com/3424310.11648 would be flagged, as the link's url contains "10.11648". Markup like
(doi)*?[ ]*?[=\|\:][ ]*?
won't work here as we're checking against the HTML of the page (specifically, against external link URLs), not against the wikitext. [1] the i makes the regex test case-insensitive. SD0001 (talk) 17:16, 6 February 2020 (UTC)- Good to know. Didn't know about /i, but that will be useful. As for removing doi.org, that's desired to pickup "Journal of crap 10.4172/asdf10354" that might not make use of templates. false positives are far and few between, although normally I might add a final
...\/
at the end to ensure it matches a10.4172/
and not just10.4172
. Clearly "(PRED_DOIS_RGX.test(this.href))
" needs tweaking to look outside hrefs, but to what, I don't yet know. Headbomb {t · c · p · b} 17:21, 6 February 2020 (UTC)- @Headbomb: You can check whole reference texts (anything within <ref> tags) by using code like:
- SD0001 (talk) 17:47, 6 February 2020 (UTC)
$('span.reference-text').each(function() { if (DOI_RGX.test(this.textContent)) { $(this).css(CSSRULE); } });
- Good to know. Didn't know about /i, but that will be useful. As for removing doi.org, that's desired to pickup "Journal of crap 10.4172/asdf10354" that might not make use of templates. false positives are far and few between, although normally I might add a final
- I should have mentioned that for it to load reliably, it needs to be ensured that the page has fully loaded before the script code is run. You can do this by wrapping the whole code between
- Nevermind, I had a brainfart. Namely, I forgot to do this. Headbomb {t · c · p · b} 16:04, 6 February 2020 (UTC)
- @SD0001: User:Headbomb/unreliable.js doesn't seem to work, including your original code. This can be tested on Science Publishing Group, which has both a url and doi that should match. Headbomb {t · c · p · b} 14:45, 6 February 2020 (UTC)
- I can regex, what I can't do is .js from scratch, but the above should give me enough to get started. I'll give that piece of code a shot this afternoon. Performance probably isn't much of an issue. Headbomb {t · c · p · b} 13:54, 6 February 2020 (UTC)
@SD0001: Well, I don't want this to be restricted to ref tags either. I want to find those wherever on the page they may be. Headbomb {t · c · p · b} 17:56, 6 February 2020 (UTC)
@SD0001:, any idea for how to look outside of references/links? Headbomb {t · c · p · b} 01:33, 11 February 2020 (UTC)
- @Headbomb: Thanks for all your work on this so far! When finished, I do think this will be a very useful script, particularly for NPP/AFC folks.
- Regarding looking outside references, it's a bit complicated. We'll need to iterate over all the text nodes on the page, extract the index at which the search hit begins, and wrap that in a span element, upon which we can then apply custom stylings. I can code this for you when I have time. But where the does the desire for doing this outside ref tags come from? SD0001 (talk) 18:02, 12 February 2020 (UTC)
@SD0001: A typical example would be in further reading section or external link sections where you could have something like
==Further reading * Smith, J. (2019) "Article of things" ''Journal of Nonsense'' doi: 10.4172/123456798
It doesn't need to highlight the whole doi (although that would be neat if it could), but just the prefix/whatever it matches would be enough. Headbomb {t · c · p · b} 18:08, 12 February 2020 (UTC)
- https://markjs.io/ may be useful for something here. Headbomb {t · c · p · b} 19:00, 12 February 2020 (UTC)
PROD handler
A script to make it a bit less time consuming for patrolling admins to assess proposed deletions. Single click to open a dialog which would check if:
- the page has ever been PRODed before
- the page has ever been nominated for deletion before
- the page has ever been undeleted
- the talk page has any content other than WikiProject templates
and buttons to:
- open what links here (articles only) in a new tab or list them in the dialog
- open the talk page in a new tab or show it in the dialog
- accept the PROD and delete the page, talk page, and redirects
- decline the PROD because ineligible or for a custom reason
--kingboyk (talk) 18:18, 13 February 2020 (UTC) (ping appreciated if there is a reply)
- I now recall that the PROD template itself is supposed to indicate if the article has already been at AfD.
- In recent days I have had to decline PRODs due to the article having been PRODded before (this is often difficult or impossible to spot in the history) and one where the article had previously been undeleted. --kingboyk (talk) 13:19, 14 February 2020 (UTC)
Userscript help
I have imported a userscript from Meta-Wiki and have it at User:FlightTime/confirm-logout.js. I've tried to contact the author, but they seem to be inactive. The script asks for a conformation for logout, as seen here File:Logout screenshot.png. The script uses RGB color calls, What would be perfect would to change all RGB calls to Hex triplet, if that is not possible then the outcome I'm looking for is as follows:
background: #EEEEEE;
border: 2px solid #0000FF; (also the button borders)
text: #000
I am trying to match the boxes on my talk page
Any and all help will be greatly appreciated. Please ping me with comments/results. Thank you for your time, - FlightTime (open channel) 20:32, 23 February 2020 (UTC)
- @FlightTime: Make the following changes:
warning: {text: "rgba(255, 255, 255, 1)", background: "rgba(221, 51, 51, 1)"},
→warning: {text: "#000", background: "#EEE"},
"en_us": "<div style='margin-bottom: 0.5em; '>You clicked on a log-out link. Do you want to continue?</div><div><button>No</button><button onclick='window.location=\"/wiki/special:logout\"'>Log out</button></div>",
→"en_us": "<div style='margin-bottom: 0.5em; border: 2px solid #00F'>You clicked on a log-out link. Do you want to continue?</div><div><button style='border: 2px solid #00F; color: #000'>No</button><button style='border: 2px solid #00F; color: #000' onclick='window.location=\"/wiki/special:logout\"'>Log out</button></div>",
- I think these will work. That whole script could do with a bit of cleanup, since you probably aren't using all of it's features. Regards, —guywan (talk • contribs) 00:23, 21 March 2020 (UTC)
- @Guywan: Wow :) Thank you, I was thinking I wasn't going to get a reply. Let's see if I can do this right (if you'd like I can put the script on a subpage, not sure if the author is maintaining it). Thanx again. Cheers, — Preceding unsigned comment added by FlightTime (talk • contribs) 00:25, 21 March 2020 (UTC)
A script to handle file renaming requests
A script to handle file renaming requests, which will do following this:
- Rename the file
- Remove the {{Rename media}} template.
- Update file links
Similar to commons:MediaWiki:Gadget-AjaxQuickDelete.js. -- CptViraj (📧) 13:58, 2 March 2020 (UTC)
- @CptViraj: Very exciting! I might be able to do this. I'll start working on it some time. Regards, —guywan (talk • contribs) 23:59, 20 March 2020 (UTC)
- Ye thankyou. Regards! -- CptViraj (📧) 03:33, 21 March 2020 (UTC)
- I do lots of file moving, this script would be terrific. - FlightTime Phone (open channel) 16:09, 24 March 2020 (UTC)
- Ye thankyou. Regards! -- CptViraj (📧) 03:33, 21 March 2020 (UTC)
- @CptViraj and FlightTime: Unveiling FileMoverHelper. While on File: pages, it creates a link in the More portlet (if you use the Vector skin) called FMH. Click on that link to get started. I recommend checking the results the first few times and letting me know if something goes horribly terribly wrong. Best of luck. —guywan (talk • contribs) 23:05, 2 April 2020 (UTC)
- @Guywan: I moved File:Trails of Cold Steel IV Japanese Cover.png to File:Trails of Cold Steel IV Cover Art.png but the script didn't update the file link at The Legend of Heroes: Trails of Cold Steel IV. And if possible can we have custom reason option too? Thankyou! -- CptViraj (📧) 03:48, 3 April 2020 (UTC)
- @CptViraj: Should be fixed. You will now be prompted for a move reason. —guywan (talk • contribs) 15:26, 3 April 2020 (UTC)
- @Guywan: File:Flash Comics (Feb 1948) cover art.png didn't update file link this time too. Custom reason is working fine. -- CptViraj (📧) 16:05, 3 April 2020 (UTC)
- @CptViraj: Now it should be fixed, hopefully. —guywan (talk • contribs) 18:42, 3 April 2020 (UTC)
- @Guywan: File:Flash Comics (Feb 1948) cover art.png didn't update file link this time too. Custom reason is working fine. -- CptViraj (📧) 16:05, 3 April 2020 (UTC)
- @CptViraj: Should be fixed. You will now be prompted for a move reason. —guywan (talk • contribs) 15:26, 3 April 2020 (UTC)
- @Guywan: I moved File:Trails of Cold Steel IV Japanese Cover.png to File:Trails of Cold Steel IV Cover Art.png but the script didn't update the file link at The Legend of Heroes: Trails of Cold Steel IV. And if possible can we have custom reason option too? Thankyou! -- CptViraj (📧) 03:48, 3 April 2020 (UTC)
A script to help build an "open tasks" list of things you'd like to monitor
Sometimes, when I throw out an idea on a more obscure talk page, there's no one around to see it and it gets lost (or, at a super busy talk page, there are too many competing discussions and it gets buried). When I make a post I fear this might happen to, I often add the page to my watchlist so I can follow up on it or send out invites if needed later, but this isn't fully optimal, since for obscure pages I might never get reminded to follow up if there's no other activity, and for busy pages it clogs up my watchlist. I'd love to have a userscript that I could use to easily build up a list of such discussions on a subpage of my user page. I envision it working by allowing you to go into a mode on any page where you can click on a section, and it'll add a link to that discussion on your subpage. On the subpage itself, it'd allow you to easily move tasks between the open/active category and a "done" category for completed matters and a "abandoned" category for failed/not-worth-the-effort matters. Does anything like that exist, and if not would anyone be interested in taking this on? (I'm hoping this proposal doesn't itself become one of those things I forget about.) Sdkb (talk) 00:22, 29 March 2020 (UTC)
- @Sdkb: Check out the scripts in WP:User scripts/List#Todo lists. I think ToDoLister does most of those things. SD0001 (talk) 08:51, 31 March 2020 (UTC)
HarvErrors.js
This section in a nutshell: Effective April 2020, CS1 templates (e.g. {{cite book}}, {{cite journal}}, and the other {{cite ...}} templates) behave like CS2 templates (e.g. {{citation}}) with respects to the generation of harvard-style anchors (see discussion). This means that adding |ref=harv to "long" CS1 citations is no longer required to use "short" citation templates like {{harvnb}}, {{sfn}}, and other {{harv}}-like footnotes.
If you see more yellow warnings like
than usual, those are caused by User:Ucucha/HarvErrors.js. To suppress/reduce these yellow warnings, you can use any of the following options
If there still are errors after this, see how to deal with harvard-style citation issues. The documentation might be a bit out of date, but every piece of advice listed for CS2 (e.g. {{citation}}) now applies to CS1 (e.g. {{cite book}}) as well. If none of those options satisfy you, you can make a new script request at WP:SCRIPTREQ. |
There is a open discussion at Help talk:Citation Style 1#Cite book Harv warning which involves the HarvErrors.js script. The original script is at User:Ucucha/HarvErrors.js; patched versions of the script are available at User:Svick/HarvErrors.js and User:David Eppstein/HarvErrors.js. Nonetheless, its usefulness (both the original and the patched versions) is deemed less than it used to be before the "|ref=
harv " default was applied to cs1 cite templates a few days ago. This is not an actual request yet - please discuss at Help talk:Citation Style 1#Cite book Harv warning and not here (to keep discussions in one place), until it becomes clear whether a coherently formulated script request would actually make sense in order to address the situation. --Francis Schonken (talk) 07:12, 21 April 2020 (UTC)
- @Francis Schonken: The discussion about how to make a new script based on HarvErrors.js should be held here, not at Help talk:CS1 btw, because here is where you can explain what you would like the script to behave like. Headbomb {t · c · p · b} 10:28, 21 April 2020 (UTC)
- Is an actual script request now (see below), so struck the recommendation to have preliminary talks elsewhere, which no longer applies. --Francis Schonken (talk) 04:50, 22 April 2020 (UTC)
Some discussion relating to this occurred at the technical Village Pump; the portion of the discussion relating to the development of a user script is being redirected here. Kees08 (Talk) 01:58, 22 April 2020 (UTC)
- Kees08, we need a script that did what User:Ucucha/HarvErrors.js did before the recent change that made ref=harv the default for {{cite book}} etc. We need three things:
- (a) a warning when we use a short cite (sfn/harvnb) without a corresponding long one;
- (b) a warning when we use a long one as a source (i.e. with ref=harv) without a corresponding short one; and
- (c) no warning when the template is in Selected works, Bibliography, or Further reading without ref=harv.
- We had that functionality before the change. We need to be able to move these citation templates smoothly from sourcing sections (with ref=harv) to non-sourcing sections (ref=none). Is it possible to write a script that does this? The scripts suggested by Trappist and others don't achieve this. SarahSV (talk) 03:53, 22 April 2020 (UTC)
- Currently, the Harverrors script does (a) with a red error message (not a warning; the two are different, and we should use words carefully when asking a programmer to create a script); does (b) with a brown warning message; and does (c) if the full citation includes
|ref=none
as a parameter. Those three things have always been true for Harverrors in combination with {{Citation}}, which is a Citation Style 2 template, and for {{cite book}} and the other Citation Style 1 templates when they included|mode=cs2
. The recent change is that the brown warning described in (b) has been activated for {{cite book}} and the other Citation Style 1 templates, even if they do not explicitly use|ref=harv
, due to a change in the CS1 templates. To be clear, the Harverrors script has not changed. - I don't know of a way that (c) could be achieved without using
|ref=none
, but there are a lot of clever script writers out there. Depending on the section name will not work, because section names are used inconsistently. At the GA James Francis Dwyer, for example, the section for full citations that are linked from short citations is called "Bibliography". – Jonesey95 (talk) 04:11, 22 April 2020 (UTC)- Or, a script that adds "
|ref=none
" to {{citation}} and/or cite templates that don't have a "|ref=harv
", and/or in selected sections to all such such templates, after which clean-up of all the lists (i.e. "Cited works", "Further reading", "External links" etc) can proceed with assistance of the original HarvErrors.js script (that is the one showing "errors" as well as "warnings"). --Francis Schonken (talk) 04:50, 22 April 2020 (UTC)
- Or, a script that adds "
- Currently, the Harverrors script does (a) with a red error message (not a warning; the two are different, and we should use words carefully when asking a programmer to create a script); does (b) with a brown warning message; and does (c) if the full citation includes
c) cannot be achieved as requested because |ref=harv
is equivalent to |ref=
, which is how {{citation}} worked. The solution to that is to add |ref=none
to those {{cite book}} and other templates, just like is done with {{citation}}. That said
- If the warning in the Selected works, Bibliography, Further reading, External links sections are not helpful, those sections could suppress the warnings messages entirely (blacklist approach)
- Alternatively, the warnings could be enabled only in specific sections (e.g. Works cited) instead (whitelist approach)
- Even section names vary, it would be easy to add variations
This would cover both CS1 and CS2 templates. Help talk:CS1#Mode marker? would allow to differentiate CS1 from CS2 templates if that was desired however. Headbomb {t · c · p · b} 05:35, 22 April 2020 (UTC)
We need to be able to move these citation templates smoothly from sourcing sections (with ref=harv) to non-sourcing sections (ref=none). Is it possible to write a script that does this?
Moving text from one section of an article to another can be done in edit-mode but that is a whole different script and operating environment from the post-rendered environment of User:Ucucha/HarvErrors.js and similar scripts. If this functionality is desired (moving text from place to place in an article) that functionality deserves its own request on this page so that this request isn't muddled with unrelated discussion.
At User talk:Trappist the monk § Ref=harv, I suggested a fourth requirement:
- (d) no warnings at long-cite templates when the article has no short-cite templates
My fork of User:Ucucha/HarvErrors.js accomplishes this by muting the warning messages when there are no short-cites in the article.
—Trappist the monk (talk) 13:50, 22 April 2020 (UTC)
- First, I'm a little confused about (c) "we had that functionality before the change"; is that an assertion that the Ucucha script suppresses (or suppressed before the recent change) warnings in those sections? I never noticed that, and I don't see those exclusions in the JS. I suppose it could be added, but I don't have the skilz. In any case, there are many inventive section names in footers containing citations that I've seen over the years. Not everyone has always hewn to the recommended section structure.
- Second, I think the proposal to move text between sections is fraught with danger. There are many patterns of which section or sometimes multiple sections a CS1/2 reference finds itself in, especially in very old articles, which aren't particularly disciplined in their observance of the recommended section purpose and order. I think the bot would need a very clear understanding of the semantics. But I'll wait for that separate discussion and, I hope, a full specification. David Brooks (talk) 15:34, 22 April 2020 (UTC)
- @DavidBrooks: "we had that functionality before the change" is a misconception, that functionality was never there. Also, bots shouldn't be doing anything here as far putting
|ref=none
at this point (although there could be a case made for such a task when the criteria for when|ref=none
should be used is clarified), but doing this by script (again, with human-review) would likely be fine. Bots moving citations and references will also never fly, although it's possible that someone can design a script for this. This would be tricky, but is theoretically possible. Headbomb {t · c · p · b} 15:40, 22 April 2020 (UTC) - DavidBrooks, we certainly did have that functionality before the change. I relied every day on all three of the points I mentioned above. SarahSV (talk) 17:52, 27 April 2020 (UTC)
- You did not, you have a misconception about what the script what doing. Headbomb {t · c · p · b} 18:08, 27 April 2020 (UTC)
- The script told me (a) when I used a short cite (sfn/harvnb) without a corresponding long one; and (b) when I used a long one (with ref=harv) without a corresponding short one. It also (c) gave me no warning/error message when I used a citation template in Selected works, Bibliography, or Further reading without ref=harv. Now there is no script that offers (a), (b), and (c). SarahSV (talk) 18:41, 27 April 2020 (UTC)
- b) and c) are simply incorrect. User:Ucucha/HarvErrors.js had {{citation}} threw warnings those warnings time since immemorial without having explicit
|ref=harv
set, including in the Further reading section. Now the CS1 templates (such as {{cite book}}) are treated on the same footing as {{citation}}. Headbomb {t · c · p · b} 19:21, 27 April 2020 (UTC)
- b) and c) are simply incorrect. User:Ucucha/HarvErrors.js had {{citation}} threw warnings those warnings time since immemorial without having explicit
- The script told me (a) when I used a short cite (sfn/harvnb) without a corresponding long one; and (b) when I used a long one (with ref=harv) without a corresponding short one. It also (c) gave me no warning/error message when I used a citation template in Selected works, Bibliography, or Further reading without ref=harv. Now there is no script that offers (a), (b), and (c). SarahSV (talk) 18:41, 27 April 2020 (UTC)
- @Trappist the monk: anyway your script could ignore specific sections from throwing warnings? Headbomb {t · c · p · b} 14:43, 24 April 2020 (UTC)
- No idea. My knowledge of javascript is minimal at best. I suppose a script can be made smart enough to some how look for
<span class="mw-headline" id="Further_reading">
and then ignore everything in that section until it encountered the next<hn>
tag. I don't know how to do that and, frankly, little desire to learn enough js to make an attempt. - —Trappist the monk (talk) 15:10, 24 April 2020 (UTC)
- @SD0001: you're good with JS, any ideas here? Headbomb {t · c · p · b} 15:11, 24 April 2020 (UTC)
- I am not sure what's being requested here as I know next to nothing about CS1/2. Didn't read most of the above, but regarding Trappist the monk's last comment, it's easy to ignore stuff in a Further reading section using the jQuery. For example, if you're looking for elements with class citation (
.citation
),var sectionCites = $('#Further_reading').parent().nextUntil('h2').find('.citation').get();
gets you all cites in the section. IfCITES
is the array of all cites on the page,CITES.filter(function(x) { return sectionCites.indexOf(x) === -1; })
is the array of all cites not in that section. SD0001 (talk) 21:15, 25 April 2020 (UTC)- @SD0001: Thanks for that. The
var sectionCites = ...
appears to do what you say it does. But, there's always a but ... But, I don't know how to use theCITES.filter(function(x) { return sectionCites.indexOf(x) === -1; })
. I have a sandbox that has seven cs1|2 templates. Four of those are in §Further reading. By concatenatingsectionSites.length
to the end of the script's normal output I can see thatsectionSites
contains four elements. - In the code,
cites
is the the array of all cites on the page so this should makefiltercites
an array of the three elements incites
that are not insectionSites
:var filtercites = cites.filter(function(x) { return sectionCites.indexOf(x) === -1; });
- Alas, it doesn't;
filtercites.length
returns 7. What am I doing wrong? - The code is at User:Trappist the monk/common.js and the sandbox is at User:Trappist the monk/sandbox2.
- —Trappist the monk (talk) 11:14, 26 April 2020 (UTC)
- @Trappist the monk:
cites
is not an array, it's a jQuery collection. To convert it to an array, use the.get()
method. So var filtercites = cites.get().filter(function(x) { return sectionCites.indexOf(x) === -1; });
- will work. SD0001 (talk) 12:40, 27 April 2020 (UTC)
- @SD0001: Ding ding ding! That works, thank you.
- —Trappist the monk (talk) 16:32, 27 April 2020 (UTC)
- @Trappist the monk:
- @SD0001: Thanks for that. The
- Given the promiscuous usage of footer headings that we can see in articles old and new, I'm really uncomfortable about assuming semantics for any particular section heading. It's very common to see Further Reading contain external supplementary text, citations used in the article, or both. External Links is often used as a synonym. There are creative heading names like "Notes and References" or "Footnotes". And, of course, it's very common to have citations in the same section as the reflist. If anything, this feels like a call to arms to standardize the semantics of the footer sections of all 6 million articles and enforce it going forwards (with appropriate changes to various guidelines/policies). Sounds like a good idea, but a big one. David Brooks (talk) 23:23, 25 April 2020 (UTC)
- I am not sure what's being requested here as I know next to nothing about CS1/2. Didn't read most of the above, but regarding Trappist the monk's last comment, it's easy to ignore stuff in a Further reading section using the jQuery. For example, if you're looking for elements with class citation (
- @SD0001: you're good with JS, any ideas here? Headbomb {t · c · p · b} 15:11, 24 April 2020 (UTC)
- No idea. My knowledge of javascript is minimal at best. I suppose a script can be made smart enough to some how look for
- You did not, you have a misconception about what the script what doing. Headbomb {t · c · p · b} 18:08, 27 April 2020 (UTC)
- @DavidBrooks: "we had that functionality before the change" is a misconception, that functionality was never there. Also, bots shouldn't be doing anything here as far putting
They vary a lot, yes, but here the idea would be to identify sections that where the warnings are more likely than not to be pointless for editors that would like focus on more pertinent warnings, even if they miss the occasional one. For example, Further reading, External links, Selected works, Publications, List of publications etc... are very likely to not be the intended targets of SFNs, so the script could ignore those which are deemed safe/safe-ish to ignore. This could be done two ways, conceptually
- a) Centrally, by importing the script with default sections that are ignored
- b) Locally, by allowing something like "
IgnoreWarningSections = {Further reading, External links, Selected Works}
", etc... to be loaded in a .js or .css page, where a user could customize the list to their liking.
Headbomb {t · c · p · b} 23:30, 25 April 2020 (UTC)
- I understand that we agree in principle, but I've found that Further Reading is not uncommon as a place where people put sfn'ed citations. As I think I implied, it's my recollection that footer names and semantics are a guideline, not a policy. And even if it were a policy, it's rarely observed, or corrected by gnomes. David Brooks (talk) 23:37, 25 April 2020 (UTC)
- Well, also remember that this would be an optional script. So if there's a centralized default, it would be up to you to decide if you're ok with that behaviour. And if it's customizable, then you can have your own judgment of what you'd want to ignore or not. Headbomb {t · c · p · b} 23:56, 25 April 2020 (UTC)
- I'm done hacking on my variant of the script. It ignores the content of §Further reading as long as that section is a level 2 section (
==Further reading==
) but it also looks for linked citations in that section and emits an error message when it finds them. My thanks to Editor SD0001 for the help. - —Trappist the monk (talk) 16:49, 27 April 2020 (UTC)
- @SlimVirgin: try User:Trappist the monk/HarvErrors.js now. It should reduce warnings to only those articles that make use of short footnotes, and ignore those from the further reading section. I'm sure @Trappist the monk: would also be willing to extend the behaviour to others sections too, like External links, where it makes sense to assume those warnings are unwanted. Headbomb {t · c · p · b} 19:29, 27 April 2020 (UTC)
- I'm still concerned that, by making these distinctions concrete, we are backing into a requirement to apply stricter semantics to these footer sections (so-called Appendices). That, in itself, deserves an open discussion. The content and use of footer sections does not exhibit unanimity, perhaps because of editors making invaid deductions from existing samples, perhaps just because of inadequate thought on the meaning of the terms, perhaps because of pure cargo-cultishness. For example, "External Links" and "Further Reading" seem to be interchangeable in practice (by which I mean two editors could use the two terms to mean the same type of thing), as do "External Links" and "Sources". Not to mention that all of these are often replaced by boxes pointing to Wikisource copies. To be sure, this is all called out in MOS:LAYOUT, but that's just guideline, not policy, and is pretty loose; see for example the wording of Notes and references. I think it would be a fantastic project to normalize and harden all this stuff, and in particular I think that is a pre-requisite of what's being done here. David Brooks (talk) 22:21, 27 April 2020 (UTC)
- @SlimVirgin: try User:Trappist the monk/HarvErrors.js now. It should reduce warnings to only those articles that make use of short footnotes, and ignore those from the further reading section. I'm sure @Trappist the monk: would also be willing to extend the behaviour to others sections too, like External links, where it makes sense to assume those warnings are unwanted. Headbomb {t · c · p · b} 19:29, 27 April 2020 (UTC)
Trappist, Headbomb and David, the thing is: we need what we had. We had the flexibility of adding ref=harv or not adding it. Together with the script, that allowed us to move citations around, with and without the warnings/error messages as needed. Are you now having to decide in advance the names of sections so you can try to mimic that functionality? SarahSV (talk) 02:11, 28 April 2020 (UTC)
- Repeating myself from above, in different words that may register this time: the Harverrors script does (a) with a red error message; does (b) with a brown warning message; and does (c) if the full citation includes
|ref=none
as a parameter. The only change in your workflow should be adding|ref=none
as appropriate instead of the previous step of excluding|ref=harv
. – Jonesey95 (talk) 03:52, 28 April 2020 (UTC)- Please allow me to repeat myself too in the hope that this registers. This isn't about one person or the small group of people who have complained. It's about a significantly larger group (I assume hundreds) who are now seeing large and very ugly brown warnings after every single citation in their Selected works section that might have taken them hours or even days to compose—and in other articles that they didn't edit, making the sections harder to read—and don't know why. SarahSV (talk) 03:58, 28 April 2020 (UTC)
I installed Trappist's script. It does (a) and (b) above (warns if there's a short cite without a corresponding long one and vice versa). But it's doing it where there's no need. For example, in Auschwitz this citation is generating a warning:
{{cite news |last1=Astor |first1=Maggie |title=Holocaust Is Fading From Memory, Survey Finds |url=https://www.nytimes.com/2018/04/12/us/holocaust-education.html |work=The New York Times |date=12 April 2018 |archiveurl=https://archive.today/20180418071414/https://www.nytimes.com/2018/04/12/us/holocaust-education.html |archivedate=18 April 2018|url-status = live}}
It is doing some of (c): not warning about citations without ref=harv. It doesn't generate a warning in Further reading or Selected works, but it's generating one in External links. SarahSV (talk) 03:14, 28 April 2020 (UTC)
- That's no different than if you used
{{citation |last1=Astor |first1=Maggie |title=Holocaust Is Fading From Memory, Survey Finds |url=https://www.nytimes.com/2018/04/12/us/holocaust-education.html |work=The New York Times |date=12 April 2018 |archiveurl=https://archive.today/20180418071414/https://www.nytimes.com/2018/04/12/us/holocaust-education.html |archivedate=18 April 2018|url-status = live}}
- And, as with {{citation}},
|ref=none
will suppress those warnings if they are not needed. Headbomb {t · c · p · b} 12:29, 28 April 2020 (UTC)
- That's no different than if you used
Correction: it does generate a warning when the headings are Selected works, Bibliography, Sources, and Citations. "Further reading" is the only one that prevents it. SarahSV (talk) 06:29, 28 April 2020 (UTC)
- So identify which sections should not emit those warnings. Bibliography, Sources and Citations should likely emit them, given those are pretty synonymous with References, but the warnings in External links, Further reading (currently the only one ignored), Selected works, List of publications, and Publications are probably not very useful. Are there others? Headbomb {t · c · p · b} 12:29, 28 April 2020 (UTC)
Problem
- Moved from Help talk:CS1#Problem Headbomb {t · c · p · b} 12:55, 4 May 2020 (UTC)
The new script, User:Smith609/citations.js, is showing an error message for the second long citations in bundles. See the References section of FGM, footnotes 170, 260, 262, 263. I can remove them with ref=none, but why is that happening? SarahSV (talk) 02:38, 4 May 2020 (UTC)
- User:Smith609/citations.js is not a new script; it was created in February 2011 with occasional changes; the last of which was in October 2019.
- Looking at User:SlimVirgin/common.js, I think that you are talking about the messages emitted by User:trappist the monk/HarvErrors.js. Were you to switch to User:Ucucha/HarvErrors.js, you would see the same messages except that they would be larger.
- Why the warning message? Each cs1|2 template creates an anchor ID. Take for example this bundle of Wilkerson 1988 and Donaldson James 2012. That bundle uses
{{pb}}
to separate the two cs1|2 templates. At the html level, the basic bundle (with a lot of stuff stripped out for clarity), looks like this:<li id="cite_note-200"> <span class="reference-text"> <cite id="CITEREFWilkerson1988" class="citation news">Wilkerson, Isabel...</cite> <div class="paragraphbreak" style="margin-top:0.5em"></div> <p> <cite id="CITEREFDonaldson_James2012" class="citation news">Donaldson James, Susan...</cite> </p> </span> </li>
- User:Ucucha/HarvErrors.js and derivative scripts expect to find an anchor ID (
CITEREFWilkerson1988
for the first citation in the bundle) inside two parent elements, where the outer parent has anid="cite_note..."
attribute. When these two conditions are met, the script does not emit a warning message. For the second citation (anchor IDCITEREFDonaldson_James2012
), the two conditions are not met because the outer parent element (<span class="reference-text">...</span>
) does not have anid="cite_note..."
attribute. When the two conditions are not met, the script emits the nothing-pointing-here warning. - Remember, you did ask
why is that happening?
- —Trappist the monk (talk) 03:52, 4 May 2020 (UTC)
- Sorry, I posted the wrong script. Thanks for correcting it. Can something be done about it? Lots of people bundle citations. SarahSV (talk) 05:18, 4 May 2020 (UTC)
- You did say that you
can remove them with ref=none
; is that not doing something about it? - —Trappist the monk (talk) 12:43, 4 May 2020 (UTC)
- You did say that you
- Sorry, I posted the wrong script. Thanks for correcting it. Can something be done about it? Lots of people bundle citations. SarahSV (talk) 05:18, 4 May 2020 (UTC)
Live reload
Is there a user script that uses AJAX to refresh a history/contributions/log page/watchlist/etc at regular intervals? Ideally it would also put the number of new events since the last visit in the browser tab title. I am aware of scripts that do this for just the watchlist, but they don't do the other things I mentioned. Enterprisey (talk!) 21:11, 30 April 2020 (UTC)
Script Request for Specific Editors
Hello, a few of us in the spoken and video guild are looking for a script that would have a manual push button to be able to the following for us:
- Remove references
- Remove the {}[] and all content within said brackets (exceptions are infoboxes, tables, and photos as they should not be touched)
- Any Wikipedia markup (i.e., bold, italic) without affecting the contents between the apostrophes
- Not allowed to save to the main article; however, by clicking submit, it would keep it to the respective user's sandbox with the same title and appending "-Script and full date as MMDDYY" to it. (This is meant to protect the article)
- Should only be allowed to run by those in the respective guilds (list of participants), and those that need access like admin, stewards, programmers, etc. Regular editors should not have access to run this script as to what it does. (If possible and not conducive to the WP at large)
I look forward to any discussion on this and to answer any questions you may have. I would also like to assist in testing prior to it being released to ensure it does what I am asking for.
I appreciate all the hard work you do.
Thanks, Galendalia CVU Member \ Chat Me Up 18:41, 6 May 2020 (UTC)
- Galendalia, removing all {{ and }} and all content between them would also remove {{convert}}, but don't you still need to see it and other inline templates? – BrandonXLF (talk) 19:01, 6 May 2020 (UTC)
- @BrandonXLF: - we basically need to create a text only version with minimal interfaces that would be like reading a book. I think the {{tl|convert}}, could be made an exception if possible. We do still go through all the articles we have and edit them, this is just looking to save time especially on our longer articles. Thanks Galendalia CVU Member \ Chat Me Up 19:07, 6 May 2020 (UTC)
Request for a disambig creator?
Had an idea for a userscript that lets you make a disambiguation page and search Wikipedia for results relating to that (loads whenever a page doesn't exist, like Sagittarius) and make a disambiguation page. I made a quick little concept bit for this too. (didn't put it in the image but items and headers should be sortable). I think this'd help with dab creation dibbydib boop or snoop 02:44, 8 May 2020 (UTC)
Automatically watch every visited page
Thanks. Apokrif (talk) 00:44, 9 May 2020 (UTC)
Request for "Gender display" gadget
At CaptainEek's RfA there are quite some grievances about misidentifying a user's gender as male. There has been issues of this all over the place, (perhaps) the most recent was less than a week ago (Wikipedia:Administrators'_noticeboard/IncidentArchive1035#Misgendering_by_Flyer22_Frozen). I believe it would be a good idea to show a small "he/she/they" text after each username. Eumat114 formerly TLOM (Message) 02:11, 12 May 2020 (UTC)
- WP:POPUPS does show gender on its preview of a username. Galobtter (pingó mió) 03:28, 12 May 2020 (UTC)
- Galobtter, that script shows way too much extra info, and also requires hovering. Could a script that displays it right next to the username/signature be used (e.g. "Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC) [he]")? Cheers, Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC)
- Hmm, I could see a script working technically similar to MediaWiki:Gadget-markblocked.js in that it collects all the users on the page and uses a query to mw:API:Users to collect the gender information. Galobtter (pingó mió) 04:51, 12 May 2020 (UTC)
- Galobtter, that script shows way too much extra info, and also requires hovering. Could a script that displays it right next to the username/signature be used (e.g. "Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC) [he]")? Cheers, Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC)
Why not always write "they"? Users' gender is irrelevant. Apokrif (talk) 13:03, 17 July 2020 (UTC)
Section watchlist
Is there a user script to watchlist sections? I remember reading about one months ago, but I can't recall anything else about it. If not, I was thinking of making one. (Likely architecture: Toolforge job to read from the firehose and use an in-memory hashmap lookup to "deliver" edits to specific sections to users' inboxes, and then a small JSON API to fetch new edits and show them in a new panel on the Wikipedia end.) Enterprisey (talk!) 07:06, 14 May 2020 (UTC)
Button help - English refs >> Czech refs
Hey Guys, I need a simple button in the code editor in the "Advanced" tab for replace English Citation Templates to Czech Citation Templates. For example, from english
{{cite web |title= |url= |date= |access-date= |publisher= |language= }}
To czech language
{{Citace elektronické monografie | titul = | url = | datum vydání = | datum přístupu = | vydavatel = | jazyk = }}
Can anyone help me with this? Thanks--MrJaroslavik (talk) 17:10, 14 May 2020 (UTC)
- MrJaroslavik, do you have a list of Czech parameters and their corresponding English parameter? – BrandonXLF (talk) 19:10, 14 May 2020 (UTC)
- BrandonXLF Yeah, i will send it here. --MrJaroslavik (talk) 19:15, 14 May 2020 (UTC)
- BrandonXLF Here
- BrandonXLF Yeah, i will send it here. --MrJaroslavik (talk) 19:15, 14 May 2020 (UTC)
{{cite web=Citace elektronické monografie |url=url |title=titul |last=příjmení |first=jméno |author-link=odkaz na autora |series=edice |publisher=vydavatel |location=místo |pages=strany |language=jazyk |type=typ vydání |doi=doi |isbn=isbn |id=id |access-date=datum přístupu |url-status= |archive-url=url archivu |archive-date= datum archivace }}
--MrJaroslavik (talk) 19:37, 14 May 2020 (UTC)
- I have more at User:Jonesey95/AutoEd/unnamed.js (do a Find for "Czech"). – Jonesey95 (talk) 22:13, 14 May 2020 (UTC)
Link ISBN direct to WorldCat
Hi, is there a script in existence that, when an {{ISBN}} is linked within a CS1 citation, will link directly to the WorldCat search/address instead of Special:BookSources? czar 15:18, 25 May 2020 (UTC)
Navbox user script
I frequently go through the hassle of filling in navboxes, using subgroups etc. I expected there to be a user script to fill them in but I wasn't able to find one. It would certainly be very useful! — Yours, Berrely • Talk∕Contribs 19:46, 28 May 2020 (UTC)
Eswatini vs. Swaziland sortkeys
Hello!
The country of Swaziland changed its name to Eswatini in 2018. Nearly all Wikipedia articles and categories that needed renaming have been moved to the new name, see e.g. Wikipedia:Categories for discussion/Log/2018 November 5 § Swaziland.
However, I noticed that this renaming may have left sortkeys that need correction. E.g. I found Category:Wealth in Eswatini in Category:Wealth by country and Category:Wealth in Africa with sortkey Swaziland
, which left Eswatini in sequence between Sri Lanka and Sweden. I corrected them manually to Eswatini
.
Is there a way to find all such sortkeys and have them corrected by a bot? That's how I would do it:
- Look for every article or category that has
Eswatini
as part of its name - Look for category sortkey (found by
[[Category:<whatever>|<sortkey>]]
, sometimes small-casecategory
) or defaultsort ({{DEFAULTSORT:<sortkey>}}
):- If exactly
Swaziland
or a prefix (such asSw
orSwaz
, except just the letterS
), replace byEswatini
exactly - If a longer sortkey includes
Swaziland
, not necessarily in the beginning (such asSwaziland, Economy of
orEconomy of Swaziland
) - For sortkeys that are exactly the letter
S
(and we know that such sortkeys are found quite often), create a list of such occurrences for later manual treatment.
- If exactly
I think it's pretty safe to replace all the cases I have listed because we limit ourselves to titles that have been renamed to a name explicitly including Eswatini, so we would not affect content such as Category:Treaties extended to Swaziland (protectorate), for which Eswatini is anachronical, or Times of Swaziland, which is a proper noun. I think other namespaces (such as Template:) may be better left out for manual action.
Is there any bot master able to fulfill this request? Place Clichy (talk) 10:32, 29 May 2020 (UTC)
- Place Clichy, I made a little script to do them, they should all be fixed now. – BrandonXLF (talk) 06:49, 3 June 2020 (UTC)
- @BrandonXLF: thanks, this looks very good! Were you by any chance able to look up partial prefix matches (such as
|Swazi
), even just to build a list that I could manually take care of later? Place Clichy (talk) 08:26, 3 June 2020 (UTC)- @BrandonXLF: Do you see any reason why e.g. Category:Immigrants to Eswatini was missed? Place Clichy (talk) 00:56, 14 June 2020 (UTC)
- Place Clichy, because it's a category, I didn't have the namespace selected to search, my bad. There seems to be at least 382 categories that need fixing, see [2] and [3]. – BrandonXLF (talk) 02:48, 14 June 2020 (UTC)
- @BrandonXLF: Do you see any reason why e.g. Category:Immigrants to Eswatini was missed? Place Clichy (talk) 00:56, 14 June 2020 (UTC)
- @BrandonXLF: thanks, this looks very good! Were you by any chance able to look up partial prefix matches (such as
OneClickArchiver for lists
Scripts listed in Wikipedia:One click archiving implement archiving of whole ==sections==. To make archiving of entries at Wikipedia:Community bulletin board easier, it would be nice to have a OneClickArchiver for * Unordered lists
. Pinging Sm8900, who might be interested in such a script. —andrybak (talk) 00:33, 3 June 2020 (UTC)
Script to display the current time in the upper right corner
There's a gadget that does this but it's only for UTC, I'd like one for the actual current time. I searched, couldn't find one. Thanks. Doug Weller talk 10:19, 6 June 2020 (UTC)
- Wouldn't your phone/desktop/etc... already show this information? Headbomb {t · c · p · b} 13:51, 6 June 2020 (UTC)
- @Headbomb: well yes, I only thought of suggesting this because of the gadget in preferences - which I presume some people find useful. It's much bigger than the tiny time on my desktop which I find hard to read. But I guess not worth writing. I can also check the time on my phone, watch, and when it decides to allow me to see its screen, my Fitbit Charge 3 - but none of them while I'm typing! Never mind though, I was really hoping someone would say it exists and that I'd missed it while searching for one. Doug Weller talk 17:50, 6 June 2020 (UTC)
- Wikipedia:Code review/UTCLiveClock is under development. – Jonesey95 (talk) 18:38, 6 June 2020 (UTC)
- @Headbomb: well yes, I only thought of suggesting this because of the gadget in preferences - which I presume some people find useful. It's much bigger than the tiny time on my desktop which I find hard to read. But I guess not worth writing. I can also check the time on my phone, watch, and when it decides to allow me to see its screen, my Fitbit Charge 3 - but none of them while I'm typing! Never mind though, I was really hoping someone would say it exists and that I'd missed it while searching for one. Doug Weller talk 17:50, 6 June 2020 (UTC)
Good article reassessment script
The process to nominate an article for good article reassessment is very time consuming and rather complicated (see the procedure laid out at Wikipedia:Good article reassessment), and I'd imagine that a script could automate this. Might be better as a twinkle feature— not sure—but here's my (with no coding experience) idea: an option to nominate it for individual or community reassessment, based upon what is selected the script will create the correct subpage. Then there could be a spot to type in the rationale and ideally the script would notify the original ga nominator and the original reviewer and any wikiprojects tagged on the talk. In my mind this would be like a combination of how twinkle handles XfD's and merge discussions, not sure how hard it would be to do, but as I anticipate nominating a lot of poor quality articles for reassessment soon, it could be very helpful. Best wishes, Eddie891 Talk Work 16:31, 19 June 2020 (UTC)
- Noting that this was Done (User:SD0001/GAR-helper). See WT:TW#Good article reassessments. SD0001 (talk) 09:38, 16 July 2020 (UTC)
Introduction helper
Following up on discussion with Sdkb for a sandbox option. Currently they are using a link such as this one. I'm looking at ditching the random number part - but would want the button to have a link with a script (from ?withJS=) that will:
- Wait for the page to load in editing mode
- Clear the entire editing box
- Populate the editing box with some text (a template subst)
- Add an edit summary
- Possibly submit the edit as well; understand that the script would need to be in mediawiki ns. Example of another button that include a script: Wikipedia:Dispute resolution noticeboard/request. — xaosflux Talk 16:19, 27 June 2020 (UTC)
- — xaosflux Talk 16:19, 27 June 2020 (UTC)
- Should be doable - will work on this in the next few days if no one beats me to it DannyS712 (talk) 21:02, 27 June 2020 (UTC)
- So I took a crack at it, and the existence of codemirror and wikieditor make it a lot harder than I thought, sorry DannyS712 (talk) 06:15, 28 June 2020 (UTC)
- @DannyS712: will ditching the publish/submit help? Would be fine to have a dif script for vedit/srcedit. — xaosflux Talk 12:32, 28 June 2020 (UTC)
- The issue is trying to select and manipulate the content of the textbox - preload only works for new pages / new sections, unfortunately. That being said, if it would always be a specific page I have an idea - can you provide an example page and the content that should be on it? DannyS712 (talk) 12:36, 28 June 2020 (UTC)
- @DannyS712: the destination would be fixed, and so would the content - so "preload" can be ditched. Preferably the page could be specified with a link, to be an arbitrary page, so to make the requirements a bit simpler:
- The issue is trying to select and manipulate the content of the textbox - preload only works for new pages / new sections, unfortunately. That being said, if it would always be a specific page I have an idea - can you provide an example page and the content that should be on it? DannyS712 (talk) 12:36, 28 June 2020 (UTC)
- @DannyS712: will ditching the publish/submit help? Would be fine to have a dif script for vedit/srcedit. — xaosflux Talk 12:32, 28 June 2020 (UTC)
- So I took a crack at it, and the existence of codemirror and wikieditor make it a lot harder than I thought, sorry DannyS712 (talk) 06:15, 28 June 2020 (UTC)
- Should be doable - will work on this in the next few days if no one beats me to it DannyS712 (talk) 21:02, 27 June 2020 (UTC)
- Be able to follow a edit or vedit links such as these:
- After the page loads, in the respective edit mode:
- Clear the entire page
- Drop some static text (hard coded in script) in to the edit summary
- Drop some static text (hard coded in script) in to the editor
- Optional if needed: For the visual editor mode, if it has to start in traditional editor, do the work, then use JS to switch to vedit that could be OK.
- — xaosflux Talk 15:31, 28 June 2020 (UTC)
- I meant can you link to a specific revision with the text you want? Because then you can have the user edit that permalink, and the text will already be set DannyS712 (talk) 15:34, 28 June 2020 (UTC)
- Hmm, that may work too - scriptless at least. — xaosflux Talk 16:18, 28 June 2020 (UTC)
- @Sdkb: going on that, if you just want an "empty" sandbox - or even one with some content that can be edited, would revision edit links solve your use case as well? example source edit link that could be used. — xaosflux Talk 16:20, 28 June 2020 (UTC)
- Hmm, that may work too - scriptless at least. — xaosflux Talk 16:18, 28 June 2020 (UTC)
- I meant can you link to a specific revision with the text you want? Because then you can have the user edit that permalink, and the text will already be set DannyS712 (talk) 15:34, 28 June 2020 (UTC)
Section sub-headings "outdent"
I'd like to have a tool to help with removing levels of sub-sections. For example, to delete a second-level heading, and have all the headings underneath it be automatically promoted or "outdented" one level. All the third-level headings would become second-level, fourth become third, and so on.
(The reverse might also be helpful, though I don't have a need for it myself, but if you add a second-level heading, then selected headings below it could be automatically indented. This would be more complicated, because you'd need a mechanism to select the ones to indent. So I'm not actually requesting this part...) --IamNotU (talk) 21:51, 20 July 2020 (UTC)
Mazana
Mazana was born in the mid 1800's is a under the family clan of Maluleke, He was the first born son of Chali. The Mazana Family currently live at Matsakali Village under the Collins Chabane Municipality in Malamulele (South Africa, Limpopo Province, Vhembe District). Mazana was born in the Tshimbupfe area then relocated to Matsakali Village. He had 2 wives and eleven children (four boys and seven girls). with His first wife he had: Mdunwazi (male), Khubani(female), Mphephu(female), Khazamula(male), Mjaji(female) and Mbhazima(male), And with his second wife he had: Mthavini(female), Risimati(male), Mamayila(female), and Mphephu(female).