Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia
(Redirected from Wikipedia:VP(T))
 Policy Technical Proposals Idea lab WMF Miscellaneous 
The technical section of the village pump is used to discuss technical issues about Wikipedia. Bug reports and feature requests should be made in Phabricator (see how to report a bug). Bugs with security implications should be reported differently (see how to report security bugs).

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.

Curious ephemeral js error[edit]

I turned on the "display js errors" gadget a few days ago. Today I got an error something like "unhandled exception missing ) for argument list line 23". Since the gadget pop-up fades away quickly, I refreshed the page a few times to try and select and copy the error. I then took a look at the source: line 23 is (for me) }];});});</script>. After looking at this I tried again to copy the error, but it had gone. I compared the script which runs from line 6 to 23 before an after the error with an on-line diff, no apparent difference.

Anyone know why this might have happened? All the best: Rich Farmbrough 08:34, 29 April 2024 (UTC).[reply]

I got it too, so I filed phab:T363701. It happened whenever the CentralNotice banner for the U4C voting was displayed. But it stopped at some point even when I got the banner. I wonder if something was backported and fixed it. Nardog (talk) 22:44, 29 April 2024 (UTC)[reply]
The banners are maintained on Meta-Wiki as wiki pages. You can find them on m:Special:CentralNotice, if you can figure out the interface (I struggle with it). I think this was the edit that fixed it: https://meta.wikimedia.org/w/index.php?title=MediaWiki:Centralnotice-template-u4c_election2024_vote2&diff=prev&oldid=26702487 Matma Rex talk 09:18, 30 April 2024 (UTC)[reply]

Thank you both. All the best: Rich Farmbrough 09:48, 1 May 2024 (UTC).[reply]

Help with regex statement[edit]

Hi, I need help with the following regex, which I did not write and don't understand well enough to fix. That statement is:

(?<!/)(?<!\\?url=)https?://(?:[\\w-]+\\.)*wikisophia[.]org[\\w/.\\-#?&=]*

The intent is to match all URLs such as:

http://wikisophia.org/index.php?title=Constitution_Act,_1871_(annotated)

But not archive URLs such as:

https://web.archive.org/web/20010101010101/http://wikisophia.org/index.php?title=Constitution_Act,_1871_(annotated)
https://webcitation.org/fgT654?url=http://wikisophia.org/index.php?title=Constitution_Act,_1871_(annotated)

Currently the regex is only partially matching and returning:

http://wikisophia.org/index.php?title=Constitution_Act

..anything after the "," is not matched. Same if there is a ":" or other similar characters.

Suggestions? -- GreenC 19:21, 29 April 2024 (UTC)[reply]

You need to add the relevant characters (possibly escaped?) to [\\w/.\\-#?&=]. Izno (talk) 19:59, 29 April 2024 (UTC)[reply]
Almost any character can appear in a URL, especially after ?title=. It may be better to accept anything except whatever delimits a URL in the relevant context, e.g. for parsing {{cite web|url=http...}} use [^|}]* or for space-delimited [http... Description of page] try \\S*. The former may pick up unwanted spaces unless we complicate it as something like .*?(?=\\s*[|}]) (grab any characters, but as few as possible, as long as optional spaces then | or } follows). Certes (talk) 00:14, 30 April 2024 (UTC)[reply]
OK, building on that idea, this solution is imperfect, but it will work in most cases. I'm not using it for critical purposes (log files, counting) so YMMV:
(?<!/)(?<!\\?url=)https?://(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])[.])*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])*wikisophia[.]org[^\\s\\]|}{<]*[^\\s\\]|}{<]*
The gobbly between https and wikisophia is for matching hostname(s) at multiple levels per this. -- GreenC 05:34, 30 April 2024 (UTC)[reply]
In case anyone is trying this regex, it had an error corrected: Special:Diff/1221562167/1221571619 -- GreenC 18:16, 30 April 2024 (UTC)[reply]

Out of interest I fed this into ChatGPT (I know...!). Here's its response, for what it's worth (minor tweaks for formatting) -

