Wikipedia:Village pump (technical)
Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk. Discussions are automatically archived after remaining inactive for five days.
Frequently asked questions (see also: Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
Identifying and Removing Predatory Sources
[edit]Hey everyone, I was wondering if there are any tools available that could help identify citations that link to PDFs, as many predatory journals often use direct PDF links instead of proper journal indexing. While manually checking for predatory sources is possible, a tool to automate or streamline this process would be really useful. This is a consistent problem in wikipedia, as many articles are out there with almost all predatory sources. For instance, do look at Mizo names. After I removed all the predatory sources, there is only one citation left.
I understand that Special:Linksearch can be used to find citations linking to specific domains, which is helpful for flagging known predatory journals. However, I don’t think there’s currently a way to search for all citations that link to PDFs in general.
Would it be possible to implement such a search function, or has anyone come across a method to filter citations by file type? If not, I’d like to discuss whether this is something that could be proposed at WP:VPT or WP:RSN. Looking forward to hearing your thoughts! — Flyingphoenixchips (talk) 01:29, 3 April 2025 (UTC)
- @Flyingphoenixchips: You should check out @Novem Linguae:'s script User:Novem Linguae/Scripts/CiteHighlighter which could help with this task. Polygnotus (talk) 01:49, 3 April 2025 (UTC)
- Do you know any other predatory journals? Searching for insource:ijnrd.org and insource:ijsr.net yields 64 results. Polygnotus (talk) 01:52, 3 April 2025 (UTC)
- Really cool to say the least. Just downloaded it. There are many predatory journals out there, and as someone working in academia I can for sure say that 99% of times, the citations that leads to pdf of a Journal, is most definitely predatory. This is why I was hoping to search for a tool, that can search the database of wikipedia, to find all citations that link to a pdf. Yes, there are many other predatory journals like http://www.ijst.co.in/ https://tlhjournal.com/ https://ijssrr.com/journal and https://www.mkscienceset.com/. There are many more besides these, and many more that I might not be aware of. This is partly the reason I am interested in this. I did a few clean up of ijnrd.org
- But yea the script you shared is quite cool :) installed it Flyingphoenixchips (talk) 02:03, 3 April 2025 (UTC)
- @Flyingphoenixchips I don't know how nerdy you are, but AutoWikiBrowser includes a database scanner and I don't think you even need AWB permission to use it. I also have a tool that can search through the dump. Polygnotus (talk) 02:09, 3 April 2025 (UTC)
- Could you share the link for it. Much appreciated. Flyingphoenixchips (talk) 02:10, 3 April 2025 (UTC)
- WP:AWB. Polygnotus (talk) 02:11, 3 April 2025 (UTC)
- Thanks will have a look :) Flyingphoenixchips (talk) 02:12, 3 April 2025 (UTC)
- @Flyingphoenixchips The scanner is explained here. If you want someone else to do it you can ask at WP:AWBREQ. Polygnotus (talk) 02:13, 3 April 2025 (UTC)
- @Flyingphoenixchips I was too lazy to download a new dump so I used one that I had laying around. A text file containing just the articlename and then the PDF URL is 373MB. There are 3.257.740 URLs that end in .pdf, if you only search articles and only inside ref tags. Polygnotus (talk) 04:27, 3 April 2025 (UTC)
- Here is the first MB: https://en.wikipedia.org/w/index.php?title=User:Polygnotus/Flyingphoenixchips&action=edit Polygnotus (talk) 04:34, 3 April 2025 (UTC)
- Note that there is also a WP:BLACKLIST which prevents future additions but does not work retroactively. Polygnotus (talk) 05:18, 3 April 2025 (UTC)
- Hm, I restricted it to only articles that contain "India" and only references that contain ".pdf" and I get 96.847 results (roughly a 10mb file) most of which are fine. Polygnotus (talk) 14:17, 3 April 2025 (UTC)
- Hmm interesting, did you happen to notice links to dubious journals? Flyingphoenixchips (talk) 02:24, 7 April 2025 (UTC)
- @Flyingphoenixchips No. You can have a look. This list excludes all articles that do not have a category whose name contains the word "India" and of those it takes the references that contain ".pdf"
- https://en.wikipedia.org/w/index.php?title=User:Polygnotus/e437895&action=edit Polygnotus (talk) 02:30, 7 April 2025 (UTC)
- I see thanks for sharing Flyingphoenixchips (talk) 02:33, 7 April 2025 (UTC)
- Hmm interesting, did you happen to notice links to dubious journals? Flyingphoenixchips (talk) 02:24, 7 April 2025 (UTC)
- Thanks will have a look :) Flyingphoenixchips (talk) 02:12, 3 April 2025 (UTC)
- WP:AWB. Polygnotus (talk) 02:11, 3 April 2025 (UTC)
- Could you share the link for it. Much appreciated. Flyingphoenixchips (talk) 02:10, 3 April 2025 (UTC)
- Flyingphoenixchips, can you elaborate on this:
I can for sure say that 99% of times, the citations that leads to pdf of a Journal, is most definitely predatory.
- That seems dubious, unless you think that, say, all of these citations from Wikipedia articles hosted by JSTOR are all from predatory journals. Citations from the top of that list include articles from: American Historical Review, American Literature, Annual Reports of the Dante Society, Proceedings of the New York State Historical Association, Urban Studies, Science & Society, PMLA, Journal of Marketing Theory and Practice, American Journal of Sociology, and Political Science Quarterly. I couldn't find any that seemed likely to be from a predatory journal before I stopped looking. Or did I miss your meaning? Mathglot (talk) 21:29, 6 April 2025 (UTC)
- @Mathglot I searched through the dump for them and my conclusion is that that is not an efficient way of finding predatory journals (even in articles related to India). So we should continue with our approach of searching for the name or domain of the journals.
- There appears to be a (somewhat outdated) list here: https://ugccare.unipune.ac.in/apps1/home/index that is comparable to Beall's List. I have mentioned the domains listed in this thread over at Wikipedia:Reliable_sources/Noticeboard#Predatory(?)_journals Polygnotus (talk) 21:38, 6 April 2025 (UTC)
- This is valid too. Honestly we can do this, but the problem is- there are so many predatory journals out there, that it will be hard keeping track of all the domains. Flyingphoenixchips (talk) 02:26, 7 April 2025 (UTC)
- @Flyingphoenixchips Problem is, there are even more valid links to .pdf files. So keeping track of the domains is the only option we have. Polygnotus (talk) 02:31, 7 April 2025 (UTC)
- This is valid too. Honestly we can do this, but the problem is- there are so many predatory journals out there, that it will be hard keeping track of all the domains. Flyingphoenixchips (talk) 02:26, 7 April 2025 (UTC)
- What I meant by this, was 100% of the times, predatory journals do not have a doi index, and thus whenever they are cited in Wikipedia, they are cited in the form of a pdf. Does it mean all pdfs are unreliable? Of course no! I was trying to find patterns in order to identify predatory journals, and this was one thing that I had noticed. This is why I brought it up, as a possible method to search for predatory journals Flyingphoenixchips (talk) 02:24, 7 April 2025 (UTC)
- Can you contact the people behind https://ugccare.unipune.ac.in/apps1/home/index and ask if we can have their list? https://web.archive.org/web/*/https://ugccare.unipune.ac.in/apps1/home/index Polygnotus (talk) 02:33, 7 April 2025 (UTC) Polygnotus (talk) 02:33, 7 April 2025 (UTC)
- https://ugccare.unipune.ac.in/Apps1/User/lr/login
- you should be able to access their list, after making an account here. Also not sure if this would help as well, since UGC has been used by predatory publishers to get legitimacy most of the times. Flyingphoenixchips (talk) 02:35, 7 April 2025 (UTC)
- @Flyingphoenixchips I cannot even open that site, it just keeps loading forever. We need an Indian equivalent of Beall's List. Polygnotus (talk) 02:36, 7 April 2025 (UTC)
- I am not sure if users outside India can access it. I am currently not in the country as well, but since I had made an account here, maybe thats why I still have he access. Well good point. Let me see if I can work on building such a site. Would you be willing to help? Lemme try posting this in Wikiproject:India Flyingphoenixchips (talk) 02:41, 7 April 2025 (UTC)
- I am willing to help, but not able, because I know nothing about predatory publishers in India. Posting in Wikiproject:India is a good idea, there may be more people who know about these things. Polygnotus (talk) 02:44, 7 April 2025 (UTC)
- Noted :) Flyingphoenixchips (talk) 02:45, 7 April 2025 (UTC)
- I am willing to help, but not able, because I know nothing about predatory publishers in India. Posting in Wikiproject:India is a good idea, there may be more people who know about these things. Polygnotus (talk) 02:44, 7 April 2025 (UTC)
- I am not sure if users outside India can access it. I am currently not in the country as well, but since I had made an account here, maybe thats why I still have he access. Well good point. Let me see if I can work on building such a site. Would you be willing to help? Lemme try posting this in Wikiproject:India Flyingphoenixchips (talk) 02:41, 7 April 2025 (UTC)
- @Flyingphoenixchips I cannot even open that site, it just keeps loading forever. We need an Indian equivalent of Beall's List. Polygnotus (talk) 02:36, 7 April 2025 (UTC)
- Can you contact the people behind https://ugccare.unipune.ac.in/apps1/home/index and ask if we can have their list? https://web.archive.org/web/*/https://ugccare.unipune.ac.in/apps1/home/index Polygnotus (talk) 02:33, 7 April 2025 (UTC) Polygnotus (talk) 02:33, 7 April 2025 (UTC)
- @Flyingphoenixchips I don't know how nerdy you are, but AutoWikiBrowser includes a database scanner and I don't think you even need AWB permission to use it. I also have a tool that can search through the dump. Polygnotus (talk) 02:09, 3 April 2025 (UTC)
It can depend on the subject area, but as someone who has been in the academic publishing business for decades as author, editor, and technical manager, I strongly disagree that the absence of a doi is an indicator of being predatory. Getting doi coverage for a journal involves no quality-related test at all. It is just for the asking plus a small fee. The total cost for a whole year of articles is about 1/10 of the typical page charge for one article. It is actually journals which have no cash flow at all which are most likely to not have dois, and they are the least likely to be predatory. Conversely, dois are one cheap way that predatory journals use to make themselves look legit. Zerotalk 10:05, 7 April 2025 (UTC)
- @Flyingphoenixchips: As another person who has been involved in academic publishing for decades (as an author and peer reviewer), I agree with Zero's statement above. There are lots of older or smaller independent journals that are completely legitimate and peer reviewed but do not have DOIs or similar registrations. This is especially true of niche zoological and botanical journals. I'm curious how you are distinguishing between those and predatory journals. Nosferattus (talk) 00:13, 11 April 2025 (UTC)
- I agree with both of you! As of now, I was evaluating predatory journals by visiting their website and seeing how they advertised themselves. A journal that promises turn around of less than a week, is definitely predatory. It can also be determined by looking at the quality of the papers published in itself. @Nosferattus Flyingphoenixchips (talk) 18:10, 13 April 2025 (UTC)
- As someone that's dealt with predatory journals, the best way to find them used on Wikipedia is probably WP:CITEWATCH (pages 2+ especially, page 1 has a lot of corner cases). I also maintain the WP:UPSD script. That said
- Lack of DOI, especially for new journals published after 2000, is a fairly strong sign that a journal might be predatory. Older journals without DOIs just might not have been online and stopped publishing. Of course plenty of exceptions exist.
- Plenty of predatory journals have DOIs. When that's the case, it's often with a DOI prefix over 10.10000+/.... Of course plenty of exceptions exist. OMICS for example, has a DOI prefix of 10.4172/...
- Having a PDF is completely irrelevant either way.
- Headbomb {t · c · p · b} 19:15, 13 April 2025 (UTC)
Dead wayback link
[edit]Hello, does anyone know how to access the article at [1]? The first snapshot, specifically June 21, 2011, is cited on an article, but if it loaded once it doesn't now. Thanks, CMD (talk) 06:48, 3 April 2025 (UTC)
- So that people don't waste their time: insource:NewsID=72917. Polygnotus (talk) 14:18, 3 April 2025 (UTC)
- That source is as good as dead, because WebArchive seems to have changed its syntax so that the source doesn't show and archive.today redirects to the main page. You can try contacting the WebArchive but I'd simply consider some other sources Szmenderowiecki (talk) 15:00, 3 April 2025 (UTC)
- Thanks, a shame but I suppose it is what it is. CMD (talk) 15:19, 3 April 2025 (UTC)
- One would think that the article in question ought to be listed in the Express archive for the date claimed in the article, but I don't see an obvious title in that list although in theory, it has to be there, so perhaps it's buried in an article about something else? Sufficient sleuthing through that list might turn it up, but that's a lot of effort for an uncertain result about one citation. Mathglot (talk) 01:04, 7 April 2025 (UTC)
- I agree with both of you! As of now, I was evaluating predatory journals by visiting their website and seeing how they advertised themselves. A journal that promises turn around of less than a week, is definitely predatory. It can also be determined by looking at the quality of the papers published in itself. Flyingphoenixchips (talk) 03:32, 11 April 2025 (UTC)
- Wrong section? jlwoodwa (talk) 15:48, 12 April 2025 (UTC)
- Sorry replied in the wrong section 😭 Flyingphoenixchips (talk) 16:52, 12 April 2025 (UTC)
- Wrong section? jlwoodwa (talk) 15:48, 12 April 2025 (UTC)
- I agree with both of you! As of now, I was evaluating predatory journals by visiting their website and seeing how they advertised themselves. A journal that promises turn around of less than a week, is definitely predatory. It can also be determined by looking at the quality of the papers published in itself. Flyingphoenixchips (talk) 03:32, 11 April 2025 (UTC)
- One would think that the article in question ought to be listed in the Express archive for the date claimed in the article, but I don't see an obvious title in that list although in theory, it has to be there, so perhaps it's buried in an article about something else? Sufficient sleuthing through that list might turn it up, but that's a lot of effort for an uncertain result about one citation. Mathglot (talk) 01:04, 7 April 2025 (UTC)
- Thanks, a shame but I suppose it is what it is. CMD (talk) 15:19, 3 April 2025 (UTC)
Wikipedia down?
[edit]Is it just me or did Wikipedia just go down for 30-ish seconds? I could provide screenshots if necessary. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:26, 9 April 2025 (UTC)
- It just stopped working for another ~10 seconds just now. This comment itself didn't work the first time due to "[4e2970bf-d02b-40d2-903e-74f84962d144] Caught exception of type Wikimedia\Rdbms\DBUnexpectedError" User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:29, 9 April 2025 (UTC)
- DownDetector appears to say a few others are having problems, but I can't tell if it's a site-wide problem. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:30, 9 April 2025 (UTC)
- On the main page just now: "
- MediaWiki internal error.
- Original exception: [5a674d58-d26d-438e-901b-ad12e3582647] 2025-04-09 12:28:10: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"
- Exception caught inside exception handler.
- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
- " User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:32, 9 April 2025 (UTC)
- I just briefly encountered this error when I tried to preview an edit I was making, but thankfully things have quickly gone back to normal. – MrPersonHumanGuy (talk) 15:11, 9 April 2025 (UTC)
- I'm not sure, it seems like every 15 or so Wikipedia pages I've been today on showed the error. Weird thing is, before today I'd never seen it before despite it apparently happening for a few weeks. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 17:08, 9 April 2025 (UTC)
- DownDetector appears to say a few others are having problems, but I can't tell if it's a site-wide problem. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:30, 9 April 2025 (UTC)
- See also https://www.wikimediastatus.net/, which does signal a huge wiki error spike. — Alien 3
3 3 12:34, 9 April 2025 (UTC)- That also signals that it's now going down (300/s vs 700/s at top of spike), so it should settle. — Alien 3
3 3 12:35, 9 April 2025 (UTC)- Hm, that's good, would you happen to know what caused it? User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:36, 9 April 2025 (UTC)
- Probably a database error? (DB often stands for that). Don't know more. — Alien 3
3 3 12:39, 9 April 2025 (UTC)- Alright then, well thanks anyways! User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:43, 9 April 2025 (UTC)
- This has been going on for a while. The production folks are aware of the problem and are working on it. See T389734 for more info. RoySmith (talk) 13:34, 9 April 2025 (UTC)
- I've just tried performing 12 different types of edit. 5 of them came back with the error message. I realise this has been going on for quite a while, but it is becoming increasing impossible to edit Wikipedia. It seems to be getting worse, not better.
- The edit I tried to perform include, edits to article talk page, preview edit, edits to an article and so on. Knitsey (talk) 14:25, 9 April 2025 (UTC)
- Oh, that's interesting, I just got the error when trying to read pages, I didn't realise it was editing too. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 14:26, 9 April 2025 (UTC)
- I noticed on wikipediastatus.net that there have been 2 other large error spikes since the one I originally noticed. Something interesting is that they all seem to correlate with temporary drops in successful edits. I'm not necessarily implying causation but this appears to be having at least some impact on people trying to edit. The one at 10:15 today seemingly temporarily halved the number of successful edits from around 20 to around 10. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 17:23, 9 April 2025 (UTC)
- Oh, that's interesting, I just got the error when trying to read pages, I didn't realise it was editing too. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 14:26, 9 April 2025 (UTC)
- Could someone with a bit more techinical knowledge than me interpret this? I've read through T389734 and it looks like it's something to do with Lua...? I'm a bit confused. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 14:25, 9 April 2025 (UTC)
- As I understand it, the root cause is a bug in a low-level library (glibc) which is used by pretty much everything in the universe. The particular path that most commonly tickles the bug is in some Lua code, so the workaround is to disable that bit of Lua. The real fix has to happen in the glibc code, but that will take a while because it has external dependencies (i.e. somebody else manages glibc). In a case like that, you do what you can quickly to make the immediate problem go away. It's kind of like the old joke where you tell the doctor, "It hurts when I do this" and the doctor says "So, don't do that".
- It also sounds like the Lua problem is only one of several manifestations of this bug, so the Lua workaround only reduced how often this happens but didn't eliminate it completely. I'm sure the dev folk are working hard on this so best to just give them some space to do what they need to do. RoySmith (talk) 14:45, 9 April 2025 (UTC)
- Interesting, alright then. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 14:54, 9 April 2025 (UTC)
- This has been going on for a while. The production folks are aware of the problem and are working on it. See T389734 for more info. RoySmith (talk) 13:34, 9 April 2025 (UTC)
- Alright then, well thanks anyways! User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:43, 9 April 2025 (UTC)
- Probably a database error? (DB often stands for that). Don't know more. — Alien 3
- Hm, that's good, would you happen to know what caused it? User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:36, 9 April 2025 (UTC)
- That also signals that it's now going down (300/s vs 700/s at top of spike), so it should settle. — Alien 3
Thought I was the only person having issues, that is interesting. And for the record, I did encounter internal errors of the same type, while reading articles, and whilst attempting to go to other articles. Codename AD talk 14:32, 9 April 2025 (UTC)
Pretty sure this is phab:T390510 (see #10725847 and #10726321), T389734 is for a timeout error (caused by a bug), one that was essentially 'fixed' by removing some logging that was making it likely for the bug to happen. – 2804:F1...E8:9AA2 (::/32) (talk) 19:52, 9 April 2025 (UTC)
- Oh, thank you. I've read the phabricator page, is there any other info on what's causing this? User:Chorchapu (talk|edits|commons|wiktionary|simple english) 22:58, 9 April 2025 (UTC)
- See also phab:T390510#10717702 and #10726260. It's due to an overload after an unexplained spike a) in read requests in one database (not always the same), and b) in connections in all databases. — Alien 3
3 3 06:35, 10 April 2025 (UTC)- Oh, interesting. Seems like I'm obviously a bit ignorant of all the computer talk on the phabricator page. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 12:07, 10 April 2025 (UTC)
- See also phab:T390510#10717702 and #10726260. It's due to an overload after an unexplained spike a) in read requests in one database (not always the same), and b) in connections in all databases. — Alien 3
Source of request spike has been identified: it was a Growth Experiments script aggressively scanning way too many rows of the database. See phab:T391695. It's been disabled until it gets fixed, so normally this shouldn't happen again. — Alien 3
3 3 15:49, 11 April 2025 (UTC)
- Oh, thanks. Glad to see it's been remedied now. User:Chorchapu (talk|edits|commons|wiktionary|simple english) 16:06, 11 April 2025 (UTC)
- Excellent, self-DOS. Izno (talk) 16:59, 11 April 2025 (UTC)
- I don't think that's entirely fair. These are big complicated systems. Stuff happens. Take a look at the example I gave just below. I made a trivial mistake in my query which caused a 20,000x performance hit. Fortunately, the quarry database is sufficiently isolated from production that I assume I only caused a problem to other quarry users. RoySmith (talk) 17:26, 11 April 2025 (UTC)
Prosesize
[edit]Prosesize has stopped working for me, all articles reading as 0b. Have cleared cache and tried through another browser, and in incognito mood. Still all articles showing as 0b. Thanks Hildreth gazzard (talk) 19:54, 9 April 2025 (UTC)
- @Hildreth gazzard It works fine for me. I installed it with Preferences → Gadgets → Browsing → Prosesize and then I went to a random article and clicked the "Page size" option in the tools menu and it says:
HTML document size: 143 kB Prose size (including all HTML code): 5956 B References (including all HTML code): 9977 B Wiki text: 23 kB Prose size (text only): 3312 B (575 words) "readable prose size" References (text only): 912 B
- What browser and device are you using? Do you see an error in the browser console? Polygnotus (talk) 20:00, 9 April 2025 (UTC)
- Yes, I did that, installed it with Preferences → Gadgets → Browsing → Prosesize on an
- iphone and it was working fine. It just stopped the last few hours. No error message. It shows HTML document size and Wikitext size, but all other values are blank Hildreth gazzard (talk) 20:16, 9 April 2025 (UTC)
- For example: this is what it shows for the Mandarin duck
- Document statistics (more information):
- HTML document size: 212 kB
- Prose size (including all HTML code): 0 B
- References (including all HTML code):50 kB
- Wiki text: 27 kB
- Prose size (text only): 0 B (0 words) "readable prose size"
- References (text only): 5751 B Hildreth gazzard (talk) 20:18, 9 April 2025 (UTC)
- @Hildreth gazzard You could try User:Polygnotus/Scripts/ProseSize.js Polygnotus (talk) 20:19, 9 April 2025 (UTC)
- Hi, I was having the same issue with prosesize (although in my case it's been down for over a year and displays no output at all after freezing). I tried your script and it worked, but would it be possible for the output to be displayed with greater accuracy i.e. the number of bytes instead of just 2 kB or 3 kB? AryKun (talk) 11:47, 15 April 2025 (UTC)
- @AryKun Sure, I updated it to show both. Polygnotus (talk) 11:56, 15 April 2025 (UTC)
- Hi, I was having the same issue with prosesize (although in my case it's been down for over a year and displays no output at all after freezing). I tried your script and it worked, but would it be possible for the output to be displayed with greater accuracy i.e. the number of bytes instead of just 2 kB or 3 kB? AryKun (talk) 11:47, 15 April 2025 (UTC)
- If you go to User:Hildreth gazzard/common.js and add the following text: {{subst:iusc|User:Polygnotus/Scripts/ProseSize.js}} then you should get a "Calculate prose size" option in the Tools menu. Polygnotus (talk) 20:26, 9 April 2025 (UTC)
- @Hildreth gazzard You could try User:Polygnotus/Scripts/ProseSize.js Polygnotus (talk) 20:19, 9 April 2025 (UTC)
The official gadget (MediaWiki:Gadget-Prosesize.js) uses a Toolforge thing under the hood. A request would look like https://prosesize.toolforge.org/api/en.wikipedia.org/Foobar but if that isn't available there is a fallback so I am surprised that it does not work. Polygnotus (talk) 12:22, 15 April 2025 (UTC)
Difficulty reading some user pages in Dark Mode
[edit]Hello, I use Dark Mode on Wikipedia, and I have noticed that when I try to read certain User Pages, the text on the User Pages does not change color, and so if I want to read the user pages, I have to highlight all of the text to be able to see it. A good example of this is User:Valjean for the majority of text on their User Page. I have experienced the problem on other user pages, but I do not remember which one. Could this please be fixed? If there is somewhere else I should bring this up, please let me know, so I can bring it up in that place. Thank you very much. Fun Chaos (talk) 15:28, 11 April 2025 (UTC)
- I have found another page where it is a problem, though less of one: User talk:Keeper76. Fun Chaos (talk) 15:42, 11 April 2025 (UTC)
- Users have a lot of flexibility in how they manage and layout their own user pages. You should be able to just toggle dark mode off on the page, that should be much easier than trying to highlight text. — xaosflux Talk 15:45, 11 April 2025 (UTC)
- How do I change that or a single page, I see how to change that for all pages, but that is process that involves me going to my preferences and changing it, and then changing it back after I have finished reading the user page. Is there a more efficient process? Fun Chaos (talk) 15:54, 11 April 2025 (UTC)
- You can't, but you can toggle it on or off whenever you want, which should be a simpler thing to do than trying to highlight text. There should be a dark mode selector on the appearance menu on the page, if you collapsed that menu look for the symbol that looks like eyeglasses at the top of the screen. — xaosflux Talk 17:50, 11 April 2025 (UTC)
- Thank you, found it. This was helpful and I will do that in the future. Fun Chaos (talk) 20:27, 11 April 2025 (UTC)
- Generally speaking, anything is permitted on user pages, unless explicitly prohibited by WP:UP#NOT. That section does not mention accessibility, colour, contrast or dark mode. --Redrose64 🌹 (talk) 19:31, 11 April 2025 (UTC)
- You can't, but you can toggle it on or off whenever you want, which should be a simpler thing to do than trying to highlight text. There should be a dark mode selector on the appearance menu on the page, if you collapsed that menu look for the symbol that looks like eyeglasses at the top of the screen. — xaosflux Talk 17:50, 11 April 2025 (UTC)
- For what it's worth, the markup on that page is flagged by Linter's night-mode-unaware-background-color option: [2]. Matma Rex talk 21:56, 11 April 2025 (UTC)
- How do I change that or a single page, I see how to change that for all pages, but that is process that involves me going to my preferences and changing it, and then changing it back after I have finished reading the user page. Is there a more efficient process? Fun Chaos (talk) 15:54, 11 April 2025 (UTC)
- Users have a lot of flexibility in how they manage and layout their own user pages. You should be able to just toggle dark mode off on the page, that should be much easier than trying to highlight text. — xaosflux Talk 15:45, 11 April 2025 (UTC)
VisualEditor is broken for me
[edit]I could barely add this topic in, since it uses VisualEditor which is broken for me. More details in this link: [3] (imgur)
Problems with Tables in the paragraph below: Blitzkriegfree (talk) 18:49, 11 April 2025 (UTC)
- Have you tried using a different web browser? Or loading in a private window? You could also try disabling any browser extensions that might be interfering. --Chris 06:57, 12 April 2025 (UTC)
- Alright, it works on Chrome. I think it's broken for FireFox. Disabling browser extensions, or editing in private mode did not help. I hope it will work again someday.
- I will now ping user:Cremastra, as they also expirenced the same issues. {{Ping|Cremastra}} Blitzkriegfree (talk) 12:32, 12 April 2025 (UTC)
- That will not have notified anybody, least of all Cremastra, who I have now notified. More at WP:MENTION. --Redrose64 🌹 (talk) 13:51, 12 April 2025 (UTC)
- Thanks. Cremastra talk 13:58, 12 April 2025 (UTC)
- That will not have notified anybody, least of all Cremastra, who I have now notified. More at WP:MENTION. --Redrose64 🌹 (talk) 13:51, 12 April 2025 (UTC)
Discussion at Wikipedia:Village pump (proposals) §a few standards
[edit] You are invited to join the discussion at Wikipedia:Village pump (proposals) §a few standards. Thryduulf (talk) 15:07, 12 April 2025 (UTC)
Template:Chem generating line breaks
[edit]Hi,
the {{chem}} template currently generates HTML that includes line breaks:
- <span class="chemf nowrap">CO<span class="nowrap"><span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1em;font-size:80%;text-align:left"><sup style="font-size:inherit;line-height:inherit;vertical-align:baseline"></sup><br /><sub style="font-size:inherit;line-height:inherit;vertical-align:baseline">2</sub></span></span></span>
So when one copies and pastes from a Wikipedia article into plaintext, one gets results like this (from Naked mole-rat § Metabolism and respiration where I noticed it):
It can live in an atmosphere of 80% CO 2 and 20% oxygen.
That's a bit annoying and surely avoidable, as the {{chem2}} template does not have the same quirk. Could someone who knows what they're doing take a look? Cheers!
- 2A02:560:4D16:1800:9905:C7AA:90CA:BB25 (talk) 16:19, 12 April 2025 (UTC)
- Generated by Module:Su. Izno (talk) 17:28, 12 April 2025 (UTC)
- See Template:Su#Line breaks. — Qwerfjkltalk 17:53, 12 April 2025 (UTC)
- Thanks, both! I looked at the code for both templates, and the difference stems from these two approaches to stacking super- and subscripts, AFAI can tell:
- {{chem}}, via the invoked module
- generates (without the text formatting)
SO<span style="display:inline-block"><sup>2-</sup><br /><sub>4</sub></span>
- which displays as (with the text formatting) SO2−
4 - and plaintext-pastes as
SO2−
4
- generates (without the text formatting)
- {{chem2}}
- generates
SO<span style="display:inline-block"><span style="display:block">2−</span><span style="display:block">4</span></span>
- which displays as SO2−4
- and plaintext-pastes as
SO2−4
- generates
- {{chem}}, via the invoked module
- - 2A02:560:4D16:1800:9905:C7AA:90CA:BB25 (talk) 18:53, 12 April 2025 (UTC)
- Thanks, both! I looked at the code for both templates, and the difference stems from these two approaches to stacking super- and subscripts, AFAI can tell:
- Why is {{su}} implemented in a module? The module seems to provide functionality that could be trivially implemented in wikitext. 86.23.109.101 (talk) 21:15, 13 April 2025 (UTC)
- See Template:Su#Line breaks. — Qwerfjkltalk 17:53, 12 April 2025 (UTC)
Active users at Category:User languages
[edit]How I can see users from language category that been active in current month? For example, most users at Category:User gsw-4 was active 2-3 or 10 years ago, which is kinda useless information. Eurohunter (talk) 10:46, 13 April 2025 (UTC)
- Also the same thing but for those who are members of a wikiproject, ideally weighted to those with the most edits. Polygnotus (talk) 12:54, 13 April 2025 (UTC)
- This should probably be moved to WP:SCRIPTREQ or, preferably, WP:BOTREQ. Polygnotus (talk) 13:09, 13 April 2025 (UTC)
- True, but I have a database query for users who have done edits in the last three months here. Doesn't notice whether have performed logged actions such as issue thanks or blocking. William Avery (talk) 14:10, 13 April 2025 (UTC)
- @William Avery I think that usually people want to know "who should I contact" which means that a user with 1 edit who edited 1 second ago is a worse option than a user with 180.000 edits who edited 3 days ago. Polygnotus (talk) 15:49, 13 April 2025 (UTC)
- True, but I have a database query for users who have done edits in the last three months here. Doesn't notice whether have performed logged actions such as issue thanks or blocking. William Avery (talk) 14:10, 13 April 2025 (UTC)
- You can use this script. – DreamRimmer (talk) 17:58, 13 April 2025 (UTC)
Modern JavaScript is an error?
[edit]If you look at for example User:Andrybak/Scripts/Contribs ranger.js then Wikipedia claims that script contains 129 errors.
Is the thing that checks for errors very outdated? It may be JSHint and I don't see any releases post 2022.
If so, can we change the CodeEditor to use something more modern?
I see T250315 so I'll ping @ESanders (WMF):. Polygnotus (talk) 13:05, 13 April 2025 (UTC)
- Running ESLint is technically possible but quite complex, I'm not sure who will be able to prioritise it in the near future. ESanders (WMF) (talk) 16:27, 13 April 2025 (UTC)
- @ESanders (WMF) This is not the worst problem ever™, but it can be quite annoying when messing about with JavaScript because JSHint keeps warning you of errors that do not exist. Is there maybe an alternative to ESLint that is easier to implement? Polygnotus (talk) 18:07, 13 April 2025 (UTC)
- It may be (?) related to the fact that what's here signaled are private identifiers, which are added in ECMA2026. — Alien 3
3 3 19:46, 13 April 2025 (UTC)- The most recent version supported is ES 2016, see phab:T381537. Snævar (talk) 07:50, 14 April 2025 (UTC)
- If by errors you mean when you go to edit the page, which no one else can, that is strictly identified by the syntax highlighter, which in this case is Ace AFAIK. It simply has not been updated for newer syntaxes yet. (Such issues are relevant when editing CSS as well, e.g. phab:T263852.) The final says on whether a script is valid is the ResourceLoader checker + minifier, for when a script is loaded as a gadget, and your browser.
- My understanding, based on conversation with a relevant volunteer dev, is that phab:T250315 is particularly difficult, and that Ace does not provide the necessary APIs so it would be a lot of developer overhead to support something like that.
- Ace may be removed in favor of CodeMirror at some date, see e.g. activity with phab:T373711. Izno (talk) 22:20, 13 April 2025 (UTC)
Range block calculator?
[edit]I used to use this tool to calculate IP ranges for potential blocks, but now I'm getting a 'not found' error. Has it moved, or been replaced with something else, or just died a dignified natural death, does anybody know? Thanks, Justlettersandnumbers (talk) 19:46, 14 April 2025 (UTC)
- @Justlettersandnumbers: https://nativeforeigner.com/calc/ GMGtalk 19:49, 14 April 2025 (UTC)
- {{IP range calculator}} also exists. Izno (talk) 20:24, 14 April 2025 (UTC)
- It looks like the original moved to https://ftools.toolforge.org/general/ip-range-calc.html (and the template that Izno links to has a "See also" link to an alternative at https://galaxybots.toolforge.org/iprangecalculator, and via m:Toolhub there's yet another alternative at https://iprange.toolforge.org/) HTH. Quiddity (talk) 20:29, 14 April 2025 (UTC)
Tech News: 2025-16
[edit]Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Weekly highlight
- Later this week, the default thumbnail size will be increased from 220px to 250px. This changes how pages are shown in all wikis and has been requested by some communities for many years, but wasn't previously possible due to technical limitations. [4]
- File thumbnails are now stored in discrete sizes. If a page specifies a thumbnail size that's not among the standard sizes (20, 40, 60, 120, 250, 330, 500, 960), then MediaWiki will pick the closest larger thumbnail size but will tell the browser to downscale it to the requested size. In these cases, nothing will change visually but users might load slightly larger images. If it doesn't matter which thumbnail size is used in a page, please pick one of the standard sizes to avoid the extra in-browser down-scaling step. [5][6]
Updates for editors
- The Wikimedia Foundation are working on a system called Edge Uniques which will enable A/B testing, help protect against Distributed denial-of-service attacks (DDoS attacks), and make it easier to understand how many visitors the Wikimedia sites have. This is so that they can more efficiently build tools which help readers, and make it easier for readers to find what they are looking for.
- To improve security for users, a small percentage of logins will now require that the account owner input a one-time password emailed to their account. It is recommended that you check that the email address on your account is set correctly, and that it has been confirmed, and that you have an email set for this purpose. [7]
- "Are you interested in taking a short survey to improve tools used for reviewing or reverting edits on your Wiki?" This question will be asked at 7 wikis starting next week, on Recent Changes and Watchlist pages. The Moderator Tools team wants to know more about activities that involve looking at new edits made to your Wikimedia project, and determining whether they adhere to your project's policies.
- On April 15, the full Wikidata graph will no longer be supported on query.wikidata.org. After this date, scholarly articles will be available through query-scholarly.wikidata.org, while the rest of the data hosted on Wikidata will be available through the query.wikidata.org endpoint. This is part of the scheduled split of the Wikidata Graph, which was announced in September 2024. More information is available on Wikidata.
- The latest quarterly Wikimedia Apps Newsletter is now available. It covers updates, experiments, and improvements made to the Wikipedia mobile apps.
View all 30 community-submitted tasks that were resolved last week.
Updates for technical contributors
- The latest quarterly Technical Community Newsletter is now available. This edition includes: an invitation for tool maintainers to attend the Toolforge UI Community Feedback Session on April 15th; recent community metrics; and recent technical blog posts.
Detailed code updates later this week: MediaWiki
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 00:21, 15 April 2025 (UTC)
- Regarding the first item about the default thumbnail size, please see Wikipedia talk:Image use policy#Displayed image size. --Redrose64 🌹 (talk) 08:07, 15 April 2025 (UTC)
AfC templates with wrong timestamp
[edit]Normally, {{AfC submission}}'s |ts=
takes the form |ts=YYYYMMDDhhmmss
. But I've been coming across some drafts that have the ts
param in the format generated by ~~~~~
(e.g. "00:00, 1 January 1970 (UTC)"). This shouldn't be happening, and breaks the template.
Does anyone know what is causing this? I wanted to code up a bot to fix all these, but this search only turns up a few results. ~ Rusty meow ~ 03:48, 16 April 2025 (UTC)
- You can include cases with AFC by making the regex case insensitive with
i
at the end.[8] I haven't worked out how it might happen. We could ask somebody who did it. @Domagoj Klarić: Do you remember how you made this edit? You may have copied code withsubst
from somewhere. PrimeHunter (talk) 15:34, 16 April 2025 (UTC)
A technical issue
[edit]I’d like to mention an issue I’ve just recently noticed. Not serious, nonetheless inaccurate.
Something seems to be amiss with the algorithm that displays the longest stretch of consecutive days of Wiki editing that we’ve done. For a long time, my count used to be 27. Now it’s 18. This means others’ counts could similarly be affected.
Augnablik (talk) 09:00, 16 April 2025 (UTC)
- @Augnablik: The information icon
at Special:Impact/Augnablik says: "This metric will only reflect editing streaks included in the most recent 1,000 edits." I assume your longer streak became older. PrimeHunter (talk) 10:06, 16 April 2025 (UTC)
- Oh, then sorry I didn’t notice. But I’m surprised. Not that I really care about this, but it does seem a little odd that the clock is started every X number of days.
- I have one more clock-related technical issue to report: there’s a place where the number of years we’ve been Wikipedians is shown, and my count has appeared as 3 years for several months now — even though that won’t actually be till the 2nd or 3rd week of June. Augnablik (talk) 10:40, 16 April 2025 (UTC)
- @Augnablik: I think the impact data makes a search for the longest streak each time it's viewed and the limit is for performance reasons. Where do you see 3 years? Special:CentralAuth/Augnablik says 2 years. PrimeHunter (talk) 11:01, 16 April 2025 (UTC)
- I don't think the number that's shown in regard to my 2nd question has anything to do with performance but just time as a Wiki editor. To answer your question about where I've seen 3 years, I don't recall now exactly where that was ... all that I recall is that it's fairly often. The next time I see it, I can return here and say. Or perhaps another editor will come along and say where that is. Augnablik (talk) 11:39, 16 April 2025 (UTC)
- The mobile version of your user page says "Joined 3 years ago": [9]. Matma Rex talk 20:39, 16 April 2025 (UTC)
- I don't think the number that's shown in regard to my 2nd question has anything to do with performance but just time as a Wiki editor. To answer your question about where I've seen 3 years, I don't recall now exactly where that was ... all that I recall is that it's fairly often. The next time I see it, I can return here and say. Or perhaps another editor will come along and say where that is. Augnablik (talk) 11:39, 16 April 2025 (UTC)
- @Augnablik: I think the impact data makes a search for the longest streak each time it's viewed and the limit is for performance reasons. Where do you see 3 years? Special:CentralAuth/Augnablik says 2 years. PrimeHunter (talk) 11:01, 16 April 2025 (UTC)
Automating argument between template and module, and finding out template name
[edit]Hi everyone,
Two questions into one today. Here is my situation.
- I have a module that I can call with
{{#invoke:module_name|main|arg1|arg2}}
with arg1 being eitherfoo
orbar
; and - I want to have two templates calling this module, where:
{{template foo|arg}}
calls{{#invoke:module_name|main|foo|arg}}
, and{{template bar|arg}}
calls{{#invoke:module_name|main|bar|arg}}
.
So the idea is that each template implicitly provides the module with arg1 without the user having to write it. How do I do that?
Secondly, when I am using the module's functions, what is an easy to get the name of the module that called it? I would use this for error messages.
Thanks! Julius Schwarz (talk) 09:46, 16 April 2025 (UTC)
- If I understand what it is that you want to do, you can hard-code
foo
andbar
in the template wikitext as named parameters:|foo=<value>
etc – this is probably the simplest. No doubt there are more complex ways to do what I think you want to do. - To get the name of the invoking module:
frame:getTitle()
; and similarly, to get the name of the calling template:frame:getParent():getTitle()
. - —Trappist the monk (talk) 13:21, 16 April 2025 (UTC)
- As TtM said,
{{#invoke:module_name|main|foo| {{{arg|}}} }}
should work. - If
{{{arg}}}
is a number of arguments, you can also make use of one or both of the following two tables (mw:Extension:Scribunto/Lua_reference_manual#frame.args):local targs = frame:getParent().args --template arguments in template call
local margs = frame.args --module arguments in #invoke
- Ponor (talk) 14:03, 16 April 2025 (UTC)