This regular expression (regex) is designed to match URLs that point to the domain "wikisophia.org" under specific conditions, while excluding URLs that are part of certain contexts or formats. Let's break down this regex to understand what it is specifically targeting:

1. Negative Lookbehind Assertions:

  - `(?<!/)` ensures that the match does not directly follow a forward slash `/`. This might be used to avoid matching URLs that are part of a larger URL path or parameter.
  - `(?<!\\?url=)` ensures that the match does not directly follow the query parameter string `?url=`. This helps in avoiding matching URLs that are query parameters.

2. URL Scheme:

  - `https?://` matches both "http://" and "https://". The `s?` means that the character "s" is optional.

3. Domain Name:

  - The part `(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])[.])*` is somewhat complex but essentially matches sequences of alphanumeric characters separated by hyphens (not starting or ending with a hyphen) and followed by periods. This part matches subdomains as well, as it repeats zero or more times due to the `*` operator after the group.
  - `([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])` ensures the domain name or subdomain consists of alphanumeric characters, possibly with hyphens (but not starting or ending with them), much like the earlier subdomain matcher.

4. Specific Domain:

  - `wikisophia[.]org` is very straightforward and matches the domain "wikisophia.org". The square brackets around the period `.` are technically not needed here, as they are used to escape special regex characters (though `.` would typically be escaped directly with a backslash).

5. Trailing URL Path and Parameters Exclusions:

  - `[^\\s\\]|}{<]*` This part of the pattern is intended to consume any characters that are not whitespace, slashes, or certain special characters like `|`, `}`, `{`, `<`. However, there are syntax issues and potential misinterpretations in this segment:
    - `[^\\s\\]` seems intended to exclude backslashes and whitespace (though `\\s` would be invalid in most regex flavors and might be an error).
    - The character set `[^\\s\\]|}{<]` is followed by a `*` quantifier, meaning it matches zero or more of any character that is not a space, slash, or one of the special characters listed. This part could be attempting to match the rest of the URL while excluding specific trailing characters but is likely erroneous as presented.

Conclusion

The regex seems intended to match "wikisophia.org" URLs that do not follow a slash or the specific query parameter `?url=`. However, there are syntax issues that might cause it to behave unpredictably, particularly with the last part concerning non-whitespace and non-special characters, which appears to be syntactically incorrect. This regex should be reviewed for errors and tested thoroughly in its intended context to ensure it functions as expected.

I hope this is interesting and/or helpful.  —Smalljim  11:23, 1 May 2024 (UTC)[reply]

Video viewing stats[edit]

Hi, is there a way to know how many readers watched a video in an article? Alaexis¿question? 06:30, 30 April 2024 (UTC)[reply]

Yes, you can look up this data using https://pageviews.wmcloud.org/mediaviews/ (although note that it just counts total views, it doesn't show how many are coming from a specific article). For example, here's a chart of page views for a few movies listed on Public domain film: https://pageviews.wmcloud.org/mediaviews/?project=commons.wikimedia.org&platform=&agent=user&referer=all-referers&range=latest-20&files=Night_of_the_Living_Dead_(1968).webm%7CFear_and_Desire_(1953).webm%7CWings_(1927).webm Matma Rex talk 09:31, 30 April 2024 (UTC)[reply]
Thanks! Do you know what counts as a view? According to this tool, this video had very few views, in spite of being used in an article with 30k daily viewers. Does it really mean that very few users choose to watch (admittedly hard-to-watch) video? Alaexis¿question? 14:20, 30 April 2024 (UTC)[reply]
According to GlobalUsage that file isn't used anywhere; I suspect you wanted to look up the stats for this file instead (GlobalUsage), which has more views: [1]. The autocomplete in the mediaviews tool is a bit fiddly sometimes, and apparently doesn't find files that have been renamed, like this one, if you use the redirect name when searching. I didn't know that before. Matma Rex talk 14:51, 30 April 2024 (UTC)[reply]
And to answer your actual question too, the technical documentation about what counts as a media view is available here: https://wikitech.wikimedia.org/wiki/Analytics/Data_Lake/Traffic/Mediacounts Matma Rex talk 14:58, 30 April 2024 (UTC)[reply]
This reminds me that if we ever make videos 'preload' by default, these stats will break, because every pageview will preload the first bytes of a file... —TheDJ (talkcontribs) 17:12, 30 April 2024 (UTC)[reply]
Thanks for the comprehensive answer! Alaexis¿question? 11:13, 1 May 2024 (UTC)[reply]

PETSCan and Images[edit]

I am looking to source free images for articles on plant genera that are lacking them. Therefore I was wondering whether it was possible to configure PETScan only to return pages which do not contain images. The closest thing I thought of was to show images from the metadata in the output and then scroll through them, looking for those for which no image is presented. However, that is getting progressively tedious. Does anyone know a more direct way to do this? Felix QW (talk) 09:33, 30 April 2024 (UTC)[reply]

Not an answer to your question, but the search facility may help you. A search for plant hastemplate:"automatic taxobox" insource:/image *= * returns 16,436 results with an image parameter in the taxobox. Note, it's not restricted for genera and some may have empty taxobox image parameters. Then a search for plant hastemplate:"automatic taxobox" -insource:/image *= * finds 1,298 results without the image parameter, most of which appear to be genera. The search can probably be refined. —  Jts1882 | talk  10:57, 30 April 2024 (UTC)[reply]
Thank you for the interesting suggestion! It does seem to me that empty taxobox image parameters are quite common, but then again, it is not like I am not going to ever finish this task. PETScan has the additional advantage of alphabetical sorting, so it is consistent across searches, and I can exclude pages linked from my userspace list of taxa for which I have already searched for images without any success. Therefore, a PETScan-based method seems preferable to me at the moment. Felix QW (talk) 12:33, 30 April 2024 (UTC)[reply]
@Felix QW: the "Page properties" tab in PetScan has a radio button for "Lead image" where you can select "no". Plantdrew (talk) 21:20, 30 April 2024 (UTC)[reply]
Brilliant, thank you! I don't know how I missed that. By the way, thank you very much for all your work on plant articles! Felix QW (talk) 07:18, 1 May 2024 (UTC)[reply]

pagelinks normalization[edit]

The pagelinks table is about to lose its pl_namespace and pl_title columns. This may break some tools and reports. Certes (talk) 15:26, 30 April 2024 (UTC)[reply]

As advised at Wikipedia:Village pump (technical)/Archive 211#pagelinks normalization. --Redrose64 🌹 (talk) 20:33, 30 April 2024 (UTC)[reply]
Yes: we've been able to use the linktarget alternative for a while now. Today's news, according to the Phabricator ticket, is that they are now ready to drop the columns. Certes (talk) 21:33, 30 April 2024 (UTC)[reply]
mw:Manual:pagelinks table does not indicate that any elements of that table are deprecated; the page has yet to be updated this year. – wbm1058 (talk) 17:14, 4 May 2024 (UTC)[reply]

Non free file upload bug[edit]

Today, when I clicked the button "upload a non free file", it just reload the page, please fix this bug or glitch as soon as possible. SleepingJoe (talk) 04:30, 1 May 2024 (UTC)[reply]

 Works for me ensure you are allowing javascript to run and try again. Alternatively, use the direct upload page here: Special:Upload. — xaosflux Talk 10:17, 1 May 2024 (UTC)[reply]
Please if I may ask, when uploaded Files with Special:Upload which directly is it going to stay, is it wikimedia common or Wikipedia itself? because I have always thought that files can only be uploaded through wikimedia. Thisasia  (Talk) 10:53, 1 May 2024 (UTC)[reply]
@Thisasia: If you use Special:Upload here on English Wikipedia, you will upload to English Wikipedia. If you use c:Special:Upload, which is at Commons, you will upload to Commons. --Redrose64 🌹 (talk) 17:17, 1 May 2024 (UTC)[reply]
Oww that's cool, thanks very much for the information. Thisasia  (Talk) 21:37, 1 May 2024 (UTC)[reply]
Coincidentally the OP is blocked for 'Abusing multiple accounts' on commons, so they can only use Special:Upload. – 2804:F1...C3:D952 (talk) 04:39, 2 May 2024 (UTC)[reply]

Stealth revdel[edit]

In this discussion at my Talk page, I made an assertion (diff) that traces of a revdel can always be seen in the revision history, with revisions in strikeout type, and the like. But now, I wonder if my response there was accurate. Is there such a thing as, for lack of a better term, what I will call a stealth revdel—that is, a revdel which wipes some revisions from the history, without leaving any evidence of the removal visible to non-admins? If that exists, what is it called, and is there a page that covers this? Mathglot (talk) 11:13, 1 May 2024 (UTC)[reply]

Selective (un)deletion, i.e. deleting the page and undeleting all except certain revisions. If an admin really wanted to hide it, they'd have to then delete or revdel the log entries of the deletion and undeletion too. Anomie 11:35, 1 May 2024 (UTC)[reply]
The thing being discussed in that discussion was some template vandalism, which was of course on a different page transcluded onto that one. Some varieties of oversight can remove edits without much trace, though not something like this purported situation. -- zzuuzz (talk) 11:42, 1 May 2024 (UTC)[reply]
The "some varieties of oversight" being what mw:Extension:Oversight did before it was replaced by RevDel? If so, that's not available anymore. Anomie 11:45, 1 May 2024 (UTC)[reply]
No, I do mean suppression oversight (and 'hiding'). It's not a thing to focus on here, but OS can make some disappearances hard to track. -- zzuuzz (talk) 11:48, 1 May 2024 (UTC)[reply]
so maybe I meant oversighted? It's idle curiosity in this instance but I am pretty sure I have noticed stuff disappear before, especially identifying personal information. In fact, I distinctly remember telling an admin that somebody's address was in an article edit history, and this got removed, at lrast as far as a plain vanilla editor could see.
Which is not what this was, granted; it would have been more of an unfortunate paste error or perhaps vandalism. Elinruby (talk) 12:22, 1 May 2024 (UTC)[reply]
I seem to recall days when there was no revision deletion feature we have now, and the way to hide select revisions was to move the page to another name, delete it, restore okay revisions, and move it back. I assume it's possible still. Nardog (talk) 13:25, 1 May 2024 (UTC)[reply]
Indeed it is. * Pppery * it has begun... 13:43, 1 May 2024 (UTC)[reply]
Oh it's actually explained in the link Anomie gave above... Facepalm Nardog (talk) 13:46, 1 May 2024 (UTC)[reply]
There are certainly beansy ways to cause obfuscation - that are best left unlisted here. Just replace "can always..." with "can generally...." and most use cases will be covered. — xaosflux Talk 14:11, 1 May 2024 (UTC)[reply]
Thanks, all; this has been informative. And I got the read-between-the-lines stuff, so needn't go further. Cheers! Mathglot (talk) 00:35, 3 May 2024 (UTC)[reply]
I know it's possible to delete summaries of log entries... including for the revdel log... and for the revdel log summary deletion log. I think you can set up an infinite regress this way. jp×g🗯️ 07:53, 3 May 2024 (UTC)[reply]

Caption on Image wikiMarkup?[edit]

Please may i ask if caption is possible inside the image wikiMarkup? Because since it does have the argument for sizing like for example: [[File:Example.jpg|100px]] then i suppose I'd probably have an argument for caption and even perhaps, more arguments beyond? Thisasia  (Talk) 12:31, 3 May 2024 (UTC)[reply]

H:PICTURES.
Trappist the monk (talk) 13:10, 3 May 2024 (UTC)[reply]

Xtools 503 error[edit]

Is anyone getting a 503 error on Xtools? It says "Service Unavailable". Is the server down by any chance? Neko Lexi (talk) 13:53, 3 May 2024 (UTC)[reply]

There is a problem with the tool indeed. @MusikAnimal is working on trying to fix it at the hackathon right now. —TheDJ (talkcontribs) 15:47, 3 May 2024 (UTC)[reply]
good deal Neko Lexishe/her 15:55, 3 May 2024 (UTC)[reply]
phab:T364151 is the actual problem. Taavi told me there's no quick fix, so I'm going to temporarily disable parts of XTools that are affected. That includes anything that touches the logging table, such as xtools:ec-generalstats and xtools:adminstats. Apologies for the disruption. MusikAnimal talk 16:13, 3 May 2024 (UTC)[reply]
It's alright, but okay Neko Lexishe/her 16:54, 3 May 2024 (UTC)[reply]

What links here says that a page transcludes itself, which should be an error[edit]

What transcludes Template:Requested move notice shows ~4 pages, including a self-transclusion, which should be impossible. When I edit the template to make it transclude itself, I see the error (in preview mode):

Warning: This page calls Template:Requested move notice which causes a template loop (an infinite recursive call).

But it's not populating Category:Pages with template loops. Why is this spurious transclusion report happening, and how do I suppress it? My bot looks up all the pages that transclude this template, and is confused by this spurious transclusion. wbm1058 (talk) 14:30, 3 May 2024 (UTC)[reply]

First thought is this is via some check related to Module:Unsubst that is called there. — xaosflux Talk 15:05, 3 May 2024 (UTC)[reply]
Also noting that the identical Template:Requested move notice/sandbox doesn't show the same problem transclusion. – wbm1058 (talk) 15:12, 3 May 2024 (UTC)[reply]
Take that back. The sandbox does transclude itself. So I can play with the sandbox to try to make it go away. – wbm1058 (talk) 15:28, 3 May 2024 (UTC)[reply]
Problem is that the documentation subpage transcludes itself. When I removed the documentation from the sandbox, the sandbox stopped transcluding itself. – wbm1058 (talk) 16:13, 3 May 2024 (UTC)[reply]
Self transclusions occur when a template uses the MW Lua library getContent on the page it's transcluded on. This happens for example with Module:Citation/CS1 (which hunts for the "use XXX date" templates in the page source, among others). Izno (talk) 16:20, 3 May 2024 (UTC)[reply]
It's common and allowed for pages to transclude themselves. A template loop error only occurs if the transcluded version of the page also tries to transclude itself. PrimeHunter (talk) 16:46, 3 May 2024 (UTC)[reply]
This is very confusing. These pages compare identical yet one "transcludes itself" while the other does not. I'll assume that neither actually transcludes itself on a first-level basis, but the documentation only "transcludes itself" via the template transcluding the documentation, in other words, "cascading transclusion", or "circular transclusion" where the template transcludes the documentation while the documentation is simultaneously transcluding the template, and there is no way to differentiate regular transclusion from cascading/circular transclusion, so in order to work around this bizarre behavior, I'll need to make a special, kludgey edit to my bot's source code to specifically remove one specific page from the list of transcluded pages it gets from its "what transcludes this page" API call. I guess I've been kind of aware of this strange behavior for a while, but I think this is the first time I've found myself needing to actively code a work-around for it. – wbm1058 (talk) 17:59, 3 May 2024 (UTC)[reply]
Many templates can cause a page to transclude itself. In this case it's caused by {{Bot use warning}} because it uses {{pagetype}} which examines the code of the page to identify certain page types. Module:Pagetype uses getContent to do it and as Izno said, this gives a self transclusion. Just work around it if needed as you say. It's not broken and doesn't require "fixing". Template:Requested move notice/doc/sandbox also transcludes itself. Maybe it had not been registered in link tables after your move.[2] PrimeHunter (talk) 21:19, 3 May 2024 (UTC)[reply]
I thought every page transcluded itself, to be honest. Every (article) I've looked at closely was 'transcluded' by both itself and its talk page. – 2804:F1...6E:399F (talk) 20:30, 3 May 2024 (UTC)[reply]
Sometimes it feels like that to me too. I don't think the system always worked that way. At some point, something changed, I think, and I've yet to figure out exactly when, what, or why. – wbm1058 (talk) 21:16, 3 May 2024 (UTC)[reply]
@Wbm1058: You are indeed correct that it hasn't always been this way; it started happening in April 2019. To find this I searched the village pump archives for "Transcludes itself" and found this discussion; my comment there pointed to the former thread. Graham87 (talk) 08:00, 5 May 2024 (UTC)[reply]

Riddle me this. Compare and contrast. My initial example, limited to template namespace, followed by a similar example (my bot uses both):

Why does {{Requested move notice}} transclude itself, while {{Requested move/dated}} does not? They both have similar documentation sub-page configurations. – wbm1058 (talk) 21:16, 3 May 2024 (UTC)[reply]

It's probably Module:Pagetype. Module:Citation/CS1/Date validation also uses GetContent, so any page that uses {{cite book}} or another template in that family, which is millions of pages, will also transclude itself. – Jonesey95 (talk) 21:26, 3 May 2024 (UTC)[reply]
{{Requested move notice/doc}} uses {{Bot use warning}}. {{Requested move/dated/doc}} doesn't. But you don't have to work out why a given page transcludes itself since it's not a problem and doesn't require any action. PrimeHunter (talk) 21:35, 3 May 2024 (UTC)[reply]
Gah! Well, thanks for solving my puzzle! No, it was a problem. My bot's console report was saying:
339 : Template:Requested move notice => NOT FOUND
!!! Failed to remove subject notice
The transclusion made the bot think there was a {{Requested move notice}} sitting on the template – not unheard of that someone would request moving it, as it's been moved multiple times – the bot tried and failed to remove the template it thought was there, and thus reported the problem to me. THIS EDIT solved my problem by making the bot happy again. I added {{Bot use warning}} on 22 November 2023‎; guess I'd overlooked the bot's messages about this for months? Hey, I didn't realize that adding that template would change this template in a significant way! Who would have thunk that template needed to use {{pagetype}}, I never would have guessed that! {{Wikipedia:Article alerts/Bot use warning}} manages to give its warning without finding the {{pagetype}} first! Why would anyone ever need to find the {{pagetype}} to warn ppl that bots use their template? I'm just not gonna bother keeping the warning there, as it's just too much trouble and Murphy's Law says another WP:IAR editor is born every minute so resistance is futile. wbm1058 (talk) 22:22, 3 May 2024 (UTC)[reply]

A new template to count the number of internal links[edit]

Hi, I searched for a template that returns the number of internal links, but couldn't find any so I created this Template:InternalLinkCounter now. Please take a look and improve it if you like. I just wanted the community to be aware of this new template. Thanks! ⇒ AramTalk 23:39, 3 May 2024 (UTC)[reply]

"bps" in interface messages?[edit]

Are the bit-rate messages Bitrate-...bits used anywhere in the interface? If yes, then "bps" in all of them should be changed to "bit/s" to be consistent with MOS:UNITS#Specific units ("bit per second: bit/s (not bps, b/s)") and avoid setting a bad example. — Mikhail Ryazanov (talk) 02:38, 4 May 2024 (UTC)[reply]

These are used in places like File:2024-04-24_Tours2024Stopmotion.webm. I personally can't be bothered to care about this issue, though, it seems very trivial. * Pppery * it has begun... 02:42, 4 May 2024 (UTC)[reply]
MoS doesn't apply to "the interface". Nardog (talk) 07:39, 4 May 2024 (UTC)[reply]
I know (obviously, because I did say "be consistent with" instead of "conform to"). But how does it help to have our own interface contradicting our own MoS? — Mikhail Ryazanov (talk) 08:52, 4 May 2024 (UTC)[reply]
Yes they are contained in the interface see list. I do not think we should localize these for only those with their interface language set to English. You could make a case for this in a feature request which if accepted would "improve" this for all projects. — xaosflux Talk 10:10, 4 May 2024 (UTC)[reply]
Some other languages already have them "localized" (such as "bit/s" in Finnish, "b/s" in French, "б/с" in Macedonian). Do you propose changing the defaults such that all the languages where these messages haven't been "translated" will automatically switch to "bit/s"? Although this would be nice ("bit/s" is at least defined by the international standard IEC 60027, whereas "bps" is not standard at all), doing so globally might be perhaps more difficult than redefining these messages just for English at translatewiki. — Mikhail Ryazanov (talk) 11:17, 4 May 2024 (UTC)[reply]
My suggestion is that if the root of these is not the best possible international version of this, it be fixed at the root message level, not with a project-specific local override. I don't think "translating" them from the root English to English at translatewiki is the fix there - but you could give it a try. Fixing at the root reduces local technical debt and would share the improvement with all mediawiki projects. — xaosflux Talk 12:17, 4 May 2024 (UTC)[reply]
Follow on, inconsistent translatewiki work can make these sloppy - for example I can't imagine why in Portuguese the kilobits should be "kb/s" while the megabits are "Mbps". Likely because someone wanted to fix one instance and isn't even aware of the other ones - but if it was all in an agreeable root style that may have been avoidable. — xaosflux Talk 12:28, 4 May 2024 (UTC)[reply]
OK, would you then suggest requesting to change them directly in MediaWiki, as it seems from WP:BUG, or follow what System messages says: "General changes that could benefit other wikis can be submitted to translatewiki.net"? — Mikhail Ryazanov (talk) 23:16, 4 May 2024 (UTC)[reply]
Whether other projects follow English Wikipedia's MoS or not is their decision entirely. Even if you want it to, any conseus on that here has no effect. I am listing this as a reason to oppose extending your steward rights next year xaosflux, very disrepectful behaviour of you. Snævar (talk) 11:33, 4 May 2024 (UTC)[reply]
What?! What was disrespectful about it? Nardog (talk) 11:41, 4 May 2024 (UTC)[reply]
Sorry we are in disagreement. I certainly don't think that article style guidelines on this project should be forced on other projects. To be clear my suggestion is just that this would best start as an upstream discussion - which could certainly result in a WONTFIX. — xaosflux Talk 12:24, 4 May 2024 (UTC)[reply]

I recently noticed that {{ambox}}, when viewed using the night mode beta feature for advanced mobile web users, has a dark gray left border, not a colored one like when viewed using light mode. This is despite the relevant TemplateStyles specifying the color #36c () as the default left border color, with other colors such as #b32424 (), #f28500 (), and #fc3 () being specified for other ambox types. Does anyone know why this is? Thanks, Andumé (talk) 05:06, 4 May 2024 (UTC)[reply]

WMF has added some !importants to their dark style sheet probably (or maybe just deeply nested selectors it doesn't need) and currently doesn't have sufficiently granular settings to turn that off... Ignoring also that no-one has actually looked to see what the color for ambox should be. (Could be the same, could be different, etc.) Izno (talk) 16:22, 4 May 2024 (UTC)[reply]

"The time allocated for running scripts has expired."[edit]

Hi. I created Portal:Washington, D.C., which contains some random elements. Most of the time, the page loads properly, just a bit slow. However, sometimes the page will only load some of the elements, and returns "The time allocated for running scripts has expired.". It's weird how the elements that don't load are static, and elements that do load are random. How can I fix this? Thanks. '''[[User:CanonNi]]''' (talk|contribs) 11:09, 4 May 2024 (UTC)[reply]

CanonNi, looking at the profiling data the lua time usage was around 8 seconds (out of 10). It says:
MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::match 2960 ms 37.7%
MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::find 1580 ms 20.1%
MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::sub 1220 ms 15.5%

So it looks like some expensive match operations are being run. — Qwerfjkltalk 11:17, 4 May 2024 (UTC)[reply]
The only match operation in use are the {{Transclude selected recent additions}} and {{Transclude selected current events}} templates, which look for 3 matching terms in the ITN and DYK archives. Is there a way to optimize these templates? '''[[User:CanonNi]]''' (talk|contribs) 11:22, 4 May 2024 (UTC)[reply]

Thanks feature error message[edit]

Hi, Every time I try and thank editors either on here or on Simple Wiki I'm getting the following error message: Thank action failed (error code: internal_api_error_JobQueueError). Please try again.

Not sure if anyone's aware hence this message, Thanks, Kind Regards, –Davey2010Talk 13:38, 4 May 2024 (UTC)[reply]

Now works again, Strange. –Davey2010Talk 14:10, 4 May 2024 (UTC)[reply]

Edits not showing up on watchlist/recent changes[edit]

This edit at 13:21, this edit at 13:26, and this edit at 13:36 to MediaWiki:Gadget-popups.js by Novem Linguae are not showing up on recent changes or on watchlist. Any clue why? Nardog (talk) 17:08, 4 May 2024 (UTC)[reply]

I can replicate this, and it has happened before, see Wikipedia:Village pump (technical)/Archive 211#Some pages not appearing in the Watchlist. --Redrose64 🌹 (talk) 17:31, 4 May 2024 (UTC)[reply]
The revisions are in the revision SQL table, but not in the recentchanges SQL table. Quarry. Smells like a core bug related to saving an edit (as opposed to a core bug related to the recentchanges page). –Novem Linguae (talk) 17:36, 4 May 2024 (UTC)[reply]
I filed a bug to get some more eyes on it. –Novem Linguae (talk) 18:15, 4 May 2024 (UTC)[reply]
Although I have no evidence to suggest it, this could possibly be a less serious bug in the recentchanges view which hides deleted revisions from Quarry, which I often lazily think of as an actual table. Certes (talk) 20:27, 4 May 2024 (UTC)[reply]

how to stylize points on GeoJSON?[edit]

I'm trying to modify this GeoJSON:

commons:Data:Antelope_Creek_(Arizona).map

In particular, I'm trying to add the following as a new feature:

            {
                "type": "Feature",
                "geometry": {
                    "type": "Point",
                    "coordinates": [-111.3747023979435, 36.86262479172257]
                },
                "properties": {
                    "name": "Upper Antelope Canyon",
                    "stroke": "#00ff00",
                    "stroke-opacity": 1,
                    "stroke-width": 50
                }
            },

It gets added but the marker is gray instead of green (#00ff00).

Any ideas how I can change the color of the marker? TerraFrost (talk) 19:27, 4 May 2024 (UTC)[reply]

Chunked uploads[edit]

Does English Wikipedia have any way to do chunked uploads the way Commons does, or is there no way to upload a file larger than 100 MB? hinnk (talk) 08:05, 5 May 2024 (UTC)[reply]

Maybe, but is there a reason for uploading a large video to English Wikipedia? I don't think that a huge non-free video could ever meet the WP:NFC requirements and a free file would fit on Commons just as well. Or is it a free-only-in-the-US file? Jo-Jo Eumerus (talk) 08:33, 5 May 2024 (UTC)[reply]
Only public domain in the U.S. I've been working on silent-era films (including non-U.S. works), but a 100 MB limit on a feature-length video means extremely noticeable artifacts. hinnk (talk) 08:51, 5 May 2024 (UTC)[reply]
In that case, the only way to go about this would be by asking for a commons:Help:Server-side upload and specifying in the request that you need it on English Wikipedia. Jo-Jo Eumerus (talk) 09:36, 5 May 2024 (UTC)[reply]
The MediaWiki API supports chunked uploads. Whether our File Upload Wizard script makes use of that ability I don't know. Anomie 11:54, 5 May 2024 (UTC)[reply]

Can't delete page[edit]

Trying to delete Dheeraj Kher. Get following error:

To avoid creating high replication lag, this transaction was aborted because the write duration (6.239844083786) exceeded the 3 second limit. If you are changing many items at once, try doing multiple smaller operations instead. [063023b1-4d1e-462e-9306-ffba965548d1] 2024-05-05 17:23:44: Fatal exception of type "Wikimedia\Rdbms\DBTransactionSizeError" Tried more than once. Also tried deleting another page, but didn't wait for error. Deletiions are usually almost instantaneous.--Bbb23 (talk) 17:26, 5 May 2024 (UTC)[reply]

Hmm. Appears to be one of the pages missing from recentchanges, see #Edits not showing up on watchlist/recent changes above. Coincidence? Suffusion of Yellow (talk) 18:02, 5 May 2024 (UTC)[reply]
Possible but unlikely - I tried to delete it and it worked for me, and ran into several other instance of this error in a recent deletion spree but trying again always worked. * Pppery * it has begun... 18:08, 5 May 2024 (UTC)[reply]