Wikipedia:Village pump (technical)/Archive 206

Lots of backlinks needed to new article

Hi all, I've recently added an article on coal merchant, a term which didn't have an article before. Over 300 articles have the term in it, but don't have a link-is there any quick tool which would turn those terms into links or should I just treat it as an excuse to juice my edit count? Blythwood (talk) 00:54, 29 May 2023 (UTC)

I have created a few dozen. This seems like a manual task. Not every instance of someone being a coal merchant appears to merit linking, at least to my eye. BD2412 T 03:02, 29 May 2023 (UTC)
Wow, that's incredibly kind, thanks! Will add more myself. Blythwood (talk) 05:14, 30 May 2023 (UTC)
@Blythwood, there's the Find link tool. — Qwerfjkltalk 08:17, 29 May 2023 (UTC)

Deleted article shows up in Help out section of Community portal

Currently, over at the Community portal in the Fix wikilinks subsection of the Help out section, there's a red link to an article that was deleted two days ago (The Most Racist Soccer League in the World). Obviously it's pointless to ask anyone to fix wikilinks in a deleted article. Why is it showing up in the list at all? Is there a cache somewhere which needs purging? 199.208.172.35 (talk) 18:19, 30 May 2023 (UTC)

Wikipedia:Community portal/Open tasks is updated every 30 minutes by SuggestBot. It may be affected by the issue at #Unrelated replag. It cannot be helped here. PrimeHunter (talk) 19:28, 30 May 2023 (UTC)

Empty Edit-Notices appearing on pages

Hey there!

This evening I noticed that pages that I went to edit started including an edit notice icon upon hitting the Edit link. It happens in the desktop site, the mobile (iOS) app, and in various browsers. I thought maybe it was something misbehaving in various JS scripts I used, but after disabling them and clearing my local caches, I’m still seeing odd behaviors. There aren’t any incidents posted on the wikimediastatus.net site, but there is a noticeable uptick in error counts for what that’s worth. I’ve gone down several other rabbit holes trying to figure out what might have been causing this on my end but I haven’t a clue now.

Any ideas here — is it just me or is something else up on WP?

Thanks!

Pedantical (talk) 23:13, 26 May 2023 (UTC)

I am seeing the same thing, on every page I have tried, in both VisualEditor and the 2017 wikitext editor (the "New Wikitext Mode" beta feature), but not in the classic wikitext editor. I am also seeing the same thing on testwiki:. Suffusion of Yellow (talk) 00:07, 27 May 2023 (UTC)
Ahh didn’t test that! Good to know. I suppose I ought to submit a bug report… thanks for confirming that I’m not going insane! Pedantical (talk) 00:33, 27 May 2023 (UTC)
@Pedantical please report issues with that beta feature here: mw:2017_wikitext_editor/Feedback (you can also open a phab of course, but then let that page know as well). — xaosflux Talk 09:15, 27 May 2023 (UTC)
Use this link for creating a bug on that. — xaosflux Talk 09:16, 27 May 2023 (UTC)
@Pedantical and Xaosflux: Now already reported at phab:T337633. Suffusion of Yellow (talk) 19:27, 27 May 2023 (UTC)
I've been seeing it on both the Chrome application and iOS app I've been using Wikipedia with. Replying here so as to keep track of this thread until the error is resolved. Carlinal (talk) 20:50, 30 May 2023 (UTC)

Long user name

A new account has been blocked because its 79-character username is an advertising slogan, and its spammy contributions reverted. Is there, or should there be, a limit on user name length? I see that we have hundreds of 85-character usernames (mostly with zero edits), and none with 86 or longer, which probably answers my first question. Certes (talk) 11:37, 31 May 2023 (UTC)

Consider a user signature, of the default uncustomised form. For example, your own sig as used above, which is 50 characters long, in which your user name appears three times at six characters each, so what we might call the signature's "overhead" is 50 - 3*6 = 32 characters. That is a fixed amount independent of the length of the user name. We don't permit sigs longer than 255 characters (WP:SIGLEN) and (255 - 32) / 3 = 74.333, so the longest practical username will be 74 characters long. I don't think the software is aware of that limit, so doesn't enforce it. --Redrose64 🌹 (talk) 12:57, 31 May 2023 (UTC)
I would support reducing the limit, except that usernames that are not in English appear to take up considerably more characters than their apparent length or English translation. For example, all of the following are considered 85 characters long:
  • ठाकुर अमरेन्द्र प्रताप सिंह गौर
  • कुंवर अभिनेंद्र प्रताप सिंह चिब
  • मानस मंदाकिनी रागिनी सरस्वती जी
This also appears to occur outside Hindi; both శ్రీమాన్ కొండపాక రంగాచార్యులు, a Telugu name, and خپل کور فاونڈیشن (یتیم بچوں کی کفالت کا ادارہ)), an Arabic name, are 83 characters long.
Some of these names may be inappropriate - the Arabic one appears to relate to a business - but I don't think we can guess that based on their length. However, it may be worth shortening it to the 74 character length imposed by WP:SIGLEN, given that is a technical restriction? BilledMammal (talk) 13:09, 31 May 2023 (UTC)
(edit conflict) SIGLEN is specified in terms of characters which are not the same as bytes except for the 128 characters in the Unicode "Basic Latin" block (U+0000 through U+007F inclusive). The three examples in your list are all 85 bytes (assuming UTF-8 encoding), but considerably fewer characters - most of these characters are three bytes per character. --Redrose64 🌹 (talk) 13:23, 31 May 2023 (UTC)
It is technically infeasible to lower the signature character length in MediaWiki, doing so would fracture SUL. We (read: I) had last raised it during SUL finalization, because we were forcing usernames to be longer. Legoktm (talk) 16:08, 31 May 2023 (UTC)
mw:Manual:$wgMaxNameChars is set to 85 for Wikimedia wikis in https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php. It counts bytes. Some non-English characters use multiple bytes. The English Wikipedia once made a limit of 40 in MediaWiki:Titleblacklist. I'm not sure whether it was bytes or characters. Maybe it was removed because of the unified login system. The 255-character limit on signatures is for customized signatures using the "Signature" field at Special:Preferences. I assume the default signature in MediaWiki:Signature is allowed to expand to any length. Somebody with an 85-byte username can still make a customized signature if they want but they would have to only use their name once or twice. PrimeHunter (talk) 13:12, 31 May 2023 (UTC)
@PrimeHunter Somebody with an 85-byte username can still make a customized signature if they want but they would have to only use their name once or twice. - It is trivially easy to workaround this limit, you can put your custom signature on a page in your userspace then set your custom signature to substitute this. If you set your custom signature to {{subst::Main Page}} this would be counted as a 20 character signature. see User:The Earwig/Signature for an example of this in use. 163.1.15.238 (talk) 14:21, 31 May 2023 (UTC)
SIGLEN also applies to sigs generated by template substitution. Whilst User:The Earwig/Signature is 934 bytes in total, it WP:SUBSTs cleanly to something a lot shorter - there are several variants coded inside, but the longest possible is
&#8239;[[User:The Earwig (alternate)|<span style="opacity:0.8;">The</span>&nbsp;Earwig&nbsp;<sub>alt</sub>]]&nbsp;([[User talk:The Earwig|talk]])
which is 146 characters. --Redrose64 🌹 (talk) 15:39, 31 May 2023 (UTC)
It's technically possible to work around the limit but disallowed by the English Wikipedia. There may be other wikis without such a policy, and there may be users who are not discovered here if they only break the limit a little or make few signed posts. PrimeHunter (talk) 16:55, 31 May 2023 (UTC)

So, I've attempted to edit Bachelor of Science multiple times now, and each time I've tried, I've run across the standard Wikimedia error page stating a technical error stating the site may be down. However, since I'm able to make this edit, that's obviously not the case. In addition, I was able to make an edit on a different page in the article space, CSD, with no issues, so it doesn't seem to be a namespace issue. Is anyone able to replicate this issue? And if so, anyone know what's going on? Steel1943 (talk) 21:36, 31 May 2023 (UTC)

Worked for me — can you try again, and copy/paste the exact error you get? — TheresNoTime (talk • they/them) 21:44, 31 May 2023 (UTC)
@Steel1943: Are you on a shoddy connection? I sometimes get the "standard Wikimedia error page" (503 error) when I'm on a cellular connection with bad reception. I don't know if there's anything that can be done except make the error message more meaningful. @TheresNoTime: Don't know if it's related to this, but attempting to save User:Suffusion of Yellow/sandbox7 (500kb of random text) with tc qdisc add dev wlan0 root netem loss 40% gave me:
Request from x.x.x.x via cp4039 cp4039, Varnish XID 388742975
Error: 503, Backend fetch failed at Wed, 31 May 2023 23:07:56 GMT
Suffusion of Yellow (talk) 23:24, 31 May 2023 (UTC)

HTML expert needed, relating to the id attribute

Please could an expert in HTML (particularly concerning the id= attribute) provide further input at Template talk:Anchor#When anchor name duplicates heading name. --Redrose64 🌹 (talk) 09:13, 29 May 2023 (UTC)

Looks like you're both right for different kinds of "right". You're correct about the HTML being invalid according to the spec, and about which element is specifically targeted by the link (i.e. the span, not the h3). But the other party does not seem to care about any of that, which is why they keep rejecting your arguments. All they seem to care about is whether browsers will scroll to the intended location in the document when presented with that specific (invalid) HTML, and they're right that they will. OTOH, the spec does specifically say that the first element with the ID in tree order is the one browsers are supposed to go to, so you were wrong about there being undocumented behavior being relied on there. And their talk about "duplicated IDs to the same span element" is nonsense. Anomie 11:46, 29 May 2023 (UTC)
@Anomie: Thanks, but please comment in the ongoing discussion. --Redrose64 🌹 (talk) 18:56, 29 May 2023 (UTC)
Somebody please step in, it's descended to personal attacks. Also, somebody here is misunderstanding the phrase "the id attribute value must be unique amongst all the IDs in the element’s tree". --Redrose64 🌹 (talk) 08:34, 30 May 2023 (UTC)
@Redrose64 @Timeshifter That discussion is now several pages long, and I'm having a hard time figuring out what it's actually about. Can you state your question in one paragraph? (Possibly agree together on what the question is first?) I'd be happy to provide advice then. Matma Rex talk 13:04, 30 May 2023 (UTC)
Matma Rex. The last third of the thread is easier to follow. I can summarize it in this saying: "If it ain't broke, don't fix it." The thread title is "When anchor name duplicates heading name". I say it does no damage. Only 2 people so far seem to get what I am saying: Johnuniq and Stepho-wrs. I suggest reading their comments first. Others make claims of possible apocalyptic damage if a certain rule is broken. But no one has yet shown that it does. And I question whether the spirit of the rule has been broken, since the anchor spans are all within one set of heading tags in the page source: H2, H3, or whatever they happen to be. The rule actually needs to be rewritten at the highest level. In the meantime it should be ignored. And it will be because editors will see no damage. And using the same name for both anchor name and heading name has an advantage. I explained that advantage several times. --Timeshifter (talk) 15:08, 30 May 2023 (UTC)
As far as I can tell, every one who has weighed in has understood both positions, and so it's not necessary for you to repeat your views. For this particular portion of the spec, respecting its literal word is required for compliance. The priority of compliance to this particular aspect is what's in question. I do think that it's not an approach that scales up well—it would be onerous to include anchors for all headings to try to future proof them. Thus I don't feel it should be recommended as a general practice. isaacl (talk) 18:33, 30 May 2023 (UTC)
At no point have I recommended anchors for all headings. --Timeshifter (talk) 18:39, 30 May 2023 (UTC)
The arguments you have made are in support of the practice in general, rather than discussing why it's suitable for the specific circumstances surrounding a specific edit. (For your scenario on Template:Flagg/doc, you might consider labeled section transclusion using the <section /> tag to label the desired section for transclusion.) isaacl (talk) 18:57, 30 May 2023 (UTC)
@Matma Rex: The question is whether to use code like == Heading <span id="Heading"></span> == to make section links continue to work if the section is later renamed without updating links to it. Reason against: It generates duplicate id's and the HTML specification says id's must be unique. Reason for: It works and doesn't appear to have negative consequences in practice. PrimeHunter (talk) 15:45, 30 May 2023 (UTC)
PrimeHunter - this span id issue came up in a section title edit on the Thyroid article, where I also questioned the IP editor about the terms included, which seemed vague and minor.
I see your explanation. I could be wrong about my revert on the need for subhead coding. Comments? Zefr (talk) 16:13, 30 May 2023 (UTC)
(edit conflict) @Matma Rex: Timeshifter made this edit; I reverted it on the basis that:
  • it introduced invalid HTML in the form of a duplicate ID
  • it's redundant because the exact same anchor is already present, being generated by the MediaWiki software
  • it complicates the heading markup unnecessarily
  • whilst it is true that section headings occasionally get changed, thus breaking inward links, there are millions of headings on Wikipedia. I see no reason to pre-emptively add anchors just in case. The time to add the anchor is when a section heading is altered, at which point an anchor should be set up for the previous heading name.
The ensuing dispute revolves around whether the HTML is invalid or not, and if so, why. --Redrose64 🌹 (talk) 16:36, 30 May 2023 (UTC)

Template:Anchor

We need some experts to comment here:

--Timeshifter (talk) 01:18, 30 May 2023 (UTC)

Redrose64 asked for the same thing just above. I'll move this to a subsection of that section; feel free to see my reply there. Anomie 01:22, 30 May 2023 (UTC)
Anomie and other interested people. Please go directly to my later comment that starts with "Please see User:Timeshifter/Sandbox196." Otherwise you'll be going in circles and dealing with old info. --Timeshifter (talk) 01:29, 30 May 2023 (UTC)
It's a political question, not technical. It could be argued that if a duplicate anchor in the wikitext leads to invalid html, MediaWiki should be fixed so it does not generate invalid output. Browsers are never going to explode if a duplicate id occurs and there is currently no reasonable way to ensure such duplication never occurs. Johnuniq (talk) 02:09, 30 May 2023 (UTC)

Johnuniq. It looks like the guidelines go back and forth on this. See WP:Target:

When a section title is known to be the target of incoming links, the Wikipedia Manual of Style suggests creating a redundant anchor with the same name as the section title, so that such links will continue to work even if someone renames the section without creating an anchor with the old name. Technically, the redundant section and anchor names result in invalid HTML.[1] However, when a document contains multiple tags with the same id value, browsers are required to return the first one, so in practice, this is not a problem.[2]

References

  1. ^ "The id attribute". HTML - Living Standard — Last Updated 2 June 2022. WHATWG. Retrieved June 3, 2022.
  2. ^ "getElementById". DOM - Living Standard — Last Updated 12 May 2022. WHATWG. Retrieved June 3, 2022.

--Timeshifter (talk) 18:25, 30 May 2023 (UTC)

I examined the guideline histories. The suggestion to make a duplicate id was added to Wikipedia:Redirect#Targeted and untargeted redirects 6 October 2019 [1] with reference to what Wikipedia:Manual of Style/Linking said at the time. It was removed from the latter 4 November 2020 [2] but remained in the former with a now obsolete claim that Wikipedia:Manual of Style/Linking says so. This is only indirectly a redirect issue in some cases where a redirect is made so I think it should be removed from Wikipedia:Redirect if it's not supported elsewhere. PrimeHunter (talk) 21:27, 30 May 2023 (UTC)
They had it right the first time. See: User:Timeshifter/Sandbox197. Search and highlight all instances of id=
I followed the incorrect rule about not creating an anchor to a current heading. First before the anchor was added I changed the heading a few times. No duplicate IDs showed up.
Then I created an anchor to an old heading. Then I changed the heading again. A duplicate ID showed up when I changed back to an old heading. This happens from time to time. So fighting duplicate IDs in between header tags is a lost cause. Mediawiki creates them.
And as I have said several times using the current heading as an anchor is more future proofed. An anchor link still works even if some errant editor removes the anchor span code. At least until the heading is changed. --Timeshifter (talk) 05:29, 31 May 2023 (UTC)
It's hard to follow what you are trying to say at User:Timeshifter/Sandbox197. If you are claiming that MediaWiki makes duplicate id's on its own without one of the id's being added by the wikitext then just save a page with it and link it. We know how to view the HTML of a page. If you are merely saying that there will be duplicate id's when a saved revision has an id added by wikitext which matches a section heading in that revision then of course, we know that. If you are then saying that the fact this may happen on some pages is a reason for allowing it then it's an argument which makes no sense. Nobody expects all our 58 million page to be free of duplicate id's or other errors. The question is whether we should allow to add them deliberately. PrimeHunter (talk) 22:32, 31 May 2023 (UTC)
I am saying duplicate IDs in headings are an inevitability, and cause no problems. And we shouldn't be discouraging people from using anchors with the same name as a current heading. Because there is an advantage to it. But I realize now that there are other projects on Wikipedia and elsewhere that are more important, and I should have bailed out of this discussion early on when I saw that logic did not apparently matter, and ridiculous rules mattered more.
And I respect your work elsewhere on Wikipedia, and I am sorry I distracted you from that work. --Timeshifter (talk) 00:16, 1 June 2023 (UTC)

ReferenceExpander

For those who might not be aware, ReferenceExpander has been causing issues, and a large cleanup project is underway to repair citations damaged by careless use of the script. It's also currently at MFD. At the moment, an AN thread is serving as the de facto venue for discussing the cleanup project. — SamX [talk · contribs] 05:49, 1 June 2023 (UTC)

An A/B test will be launched today

 

Hey everyone. The A/B test I announced almost a month ago and then two weeks ago will finally be launched later today, Wednesday May 31. You may see it working on Hebrew Wikipedia if you're bucketed to the tested half of the logged-in users.

A brief reminder what this is about:

  • We're testing the new look (it's called Zebra) of the Vector 2022 skin in response to the volunteers' comments.
  • Compare the versions without the tested look and with the tested look. If you're not sure what's changing, pay attention to the background colors and borders around the content area and the side menus. Pin the left sidebar as a side menu.
  • More visual separation between regions of the interface may help draw more focus/attention to the content, make it easier to stay focused on the content while reading, and reduce screen glare and thus eye strain.
  • This is only a two-week test. After that, we'll roll back to the previous (all-white) look. Decision whether Zebra would stay will be made in July.
  • How to keep the new look? The URL parameter forcing it is ?VectorZebraDesign=1. While it's technically possible to use this to, say, create a browser plugin allowing us to only use Zebra or preventing us from seeing Zebra, we discourage from using it and getting used to it because this code will be temporary, just like the test itself.

If you'd like to dig deeper: Our earliest discussions about this > next discussions about this > user testing > original announcement about the A/B test > previous announcement.

I'll be immensely grateful for your collaboration, especially for explaining other Wikipedians why this change is happening and why there will be a change again in two weeks. I understand it may be confusing (like any change) and also worrying a bit (because lots of people may want to keep the change). Also, thanks for the feedback which led us to creating Zebra in the first place.

Thank you! SGrabarczuk (WMF) (talk) 01:57, 31 May 2023 (UTC)

 
Dropdown menus not working as intended
@SGrabarczuk (WMF): This breaks some of the dropdown menus that I use.   --QuickQuokka [⁠talkcontribs] 20:46, 31 May 2023 (UTC).
I have filed phab:T337893 about this. I also discovered a Safari specific issue which is tracked as phab:T337891. —TheDJ (talkcontribs) 21:09, 31 May 2023 (UTC)
Similarly, the left-hand navbar has random blue text prefixed with "Toggle" appearing on the 'opened' sections when I click on it. Bit annoying. Can report this has happened on desktop view on Safari MacOS and also iPad OS. Hullian111 (talk) 06:19, 1 June 2023 (UTC)
Can't say I'm noticing any difference between the two versions, even when I zoom to 100%. —Tenryuu 🐲 ( 💬 • 📝 ) 21:11, 31 May 2023 (UTC)
If you look at that image above and right and do not see a general gray background against which the main "content" has a white background ("white panels"), then you need to calibrate your monitor's contrast. Izno (talk) 21:13, 31 May 2023 (UTC)
I can see it in the image provided, but I don't see it in the A/B example test pages given above when I try to look at them. —Tenryuu 🐲 ( 💬 • 📝 ) 21:18, 31 May 2023 (UTC)
You should also be able to see it in the with the tested look link. If you can see it in the image, that rules out hardware I think. How old is your browser? Izno (talk) 21:33, 31 May 2023 (UTC)
Most recently updated Chrome browser. Could be one of my Chrome extensions or a .css conflict, but I'm not particularly concerned about that if that's the case. —Tenryuu 🐲 ( 💬 • 📝 ) 22:26, 31 May 2023 (UTC)
Loved the new design. Is there any possibilities in the pipeline, regardless of A/B test result, for permanent opt in like through Preferences > Skin Preferences (like the existing "Enable responsive mode" and "Enable limited width mode" toggle) in which whoever interested can opt in? Paper9oll (🔔📝) 13:14, 1 June 2023 (UTC)
Hello @Paper9oll and @QuickQuokka (answering the question asked below). Paper9oll, I'm very glad to learn that you like the new design. QuickQuokka, thank you, your kind words made me blush!
Currently, there's no way of opting out or "hard opting in". Zebra's code is written in a way assuming that it will either be dropped altogether or (more likely) become the default and only look. We don't have plans for making these versions (all-white and Zebra) parallel to choose between. Currently, the only way to see a more white look is to change the user CSS.
That said, I'd like to encourage everyone interested to subscribe to our newsletter which makes it easier to follow our updates. As I previously wrote, we most likely will be working on dark mode and other customizations like font size. Our plan isn't final yet, but among the options, besides dark mode, there might be sepia and/or an all-white version. This is not a promise, though!
Also, thanks for filing all the bug and gadget incompatibility reports. Here you can follow all our work (where you can check out what issues have been reported), and here's the two-week sprint we're starting next week (where we put the already planned work).
Thank you and have an otherwise problemless Thursday. SGrabarczuk (WMF) (talk) 15:20, 1 June 2023 (UTC)
@SGrabarczuk (WMF) Noted, thanks for the reply. Paper9oll (🔔📝) 15:22, 1 June 2023 (UTC)
  • The new design incorrect generates an underline on the main page (where the article title would be) despite there being no title. This line is correctly excluded in the previous version. Anarchyte (talk) 13:26, 1 June 2023 (UTC)
  • What puzzles me is this. If the changes were intended to improve visual separation of different blocks in the page by means of borders around certain blocks, and the darkening of backgrounds outside those blocks (both of which I am in favour of), how has it affected several other areas? --Redrose64 🌹 (talk) 16:03, 1 June 2023 (UTC)
    It appears to be because Zebra uses selectors with higher specificity to override the default CSS, and some other CSS is also overridden by Zebra like collateral damage. Nardog (talk) 16:12, 1 June 2023 (UTC)

Any way to opt out of A/B testing on Wikipedia?

 
Dropdown menus not working as intended

I saw that recently, there has been a new experiment to once again change up the skin from Vector 2022 to something new called Zebra. This kind of messes up dropdown menus among other things. I have two questions:

  1. Where should I report this bug properly? I know phabricator exists, but I have never used it before and have no idea how it works at all. Already reported it on the village pump to the wonderful Mr. Szymon Grabarczuk of the Wikimedia Foundation.
  2. How do I opt out of future A/B testing (if possible)?

-- QuickQuokka [⁠talkcontribs] 20:54, 31 May 2023 (UTC)

@QuickQuokka, no one here is likely to know more than the VPT folks. I'd recommend asking your other questions there. 199.208.172.35 (talk) 20:59, 31 May 2023 (UTC)

Issues of wikipedia?

In my mobile wikipedia is not working if you can do anything contact on my email. Herrybrook (talk) 11:12, 31 May 2023 (UTC)

The app you linked is not connected with Wikipedia. If that app does not work for you, please contact its supplier rather than us. If you are unable to use Wikipedia (for example, read or edit this page) on your mobile, please provide further details of how you tried to access it, what you expected to happen and what actually happened. Certes (talk) 11:20, 31 May 2023 (UTC)
I was bold and removed the link; the app it links to has nothing to do with Wikipedia and this being this user's first and only edit, makes me feel like this is some kind of SEO or spam situation. --Golbez (talk) 16:15, 1 June 2023 (UTC)

Can I get a list of cite web templates that probably have excessive numbers of authors in the fields?

I keep coming across instances of {{cite web}} templates with multiple author names crammed into the "first=" or "first1=" parameter (for example, this template for which I have just fixed spacing). I believe this is caused by errant scraping by citation generators. Whatever the cause, I would like to fix these to the extent possible. The tell for them is usually a comma between names, so I would like a list of all pages that contain a {{cite web}} template with a "first=" or "first1=" parameter, where that parameter contains a comma. If someone can give me the list, I'll take it from there. Cheers! BD2412 T 23:23, 30 May 2023 (UTC)

Edited those two CNN sources as "cite news". For the longer author list, I edited the names in Vancouver format, and used "display-authors" to limit the display. Hope that is useful. Zefr (talk) 23:42, 30 May 2023 (UTC)
Basically guaranteed to time out but I got a couple hundred results.
You basically want Category:CS1 maint: multiple names: authors list but for first name fields (which might also be an interesting category for you to work on). You should stop by Help talk:CS1 for that. Izno (talk) 23:47, 30 May 2023 (UTC)
"200 pages in this category, out of approximately 37,116 total", sounds about right. I'll get on it. Cheers! BD2412 T 23:52, 30 May 2023 (UTC)
Do note that category is just this case with |last= and |author=, rather than |first= as you requested. But have fun! Izno (talk) 23:53, 30 May 2023 (UTC)
I suppose there is not one for |first=? That is primarily where I am seeing the issues. BD2412 T 00:12, 31 May 2023 (UTC)
30k issues in the last name is an issue too. :) As I said, Help talk:CS1 if you think it would be beneficial to catch some of this in the first name field also. Izno (talk) 00:30, 31 May 2023 (UTC)
Also guaranteed to time out, got 2500+ hits for a single comma in |firstn=. Adding a maint cat for this might be a good idea. I'll do it tomorrow.
Trappist the monk (talk) 00:39, 31 May 2023 (UTC)
Excellent, thanks. I'll keep an eye out for it. I suspect that there may be some patterns with specific regularly cited journalist teams that can be addressed quickly. BD2412 T 00:43, 31 May 2023 (UTC)
A note: I poked through a few of the search results, and found a common pattern that is apparently caused by a bug in the beta Visual Editor's automatic citation template insertion tool. See this discussion for an initial report. – Jonesey95 (talk) 01:23, 31 May 2023 (UTC)
Probably not a bug directly in Citoid but a failure in the Zotero translator to deal with wherever the byline is that it's pulling. You can file a task in the Citoid project for each problematic domain. IznoPublic (talk) 02:25, 31 May 2023 (UTC)
I see it happen when using Re/Fill all the time, particularly when pulling citations for CNN articles. BD2412 T 19:14, 1 June 2023 (UTC)
Implemented in the cs1|2 sandbox. See Help talk:Citation Style 1 § multiple names in |first=.
Trappist the monk (talk) 12:09, 31 May 2023 (UTC)
@Trappist the monk: Awesome, thanks! BD2412 T 19:14, 1 June 2023 (UTC)

Is it possible for MediaWiki to automatically create anchors to previous heading names?

Is this technically possible? Either in the header wikitext, or better yet, only at the page source level within the header tags.

Only for section names that change. This would make section linking permanent. It would greatly expand the utility of Wikipedia. For all sections in articles, talk pages, etc..

This would not produce duplicate IDs except in the rare case that a section name goes back to a previous section name. See example in User:Timeshifter/Sandbox197.

Maybe Mediawiki could automatically remove that duplicate ID:
<span class="anchor" id="Current heading"></span> - in the wikitext.
<span class="anchor" id="Current_heading"></span> - in the page source.

If it is automatic, then people would quickly notice span links in all section headings that change. The span links would be within the equal signs of the wikitext heading. But after the current heading, so that it is least interfering, and most intuitive. All changes in the heading would have anchors, so no links to sections would ever break.

It could be done only at a deeper level, at the page source level, so that editors never see anchor span tags in the header wikitext again.

Note: To be clear, I have given up on adding individual anchors manually to the current heading name. See #Template:Anchor discussion, and the discussion above it.

This is about an automatic process where editors wouldn't have to do anything. And in the best scenario they would see nothing added in the header wikitext. --Timeshifter (talk) 19:27, 1 June 2023 (UTC)

What defines a "previous" name ? There is no such thing in wikitext, it is just == something == surrounded by other random characters. Think of it this way. What if I take the entire text on this page, and then use it to replace whatever was your user talk page... Now what are the 'previous' anchors in this new revision. I honestly wouldn't know. And neither would a computer. —TheDJ (talkcontribs) 19:46, 1 June 2023 (UTC)
Mediawiki changes the heading in the page source when a heading is changed:
<span class="mw-headline" id="Current heading">
Could Mediawiki be made to notice that change in the current heading?
Also how does subscribing to individual sections of talk pages work? I looked in the page source of a talk page and could not find the word "subscribe" except when subscribing to the whole page.
Does subscribing to individual talk sections work after the section heading is changed?
If so, how is it done? Could that be used to add anchors to the previous heading?
Apparently, subscribing continues to work after a section name change:
https://phabricator.wikimedia.org/T263820
https://phabricator.wikimedia.org/T262991
https://phabricator.wikimedia.org/T274685
https://phabricator.wikimedia.org/T262990
https://www.mediawiki.org/wiki/Topic:W3c084ihivgkm9vt
--Timeshifter (talk) 20:34, 1 June 2023 (UTC)
Discussion notifications are implemented by the software storing subscriptions to the first comment, which has a unique ID assigned to it that includes the timestamp. This allows notifications to be performed even if the thread (including the first comment) is moved to another page. As I understand it, the headings are not used in the notification mechanism. isaacl (talk) 20:45, 1 June 2023 (UTC)
Thanks. I think this is the unique ID for this thread starting at "h"?:
commentname=h-Timeshifter-20230601192700
That is part of the unsubscribe link. The number is the date and UTC time of the first comment by me in this thread.
Maybe the unique ID could be used as the unique heading anchor for incoming links to this section:
Wikipedia:Village pump (technical)#h-Timeshifter-20230601192700
The unique anchor could automatically be put after the heading, but between the wikitext equal signs:
<span class="anchor" id="h-Timeshifter-20230601192700"></span>
A more elegant solution (without adding anything to the header wikitext) would be a "Copy link" button that produces this wikitext link:
[[Wikipedia:Village pump (technical)#h-Timeshifter-20230601192700|Wikipedia:Village pump (technical)#Is it possible for MediaWiki to automatically create anchors to previous heading names?]]
It shows up as this:
Wikipedia:Village pump (technical)#Is it possible for MediaWiki to automatically create anchors to previous heading names?
The anchor ID would be at the page source level, between the header tags.
I noticed that I am still subscribed to a VPT thread recently moved to the archives. So a unique anchor would work when sections are moved to archives.
I don't see any subscribe links on sections in articles. Only on talk pages.
--Timeshifter (talk) 00:45, 2 June 2023 (UTC)
Comments are identified by signatures. The notification mechanism does not operate on articles. The underlying challenge is if someone is restructuring an article, the section may no longer be an appropriate target for incoming links. If a new feature were to be introduced, personally I would prefer it to be a more general one of helping to find incoming links to a given URL fragment. This would allow editors to re-evaluate the links and determine the best target for them. isaacl (talk) 01:02, 2 June 2023 (UTC)

I don't understand. Could you explain further please? --Timeshifter (talk) 02:04, 2 June 2023 (UTC)

Personally, I would prefer a feature that makes it easier for me to find links pointing to a specific location on a page (that is, using the #fragment_identifier at the end of the URL). Thus if I wanted to restructure a page that affected any internal targets within it, I would be able to find any links pointing to those targets and evaluate what would be the best way to deal with them. (That being said, I'm not sure if the opportunity cost of implementing this feature is worthwhile.) isaacl (talk) 03:46, 2 June 2023 (UTC)
OK, I was not understanding "URL fragment" from your previous comment. #fragment_identifier is clear to me now. It encompasses old and new versions of a heading. It would be nice if there were a "WhatLinksHere" that worked for section headings. That showed where links to that heading were found. All versions of those links.
I am wanting a no-effort method based on Mediawiki automatically creating anchors anytime a section heading in an article is changed. It already automatically changes the span in the page source:
<span class="mw-headline" id="Current heading">
Maybe instead of deleting the old version it could convert it to
<span class="anchor" id="Old heading"></span>
That would mean from now on all links to article headings would be permanent. With no work required on the part of editors at all. --Timeshifter (talk) 04:34, 2 June 2023 (UTC)
Yes, rest assured, I understood your proposal. isaacl (talk) 05:15, 2 June 2023 (UTC)

Watchlist quirk

 

Has something changed in the last couple of days with the watchlists? In the past the list would tell me how many changes on a heavily edited page (AN & ANI are where i have noticed it) since i last visited it, if the last visit was the same day. At least twice in the past, perhaps, three days it is telling lies, in that i haven't visited a page but it shows a small number ~ lesser than the total changes in the day ~ since i last visited. It doesn't matter ~ i know where i've visited and the detail is just an added benefit, not an essential part of the watchlist ~ but i am curious about why the behaviour has changed. In case i'm not explaining clearly, i'm adding screenshot from a little while ago; i haven't visited either AN or ANI today, but both show a number of changes since i did? Happy days, ~ LindsayHello 11:06, 1 June 2023 (UTC)

Addendum: I just revisted my watchlist and the numbers have changed, even though i've still not visited AN or ANI today. Strange. Happy days, ~ LindsayHello 11:07, 1 June 2023 (UTC)
Could you have accidentally clicked "Mark all pages as visited"? Certes (talk) 11:32, 1 June 2023 (UTC)
LindsayH is noting that the figures seem too high; if they had marked all pages visited, that would zero the figures, not increase them. --Redrose64 🌹 (talk) 11:54, 1 June 2023 (UTC)
It's a good idea, though i don't think i've ever actually clicked that button. I didn't, though; as the screenshot shows, not all pages have some changes since last visit, which they would if i had clicked it ~ Free grace theology, for example, shows 4 changes, but none since last visit. Happy days, ~ LindsayHello 11:58, 1 June 2023 (UTC)
Here's an idea. Are the "changes since last visit" figures obtained directly from the live data tables, or from the Wiki Replicas? If the latter, we've had serious WP:REPLAG issues over the last week (see earlier in this page) and the Wiki Replicas may still be catching up, so data obtained from those can change without apparent explanation. --Redrose64 🌹 (talk) 12:01, 1 June 2023 (UTC)
Watchlist is a query against the database directly. Izno (talk) 16:53, 1 June 2023 (UTC)
MediaWiki features in production site don't use wiki replicas. They use the production replicas which don't lag by more than 5-10 seconds. If they do, mediawiki locks itself up in readonly mode and waits for the replicas to catch up. – SD0001 (talk) 07:28, 2 June 2023 (UTC)

XFDcloser removing RCAT templates when retargeting redirects

There is a bug with the XFDcloser gadget causing it to remove WP:RCAT templates and all other content in a redirect when closing an RfD discussion that results in a retarget. Here is a recent example. This creates problems for the few editors who watch redirects, as they must manually re-add the RCAT templates (and other content such as categories and hidden notes) if the closer neglects to do so, which is often the case. @Steel1943 and I have both raised this issue on the gadget's talk page, and I know others have noticed this bug as well, but it appears that the gadget's maintainer, Evad37, is no longer active on Wikipedia. I hope all is well with them, but I'm hoping someone else here will be able to address the bug and hopefully push out a fix. InfiniteNexus (talk) 22:20, 1 June 2023 (UTC)

XFDcloser codebase is at https://github.com/wikimedia-gadgets/xfdcloser. Several people including myself have merge access. Will be happy to review if anyone raises pull requests. (The onwiki code is minified, so not editable directly.) – SD0001 (talk) 07:37, 2 June 2023 (UTC)

Convenient Discussions and Twinkle refuse to load

Every so often, Twinkle will not show up in the top bar, and CD will pop up a message saying that data could not be loaded. Does anyone know why this might happen? Here is a link to my browser console, for anyone interested. NW1223<Howl at meMy hunts> 00:12, 4 June 2023 (UTC)

Graphs error message, an idea to make it more useful

Would it be possible to modify the error message displayed in place of graphs at this time to give a link to the page where the data is? I'm guessing that:

probably wouldn't work, but I'm not sure how far from working it is. (Likely, "very")

But something similar (in output) would be good if it is workable. I didn't see anything in the original discussion about this, but since graphs may be down for a while (I can't see any time-til-fixed estimates on Phab, except from very early on), it might do to try to mitigate the effect somewhat. Mako001 (C)  (T)  🇺🇦 12:09, 3 June 2023 (UTC)

The message is MediaWiki:Graph-disabled but the graph data is only in the generated wikitext for the page. There is currently nothing suitable we could link. Something very unsuitable to link for COVID-19 pandemic in India: Search for <graph> here. That's the entire template-expanded wikitext for the article. The two <graph> mark the start of the data for the two missing graphs. Good luck getting something useful out of that. PrimeHunter (talk) 20:09, 3 June 2023 (UTC)
To start you off, it's in JSON format with the quotes escaped. --Redrose64 🌹 (talk) 20:49, 3 June 2023 (UTC)
Darn it. It seems my suggestion would only have a chance of working for a (very) limited number of graphs. It was based on graphs showing items in categories over time. I guess this can be closed now. Mako001 (C)  (T)  🇺🇦 02:16, 4 June 2023 (UTC)

New proposed policy on "User Scripts and Gadgets that load third-party scripts"

meta:Third-party resources policy. meta:Talk:Third-party resources policy. I'm not sure exactly what effect this will have, but it seems like this policy might forbid user scripts and gadgets from interacting with third party services. May be of interest if, for example, your user script uses a third party API or something. –Novem Linguae (talk) 17:00, 5 June 2023 (UTC)

(This should be seen as an advertisement to discuss that currently-proposed policy at meta. Izno (talk) 17:02, 5 June 2023 (UTC))

"Fatal error" AFD stats

AFD stats worked fine earlier today:

https://afdstats.toolforge.org/afdstats.py?name=Maile66&max=&startdate=&altname=

What I'm not getting is:

Traceback (most recent call last): File "/data/project/afdstats/public_html/afdstats.py", line 90, in main db = MySQLdb.connect(db='enwiki_p', host="enwiki.labsdb", read_default_file=os.path.expanduser("~/replica.my.cnf")) File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 86, in Connect return Connection(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2013, "Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 11") None

Fatal error.

Is this a known issue right now? It was fine an hour or so ago. — Maile (talk) 17:26, 5 June 2023 (UTC)

@Maile66 Yes, the database replicas are down, so some tools on Toolforge, Quarry, and more are not working properly now. — Mdaniels5757 (talk • contribs) 17:37, 5 June 2023 (UTC)
@JCrespo (WMF) For now, there has been no incident report published at wikitech:Incident_status or displayed on Wikimedia Status page. NmWTfs85lXusaybq (talk) 17:53, 5 June 2023 (UTC)
It's on phab:T338172. — Mdaniels5757 (talk • contribs) 18:01, 5 June 2023 (UTC)
I'm afraid I won't be able to provide much insight. We at the Site Reliability Engineering team try to provide timely updates about issues regarding Wiki Websites stability (like on the locations you mention)- however, cloud services such as those are handled by separate teams (Wikimedia Cloud Services and Data Engineering) and while we'd love if all WMF teams shared our procedures, not all do at the time (and it makes sense not to update the general wiki status page for the general public for those more "internal" services- even if internal doesn't mean less important!).
I'm sorry I cannot provide further details as it is outside of my knowledge area and access rights (it seems to be a cloud networking issue), but I can see on the ticket someone from those teams is already working on it, so I would hope the issue gets fixed soon. Please be nice to them, as resources for maintaining those internal services are much more limited than for general Wiki maintenance and many are maintained only thanks to the help of volunteer administrators.-- JCrespo (WMF) (talk) 19:17, 5 June 2023 (UTC)

Tech News: 2023-23

MediaWiki message delivery 22:50, 5 June 2023 (UTC)

Planning for the last deployment of DiscussionTools

Please see Wikipedia talk:Talk pages project#Plan for the last deployment. I hear that the A/B test is in the data analysis phase, but I haven't heard what the results are (or even if anyone knows yet). If the results turn out to be what they hoped for (see mw:Talk pages project/Usability/Analysis), the Editing team will be talking about deployments during the summer. They will be wrapping up the Wikipedia:Talk pages project and moving on to their new project, mw:Edit check, whose first version will encourage editors to add inline citations. Please feel free to watch the new page and help them figure out how to make it hit the right balance between being useful and not getting in your way.

Thanks, Whatamidoing (WMF) (talk) 03:14, 6 June 2023 (UTC)

Never Use Mobile Version Script

I've been using User:Þjarkur/NeverUseMobileVersion, a script that made my life better. It has suddenly stopped working, and User:Þjarkur last edited two years ago. Does anybody know how to fix it? Or know of an alternative? (Not sure if this is the place to ask, but the talkpage of Wikipedia:Scripts doesn't seem very active.) Bishonen | tålk 15:19, 4 June 2023 (UTC).

Not knowing that one existed, I actually made my own version a while ago at User:Writ_Keeper/Scripts/unmobile.js, but it has also recently stopped working. I haven't gotten around into investigating why, but I'll take a look. Writ Keeper  15:26, 4 June 2023 (UTC)
Great, Writ. Bishzilla loves ya. Bishonen | tålk 15:32, 4 June 2023 (UTC).
@Bishonen, @Writ Keeper, it works for me. I'm loading it with mw.loader.getScript(), but I presume it should still work for others. — Qwerfjkltalk 16:11, 4 June 2023 (UTC)
(edit conflict)@Bishonen: Ah, now I remember; the script I made does still work, it just doesn't do what I remembered. I've rewritten Þjarkur's script and blended it with mine at User:Writ_Keeper/Scripts/unmobilePlus.js. It should redirect you back to desktop whenever you get to a mobile link, but the mobile site will pop up for a second before it reloads to desktop, which I don't think is really avoidable. To minimize the impact of that, though, it will also do what my script originally did, which is go through and replace all links to mobile with direct links to desktop, so it should only be links you click on from outside Wikipedia that give you the mobile flash. That said, it does look like Þjarkur's original script still works for me (though it also gives the aforementioned mobile flash), and they work more or less the same way, so let me know if the new one works. Writ Keeper  16:14, 4 June 2023 (UTC)
I've installed it, Writ Keeper. Somebody give me a mobile link to click on, please? Bishonen | tålk 16:21, 4 June 2023 (UTC).
I have a few at the bottom of my sandbox: [7] <== also a mobile link Writ Keeper  16:22, 4 June 2023 (UTC)
On those links of yours, it's certainly working, and without the popping-up-for-a-second effect. I didn't understand the going-through-and-replacing-all-links thing, but then I probably don't need to. (Only links I click on from outside Wikipedia will give me the mobile flash? There is a world outside Wikipedia, with links in it? Mobile links?) Anyway, thank you very much. Bishonen | tålk 16:32, 4 June 2023 (UTC).
(Twitter. For people who still use it.) Izno (talk) 16:38, 4 June 2023 (UTC)
Thanks for fixing the script. Useful Doug Weller talk 18:06, 4 June 2023 (UTC)
Adding my thanks, just installed this and it's already changing my life. CMD (talk) 02:06, 5 June 2023 (UTC)
@Writ Keeper Now User:Mdaniels5757/markAdmins.js, the script I use to make editors as Admins, CU, OS doesn't work so I've uninstalled yours. Any idea what caused the conflict? Doug Weller talk 07:33, 6 June 2023 (UTC)
Hmm, no, I don't see any reason why they'd conflict, Doug Weller, and when I borrow your common.js, both scripts seem to work in parallel just fine, as far as I can tell. Do you have any particular page that you've noticed the MarkAdmins script breaks on? Writ Keeper  13:18, 6 June 2023 (UTC)
@Writ Keeper This page for a start. When I uninstalled it earlier today all was fine. When I installed it again just now, it doesn't work. Doug Weller talk 13:27, 6 June 2023 (UTC)
Well, based on my reading, the markAdmins.js script doesn't run in WP space by default, so I don't think it *should* work on this page. Not sure what would be making it run in WP space, or why my script would affect that... Writ Keeper  14:04, 6 June 2023 (UTC)

Updates on graph extension?

Previous information: Wikipedia:Village pump (technical)/Archive 205#Graph extension disabled per immediate effect --Redrose64 🌹 (talk) 16:08, 30 May 2023 (UTC)

All charts based on the graph extension have been disabled for over 40 days, impacting thousands of articles and millions of views. The latest official update on the situation was over a month ago. Can we have some news for people not directly involved in development work, but that invested a lot of work on writing and maintaining charts on Wikipedia? What is the current status? What is the timeline for re-enabling the extension? Thank you. Ita140188 (talk) 12:35, 30 May 2023 (UTC)

There are several open tasks that have information about the work in progress: T334940, T336595, T335048. DMacks (talk) 12:58, 30 May 2023 (UTC)
The status quo is that it is broken broken, and a direction for a fix (after the first attempt to fix it failed) is currently being sought but has not been chosen yet (and then a week of hackathon got in between). There is NO timeline. All of this is discussed in the tickets referenced. —TheDJ (talkcontribs) 19:28, 30 May 2023 (UTC)
@Ita140188 To clarify further. My estimation, is that after this first attempt to fix it failed, we are now looking at months and months of (unplanned) work before any sort of solution is created. As to the inevitable questions of "why do other website in the world not have this problem". Because they aren't being researched by security specialists in the same way as we get researched, nor do they generally allow untrusted users to modify the content of other users. —TheDJ (talkcontribs) 09:14, 31 May 2023 (UTC)
In any large wikipedia, the insertion of suspicious code into a graph would surely be detected by the local counter vandalism unit almost immediately? Looks like a risk worth taking for me. --45.156.242.189 (talk) 21:34, 31 May 2023 (UTC)
No it is not. That is like saying: surely because you can look at your bank account, there is no risk in someone else having your bank card and pincode. The problems we are talking about would basically give anyone full access to anyone else's user account. They are full and immediate compromises. —TheDJ (talkcontribs) 13:16, 1 June 2023 (UTC)
Regarding the lack of detail about what and where the holes are, I find that only to be expected. Here's the thing. If you've ever worked with IT security, you'll know that when a security issue occurs we reveal as little as possible about the problem. We need to somehow prevent people using the problem code, but we don't tell them any specifics. This is to try and prevent the security hole from being exploited until it's patched. So we say "there is a security issue with this facility, and until it is resolved the facility will not be available". Until a fix or replacement is available and is thoroughly tested, you need to live without it for a while longer. If you try and hurry us along, we may make mistakes, so we ignore the hurry-up calls and keep going at a pace that allows for all potential possibilities to be examined, leaving no stone unturned. Only when it's properly fixed up do we explain, and then only in the vaguest terms (just in case somebody is minded to try a similar exploit again) although we do record all the full details in a document hidden somewhere nobody would find it (in case it happens again and the previous fix needs to be examined thoroughly again).
Think of it like a building with a locked door, people with legitimate access are issued with a key to open the door. But somebody has found that they can open the door without the key using a bent paperclip and piece of chewing gum. So until a new and better lock is obtained and fitted, we block off the door entirely. What we do not do is say how the chewing gum was used.
So this is what it boils down to: the code that we were using has a hole and accordingly has been withdrawn from use, people are working on it, and until it's completely fixed to our satisfaction, that's all we're saying. --Redrose64 🌹 (talk) 14:33, 1 June 2023 (UTC)
The WMF actually deviates from that (otherwise excellent) analogy and often discloses the full details of security vulnerabilities once they are patched. And we do actually know the original security vulnerability that lead to Graph being disabled - it's disclosed at phab:T334895. That original vulnerability has been fixed, and some other (still undisclosed and unfixed) vulnerability in the same software is preventing the Graph extension from being redeployed now. * Pppery * it has begun... 14:48, 1 June 2023 (UTC)
Well, there is always the option to move Vega graphs to EasyTimeline, sure, you would lose a lot of functionality, but at least it works. And no, I do not think that is a desperate move. Snævar (talk) 09:38, 4 June 2023 (UTC)
So, unofficial status: Originally Vega was disabled because of four known security vulnerabilities. Vega already had disclosed those at the time of the disabling, after all we where on Vega 2.5.2 and Vega has moved to Vega 5 at that point. Two of those vulnerabilities had proofs-of-concept and Vega is being run client-side, e.g. on your computer, so there was an active risk of hacking here. Then the Graph extension was updated to support Vega 5, solving the vulnerabilities in the process. It removed the protocols for getting data points externally, like from wikidata, the data namespace on commons, and so on. That is now done with calls to the API with user provided urls. That version did not support Wikidata, but most of the other external loading was there. They where planning a deployment of that, but decided to cancel it less than a week before the proposed date. This new version is active on beta english wikipedia.
Since then, a new vulnerability has popped up (we know, because there is an hidden bug) and Vega is not safe enough to be editable for every user on the wiki. We do know that editing Vega is going to be restricted (probably to admins) and that the code for Vega graphs on the wiki is going to shrink, whith the types of graphs being defined in one place, which Vega-Lite does do internally. The url external loading is planned to be removed and we will once again get an short field to fill for loading datapoints, this time in the graph tag. The belief from developers is that users are capable of identifying an vulnerability and not save it on the wiki, and that is the main mitigation moving forward.
So, some speculation. It has been confirmed that moving to Vega-Lite is not enough. Vega-Lite does have some interactivity and ability to change data points (in Vega's transform), but it has pre-defined types of graphs and how they are displayed. That is pretty much all there is to Vega-Lite. There is very little customizability compared to the full Vega. Even Vega 2.5.2 graphs, like we have on this wiki currently, are limited on Vega-Lite 5. If they limit Vega beyond Vega-Lite, considering Vega-Lite is not enough, then some of those features are going away. Snævar (talk) 09:12, 5 June 2023 (UTC)
@Snævar: thank you for the "unofficial" update in the absence of any official communication Ita140188 (talk) 21:11, 6 June 2023 (UTC)

Page previews (popups) broken

A recent change at Module:Coordinates has broken the page preview feature. For example, hovering the mouse above United Arab Emirates should show an image and introductory text from that article (if scripting is enabled and if "Enable page previews" is selected in Preferences > Appearance). Currently, the text in the preview shows the output of {{coord}} only. By contrast, hovering over Tokyo shows the correct popup. The change will have to be reverted soon but I have left it while posting this so the problem can easily be seen. Documentation at mw:Special:MyLanguage/Extension:Popups includes "Any element marked with the noexcerpt class will be stripped from the summary." Presumably something like that needs to wrap the output from {{coord}}. If anyone has any info on popups or why Module:Coordinates is broken, please reply here or at Module talk:Coordinates#Protected edit request on 29 May 2023. Johnuniq (talk) 05:16, 6 June 2023 (UTC)

MOS:ORDER says geographical coordinates (i.e. {{coord}}) should be placed at the end of articles if they're not in the infobox, and if we look at articles following the MOS, like United States and Greenland, their page previews aren't affected, in contrast to Canada and Saint Vincent and the Grenadines for example, which have {{coord}} immediately before the infobox. (For examples in context, see Template:Countries of North America.) (And just to be clear, articles that have {{coord}} in the infobox are also not affected, like Tokyo.)
So, this breakage is unexpected based solely on the MOS. In the long run, would it be better to go through all articles that have {{coord}} in the wrong place and fix them? although of course, for the short term, reverting the change "as a workaround" would be good. On the other hand, {{coord}} renders above the article content, so why does the MOS say to place it after?
W.andrea (talk) 22:08, 6 June 2023 (UTC)
This breakage was basically impossible to expect TBH, no-one working on coordinates is familiar-enough with the internals of the TextExtract system in MediaWiki to have made the connection a priori. Having a stronger MOS enforcement actually would have simply made the issue less visible, and then we'd have the issue on more pages.
I've laid out a way to fix this and mostly need any of the half dozen people sufficiently familiar with such things to look at the suggestion and agree that's the right solution. Izno (talk) 23:17, 6 June 2023 (UTC)
I made an edit placing the coord template in the right place on Saint Vincent and the Grenadines to test, and yes it works. Zorblin (talk) 01:16, 7 June 2023 (UTC)

Coordinate problem

Maybe it's just me, but every time I hover over an article with a coordinate in it, it only shows the coordinate in the preview. This really bugs me, so I was wondering if that's a global problem. If not, could I please know how to fix it? Cheers! // 🌶️Jalapeño🌶️ Don't click this link! 07:01, 6 June 2023 (UTC)

I merged your report with the one above as it is the same issue. Johnuniq (talk) 07:25, 6 June 2023 (UTC)
Thanks, and Cheers! // 🌶️Jalapeño🌶️ Don't click this link! 07:34, 6 June 2023 (UTC)
I have filed T338204 to report it to the right code maintainers. I think this looks like a parsing bug, but let's wait and see. --JCrespo (WMF) (talk) 07:41, 6 June 2023 (UTC)

Previews are broken on Chrome browser for locations.

When hovering with the mouse over previews, specifically locations and countries, all that is displayed in the description is the coordinates. I was expecting to see a short description of the country in question. I have encountered the issue when hovering over links on the United States page, particularly North America, Cuba, and Americas. Screenshot attached: https://ibb.co/VpkbFL0 (sorry I cannot upload to wikimedia right now, the school wifi blocks it for some reason): I am on a desktop version of Chrome, latest version. Zorblin (talk) 16:12, 6 June 2023 (UTC)

Can a page views link be put in sidebar, or at page bottom as in German Wikipedia?

See: Wikipedia:Templates for discussion/Log/2023 June 2#Template:Annual readership

Why can't a page specific link for page views be put in the sidebar links that all readers see, whether logged in or not? A link to

It seems that people really like looking at page views of articles, etc. once they find a link or banner for it. Usually buried away on a few talk pages, revision history, or some gadget setting.

They especially like seeing page views over time via a bar graph or line graph. Which pageviews.wmcloud.org provides. Are there other places to link to? --Timeshifter (talk) 01:08, 3 June 2023 (UTC)

I imagine that it would not be difficult to make a user script that would place a link in an editor's Actions menu. Putting such a link as a permanent sidebar item for all pages for all users seems like a big step; I have edited here for over ten years and can't recall ever looking at or caring about pageview statistics. – Jonesey95 (talk) 01:35, 3 June 2023 (UTC)
I noticed you have created some articles. Aren't you curious? The page views timeline graph is available via a "pageviews" link found at the top of the revision history of an article. Many people never notice it since it is an obscure location. --Timeshifter (talk) 02:09, 3 June 2023 (UTC)
Not curious even an iota. Old person time: When I created my first web pages in 1994 and 1995, I was very curious about page views and saved all of the related stats in a spreadsheet that I probably still have around somewhere. The novelty wore off quickly. I would not change any of my behavior or beliefs in a positive way if I knew about the page stats; my editing is mostly intrinsically motivated. If you or anyone else feels or is motivated differently, that's wonderful, and someone probably has a script that will improve your life. – Jonesey95 (talk) 05:12, 3 June 2023 (UTC)
The English Wikipedia has added a pageviews link to the top of the page history and bottom of "Page information" for users witht the default interface language "en". User:PrimeHunter/Pageviews.js adds it to all pages. On disambiguation pages it also adds a link to show page views for all pages linked on the page. PrimeHunter (talk) 10:24, 3 June 2023 (UTC)
Thanks. I have had that installed for a bit. Sometimes it times out, even though it has already shown the bar chart. Then the chart goes blank. Has there been any discussion about adding the link to all articles, whether logged in or not? — Preceding unsigned comment added by Timeshifter (talkcontribs) 11:16, 3 June 2023 (UTC)
I'm not aware of a discussion and I don't know whether https://pageviews.wmcloud.org could handle the increased traffic from such exposure. PrimeHunter (talk) 19:33, 3 June 2023 (UTC)
It should be fine. The worst that could happen is it will exceed its quota on connections to the wiki replicas, but that's only used to show the "edits"/"editors" stats which are not essential for this tool, and there are graceful fallbacks for when those queries fail.
German Wikipedia has a link to it on all pages, curiously at w:de:MediaWiki:Wikimedia-copyright which in my opinion is not the ideal location. I'm not sure if there's an interface page for the "Toolbox" (known as "Page tools" in Vector 2022), but that would be the best placement I think. We could use JavaScript as with the user script, but it feels wrong to do that just to add a link site-wide. MusikAnimal talk 22:21, 5 June 2023 (UTC)
On English Wikipedia: MediaWiki:Wikimedia-copyright. Shows up on the bottom of articles as:
"Text is available under the Creative Commons Attribution-ShareAlike License 3.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization."
With links.
--Timeshifter (talk) 22:45, 5 June 2023 (UTC)
There's a pageviews link for logged in users at the bottom of "Page info". It's under "External tools", but ideally there would be a link up in "Basic information", or - why not - a little embedded diagram for the last N days, linking to pageviews. Though that might be something for phab:. Ponor (talk) 10:48, 6 June 2023 (UTC)

I do not see a "page info" link, or "external tools", or "Basic information" anywhere on article pages. I am logged into a Win 10 Pro PC in Firefox using Timeless skin.

So far, the location I like best is at the bottom of the page as at German Wikipedia on all pages whether logged in or not. It doesn't use any of the prime real estate of the sidebar. Over time I think it would be seen by the most readers and editors compared to any other location other than the sidebar. Since it would be seen my more readers, I think I would help draw a few of them into editing. The other locations are seen mostly by editors. It would be very easy to add the link to MediaWiki:Wikimedia-copyright as at w:de:MediaWiki:Wikimedia-copyright. --Timeshifter (talk) 01:35, 7 June 2023 (UTC)

@Timeshifter: In Timeless, the sidebar in the left margin has several headings - "Navigation", "Contribute", etc.; the fifth of these is "More", below which are "What links here" and some others, amongst which you should find "Page information". If you click that, the first box at the top contains the "Basic information" and "External tools" links. --Redrose64 🌹 (talk) 05:51, 7 June 2023 (UTC)
Redrose64. Thanks. I have discovered in the Timeless skin that the MoreMenu gadget in the Appearance section of Special:Preferences#mw-prefsection-gadgets removes the "Page information" link and puts it in a sidebar dropdown menu called "Analysis". The name of the link has been changed though from "Page information" to "Basic statistics". --Timeshifter (talk) 08:37, 7 June 2023 (UTC)

How does rate limiting work?

Specifically for edit rate limiting, only 90 edits per minute are allowed (unless you're an admin, who have the noratelimits user right). Does this mean 60 seconds since you exceeded the rate limit, or is it on a per-minute basis, that is, if you exceed the rate limit at 13:45:34, you can edit again at 13:46:00? — Qwerfjkltalk 10:45, 6 June 2023 (UTC)

As far as I know (but I haven't looked into it deeply), if it's 90 edits per minute, it is edits within the time from the moment you are attempting your edit minus 60 secs. That means that whatever you are doing, you need to reduce the RATE. You don't need to necessarily wait 60 seconds, you need to wait for as long as required to bring your rate within the limits again and if you don't wait long enough, you are simply prolonging the amount of time within which your action will fail. One note is that these are Mediawiki app rate limits, but there are also some rate limits on server requests in general and on frontend servers to other services (like the media servers) to prevent overall server overload (bandwidth, cpu, congestion etc). —TheDJ (talkcontribs) 08:51, 7 June 2023 (UTC)

Ethiopic tone marks display on some pages but not others

I'm probably missing something obvious here, but I don't see any formatting that would make the characters legible at {{Unicode chart Ethiopic Supplement}}. Yet if I copy those characters to another article, i.e. Tone letter#Ethiopic, I just see numbered tofu. What am I missing? — kwami (talk) 23:08, 6 June 2023 (UTC)

It works for me in Firefox 114.0 on Windows 10. Please always give a specific example. In the cell in the "5" column and "U+139x" row in {{Unicode chart Ethiopic Supplement}} I see (given here with font-size:large like the table). At kenat at Tone letter#Ethiopic I see the same symbol ᎕ but smaller as expected. The symbol displays for me as a horizonzal line with a small vertical line going up from the end. The image https://r12a.github.io/c/Ethiopic_Supplement/large/1395.png at https://r12a.github.io/uniview/?charlist=%E1%8E%95 displays it a little different with a tilted line instead of horizontal and a gradual transition to vertical but it seems close enough to be the "right" character in Firefox. PrimeHunter (talk) 01:35, 7 June 2023 (UTC)
I'm using FF 110.0.1 (64-bit) on Mint 20.3. I know what the characters are supposed to look like from the Unicode doc and from my installed fonts, such as Abyssinica SIL. All of the characters look good on the table we use in the articles for the Unicode block, and all of them displayed as tofu when I tried using them in the tone letter article. But now that I'm back to respond, only the template itself displays properly, and in the article Ethiopic Supplement it's just tofu. Nothing's changed on my system in the meantime. — kwami (talk) 01:49, 7 June 2023 (UTC)
It works for me in all the linked pages. I cannot help with Linux. PrimeHunter (talk) 08:48, 7 June 2023 (UTC)
The characters display correctly for me on Ubuntu (with Firefox) but I don't have Mint. Certes (talk) 08:54, 7 June 2023 (UTC)
Okay, I'll assume that others can read my edits even if I can't. Weird. — kwami (talk) 08:58, 7 June 2023 (UTC)

Indicator overlaps with coordinates in Timeless skin

Hi. I just came by to check the T281974 problem and I was surprised to find out that the GA indicator overlaps with Route Map button on K-1_(Kansas_highway). What surprised me was that I'm using Timeless as skin, not Vector-2022. I'm not sure if there are previous tasks or discussions. --魔琴 (Zauber Violino) (talk) 11:52, 7 June 2023 (UTC)

It seems that the fix that was made for this on Vector-2022 was not applied to the other skins at that time. And since the route map element isn't that common it wasn't noticed before. I'll make an edit request later today. —TheDJ (talkcontribs) 13:18, 7 June 2023 (UTC)
It overlaps slightly in Modern, but all other skins (except Timeless) are OK. --Redrose64 🌹 (talk) 17:59, 7 June 2023 (UTC)

AutoEd modules

Hi, I'm trying to install WP:AutoEd to User:Davey2010/vector.js without the Whitespace and unicodify modules and I'm not getting very far, I don't suppose there's anyone on here who could tell me what to do please?

I even copied everything from someone elses .js page and its still not working, Many thanks, Kind Regards, –Davey2010Talk 18:02, 7 June 2023 (UTC)

@Davey2010, what you've done looks ok to me, what exactly is the problem? — Qwerfjkltalk 18:18, 7 June 2023 (UTC)
Have you tried a hard refresh (Ctrl+F5 in most browsers)? Certes (talk) 18:21, 7 June 2023 (UTC)
@Qwerfjkl - When I installed these modules - The AutoEd disappeared from the left sidebar but was showing as a dropdown option at the top but everytime I was clicking it it opens the article to edit but then doesn't do anything,
@Certes Ctrl and F5 brings up a "project screen" option - I normally hold Ctrl and click the refresh button which as far as I know hard refreshes
Also everything on the left sidebar has now gone except citeoid - so refill, DMY/MDY, spork (think that changed everything to YYYY-MM-DD) are all now gone, Thanks –Davey2010Talk 18:28, 7 June 2023 (UTC)
I messed the commons.js page up my apologies - all scripts are back but I still cannot get AutoEd to work, Thanks –Davey2010Talk 19:15, 7 June 2023 (UTC)
  Resolved
  • Turns out the AutoEd code didn't belong in the vector.js page at all (all that gubbins was to make it a clickable button in the left sidebar)!, I ended up pasting Wikipedia:AutoEd/basic.js to User:Davey2010/AutoEd/basic.js and removed the unicodify and whitespace and then added a link to my common.js page[8] and Wallah!! - We have lift off!,
I dont understand what I done but I done something and it worked lol, Anyway thank you Qwerfjkl and Certes for your help it's greatly appreciated, also I found out FN + F5 hard refreshes the page too, Anyway thanks again, –Davey2010Talk 19:16, 7 June 2023 (UTC)

Question about multiple blocks

If an editor:

  1. Is (partial) blocked from editing page P indefinitely
  2. At a later point, the editor is blocked site-wide for a day

Will at the end of the day, the editor be able to edit page P, or will that pageblock still be in place? Pinging Bishonen who will be interested in the answer too. Abecedare (talk) 18:59, 7 June 2023 (UTC)

Blocks can either be partial or site-wide, so the later block will entirely replace the earlier one, which will be removed and won't be automatically restored. There's probably a phab ticket somewhere for that. There is some trickery to get around this limitation with IP blocks; because you can do IP range things, and place separate blocks for separate ranges affecting the same IP. -- zzuuzz (talk) 19:12, 7 June 2023 (UTC)
Thanks for the answer, zzuuzz. Will just need to remember to restore that partial block. Hoping that someday, blocks (and page-protections!) are implemented so that temporary escalation doesn't "reset" the earlier blocks. Cheers. Abecedare (talk) 19:21, 7 June 2023 (UTC)
phab:T194697. Izno (talk) 20:04, 7 June 2023 (UTC)

ReFill

Developers desperately needed to fix this very useful app. See WT:reFill#Seems to be down again. Many thanks! Sundayclose (talk) 14:32, 5 June 2023 (UTC)

I just came here to write about the same matter. reFill currently has two maintainers, one being me and the other is TheresNoTime. I think TNT is taking a break at the moment. I could do with a hand with someone well versed with Toolforge and Python to help with what looks like a virtualenv issue, probably quick and easy for someone with the right experience to solve. Ideally, it would be great to find someone willing to stick around beyond the current issue and become another maintainer.
The stack includes Vue.js, webpack, Celery, Redis, Python, Flask and of course Kubernetes.
Thanks in advance! Curb Safe Charmer (talk) 15:05, 5 June 2023 (UTC)
I'd recommend hopping on #wikimedia-tech on IRC if you need help with the quick and easy question. There should be someone on there to help. Izno (talk) 17:01, 5 June 2023 (UTC)
Got a link to the ticket describing the virtualenv issue? –Novem Linguae (talk) 18:36, 5 June 2023 (UTC)
@Novem Linguae: I was given some help on IRC last night, but had to down tools as it was getting late. The issue is T338101. Curb Safe Charmer (talk) 18:48, 5 June 2023 (UTC)
@Curb Safe Charmer I have some experience in this stack (except for vue and celery) - can you add me as a maintainer? – SD0001 (talk) 04:36, 6 June 2023 (UTC)
  Done Curb Safe Charmer (talk) 05:18, 6 June 2023 (UTC)

  Already done, the phabricator ticket has been closed as solved. Alexcalamaro (talk) 04:40, 8 June 2023 (UTC)

Incorrect display for ISO 639 language code in citation template

When entering the ISO 639 language code fkv (for Kven language) into citation templates, they display "in Kvensk" instead of the expected English-language text "in Kven". For reference, "Kvensk" is the Norwegian form of the word. This is also present in the Citation Style documentation. I'm not sure how to go about fixing this, as I have no idea where the templates and modules actually get this data from. I'd appreciate some help with this. ArcticSeeress (talk) 05:13, 8 June 2023 (UTC)

Ask at Help talk:CS1. Izno (talk) 05:22, 8 June 2023 (UTC)
Alright, I'll do that. ArcticSeeress (talk) 05:26, 8 June 2023 (UTC)

Infobox legislative election

Following the clear outcome of this Rfc, could someone implement the infobox with the outgoing and elected MPs? I can't edit the infobox and I don't know if I'am able to implement it, therefore I need someone to do it for me. Scia Della Cometa (talk) 11:36, 8 June 2023 (UTC)

Zoom for desktop on mobile?

Not sure if this is my imagination, but the desktop view on my mobile (Chrome on Android) seems different from how it usually is. Like the page loads really zoomed out, with really small text, and when I then zoom in on my watchlist, the text is wider than it used to be. I can't remember exactly what it did before though... Has something changed with the skin in the last day or two, or am I just imagining it?  — Amakuru (talk) 21:36, 8 June 2023 (UTC)

Database of shortest Biographies

Hi - Yesterday at Database reports/Shortest biographies of living people I updated the bottom three biographies. Today they are all showing 814 length, same as yesterday. I did the "Purge cache" and same results. So now I updated those same 3 articles plus one more & will see if any change tomorrow. Is this an error for the Length column? Regards, JoeNMLC (talk) 20:45, 8 June 2023 (UTC)

See the note at the top of the report. It was updated at 00:00, 8 June 2023 (UTC). Your edit to Paul Raoult occurred at 01:42, 8 June 2023 (UTC). If the database and the bot are working as expected, that article should be removed from the report when it refreshes today, in about 30 minutes. – Jonesey95 (talk) 23:28, 8 June 2023 (UTC)
@Jonesey95: - Yes, all four dropped off. I forgot about that day rollover time. Thanks. JoeNMLC (talk) 00:06, 9 June 2023 (UTC)

Need help fixing broken wiki markup

In Special:Permalink/1159115006 there's some bit of broken wiki markup near:

}}{{colend}}|bot=ClueBot III|age=14}}

but I can't figure out exactly what's going on. It looks like there's a missing }} or an extra {{ but that stuff hasn't changed in years and the page looked fine. Special:Diff/1159115006 caused it to go haywire, but I can't see what that changed which could have made a difference. -- RoySmith (talk) 15:03, 8 June 2023 (UTC)

@Graham87: -- RoySmith (talk) 15:20, 8 June 2023 (UTC)
Hmmm, looks like the last edit deleted a {{colbegin}} leaving a mis-matched {{colend}}. But that still doesn't explain what's going on with the mismatched }} -- RoySmith (talk) 15:25, 8 June 2023 (UTC)
That edit removed {{archivebox but not its closing }} DMacks (talk) 15:29, 8 June 2023 (UTC)
I reverted the edit while keeping what I think is a needed change to one of the parameter values. Graham87 may want to check my edits, given the recent archive page moves, and redo their own edits, which looked like a valid simplification if done in a syntactically correct way. – Jonesey95 (talk) 15:45, 8 June 2023 (UTC)
Oops, sorry about that ... I only checked if the archive box was working and didn't read any further down (in the wiki-markup) with my screen reader ... my bad! Graham87 03:04, 9 June 2023 (UTC)

Autosubscribed to a bunch of identical threads by mistake?

A couple of days ago, @MJL notified a bunch of users (I guess everybody who had commented on WP:ARC?) about the creation of the Scottywong case. See these contribs. I've since been getting notifications when various of those threads have been replied to, and looking around, it appears I'm subscribed to all of the threads. I certainly didn't do that myself, so I'm guessing there's some bug in the thread subscription code which erroneously thought these were all the same thread. These all look like they were copy-pasted in quick succession, so my hunch is the subscription code hashes the content and these all hashed the same?

Oh, wait, It's not every one. Just most. Hmmm, it looks like User_talk:North8000#Scottywong_case_opened is the last one I'm subscribed to and User_talk:Horse_Eye's_Back#Scottywong_case_opened is the first one I'm not. And (surprise, surprise), that's when the edit times rolled over from 19:21:xx to 19:22:xx. Maybe it's hashing on the timestamp only down to the minute? I'm pretty sure I intentionally subscribed to User_talk:WaltCip#Scottywong_case_opened, but that's the only one.

Anybody else seeing this? -- RoySmith (talk) 15:22, 9 June 2023 (UTC)

Oh, yeah, this has to be a bug. Under Special:TopicSubscriptions, I only see the one (WaltCip) thread listed, yet the others are showing up as subscribed on the individual pages. And, BTW, for people who are confused, this is Topic Subscriptions from mw:Talk pages project. -- RoySmith (talk) 15:33, 9 June 2023 (UTC)
Oh, this has gotten even weirder. It looks like there's some interaction with Commons:User:Jack who built the house/Convenient Discussions. My brain hurts. -- RoySmith (talk) 15:58, 9 June 2023 (UTC)
This is a bug that apparently results from inadequate design of this topic subscription feature. Something needs a tweak. See this thread, in which I made the easy prediction that You will not be the only person to experience this undesirable behavior. This bug was filed at T334906 in April 2023. – Jonesey95 (talk) 16:33, 9 June 2023 (UTC)
Same poster + same timestamp = same topic as far DisucssionTools is concerned. DT doesn't care that they're on different pages. – SD0001 (talk) 17:17, 9 June 2023 (UTC)
Well then, DT is broken. -- RoySmith (talk) 20:07, 9 June 2023 (UTC)
Huh... That's pretty weird. Hopefully they'll fix that bug soon. –MJLTalk 04:26, 10 June 2023 (UTC)
As was mentioned in the discussion linked to earlier, the page isn't used as part of the subscription in order to accommodate threads being moved to different pages. However it seems there isn't sufficient specificity in how the initial comment is identified to handle messages posted en masse. isaacl (talk) 05:31, 10 June 2023 (UTC)

Watchlist and Diffs - Tags in some kind of Indian script

I've noticed in my watchlist edits marked with "Tags: ਮੋਬਾਈਲੀ ਸੋਧ ਮੋਬਾਈਲੀ ਵੈੱਬ ਸੋਧ" and various other "Tags:some kind of Indian script" messages. It can also be seen on diffs, eg, here. Is the Latin alphabet to be deprecated on EnWiki? Will the Foundation pay for me to have lessons in the new language? Or (as I rather suspect) has someone fucked up somewhere? Ta, DuncanHill (talk) 22:32, 9 June 2023 (UTC)

Confirming that I can see this when I set my interface language to en-gb.[9] Suffusion of Yellow (talk) 22:43, 9 June 2023 (UTC)
Appears to have been fixed already. Don't know how long it will take the change to reach enwiki. Probably better to set your interface language to en instead of en-gb anyway; you're missing out the community-customized messages, some of which might be important. Suffusion of Yellow (talk) 22:54, 9 June 2023 (UTC)
Yes, I know already that more effort is put into breaking en-gb that to fixing it. But good to know it's been, or being, fixed. DuncanHill (talk) 22:58, 9 June 2023 (UTC)
en-gb often causes problems. MediaWiki:Tag-mobile edit/en-gb, MediaWiki:Tag-mobile web edit/en-gb and some others are currently in Punjabi instead of English. When you report interface problems, always say if you have en-gb or en-ca instead of the default en as interface language at Special:Preferences. Or change to en to avoid many problems and miss a handful of British spellings in interface mesages. PrimeHunter (talk) 23:02, 9 June 2023 (UTC)
Why do we allow people who change en-gb to Punjabi to edit? Is it Foundation policy to permit that sort of vandalism? Would changing American English to Azerbaijani be allowed? Would we discourage American English if it regularly faced that kind of vandalism? DuncanHill (talk) 23:10, 9 June 2023 (UTC)
Translatewiki is poorly monitored. Nardog (talk) 23:18, 9 June 2023 (UTC)
Well I hope they monitor the raw HTML messages, at least. Suffusion of Yellow (talk) 23:22, 9 June 2023 (UTC)
Even if this sort of screwup never happened, it would still be a good idea to use en. We, the enwiki community, have customi[sz]ed probably hundreds of messages, and when you set your language to anything other than default, be it en-gb, French, or Hindi, you only see the MediaWiki default. In short, if you're capable of comprehending the language of a wiki, don't override the langauge setting. Now, if you're reverting cross-wiki spammer, and trying to remember which button is "undo" and which button is "thank", then sure, it's fair tradeoff. Suffusion of Yellow (talk) 23:20, 9 June 2023 (UTC)
So the language of this wiki is American English? First I've heard. DuncanHill (talk) 23:27, 9 June 2023 (UTC)
No, the language of this wiki is en - English unspecified. en-us would be American English. Izno (talk) 23:30, 9 June 2023 (UTC)
It's usually or always an accident when somebody changes en-gb messages to another language. They probably thought they were editing Punjabi messages. PrimeHunter (talk) 00:03, 10 June 2023 (UTC)
Genuinely, as this seems to happen a lot, how? Is the original text they're editing from not in English? I would check but for some reason Translatewiki isn't in the unified login? CMD (talk) 01:54, 10 June 2023 (UTC)
It's a UX issue in Translatewiki. When someone signs up an account there and specifies en-gb as their default language, the translation interfaces by default open up with target language as en-gb. So often people forget to set the target language to Punjabi or whatever, and start translating - unaware the translations are actually being saved as en-gb. Normally, the presence of existing translations in a different language would indicate the wrong language is selected - but en-gb and en-ca don't usually have any existing translations. – SD0001 (talk) 07:41, 10 June 2023 (UTC)
It's the third time in three years MediaWiki:Tag-mobile edit/en-gb gets the wrong language at Translatewiki.[10] I don't know whether the others were imported to MediaWiki. Maybe they should have an abuse filter trying to detect translations in the wrong script. All the languages using the Latin script would be harder to differentiate. PrimeHunter (talk) 09:38, 10 June 2023 (UTC)
Would changing American English to Azerbaijani be allowed? Would we discourage American English if it regularly faced that kind of vandalism? Language en goes through code review and requires developer approval. All other languages go through translatewiki.net, which being a wiki is easier to edit and can have the same problems as a normal wiki (CIR, vandalism, etc). –Novem Linguae (talk) 13:59, 10 June 2023 (UTC)
I'm on en-gb and it still seems to be showing the tags in Hindi. The C of E God Save the King! (talk) 05:20, 10 June 2023 (UTC)
As mentioned above, it's Punjabi. You can see them at Special:Tags. CMD (talk) 06:06, 10 June 2023 (UTC)
Something very similar, except that the language was Welsh, occurred on 15 July 2021. See phab:T286679, Wikipedia:Help desk/Archives/2021 July 15#Welsh edit tags, Wikipedia:Village pump (miscellaneous)/Archive 67#Tags in Welsh, Wikipedia:Village pump (technical)/Archive 191#Tags, Wikipedia:Teahouse/Questions/Archive 1116#Welsh tags and Wikipedia:Teahouse/Questions/Archive 1116#Golygu ar declyn symudol Golygiad gwe symudol. The two links that I posted to VPM at 21:42, 15 July 2021 (UTC), i.e. https://en.wikipedia.org/wiki/Special:Tags?uselang=en and https://en.wikipedia.org/wiki/Special:Tags?uselang=en-GB may also be used for today's problem. --Redrose64 🌹 (talk) 09:05, 10 June 2023 (UTC)
  • As a periodic reminder, if you use en-XX - expect problems. c.f. MediaWiki:Watchlist-summary/en-gbxaosflux Talk 09:15, 10 June 2023 (UTC)
    I think we should clarify that message to highlight that en does not mean American English. – SD0001 (talk) 11:55, 10 June 2023 (UTC)
I think I have now fixed all the problem messages on en.wikipedia by editing them locally, since if my understanding is correct they would otherwise remain incorrect until Thursday (or an emergency deploy, but it's the weekend so that isn't too likely). I'll delete the local edits once the next deploy is done.
phab:T286901 is the task about trying to better prevent these mistakes in future. And I second the recommendations not to use en-gb, since it can cause other problems with not seeing local messages. the wub "?!" 13:34, 10 June 2023 (UTC)
Ugg, yes please clean those up. The better fix for anyone that saw these is "don't use en-gb". — xaosflux Talk 15:01, 10 June 2023 (UTC)
If translations get deployed with obvious major problems like "wrong language", the review process seems to be not good enough to justify locking wrong translations for a week. —Kusma (talk) 16:19, 10 June 2023 (UTC)
There is no review process. Nardog (talk) 16:28, 10 June 2023 (UTC)
Then the deployment to client wikis should be faster so errors can be corrected immediately. Kind of like in a wiki. —Kusma (talk) 16:58, 10 June 2023 (UTC)

Does score tag support define-music-function?

I pasted below Lilypond code in score raw="1" tag, but it doesn't seem to render properly..

upp =
#(define-music-function (note)   (ly:music?)
#{ \once \override Voice.Accidental.stencil = #ly:text-interface::print
\once \override Voice.Accidental.text =
\markup {\musicglyph "accidentals.sharp"
\postscript "gsave 0.17 setlinewidth -1.4 0.5 moveto -1.4 2 lineto
stroke grestore
gsave 0.1 setlinewidth -1.7 1.4 moveto -1.4 2.18 lineto -1.1 1.4 lineto
stroke grestore"}
$note #})

dwn =#(define-music-function (note)   (ly:music?)
#{ \once \override Voice.Accidental.stencil =
#ly:text-interface::print
\once \override Voice.Accidental.text =
\markup {\musicglyph "accidentals.flat"
\postscript "0.17 setlinewidth -2 0.5 moveto -0.6 1.8 lineto
stroke "
}
$note #})

\relative c' { d \dwn bes d \upp gis }

This is properly rendered score: https://lsr.di.unimi.it/LSR/Image?id=378

Wikipedia rendered like this:

 

What's the problem? Kyeon-go (talk) 15:04, 11 June 2023 (UTC)

Recurring issue with javascript functions

Hello! I had a few false alarms earlier, but I've finally run into an issue that I can't seem to get around (and that actually explained some of my earlier issues).

I'm using WP:AutoEd. I've properly followed the instruction on how to install modules, and I even created a module of my own! (First time coder, so it's not great, but I'm proud of it.)

The problem is, when I click the "auto ed" button on page, there's about a 60% chance that it doesn't work (not my specific module, but AutoEd generally). I've looked at the browser console, and the error that comes up each time is consistent: it'll say something like: Can't find variable autoEdUnicodify or Can't find variable autoEDurlStatusFixer (on Safari; on Firefox, the text is: autoEdUnicodify is not defined.)

All of these errors stem from the same page: User:Jerome Frank Disciple/monobook.js. The problem is that they're not variables at all. They're functions, which I use importScript to import onto that page. And if this were happening every time, I'd assume that I made a mistake in setting up AutoEd there. But it doesn't happen every time—about 40% of the time, everything works! Does anyone have any idea why this might be happening?--Jerome Frank Disciple 18:13, 8 June 2023 (UTC)

It might actually be 70-30 fails/works--Jerome Frank Disciple 18:19, 8 June 2023 (UTC)
@Jerome Frank Disciple, if it's not working all the time, the problem is probably a race condition. — Qwerfjkltalk 18:31, 8 June 2023 (UTC)
Ooh, it does seem to be particularly easy on a few pages and very hard on others, which I think supports that theory (assuming I understand that theory ...). I have no idea how I'd begin to address that, so for now I'll just settle on having to refresh pages (sometimes quite a few time). I appreciate the input; thank you so much, --Jerome Frank Disciple 18:33, 8 June 2023 (UTC)
Found a workaround! If I click the "Edit this page" button first, let that load, and then click auto ed ... it works :) --Jerome Frank Disciple 19:09, 8 June 2023 (UTC)
The cause is that AutoEd doesn't wait for your modules to load before it tries to use them. When you click on "auto ed", autoEdFunctions() is called and in turn tries to call the module functions, but those might not exist yet. I think properly fixing that would require changes to AutoEd itself.
As for "variables" vs "functions", Safari calls them that because in JavaScript, they're the same thing: defining a function like function myFunction() { } really just makes a variable named myFunction and puts a value of type function in it. Rummskartoffel 13:11, 11 June 2023 (UTC)
Hy thanks for the detailed explanation! Sorry for the cluelessness about the variable/function identity.—Jerome Frank Disciple 15:38, 11 June 2023 (UTC)

Automatic citation tool is broken for arxiv

Since perhaps 3 days ago, citation tool became worse. It cannot be used to generate citation automatically from arxiv papers (for example, this paper one from 2016: https://arxiv.org/abs/1511.05067 ). It used to work for arxiv papers. pony in a strange land (talk) 11:19, 11 June 2023 (UTC)

Interesting, pinging the Citoid API directly with that URL [11] seems to give results. @Mvolz (WMF) any ideas? the wub "?!" 21:09, 11 June 2023 (UTC)

Can not edit my talk page - parameter error

If I (or somebody else tries to edit my talk page, I get an error message "Parameter names cannot be empty. To document unnamed parameters use their internal numbers "1", "2", and so on.". I tried removing the last topic, I can not save it either. Could someone please have a look, I have no idea what this could be. Thanks. Ymblanter (talk) 11:41, 12 June 2023 (UTC)

@Ymblanter: See if this edit has fixed it. -- John of Reading (talk) 11:51, 12 June 2023 (UTC)
Great, it works now, thanks a lot. Ymblanter (talk) 11:57, 12 June 2023 (UTC)

Tech News: 2023-24

MediaWiki message delivery 14:48, 12 June 2023 (UTC)

Prose size gadget doesn't work in Vector 2022 on some pages

Clicking on the "Page size" link in Vector 2022 does nothing on this test page in Vector 2022. In Vector and Monobook it works. This is the preferences gadget I'm using, not a custom script. Any idea what might be causing this? The gadget works on most pages I visit. Mike Christie (talk - contribs - library) 12:11, 12 June 2023 (UTC)

@Mike Christie: It works for me in Firefox. Maybe you have a conflict with another script. Does it work if you log out and click here? PrimeHunter (talk) 14:12, 12 June 2023 (UTC)
Yes, that works. I'll go through my scripts and see which one is the conflict. Thanks! Mike Christie (talk - contribs - library) 17:00, 12 June 2023 (UTC)

Problem with links within links lint errors

Hello. I was about to do some of my usual gnomish cleanup of lint errors in the links within links section from the maintenance department of the special pages when I happened to notice that maybe there must have recently been a big change to the media software or something because it now seems that a great many links within links suddenly render just fine in the article and will display as two different links even though the wiki code shows them as being a link within a link. The problem with this is that since the code flags an error, but the display renders it to be working, we are getting way too many false positives on how many actual lint errors there really are in the maintenance reports from special pages. Here are some examples of what I ran into: https://en.wikipedia.org/w/index.php?title=L. Forbes Winslow&diff=prev&oldid=1159553284

https://en.wikipedia.org/w/index.php?title=Videos and audio recordings of Osama bin Laden&diff=prev&oldid=1159553152

https://en.wikipedia.org/w/index.php?title=Maurice Strong&diff=prev&oldid=1159552663

https://en.wikipedia.org/w/index.php?title=Sevier County, Utah&diff=prev&oldid=1159551969

It can really get confusing because there are examples where links within links for sure will not render or display both links properly. Thanks. Huggums537 (talk) 03:08, 11 June 2023 (UTC)

In your first diff, the one that you marked as "link works" is an error that should be fixed. I don't see anything different from how these nested and malformed links have displayed for years. The best place to discuss Linter errors is at WT:Linter. – Jonesey95 (talk) 04:58, 11 June 2023 (UTC)
If you go to the external links section you will find that the links actually function as two different links. This did not used to happen. If a link was inside a link, then only the "outside" link would function properly, and the link "inside" would not be able to be seen or function. Perhaps what could be causing this to happen is one of the scripts I am using? I have one script that distinguishes between different kinds of links by highlighting them in different colors. Perhaps what is making the links be able to work for me is that the script is dividing them into different colors and enabling them to be seen as different links? Huggums537 (talk) 05:06, 11 June 2023 (UTC)
What about the other examples? Are they still displaying, and functioning for you as a single link as they have for years also? Because they are rendering as two different links side by side for me, but they used to show as only the outside one as in the very last example I gave where they for sure are an error. Huggums537 (talk) 05:13, 11 June 2023 (UTC)
Your first example says
[http://www.henryirving.co.uk/correspondence.php?search=ewart Letter of Forbes Winslow to actor [[Henry Irving]] (1879)]
and produces:
Letter of Forbes Winslow to actor Henry Irving (1879)
The link text for the external link is only "Letter of Forbes Winslow to actor", Henry Irving is a working wikilink, and "(1879)" is unlinked. I think the code is wrong and should be fixed even if MediaWiki produces two working links. archive.org shows it has given the same result for years, e.g. 30 April 2020. I don't know whether it's new that it's flagged as a lint error. PrimeHunter (talk) 10:09, 11 June 2023 (UTC)
Yes, that is exactly what I'm getting produced, but I never used to get it producing two working links before. It used to be that if you put a link inside of another link, then the inside link would not be visible or working. That was the whole reason I thought links within links were considered errors because it was useless putting them inside of each other if they couldn't be parsed one apart from the other, but it appears now they can for some reason or another... Huggums537 (talk) 10:28, 11 June 2023 (UTC)
Also, it isn't new for this type of code to flag as an error. What's new is the links to somehow now be working independently of each other... Huggums537 (talk) 10:32, 11 June 2023 (UTC)
Maybe it is possible the links always worked before, and I just never noticed because they were all the same color, and right next to each other, but now that I have the color-coded script for links it is much easier to tell the difference. Looks like I might have to go back to square one on my link within link bustin' routine... Huggums537 (talk) 10:43, 11 June 2023 (UTC)
I'm going to agree with both of you that the links being right next to each other still needs to be fixed no matter if I thought the links were working links or not, it is still a problem... Huggums537 (talk) 10:53, 11 June 2023 (UTC)
The very fact that I might have thought they were not working links when they probably were the whole time is evidence enough it is a problem. I think we can consider this case closed... Huggums537 (talk) 10:57, 11 June 2023 (UTC)
  • Actually, the case is still open because I looked at this problem in an incognito browser and the links work just fine as two distinctly different links, and I'm certain this did not used to be the case. Perhaps the default skin has recently changed? I'm looking at this external links section in an incognito browser, and the two links are fairly easily identifiable as different working links so I don't know why the system is still flagging this code as lint errors when the links are working working normally now. I could be wrong, but I was certain only one of those links were able to work before, and they displayed as a single link only, not two different links. Either something has changed or I'm goin' batty. Huggums537 (talk) 20:09, 11 June 2023 (UTC)
  • I guess it doesn't matter. I'm just going to have to work with the way things are now I suppose. Huggums537 (talk) 20:24, 11 June 2023 (UTC)
    The current HTML spec says that an a element's descendants cannot include an a element; this was more clearly expressed in HTML 4.01 as nested links are illegal but the principle is the same. Nevertheless, it seems that many modern browsers can handle the situation, and indeed the MediaWiki software makes use of that when you click either the "Your alerts" or "Your notices" icon/counters. Doing this opens something that has all the appearance of a drop-down list, but it isn't a list at all - it's a sequence of <a>...</a> elements, within each of which is quite a lot of nested HTML. Consider a typical "Your mention of Example was sent." item:
    <a class="oo-ui-widget oo-ui-widget-enabled mw-echo-ui-notificationItemWidget" href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?markasread=283224926&amp;markasreadwiki=enwiki#Problem_with_links_within_links_lint_errors"><div class="mw-echo-ui-notificationItemWidget-icon"><img src="/w/extensions/Echo/modules/icons/mention-success-constructive.svg" role="presentation" alt=" "></div><div class="mw-echo-ui-notificationItemWidget-content"><span class="mw-echo-ui-notificationItemWidget-markAsReadButton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-buttonWidget mw-echo-ui-toggleReadCircleButtonWidget"><a class="oo-ui-buttonElement-button" role="button" tabindex="0" rel="nofollow" title="Mark as unread"><span class="oo-ui-iconElement-icon oo-ui-icon-_"></span><span class="oo-ui-labelElement-label oo-ui-labelElement-invisible">Mark as unread</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator"></span><div class="mw-echo-ui-toggleReadCircleButtonWidget-circle mw-echo-ui-toggleReadCircleButtonWidget-circle-unread"></div></a></span><div class="mw-echo-ui-notificationItemWidget-content-message"><div class="mw-echo-ui-notificationItemWidget-content-message-header-wrapper"><div class="mw-echo-ui-notificationItemWidget-content-message-header">Your mention of <strong>Example</strong> was sent.</div></div></div><div class="mw-echo-ui-notificationItemWidget-content-actions"><div class="mw-echo-ui-notificationItemWidget-content-actions-buttons oo-ui-widget oo-ui-widget-enabled oo-ui-selectWidget oo-ui-selectWidget-unpressed oo-ui-buttonSelectWidget" role="listbox" aria-multiselectable="false" tabindex="0"><a class="oo-ui-widget oo-ui-widget-enabled oo-ui-labelElement oo-ui-optionWidget oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-buttonOptionWidget mw-echo-ui-menuItemWidget mw-echo-ui-menuItemWidget-prioritized" aria-selected="false" tabindex="-1" role="option" href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Problem_with_links_within_links_lint_errors" title="Wikipedia:Village pump (technical)"><a class="oo-ui-buttonElement-button" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-article"></span><span class="oo-ui-labelElement-label">‪Village pump (t...‬<label class="mw-echo-ui-menuItemWidget-description oo-ui-widget oo-ui-widget-enabled oo-ui-labelElement-label oo-ui-labelWidget oo-ui-element-hidden"></label></span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator"></span></a></a></div><span class="mw-echo-ui-notificationItemWidget-content-actions-menu oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-buttonWidget mw-echo-ui-actionMenuPopupWidget oo-ui-element-hidden"><a class="oo-ui-buttonElement-button" role="button" title="More options" tabindex="0" rel="nofollow" aria-expanded="false"><span class="oo-ui-iconElement-icon oo-ui-icon-ellipsis"></span><span class="oo-ui-labelElement-label"></span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator"></span></a></span><label class="mw-echo-ui-notificationItemWidget-content-actions-timestamp oo-ui-widget oo-ui-widget-enabled oo-ui-labelElement oo-ui-labelElement-label oo-ui-labelWidget">3m</label></div></div></a>
    
    This involves no fewer than five <a>...</a> elements - one on the outside, three more further in, and one inside the second one of those three, that is, there is a doubly-nested <a>...</a> element, this one being the link to the section where you mentioned User:Example. It works just fine in current Firefox, as it did going back at least sixty versions. --Redrose64 🌹 (talk) 20:33, 11 June 2023 (UTC)
    Uh, triply nested? You just blew my mind! Lol. This is way deeper than the introduction to HTML I took years ago, but I get the gist of what you are showing about [a] triple nested element within the five address elements. Huggums537 (talk) 20:58, 11 June 2023 (UTC)
    My bad, corrected. To make it clearer, I've made this edited version:
    <a href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?markasread=283224926&amp;markasreadwiki=enwiki#Problem_with_links_within_links_lint_errors">
      <img src="/w/extensions/Echo/modules/icons/mention-success-constructive.svg">
      <a title="Mark as unread">Mark as unread</a>
      Your mention of <strong>Example</strong> was sent.
      <a href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Problem_with_links_within_links_lint_errors" title="Wikipedia:Village pump (technical)">
        <a>‪Village pump (t...‬</a>
      </a>
      <a title="More options"></a>
      3m
    </a>
    
    Basically, I've removed all div, label and span tags, both opening and closing; also most attributes. Then I've added some newlines to what's left, and indented it so that the nesting is clearer. You can see three levels of <a>...</a> here. --Redrose64 🌹 (talk) 23:10, 11 June 2023 (UTC)
    Thanky. That simplifies things quite a bit. Much easier on the eyes. Huggums537 (talk) 20:27, 12 June 2023 (UTC)
The result does not depend on browser or skin. MediaWiki generates valid HTML with two non-overlappping links and has done so for years. The generated HTML for [http://www.henryirving.co.uk/correspondence.php?search=ewart Letter of Forbes Winslow to actor [[Henry Irving]] (1879)]:
<a rel="nofollow" class="external text" href="http://www.henryirving.co.uk/correspondence.php?search=ewart">Letter of Forbes Winslow to actor </a><a href="/wiki/Henry_Irving" title="Henry Irving">Henry Irving</a> (1879)
HTML in the archive.org snapshot from 30 April 2020:
<a rel="nofollow" class="external text" href="https://web.archive.org/web/20200430213935/http://www.henryirving.co.uk/correspondence.php?search=ewart">Letter of Forbes Winslow to actor </a><a href="/web/20200430213935/https://en.wikipedia.org/wiki/Henry_Irving" title="Henry Irving">Henry Irving</a> (1879)
archive.org changes links to be internal within the site but apart from that, the HTML is exactly the same. Nothing has changed for at least three years. The fact that MediaWiki is currently coded to automatically clean up some things and generate valid HTML for certain forms of bad wikitext does not mean we should just allow those forms of bad wikitext forever. The wikitext is ambiguous and a literal interpretation would produce invalid HTML. MediaWiki may change the processing in the future. The author probably intended "(1879)" to be part of the external link text and may not have thought about what would happen with wikilink syntax within external link syntax. PrimeHunter (talk) 21:02, 11 June 2023 (UTC)
I agree it should be fixed, and I think I fixed it already, but I'm not convinced about the archive.org evidence because it doesn't always render a page exactly the same as it was before. I found this out when I used the service to backup some youtube channels I created before they got banned. Huggums537 (talk) 21:22, 11 June 2023 (UTC)
The fundamental problem is that there is a link inside of a link, which is not valid syntax. In the Henry Irving example above, the wikitext is asking the string "Henry Irving" to be linked to both the URL and to the Wikipedia article, which is clearly impossible. – Jonesey95 (talk) 21:28, 11 June 2023 (UTC)
Except, that it clearly is possible as demonstrated by Redrose64 above, and by the fact that the links now work for some odd reason... Huggums537 (talk) 21:32, 11 June 2023 (UTC) Nevermind. Misunderstanding. 21:45, 11 June 2023 (UTC)
... I think this conversation is done. You can choose to work on the linter category or not as you might wish, but I think there are sufficiently many others above, and the devs on top of that, who think this is a case of bad syntax and should be fixed. (I agree with them.) Izno (talk) 21:47, 11 June 2023 (UTC)
Is there an echo in here? Didn't I say that earlier, and agree with others already? Huggums537 (talk) 21:53, 11 June 2023 (UTC)
Oh good, you were still talking, so it gave the impression otherwise. :) Izno (talk) 22:34, 11 June 2023 (UTC)
Yeah, sometimes I dunno when to keep my mouth shut. It's a work in progress... Huggums537 (talk) 22:59, 11 June 2023 (UTC)
I am sure that links within links have behaved this way at least since the parser changes in 2017 (mw:Parsing/Replacing Tidy). It's possible that they behaved differently before that, but I have no way to check and it doesn't seem like anyone documented it at the time.
Regarding @Redrose64's example with the notification markup: the reason why that works, and the wikitext doesn't, is because nested links are only forbidden when parsing HTML, but not when building a HTML page in JavaScript. It is a subtle and confusing distinction. There's a bug report at phab:T58418 that complains about our reliance on it (which is actually my fault, back when I was younger ;) ). Matma Rex talk 00:06, 13 June 2023 (UTC)
Okie doke. I'll just chock it up to a case of mistaken identity, and work with what I've got. Thanks for the responses. Huggums537 (talk) 00:12, 13 June 2023 (UTC)

Vertical scrollable table with sticky headers

Hi,
On Dutch Wikibooks a template is present to create a table in such a way the header remains visible while scrolling through the data lines. As on the English Wikipedia also some rather long tables exist I searched for a template able to do the same. Either I am a bad scout or the template does not exist. So I translated the dutch template into English: template:Scrolling table Y, and on Ionic radius it does its job well, with one remark: somewhere out of the blue the text "{{ safesubst:p{{ safesubst:#ifyes: |1|2}}|{{{3}}}|}}" appears. Is someone able to pinpoint its source, for me it is just magic. T.vanschaik (talk) 20:03, 12 June 2023 (UTC)

@T.vanschaik, this template will not work in all skins (top: Nem is effectively a skin-specific value), which is sufficient cause for me to suggest the template should be deleted. A change like this should also be made globally (probably in the context of the wikitable class) if it is indeed desirable. That's phab:T42763.
There is a gadget you can turn on locally if you would prefer to browse with sticky table headings, available in the experimental section of your gadget preferences. Izno (talk) 20:57, 12 June 2023 (UTC)
{{Import style|sticky}} currently exists as a solution. Example usage here. InfiniteNexus (talk) 21:12, 12 June 2023 (UTC)
... which also exhibits the issue I outlined. Cool. :) Izno (talk) 21:39, 12 June 2023 (UTC)
You are using a kind of slang I am not familiar with. "skin-specific" ? On the other hand I understand the solution I used might not work in some situations. I will study that sticky style and as fat as I can see, it does not differ that much from the code code I used. What is the benefit of puting it in a css>T.vanschaik (talk) 06:44, 13 June 2023 (UTC)

See: Help:Table#Scrolling and sticky headers and one of its subsections:

Here is the "What Links Here" page for the Dutch template. To see it in action.

This is interesting:

--Timeshifter (talk) 07:21, 13 June 2023 (UTC)


I, as far as I am aware, implented the suggested changes, but sill I am blessed with those out of the blue texts mentioned in the very first section {{ safesubst:p{{ safesubst:#ifyes:|1|2}}|{{{3}}}|}}. So to me the changes might solve a general Wikipedia rule, it does not solve this problem. I checked with copy of this old version of [radius]. T.vanschaik (talk) 07:30, 13 June 2023 (UTC)
I don't see sticky headers in that old version of the page. I tried Vector 2022 and Vector 2010.
This is interesting:
https://de.wikipedia.org/wiki/Red_Hot_Chili_Peppers/Diskografie
Has progress stopped here?:
https://phabricator.wikimedia.org/T42763
--Timeshifter (talk) 07:44, 13 June 2023 (UTC)
No. We know the limitations, we know what we have to do to fix it. The issue is that lots of templates on wikipedia have multi row headers and that sort of requires the use of JS or PHP to make sure we have thead elements (which is what the en.wp sticky headers do). But adding JS to rework all wiki tables on the website is a performance issue, so really that should be brought parser side, which means post processing the html, which requires parsoid etc. And then there is the issue of supporting the various skins with their own sticky headers and how that works different from tables which are inside a scrollable etc etc etc.
It's one of those. "looks easy, but doing it at the scale of Wikipedia with all its edge cases is hard"-problems. —TheDJ (talkcontribs) 08:30, 13 June 2023 (UTC)
Thanks for the explanation. Having recently played around with the various Wikipedia skins on both my desktop PCs and cell phone, I realize what a pain it is to make stuff work on all the skins. A good reason in my opinion to limit the number of skins to 2 or 3. And the plethora of skins and forks on Fandom/Wikia drove many of us to also work on other wikis using standard Mediawiki and the standard Mediawiki skins. --Timeshifter (talk) 11:39, 13 June 2023 (UTC)

Talk page archives missing from box listing them on talk page

On Talk:The Holocaust in Poland there is a little box amongst the headings with a list of the archives. It is missing the links to Talk:The Holocaust in Poland/Archives/2023/February, Talk:The Holocaust in Poland/Archives/2023/March, Talk:The Holocaust in Poland/Archives/2023/May, and Talk:The Holocaust in Poland/Archives/2023/June. I can't see how to fix it. All help gratefully received. DuncanHill (talk) 20:48, 13 June 2023 (UTC)

  Fixed Special:Diff/1160001554 in Template:Monthly archive list. —⁠andrybak (talk) 21:00, 13 June 2023 (UTC)
@Andrybak: Many thanks, DuncanHill (talk) 21:16, 13 June 2023 (UTC)

Customize CharInsert

How can I add items to CharInsert Wiki markup set at the bottom of the edit window, such as adding {{reflist-talk}} I believe it's a CSS call, but I'm no good at coding :P. Thanx, - FlightTime (open channel) 04:20, 14 June 2023 (UTC)

@FlightTime: See Help:CharInsert#Customization. In your common JavaScript:
// Add custom CharInsert entries per [[Help:CharInsert#Customization]]
window.charinsertCustom = {
 "Wiki markup": ' {\{reflist-talk}}',
};
PrimeHunter (talk) 05:12, 14 June 2023 (UTC)
@PrimeHunter: Thank you very much! - FlightTime (open channel) 05:18, 14 June 2023 (UTC)

Category:Maintenance categories for article-space categories which don't need a talk-page?

There's an effort at https://quarry.wmcloud.org/query/74353 to build an SQL query to find main-space articles that need a talk page so they can be classified into wikiprojects, etc. The bulk of that query is a list of main-space things that DON'T need talk pages (primarily disambiguation pages and set indexes of various types). There are almost certainly many more to find. I would like formalise this into a pair of hidden maintenance categories, one for disambiguation pages and one for set indexes. This would make this kind of query (and the automated generation of worklists of talk pages to create / maintain) significantly easier. Does that sound insane? [If you think this work is useless, take a look at the # of BLPs returned by that query that aren't tagged as BLPs] Stuartyeates (talk) 10:06, 12 June 2023 (UTC)

For the disambiguation pages, do
left outer join page_props on pp_page = page_id and pp_propname = "disambiguation"
:where pp_page is null
--Snævar (talk) 11:37, 12 June 2023 (UTC)
For the SIAs, you'd need something like
left outer join categorylinks on cl_type = "page" and cl_from = page_id and cl_to = "All_set_index_articles"
:where cl_from is null
but beware that this data may move into the linktarget table and that some WikiProjects may want to tag SIAs, e.g. Set index articles on ships are often tagged for WikiProject Ships. Certes (talk) 12:47, 12 June 2023 (UTC)
Thank you Snævar and Certes. There is now a query at https://quarry.wmcloud.org/query/74483 titled Old articles that probably need talk pages, with suggested Wikiprojects which pretty much does what it says. A little on the computation-intensive side. Stuartyeates (talk) 10:01, 14 June 2023 (UTC)

Changes in Popups gadget

Hi. I have two changes pending for in Navigation Popups, I would be grateful if someone could apply them. Changes are relatively simple, but add that extra bit of UX to the Popups. Both changes are already tested on another Wikipedia (I'm an admin on plwiki), so there is no risk here really. Due to some l10n we cannot completely synchronize our versions of Popups, but I added a link to a diff to easily apply changes.

I'll be happy to answer any questions... Related to the topic :) Nux (talk) 20:23, 14 June 2023 (UTC)

Problem with “complex transclusion” on WikiBooks

Greetings! I’m a contributor over on WikiBooks, but was instructed to come here by User:Whatamidoing (WMF). I am having a problem with the Visual Editor with one of the pages there. This is the exact revision that demonstrates the problem.

What is happening is that the bottommost list of links (under the Appendices heading) is not editable. When I click on it, instead of placing my cursor inside the list, I get a “Template content” pop-up instead. If I click the Edit button, I see a (probably malformed) template editor with one field: wikitext. Inside this text field is the content that I am trying to edit. However, this text box contains no scroll bar, is only one line of text high, and is not resizable, making it almost impossible for me to edit its contents. Furthermore, I prefer not to edit wikitext whenever possible (although I am certainly capable of it). I was told that this may be a “complex transclusion” error in one of the templates being used in this page. (The templates used do not exist on enwiki.)

I am wondering if anyone here might be able to tell me what to change in the wikitext to fix this problem, or, if it really is a bug in Visual Editor, give me instructions on how to report it. Thanks! SupremeUmanu (talk) 15:09, 14 June 2023 (UTC)

It's caused by wikibooks:Template:Shelves and also happens on other pages using it, e.g. wikibooks:Latin. The template outputs categories but no text visible at the location of the template. VisualEditor apparently likes to have a way to click and edit it so it's grouped with the preceding wikitext in some circumstances. I don't know a good solution. A poor solution may be to add something else with visible (in VisualEditor) output before it, e.g. a source comment like <!-- end -->. Then the treatment in VisualEdior can change in different ways. I don't know the circumstances determining exactly what happens and the template has thousands of uses so it would be much better if it could be handled in the template code. PrimeHunter (talk) 16:05, 14 June 2023 (UTC)
Adding a comment between the bottom of the list and the templates worked great. Thanks for the tip! SupremeUmanu (talk) 22:35, 14 June 2023 (UTC)

Template-generated redlinked categories, Vol. 99,832,345

The latest run of Special:WantedCategories contains a glut of template-generated redlinked "YYYY in youth football" categories for every single year between 1948 and 2025, all autogenerated entirely by the use of a {{YYYY in youth association football category header}} template (which is really just a redirect to {{YYYY in sport category header}}) on each year's "YYYY in youth association football" categories. This seems to stem from recent edits within the past week to the generic template, because nearly all of the "youth association football" categories have existed for years without doing this before — but I can't figure out what to change in the template to make the redlinks go away, I can't just waltz through all the categories wrapping the templates in {{suppress categories}} because that would also break the legitimate categories, and I can't justify creating any of them as it really doesn't seem like we would need a new "youth football" tree to exist as a separate entity from the already-existing "youth association football" tree.

So could somebody with more skill in template coding than I've got figure out what needs to be fixed in {{YYYY in sport category header}} to make these redlinked categories go away? Thanks. Bearcat (talk) 15:16, 13 June 2023 (UTC)

The only recent editor of {{YYYY in sport category header}} is Aidan721 so just ask him (consider my ping as already asking him). It happened in [20]. PrimeHunter (talk) 15:53, 13 June 2023 (UTC)
@Bearcat: I believe that I've resolved the error by wrapping wrapping with {{#ifexist: <category name>}}. Seems to look good for the few cats I checked. If this pops up for any other cats related to this template give me a ping and I'll be happy to fix. –Aidan721 (talk) 17:51, 13 June 2023 (UTC)
@Aidan721: Yep, that appears to have worked, they're all now struck out and empty on the redlinked category report. Thanks! Bearcat (talk) 22:49, 14 June 2023 (UTC)

Any way to get rid of the "Reload" button in preview window?

In Vector 2022 the "Reload" button covers up some of the text when I am scrolling down the preview. It is very annoying. Especially in that it serves no purpose. The preview automatically reloads as I type in the edit window next to the preview window.

There is very limited space in that preview window, and so scrolling is often necessary, especially when commenting on talk pages. And then the Reload button limits that space even further.

Is there anything on Phabricator about this? Is there an option in the works to remove it? Why not just remove it altogether so that IP editors also won't have to endure that useless button being in their way?

Automatic preview is another great Vector 2022 innovation that has been ruined. --Timeshifter (talk) 07:11, 14 June 2023 (UTC)

@Timeshifter: Realtime Preview is also available in other skins. It's toggled on a "Preview" button at the top right of the edit box. There is a delay before the automatic reload. I don't know how long it can be. There may also be users with unstable connections, and users who don't even realize it's automatic and wonder how they can update the preview. I don't think it should be removed for everybody but you hide the reload button with this in your CSS
.ext-WikiEditor-reloadButton {display: none !important;}
PrimeHunter (talk) 11:24, 14 June 2023 (UTC)
Thanks PrimeHunter. Can you provide some custom CSS to put the reload button just above the preview window?
I noticed that I have to enable the editing toolbar in Special:Preferences#mw-prefsection-editing in order to have the side-by-side editing/preview windows. If I don't enable it, then I don't have any editing tools at all in source mode on Vector 2022.
That means IP readers (most readers on Wikipedia) no longer have true access to wikitext editing. I thought that a promise was made to never force the visual editor on IP readers and editors. This effectively does that. --Timeshifter (talk) 17:14, 14 June 2023 (UTC)
The editing toolbar is displayed when you are logged out and enabled by default when you are logged in. PrimeHunter (talk) 17:23, 14 June 2023 (UTC)
Thanks again, PrimeHunter. I didn't see any indication it was the default in Special:Preferences#mw-prefsection-editing. I am referring to how defaults are indicated in the gadgets tab in preferences: Special:Preferences#mw-prefsection-gadgets.
I wish there was a way to reset the defaults in just one preferences tab. Currently there is just this buried in the User Profile tab: "Reset settings: Restore all default preferences (in all sections)".
And I would still like some custom CSS to put the reload button just above the preview window. I would use it, and maybe MediaWiki would use it as the default.
I asked for this here: Help talk:Extension:WikiEditor/Realtime Preview. --Timeshifter (talk) 17:42, 14 June 2023 (UTC)
The default 2010 toolbar is not a gadget. We have a gadget "Enable the legacy (2006) editing toolbar" to display a different toolbar. I'm poor at positioning and the reload button disappears when I try to move it outside the preview area. This makes the bottom half visible and clickable at the top, and less intrusive for me:
.ext-WikiEditor-reloadButton {position: relative; top:-1.2em !important;}
A half visible button is not an acceptable default but maybe you prefer it here if you already know what it does and rarely use it. PrimeHunter (talk) 17:47, 14 June 2023 (UTC)

Thanks PrimeHunter. I added it to User:Timeshifter/common.css. It is a little better than before. Maybe someone else knows the CSS to overlay it over the end of the default editing toolbar. On my desktop PC there is some blank area there. --Timeshifter (talk) 18:21, 14 June 2023 (UTC)

You can use this if you want to show the button only when you hover it:
.ext-WikiEditor-twopanes-pane2:hover .ext-WikiEditor-reloadButton {
	opacity: 0;
}
.ext-WikiEditor-twopanes-pane2 .ext-WikiEditor-reloadButton:hover {
	opacity: 1;
}
You can use this to make the button smaller (reduce it to an icon)
.ext-WikiEditor-reloadButton > a >.oo-ui-labelElement-label {
	display:none !important;
}
.ext-WikiEditor-reloadButton > a > .oo-ui-iconElement-icon {
	display: block !important;
	position: static !important;
}
.ext-WikiEditor-reloadButton > .oo-ui-buttonElement-button {
	padding: 2px !important;
	min-height: 0;
}
Enjoy ;), Nux (talk) 20:47, 14 June 2023 (UTC)
Thanks Nux. I tried both, and will be using the one that makes the Reload button only show up when I directly hover over it.
The icon in the preview window still bugs me.
I think what would be best is the icon or "Reload" text just above the Preview Window. Is this possible? --Timeshifter (talk) 22:53, 14 June 2023 (UTC)
Not really, no. Not the way it was built and the way it really has to work to support stone-age skins like monobook ;). Personally I actually like it like that. I tested an early prototype of the preview and might have suggested the reload to be more visible. Though I'm neither confirming nor demining it is working like that because of me ;). Nux (talk) 23:37, 14 June 2023 (UTC)
Nux. I just want it to work for me in Vector 2022 with the default editing toolbar. On my Windows 10 Pro desktop PC in Firefox I see plenty of blank space at the bottom right of the editing toolbar. It is just above the Preview window. It would be a perfect spot for the Reload button. The same big Reload button that comes with Realtime Preview. --Timeshifter (talk) 01:47, 15 June 2023 (UTC)

Short description text enlarged?

I just noticed that the short description text on the top of all of the articles it is used on is larger than it used to be. It used to be about half the size of the normal text within the articles, but now it's the same size as the text within the articles. Is this intentional? Steel1943 (talk) 13:06, 15 June 2023 (UTC)

@Steel1943 we don't display "short descriptions" on the top of all articles. Is this some gadget or script you are using? — xaosflux Talk 13:12, 15 June 2023 (UTC)
If it is the gadget, think this is being discussed at Wikipedia talk:Shortdesc helper. — xaosflux Talk 13:17, 15 June 2023 (UTC)
Clarified in italics. And I see it being discussed there indeed. Wonder why this happened. Steel1943 (talk) 13:53, 15 June 2023 (UTC)
@Steel1943 WP:ITSTHURSDAY probably, but as this seems to be solely about a local gadget, the gadget maintainers would need to deal with it. If you are seeing any fall out for this that would impact everyone (not just registered editors opted in to a script or gadget), please share additional details. — xaosflux Talk 14:09, 15 June 2023 (UTC)

Recover technical report from U.S. archive

Hi, is there a way to recover NEDU-RR-2-52.pdf (new id AD0784176) in the page Pirelli? I wasn't able to recover it. Thanks in advance--- Carnby (talk) 10:14, 15 June 2023 (UTC)

@Carnby that file does not appear to have ever been uploaded here, not sure what you want us to "recover"? Are you trying to find an external host for that file? This link acknowledges the information, but reports that it is generally unpublished online. You could try asking over at Wikipedia:WikiProject Resource Exchange/Resource Request, perhaps someone there has a logon for that system or access to a print version. — xaosflux Talk 13:10, 15 June 2023 (UTC)
@Xaosflux Thank you, I didn't know that help page.--Carnby (talk) 16:25, 15 June 2023 (UTC)
Carnby: I processed the entire dtic.mil domain a while back with WP:WAYBACKMEDIC and was able to find new URLs for many links that had moved, but this one nothing specifically found for https://apps.dtic.mil/sti/pdfs/AD0784176.pdf and no archives anywhere. It was publicly available at one time so they took it down intentionally or accidentally. -- GreenC 17:34, 15 June 2023 (UTC)

Blocked from editing on mobile

I can edit normally from my PC. When I try to edit from my phone logged into my account and connected to the same network, it says my IP address is blocked. I can't even edit my own talk page. The range block is 2605:ef80::/42. Schierbecker (talk) 03:55, 15 June 2023 (UTC)

@Schierbecker, the correct place to request help for your issue is WP:ANI. Izno (talk) 05:05, 15 June 2023 (UTC)
@Schierbecker sounds like no open proxies - turn off your phone's VPN. — xaosflux Talk 13:15, 15 June 2023 (UTC)
that range is basically Google cloud services, so yes likely due to vpn usage. —TheDJ (talkcontribs) 14:48, 15 June 2023 (UTC)
No VPN on this device. I have Google Fi VPN, but the toggle is set to off. Oh well, I'm not sweating this. Schierbecker (talk) 18:25, 15 June 2023 (UTC)
Compare the results on Wikipedia:Get my IP address - if no VPN, they should be about the same for everything on the same residential wifi network. — xaosflux Talk 18:33, 15 June 2023 (UTC)

Graphs

The Graphs haven't been working for quite some time due to "Technical issues", any news from the Phabricator, or any explanations? Crainsaw (talk) 20:18, 15 June 2023 (UTC)

@Crainsaw: See Wikipedia:Village pump (technical)/Archive 206#Updates on graph extension? PrimeHunter (talk) 20:31, 15 June 2023 (UTC)

Language selector is broken

The language selector in the top right corner of the Vector 2022 skin no longer works without JavaScript (since yesterday). 93.72.49.123 (talk) 02:21, 16 June 2023 (UTC)

Reported in phab:T339321. You should probably upgrade your browser though (or system). Nux (talk) 02:33, 16 June 2023 (UTC)
No need to upgrade browsers or system. This is just due to changes on Wikipedia side. Language selector dropdown worked fine in browsers with JS turned off. Till now. (Opera GX, the latest version) 95.24.199.109 (talk) 04:48, 16 June 2023 (UTC)

Are these TimedText files broken?

TimedText:Don't_Dream_It's_Over.ogg, TimedText:BlindFoldMeKelis.ogg and TimedText:Fakin_It_S+G.ogg lack languages but seem to exist anyway. Jo-Jo Eumerus (talk) 10:00, 16 June 2023 (UTC)

The first one should be at "TimedText:Don't Dream It's Over.ogg.en.srt", but it has no timecodes, so those need to be added for it to work. The second one is in the same way in the wrong place (missing ".en.srt"), but here there is allready a TimedText there, but at least the wrong titled one has timecodes. The third one has the exact same issue as the second one. I would advise doing deletions of some of those, depending on their content. Snævar (talk) 10:23, 16 June 2023 (UTC)

Anyone else unable to use the desktop website's search function while logged out on mobile?

For me, pressing the search magnifying glass does absolutely nothing.

This is the only thing stopping me from being OK with Vector 2022. w.i.k.i.w.a.r.r.i.o.r9919 16:53, 15 June 2023 (UTC)

There has been some work in this area lately. IDK if it's relevant. @Jon (WMF):. Izno (talk) 18:21, 15 June 2023 (UTC)
There should be search button to the right of the input. Is that showing for you? The magnifying glass is only meant to be decorative. Jdlrobson (talk) 19:30, 15 June 2023 (UTC)
After some testing I found a page where the button was not showing - this suggests a caching bug and I was able to fix it by purging the page. Jdlrobson (talk) 19:33, 15 June 2023 (UTC)
I don't know what the default skin is called, but when I open it in incognito mode on my browser I can see the magnifying glass, but no option to purge that I can see on the page (even in any drop down menus), and the spyglass does nothing. Huggums537 (talk) 11:07, 16 June 2023 (UTC) Updated on 11:10, 16 June 2023 (UTC)
You can purge a page by adding ?action=purge to the end of the url, or &action=purge if the url already has a ?. PrimeHunter (talk) 11:30, 16 June 2023 (UTC)
Thanks. Performed the server [request] purge and still nothing... Huggums537 (talk) 11:40, 16 June 2023 (UTC)
Can you share the URL to this page? Note the purge will need to also be performed incognito and usually I find I have to refresh the page after Jdlrobson (talk) 14:50, 16 June 2023 (UTC)
Purge and refresh tests completed on the main page, and incognito as mentioned earlier. It also occurs with the Epic browser on Android, but I don't seem to have the problem using a Firefox based browser over the Tor network on Android so I'm going to assume it will probably work with the In private mode on FireFox, but have not tested it. Huggums537 (talk) 15:18, 16 June 2023 (UTC)
I should imagine devs will be more concerned about it working with native browsers though... Huggums537 (talk) 15:33, 16 June 2023 (UTC)

I renew my invitation to solve this problem: the "Infobox legislative election" can only be edited by a few users but there was an RFC with a very clear outcome: can anyone implement the template with outgoing and incoming MPs? Scia Della Cometa (talk) 20:15, 16 June 2023 (UTC)

There is already an edit request for it. Category:Wikipedia_template-protected_edit_requests has quite a few entries, so just be patient. RudolfRed (talk) 20:47, 16 June 2023 (UTC)
It was entered by me, but I wasn't sure it worked correctly. Scia Della Cometa (talk) 04:49, 17 June 2023 (UTC)

Adding a new map

I'm trying to add the following map to Drag (Austin, Texas) and am having some difficulty doing so:

| map                     = {{maplink-road|from=Wikipedia:The Drag (Austin, Texas).map|zoom=12}}

It's like it's centering around the Atlantic ocean west of Africa instead of centering in on the coordinates of The Drag, itself.

I tried adding |coord=30.285833,-97.741667 and |latitude=30.285833|longitude=-97.741667 without success. https://www.wikidata.org/wiki/Q5304794 looks good.

Any ideas? TerraFrost (talk) 13:35, 16 June 2023 (UTC)

 

The map module is not retrieving the data because of the Wikipedia prefix. Just use |from=The Drag (Austin, Texas).map. Although not needed, the position parameters are |frame-latitude=30.285833 and |frame-longitude=97.741667. —  Jts1882 | talk  14:46, 16 June 2023 (UTC)
(And apparently when it can't retrieve the data, it defaults to 0, 0, which is in the Atlantic ocean west of Africa.) Izno (talk) 16:02, 16 June 2023 (UTC)
That's good old Null Island, a fun place to visit. – Jonesey95 (talk) 15:30, 18 June 2023 (UTC)

Table technics

 

Hi all, apologies if this is in the wrong place, but I see others have asked about tables here, so.

Is it possible to make a table looking like this? The idea being that, where cols A + B stay the same, it is unnecessary to repeat their contents x-amount of times subsequently. Any hints as to its coding would be much appreciated by an editor without a coded bone in his body  :) SN54129 12:13, 16 June 2023 (UTC)

@Serial Number 54129: Can you use rowspan, like this?
A B C D E
C1 D1 E1
C2 D2 E2
Or do you literally need an L-shaped table with blank space beneath the A and B? Certes (talk) 12:31, 16 June 2023 (UTC)
Cool beans, Certes, that would probably do it! I admit I think it would look aesthetically more pleasing without the excess order, but maybe that's WP:COSMETIC or with WP:ACCESS issues; not sure. What do you think? SN54129 12:36, 16 June 2023 (UTC)
Blast! And I've just realised I need two rows at the top-my drawing just shows the contents, but of course their needs to be the column headers above, as well. Sorry Certes for my hijacking of WP:VOL  ;) SN54129 12:53, 16 June 2023 (UTC)
a b c d e
A B C D E
C1 D1 E1
C2 D2 E2
Is this closer to what you want? —  Jts1882 | talk  13:03, 16 June 2023 (UTC)
Confession time, Jts1882, that's what I want what I really really want! :) Thanks everso much! And thanks to you, also, Certes, for getting the ball rolling in the first place! Barnstars all round! SN54129 13:11, 16 June 2023 (UTC)
@Serial Number 54129: (I don't want to cause trouble, although that might be a useful side-effect.) I realize you've asked a technical question in a tech forum, but I'm wondering what you would need such a bizarre shape for a "table" for. Can I assume it's purely layout? Otherwise, what do the bottom two rows signify? For that matter, what is the correlation for the top row ("A"–"E")? If this is a data table, the data cells should relate to each other in some way. And if it's just layout, it should use
{| role="presentation" ... |}
, as per MOS:LTAB. — JohnFromPinckney (talk / edits) 17:41, 18 June 2023 (UTC)
@JohnFromPinckney: If you're not wanting to cause trouble... then I'd hate to see you when you do!!  ;) Thanks for this, though. Would you mind if, instead of me trying to explain to you the why's and wherefores (on account of me not knowing the language to use, I hasten to add, not because you wouldn't understand me!). If you look at the page what started this, it's how I envisaged listing separate but linked, lists and trying to avoid unnecessary duplication. If you look at the "Published episcopal registers" bit, it might be clearer than my waffling. SN54129 18:13, 18 June 2023 (UTC)
Thinking about it, the empty boxes serve the same purpose visually as, say, |author-mask= at template {{Cite book}}, where Replaces the name of the (first) author with em dashes or text to avoid repetition after first use. (See this edit for the use of author mask.) SN54129 18:23, 18 June 2023 (UTC)
You need to use rowspan. The syntax used there isn't correct. Gonnym (talk) 18:32, 18 June 2023 (UTC)
As stated by Gonnym, the leftmost columns should use the rowspan attribute to indicate that its cells apply to multiple rows (where appropriate). This will allow assistive technology such as screen readers to understand the table structure and describe it appropriately. isaacl (talk) 18:44, 18 June 2023 (UTC)
Thanks for your answer, Serial Number 54129. I agree with the others; you need to use (at least) rowspan. I have, in fact, taken the liberty of editing the first table, with a view toward demonstrating what could be done to improve accessibility and understandability. But now I come to the next question (and this, too, is not really technical; it has to do, again, with logical presentation of the data): why do you have multiple tables? If each "big row" is one (arch)diocese, then the left column is the caption for the table. But (almost certainly) what you intended is, presumably, all that info should be in one big table, with each row comprising one or more title/editor/notes rows. Yes? — JohnFromPinckney (talk / edits) 20:11, 18 June 2023 (UTC)
I'm sure that's absolutely correct, JohnFromPinckney, and one big table would be better than several discrete ones. But as I said, I don't really get how this is done; if someone could WP:SOFIXIT I'd appreciate it. I write Obscure Articles. Release the Coders! SN54129 20:57, 18 June 2023 (UTC)
  Done DMacks (talk) 08:24, 19 June 2023 (UTC)

Old revisions from 2004 give errors

(May just be related to S.A.M. (comics) but I don't know.)

I got an error while looking at a revision from 2004. The following is the text from the error. [fef392ca-11f6-493d-8f76-374af4edf7be] 2023-06-15 08:47:28: Fatal exception of type "MediaWiki\Revision\RevisionAccessException" I don't know what this means. Does someone know? 🌶️Jalapeño🌶️ Don't click this link! 08:49, 15 June 2023 (UTC)

To be specific, this happens with revisions 13164845 and 8393450. 🌶️Jalapeño🌶️ Don't click this link! 08:55, 15 June 2023 (UTC)
It's about the two oldest revisions 13164845 and 8393450 in the page history [21]. It just means what it sounds like: Exception representing a failure to look up a revision. The MediaWiki database sometimes has errors for very old revisions. These revisions aren't needed for anything so just ignore it. PrimeHunter (talk) 09:59, 15 June 2023 (UTC)
I think this is phab:T128150, some ancient technical debt, which is being worked now. I will drop a note there though. Izno (talk) 18:19, 15 June 2023 (UTC)
@Jalapeño Hi, as Izno mentioned, it was due to a bug in the script that changes encoding of old revision to utf-8 (instead of legacy Windows-1252). We recovered it from a backup and it should be fixed now. Sorry for any inconvenience. ASarabadani (WMF) (talk) 16:23, 19 June 2023 (UTC)

Tech News: 2023-25

MediaWiki message delivery 20:06, 19 June 2023 (UTC)

End of the Zebra #9 A/B test

 

Hello everyone.

Since about three weeks ago, 50% of logged-in users have been seeing a tested version of the Vector 2022 skin, Zebra #9. It has more gray backgrounds and clearly separated regions of the interface. At the same time, the Web team at the Foundation was measuring some of the high-level metrics for the tested group of users. Namely: page views, Vector 2022 opt-out rates, edit rate, Table of Contents usage, scrolling, and page tools usage.

Tomorrow, this test will be disabled. Everyone will see the white version of Vector 2022 again. Next, we will analyze the data. If there's no statistically significant decrease, the tested version will become the default. That decision will be made in about three weeks, though.

I know many of you have got accustomed to the new look, and I'd like to apologize for the inconvenience of seeing a change again. This isn't something we could avoid this time. Thank you for your understanding.

Thank you to all who have been reporting bugs and helping others solve problems with Zebra #9!

Subscribe to our newsletter to watch the progress in our projects. SGrabarczuk (WMF) (talk) 20:48, 19 June 2023 (UTC)

New Vector 2022 Skin Navigation Bar (Table of Contents) -- Expanded View

Folks - in the new vector 2022 skin, the default behavior of the navigation bar (table of contents) is collapsed. Is there a single link we can click to expand the entire table of contents? Specifically, I am asking about this page WP:ITNC. You will see that we have to click on each of the dates to open the section underneath that date. cc @Masem: Ktin (talk) 03:27, 18 June 2023 (UTC)

See my comment at the end of this:
phab:T302426. Titled: [ToC] test "show all sub-sections" button.
Maybe you can comment there too. They might listen to an admin, as opposed to us mere mortals. :)
--Timeshifter (talk) 05:51, 18 June 2023 (UTC)
I've left a comment. Not sure how useful it'll be given the Phabricator task has been closed. Anarchyte (talk) 06:08, 18 June 2023 (UTC)
What we really should be able to have is the old "TOC|level=3" functionality that would automatically expand the TOC to the given level on the page rendering. Masem (t) 18:34, 18 June 2023 (UTC)
See T317818 (open since Sep 2022) and T333017 (since Mar 2023). In the meantime, you're on your own to fix this gap via customizing your common.css file. See this code for something that you can copy. – Jonesey95 (talk) 19:59, 18 June 2023 (UTC)
Thanks. I added the CSS to here: User:Timeshifter/common.css
It changes the TOC default to always expanded. I wish it were a toggle button to show/hide.
But this CSS will allow me to keep using Vector 2022, versus going back to Vector 2010. --Timeshifter (talk) 08:03, 19 June 2023 (UTC)
@Ktin, Anarchyte, Masem: I wrote a user script for an expand/collapse all button in the ToC. Add importScript('User:The wub/tocExpandAll.js'); to your vector.js page. See also the section above for more discussion. the wub "?!" 23:08, 19 June 2023 (UTC)

Lynx browser

I cannot edit Wikipedia with Lynx, I get 503 (service unavailable) error. Version: 2.9.0dev.5. Zalán Hári (talk) 05:27, 19 June 2023 (UTC)

@Hári Zalán You're seriously using Lynx for your daily editing? Didn't know that was possible 🙂. What skin are you using? I would guess (educated guess) monobook would be the only one that might work. Nux (talk) 08:41, 19 June 2023 (UTC)
@Nux: I was not using it earlier, but it is useful for some purposes (for example, when I cannot use the graphical interface due to technical issues, or when my connection is limited), and I tried to edit with it. I tried it with Vector 2010 and Monobook. Zalán Hári (talk) 09:31, 19 June 2023 (UTC)
@Hári Zalán without more details this sounds like a TLS error, ensure that you have SSL/TLS enabled in your Lynx build and that your encryption library is current. — xaosflux Talk 09:53, 19 June 2023 (UTC)
@Xaosflux: I have the latest version, and SSL/TLS is enabled. Zalán Hári (talk) 09:55, 19 June 2023 (UTC)
Lynx is a Grade X browser and isn't tested for; this is likely a TLS issue but will need troubleshooting, the Lynx mailing list may be a good next step. — xaosflux Talk 10:50, 19 June 2023 (UTC)
The link you meant was surely this one, regarding graded browser support. Hilariously enough, your original link goes to a page that says, "There is currently no text in this page." — JohnFromPinckney (talk / edits) 20:04, 19 June 2023 (UTC)

Okay, I was able to save this edit with lynx. Mysterious... Zalán Hári (talk) 05:41, 20 June 2023 (UTC)

It is working. It seems that it was a temporary error. Zalán Hári (talk) 05:45, 20 June 2023 (UTC)

Update Special:BookSources

In the Portugal section the following links need fixing:

I understand this is special page and must be updated by technics. Obobaoughowhefowa (talk) 11:33, 20 June 2023 (UTC)

@Obobaoughowhefowa: You can post suggestions to Wikipedia talk:Book sources. PrimeHunter (talk) 13:17, 20 June 2023 (UTC)

"focus" on WP pages

When I first started using EN:WP, the "focus" was always on the "Search" text box. That is, I could just start typing, and characters would appear in the "Search" box, and I could then type the "Enter" key (where carriage return would be on a traditional typewriter) and go to the page whose name I had typed (or enough to be recognized by the AJAX scripting).

At some point, WP switched to a new format, and the focus is somewhere else. I had to mouse to the Search box to get to the page I want.

I discovered by experimentation that if I switched to the old page format, (with the Search box on the left side), the focus would be in the Search box. But only when I'm on the home page "Welcome to Wikipedia". On any other page, the focus is somewhere inconvenient. So every time I want to go to a page whose name I know, I first type control-L (going to the browswer's location bar), then type "en" and Enter. That takes me to the home page and I can then start typing the name of the page I want.

But of course this only works if I am logged in. On any machine other than my usual desktop, I have to mouse to the Search box.

Was this a policy decision of some sort? Or just an accident resulting from other changes to the WP page format? If it's an accident, is there any hope of changing it back? I'd formally submit a proposal but, while I am fairly good at editing Wiki pages, my skills are not up to threading the proposal process. Bgoldnyxnet (talk) 23:45, 19 June 2023 (UTC)

@Bgoldnyxnet: See Wikipedia:FAQ/Main Page#Why doesn't the cursor appear in the search box, like with Google? PrimeHunter (talk) 05:44, 20 June 2023 (UTC)
@Bgoldnyxnet: At Preferences → Gadgets, enable "Focus the cursor in the search bar on loading the Main Page". Or use Alt+⇧ Shift+F at any time. --Redrose64 🌹 (talk) 20:06, 20 June 2023 (UTC)

Button to expand table of contents in Vector 2022

Help:Table, like some other long help pages and articles on Wikipedia, has a very long table of contents. But it is mostly closed. An "expand all" button is needed.

On Vector 2022 it is very difficult to find anything anymore. And I am very familiar with that help page. The difficulty is that the upper level sections are all closed. So I end up opening section after section trying to find the subsections that I know exist on that help page.

Imagine the difficulty of the average reader trying to find the info they desire on that page, or articles with a long table of contents. Many are not going to go through all that work. They want to quickly scan the full table of contents as I do.

I can expand all top sections manually one by one. But when I open the page later they are all closed again. Or if I open another instance of the page in a different tab in the same window they are all closed again. So cookies are not remembering my choices. --Timeshifter (talk) 06:30, 13 June 2023 (UTC)

I don't think that page is a proper reflection of the average navigation needs. There will always be exceptions where some things won't work perfectly. I personally think it's better to split that page into multiple easier to consume pages of documentation. —TheDJ (talkcontribs) 08:35, 13 June 2023 (UTC)
Help:Table could be split up, but I've never felt the need personally until the problem with the table of contents.
There are many long articles. Pick many of the presidential pages, and compare them in Vector 2022 and Vector 2010. I like Vector 2022, but the TOC problem bugs me so much I have moved back to Vector 2010. See: Barack Obama. Donald Trump. John Kennedy. Joe Biden.
Is it technically difficult to create an "expand all" button? --Timeshifter (talk) 11:33, 13 June 2023 (UTC)
A button to expand all sub-sections was tested at phab:T302426 and it was decided to not add it. PrimeHunter (talk) 12:36, 13 June 2023 (UTC)
Thanks PrimeHunter. I left a comment there. --Timeshifter (talk) 23:36, 13 June 2023 (UTC)
I'm not sure how much attention you can expect when adding a comment to a closed ticket. I have no idea if phab's notification system generates notifications for a ticket with status "closed, declined", or whether any notified people will react. Don't get your hopes up. — JohnFromPinckney (talk / edits) 21:22, 14 June 2023 (UTC)
I think notifications continue. Not sure. Because anyone, including me, can change the status (via "edit task") from declined, to open, to resolved, to stalled, etc.. So people would want to be sure that was justified. Otherwise threads could be closed incorrectly. I am claiming that the thread was prematurely closed and declined. --Timeshifter (talk) 22:22, 14 June 2023 (UTC)
The TOC in Vector 2022 still has a bunch of undesirable features that make it take up more space while being less useful than it should be. I have settled on putting customizations in my common.css file while waiting for feature requests to be acted upon. My current code for expanding the TOC on all pages looks like this:
/* Auto-expand sections, and hide the H2-arrows */
.vector-feature-zebra-design-disabled.client-js .vector-toc .vector-toc-level-1 .vector-toc-list-item {
  display: block;
}
.vector-feature-zebra-design-disabled .vector-toc-toggle {
  visibility: hidden;
}
.vector-feature-zebra-design-disabled .vector-toc {
  padding-left: 5px !important;
}
It is probably not as elegant as it could be, but it works for me (for now, until the Zebra classes are changed again). – Jonesey95 (talk) 14:23, 13 June 2023 (UTC)
Thanks. I installed it in User:Timeshifter/common.css but it is not working for me in Vector 2022 in Firefox on my Windows 10 Pro PC. I did the shift-reload thing a few times. --Timeshifter (talk) 23:36, 13 June 2023 (UTC)

PrimeHunter, TheDJ, and all. Is Vector 2022 what non-logged-in IP readers get? If so, it is a step backwards. Because Wikipedia is about quick access to info, and ease of use. That is gone now for long articles. Few readers read long articles. Not in the age of TL;DR. They scan them for the info of interest. Expanded TOCs make that much easier. IP readers can not go back to Vector 2010.

The TOC overlay is the best feature of Vector 2023. Especially the fact that the link for it follows one down the page. It is crippled though by the lack of a "show subsections" or "expand all" button.

In phab:T302426 a test showed that "All 5 participants responded that they liked the hide/show all button". So why was it abandoned?

In phab:T273473 ("EPIC. Improve the table of contents") there is a long, wide task graph. Is it possible to collapse the right sidebar in Phabricator? So I can see everything without having to use the horizontal scrollbar. --Timeshifter (talk) 07:14, 14 June 2023 (UTC)

@Timeshifter, have you read the conclusions, which I will copy here?
  • The hide/show all button does not seem necessary for being able to find a given sub-section
  • The hide/show all button is not discoverable, or clear, in its current form
  • People use the hide/show all button once they know about it, though it doesn't necessarily help them navigate more quickly
With that in mind, it seems reasonable that it wasn't added. Of course, this was a small-scale test, on only 5 people. — Qwerfjkltalk 12:08, 14 June 2023 (UTC)

Qwerfjkl. Those tests were weird at phab:T302426. Of course one can find a given sub-section if one has the patience to open section after section until one finds the given sub-section.

The hide/show all button was not discoverable because a symbol was used for it instead of text: "Expand all". See the video there.

The participants in Test 2 were made aware of the "show/hide all sub-sections" button up-front (i.e. before the "tasks" began).

Your conclusion was not what the Test 2 results were:

During the section & sub-section navigation tasks the participants used a mix of the hide/show all button, and the individual section toggle buttons, to discover the requested sub-sections

All 5 participants responded that they liked the hide/show all button

The developers saw what they wanted to see, and ignored what mattered most: what average readers want: "All 5 participants responded that they liked the hide/show all button".

I have noticed that many developers think like this. They don't get enough feedback from average readers because few average readers go to Wikimedia Phabricator or to the relevant wikis like Meta-Wiki and MediaWiki.org. Especially mediawiki.org since it uses another talk page system that many dislike, and average Wikipedia readers are unfamiliar with.

If developers want more feedback they need to come to English Wikipedia with its many millions of readers and editors. Many people watchlist English Wikipedia. Far more than Meta-Wiki and MediaWiki.org --Timeshifter (talk) 16:33, 14 June 2023 (UTC)

@Timeshifter, I believe the problem was rather how to indicate that such a button would expand all the sections, without taking up space (as you suggest, text is probably a good option). That said, those weren't my conclusions, because I just copied them from the phabricator task. I have no particular opinion on this. I have no idea how the developers picked people to test (apparently with https://www.usertesting.com). — Qwerfjkltalk 16:41, 14 June 2023 (UTC)
Qwerfjkl. OK. I see that you copied from the "Conclusion" section which is actually the opposite of what the "Findings" section said that I quoted.
It just goes to show that many developers see what they want to see, and if necessary just make stuff up (whether consciously or unconsciously).
That's a form of confirmation bias. Excerpt: "Biased search for information, biased interpretation of this information, and biased memory recall, have been invoked to explain four specific effects: ..." --Timeshifter (talk) 16:55, 14 June 2023 (UTC)

Nux. Can you create some custom CSS/JS to put a "Show all" button at the top of the table of contents on Vector 2022? I am on a Windows 10 Pro PC using Firefox if that matters.

I want the "Show all" button to be a text button, not a symbol button. It should be next to the "move to sidebar" button. Maybe you can use some of the code used in phab:T302426. --Timeshifter (talk) 01:59, 15 June 2023 (UTC)

@Timeshifter that would probably be best to do as a gadget and I don't have Admin rights on enwiki (I'm from plwiki). Also I would probably need to search what components are used here to make a fully functioning gadget. Below would kind of work if someone want to look at this, but it doesn't change all of internal state of components (and you have to click twice to then collapse expanded items).
document.querySelectorAll('.vector-toc-level-1')
.forEach((item=>item.classList.add('vector-toc-list-item-expanded')));
document.querySelectorAll('.vector-toc-contents [aria-expanded="false"]')
.forEach((item=>item.setAttribute('aria-expanded', 'true'))); Nux (talk) 20:24, 15 June 2023 (UTC)
Nux. I tried it in the following JS and CSS pages. Nothing showed up in the TOC of Help:Table.
User:Timeshifter/vector.js
User:Timeshifter/common.js
User:Timeshifter/common.css
--Timeshifter (talk) 00:10, 16 June 2023 (UTC)
You cannot use this directly. That was just a code that opens ToC when everything is loaded. Just a starting point for someone that would want to develop a full gadget. Nux (talk) 02:36, 16 June 2023 (UTC)
@Timeshifter I took a pop at this, try adding importScript('User:The wub/tocExpandAll.js'); to User:Timeshifter/vector.js. When I have a bit more time I might see about turning it into a proper gadget.
Relatedly does anyone know how to require a CSS file to load before running javascript, to avoid a flash of unstyled content? mw.loader.using only works for modules, not CSS pages onwiki. the wub "?!" 15:55, 19 June 2023 (UTC)
User pages are not supported by ResourceLoader fundamentally, so there is not a way. Gadgets can have their CSS top-loaded, and this is the only current way to support that. (There is some movement on user-level gadgets which may go not a lot of where.) Izno (talk) 16:10, 19 June 2023 (UTC)
@The wub You can use `@import` it seems to be a bit faster example import. You can also try to use maxage to make the request faster, though I have mixed results with that (Meta seems to sometimes send cookies with such requests) maxage example. Nux (talk) 18:25, 19 June 2023 (UTC)
You can just use $.get(), but I for one just put the CSS in the JS using mw.loader.addStyleTag(). Nardog (talk) 10:16, 20 June 2023 (UTC)

the wub. Thanks! It works perfectly. Installed it here:

It expands/collapses the Vector 2022 TOC via a text button: "Expand all/Collapse all"

Great for long pages and articles with multi-level TOCs. For example:

What is the long link for importScript('User:The wub/tocExpandAll.js');

I and others may want to look at the code. Can this be installed in Mediawiki for everybody? --Timeshifter (talk) 22:16, 19 June 2023 (UTC)

The code is relatively simple, and can be seen at User:The wub/tocExpandAll.js and User:The wub/tocExpandAll.css. I will look at turning it into a gadget to fix the flash of unstyled content issue mentioned above (you may notice that the button appears briefly in a different style at first). Also want to polish it a bit so the button doesn't appear when there are no sections to expand, or starts off as "collapse all" when they are already expanded.
Once it's a gadget it might be worth discussing making it a default for everyone. Adding this functionality to the Vector 2022 code itself would be great, but more complicated and I'm not familiar with that codebase. the wub "?!" 22:57, 19 June 2023 (UTC)
Looks like you have since taken care of this: "Also want to polish it a bit so the button doesn't appear when there are no sections to expand".
I noticed that some pages start off with a pre-expanded TOC. Is there some calculation or way that your JS/CSS reads the TOC as the page loads to determine a cutoff point of total sections and subsections? Any TOC with more than that number starts off collapsed? Does that slow page loading? If so, it might be good to start all pages with a collapsed TOC. --Timeshifter (talk) 04:02, 20 June 2023 (UTC)
I don't know if it is documented anywhere, but T300973, implemented in October 2022, changed the default expansion of the Vector 2022 TOC so that subsections are expanded when there are 19 or fewer sections on a page. I don't know if anything has changed since then. – Jonesey95 (talk) 04:31, 20 June 2023 (UTC)
Yes the pre-expansion is part of the Vector skin itself. I've now updated my user script to take account of that, and also to not load on pages with no subsections e.g. Ludwig Keke. the wub "?!" 10:07, 20 June 2023 (UTC)
I see that a page with a pre-expanded TOC says "collapse all" to begin with:
Life expectancy. --Timeshifter (talk) 10:35, 20 June 2023 (UTC)

As already widely expressed by voters in the WP:V22RFC2, the classic fully expanded ToC should be restored under the article's lede. The new sidebar ToC is one of the worst features of Vector 2022.--Æo (talk) 13:19, 20 June 2023 (UTC)

I see a variety of opinions there. I would like choices:
  • Move to sidebar
  • Hide (return to floating TOC).
  • Move to article (Legacy Vector).
I think there is too much space between the lines of the TOC. It makes scanning take longer because it requires more scrolling. The "expand all" button makes scanning and scrolling much faster. No intermediate step of opening sections one by one.
Short TOCs in the sidebar on large screens are very convenient when there are no wide tables in the article.
Long, wide TOCs with lots of laddering in the sidebar are better in the floating TOC or in the article lede.
I like the floating TOC for articles with wide tables. --Timeshifter (talk) 02:18, 21 June 2023 (UTC)

Something strange is happening with the infobox logo at that article. At some widths, some of the image appears cropped, at other widths it doesn't. I am unable to strike a balance where the image looks uncropped to every viewer. See also Talk:Harvard–Smithsonian Center for Astrophysics#Logo. cc @Kj cheetham. CX Zoom[he/him] (let's talk • {CX}) 07:59, 21 June 2023 (UTC)

Page preview strage behaviour

When I hover the cursor over the wikilink 'OCLC' the page preview is generated blank. I didn't understand why this happens, so I'm asking here. ZandDev (msg) 12:03, 21 June 2023 (UTC)

@ZandDev: It happens when {{coord}} is used in the lead outside an infobox. See Wikipedia:Village pump (technical)/Archive 206#Page previews (popups) broken. PrimeHunter (talk) 12:37, 21 June 2023 (UTC)
@PirmeHunter: I've seen this edit on Kuwait that resolve this. I'll apply the same also on OCLC. ZandDev (msg) 13:28, 21 June 2023 (UTC)

Unsafe URL?

I was editing subterrene when I ran into in ths bare URL:

http://pdfpiw.uspto.gov/.piw?Docid=03693731&homeurl=http%3A%2F%2Fpatft.uspto.gov%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO1%2526Sect2%3DHITOFF%2526d%3DPALL%2526p%3D1%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsrchnum.htm%2526r%3D1%2526f%3DG%2526l%3D50%2526s1%3D3%25252C693%25252C731.PN.%2526OS%3DPN%2F3,693,731%2526RS%3DPN%2F3,693,731&PageNum=&Rtype=&SectionNum=&idkey=NONE&Input=View+first+page

The browser says: "The connection is not private." Is it safe to proceed? Thanks in advance.-- Carnby (talk) 22:37, 21 June 2023 (UTC)

@Carnby: The http url redirects to a https url with an expired SSL certificate. Browsers tend to show strong warnings about that but it's relatively safe to ignore if you don't exchange private information like passwords. If you ignore it then you are redirected again, this time to https://ppubs.uspto.gov/pubwebapp/static/pages/landing.html where all information in the parameters of the original url is lost. I searched 03693731 from Docid= in the original url and eventually found https://image-ppubs.uspto.gov/dirsearch-public/print/downloadPdf/3693731. I guess that shows roughly what the original url once showed so I have replaced the url.[26] It's still a raw url without indication of what it has referenced but it seems like an improvement. PrimeHunter (talk) 23:05, 21 June 2023 (UTC)
@PrimeHunter: Thank you, it was just a patent PDF; I replaced it with a more sensible {{US patent reference}}.--09:07, 22 June 2023 (UTC) — Preceding unsigned comment added by Carnby (talkcontribs)
That looks much better. PrimeHunter (talk) 11:30, 22 June 2023 (UTC)

Archive order

In the process of pointing out a wording issue with WP:VNTIA, I noticed that the archives on User talk:WeatherWriter are listed in the order "3, 1, 2, 4, 5" even though I spot nothing in the User:ClueBot III/ArchiveThis code which would seem to cause this or suggest the user set it this way (hence I assume it's a general problem and am posting here); changing the format= and numberstart= parameters and previewing the page shows no difference, and it doesn't seem to be a caching issue as it persisted even after I null-edited and real-edited the page (though here's an archived copy if it does change). What's going awry? -sche (talk) 21:34, 21 June 2023 (UTC)

@-sche: You can't change it through parameters. It's entirely governed by the order of the entries in User:ClueBot III/Indices/User talk:WeatherWriter. --Redrose64 🌹 (talk) 22:03, 21 June 2023 (UTC)
The bot made a confused page history in User:ClueBot III/Indices/User talk:WeatherWriter, probably because the user was renamed without updating archiveprefix. I have done that now [27] and made some cleanup of misplaced archives. I don't know whether it will affect the order of archive links in the next bot run. PrimeHunter (talk) 22:38, 21 June 2023 (UTC)
It did fix the order.[28] I left redirects in my cleanup and the bot also indexed those so I have now deleted them. PrimeHunter (talk) 11:35, 22 June 2023 (UTC)

Watchlist oddity

No matter what settings I use (usually 1000 items/3 days), my watchlist does not show any items older than 7:30 UTC today. Is it just me or is it Thursday? —Kusma (talk) 12:21, 22 June 2023 (UTC)

Do you have very busy page(s) on your watchlist which have had 1000 updates in total since 7:30? What does the counter near the top say? (for me, it's "Below are the last 797 changes in the last 72 hours"). Certes (talk) 12:48, 22 June 2023 (UTC)
Thank you, that is indeed the case. (Zürich had 965 updates on Wikidata). —Kusma (talk) 13:01, 22 June 2023 (UTC)

"Default summary" gadget bugs

The "Default summary" gadget (first gadget under the "editing" section of the "gadgets" tab in user preferences) has a few bugs or inconvenient features that are directly related to one another. Most annoyingly, when you select the wrong default summary and select the right one after, both summaries appear in the summary box in concatenation. And if you then clear the text box and re-select the right default summary, it doesn't appear in the box, because the gadget considers it to be already selected. These two problems could be solved in a few ways. For example, the gadget could remember what was already present in the text box before the default summary got appended. Or it could check whether the text ends in a default summary (and delete it) before appending a new one. I've also proposed a quality of life improvement of the gadget in the proposals tab. 110521sgl (talk) 15:18, 22 June 2023 (UTC)

Age in biographies

When I read a biography "N. born in 1917, ... was appointed professor in 1957", I do the math in my head: aha, that person was age 40 then (or was turning 40 in that year). But a computer could do this for me. Is there, or could someone implement, a gadget or similar functionality that can recognize that an article is a biography and add to each mention of a year within the person's life span: "1957 (age 40)"? -- LA2 (talk) 20:15, 22 June 2023 (UTC)

no comment on the practicalities but you've pointed out the main problem - without specific dates you don't know if N is 39 or 40 at the date of appointment. Personally I do not want to be reading "1957 (age 39 or 40)" throughout articles. Nthep (talk) 20:38, 22 June 2023 (UTC)
@LA2: Without commenting on the merits of adding it to an article, you can use the template {{age}} for this, {{age|1917|1957}} produces "39-40". You might want to check WP:MOS if this is something that is normally done or not. RudolfRed (talk) 00:50, 23 June 2023 (UTC)

Internet Archive bot

iabot.org does not work for me, it just says "503 Service Unavailable", what happened? Notrealname1234 (talk) 14:49, 23 June 2023 (UTC)

go to https://meta.wikimedia.org/wiki/InternetArchiveBot/Problem AManWithNoPlan (talk) 15:43, 23 June 2023 (UTC)

Live edit preview no longer shows

Hello, I have noticed since last night that I no longer have a preview showing my edit in progress that reloads once I stop typing. I had not changed any of my preferences once the change was made. Has it been removed entirely? Is there a bug? I am not the most technical person so I would like to know if there is a way to re-enable it, as it really comes in handy when editing BSicon templates or even regular pages.

I know that I am able to view a static preview before publishing an edit, but when tweaking a template and, for example, searching for a typo that breaks the template, this workaround is time consuming and a bit frustrating. If it has been removed in an update, so be it. I'll deal with it. But I would like to know for sure what is going on, because I have not found any information about an update since February. Thanks. Hotdog with ketchup (talk) 18:40, 22 June 2023 (UTC)

Disregard my question. I think it is a browser problem. The preview loads just fine in Firefox but is nowhere to be found in Chrome. Hotdog with ketchup (talk) 16:40, 23 June 2023 (UTC)
Never mind. I logged in to my account on Firefox and the button disappeared. In that case, unless resetting my settings resolves the issue, I will continue my edits while signed out. Hotdog with ketchup (talk) 16:43, 23 June 2023 (UTC)

Fail with status: 498 No Reason Phrase

I'm receiving message "Fail with status: 498 No Reason Phrase" if I want to search url address in Wayback Machine, so I can't access archived versions. Eurohunter (talk) 16:11, 24 June 2023 (UTC)

It's working for me, and in any case Wikipedia does not maintain the Wayback Machine. You may want to check the help center or forums at the IA, or see https://archive.org/about/contact.php RudolfRed (talk) 22:40, 24 June 2023 (UTC)
@Eurohunter: Please always give an example. What is your browser? https://en.wikipedia.org/wiki/Example works for me at https://archive.org/ in Firefox 114.0.2 on Windows 10. It gives this: https://web.archive.org/web/20230000000000*/https://en.wikipedia.org/wiki/Example. If your browser is Firefox then try entering about:config in the address bar, continue if you get a warning about changing settings, search on network.http.sendRefererHeader and click the pencil icon. For me it shows the value 2. If it's different for you then say the current value and try setting it to 2. PrimeHunter (talk) 22:55, 24 June 2023 (UTC)

Want to Report Possible Bug: Received Same Message 16 Times

I want to report possible bug in that I received same edit message 16 Times.

I hope this is right place to report this. Starlighsky (talk) 15:08, 24 June 2023 (UTC)

@Starlighsky: What message? Please always be specific when you report an issue. GloryRoad66 edited your talk page 22 times today.[29] Was it messages saying GloryRoad66 has edited the page? If so, were the messages about different edits as they should be, or do you really mean you got 16 messages about the same edit? The messages should have a link to the edit the message is about. If it's different edits then it's working as intended and not a bug. PrimeHunter (talk) 22:38, 24 June 2023 (UTC)
It strikes me a bug. As understood it, it was 14 emails to me of the same message. Another reason I think it was a bug was because they emails were at night here in the US, which is when bugs tend to occur, unfortunately. Starlighsky (talk) 23:07, 24 June 2023 (UTC)
@Starlighsky: If you claim there is a bug then BE SPECIFIC about the alleged bug. Was there a "View changes" link in the mails? If so, did the links go to the same change? If so, post the link and say when you got the first and last mail with that same link. PrimeHunter (talk) 23:21, 24 June 2023 (UTC)
i received the 1st message at 1:44 AM and the last message at 2AM.
It appears that it was set at specific intervals x of x < 1 minute.
View message   Starlighsky (talk) 23:38, 24 June 2023 (UTC)
@Starlighsky: I asked for a "View changes" link, not "View message", and you still haven't said whether it was the same link in each message. GloryRoad66 edited your talk page 15 times from 05:40 to 06:00 UTC.[30] That's 1:40 AM to 2 AM Eastern time so I assume all the messages were about different edits with different links, and there is no bug. PrimeHunter (talk) 00:25, 25 June 2023 (UTC)
Ok, thank you for the explanation. I was trying to help and keep us safe. I had thought it was a bug. I learn something new every time I go to the Village Pump. Starlighsky (talk) 01:05, 25 June 2023 (UTC)
@Starlighsky: You can choose to get fewer or no mails at Special:Preferences#mw-prefsection-echo, but I haven't experienced so many consecutive talk page edits in 18 years here. It will probably not happen again. Well, it may if you keep discussing with the same user and don't ask them to change. PrimeHunter (talk) 11:04, 25 June 2023 (UTC)
I agree with you that it will probably not happen again.
There are bugs where a button appears to be not working, and people press the button repeatedly, and the button was actually working the whole time...which was not the case here. Starlighsky (talk) 12:01, 25 June 2023 (UTC)

Wikipedia login with FIDO passkeys fails in Debian Bookworm

Hi, I have switched from arch Linux to Debian Bookworm. I can no longer log in to Wikipedia in Debian Bookworm, since it says:

Try a different security key

You're using a security key that's not registered with this website

Anyone knows how to solve it?

Hint: there should be a field for entering the token (the FIDO key acts like a keyboard). I never saw that field.

It also does not know that it could also call the passkey from my mobile phone. tgeorgescu (talk) 23:42, 24 June 2023 (UTC)

And, yup, even if they are on the same physical device, a FIDO2 passkey and a security key are different.

Concerns: Web Authentication (WebAuthn).

And, yup, I have tested my Yubikey and WebAuthn works okay in Debian Bookworm. tgeorgescu (talk) 11:23, 25 June 2023 (UTC)

@Tgeorgescu this does not appear to be something specific to the English Wikipedia. WebAuthn is experimental. Please see everything at mw:Extension:WebAuthn. You can ask more at mw:Extension talk:WebAuthn. You may also open a bug about that here. The most common WebAuthn authentication issue is that your logon session may need to be established on the project that you registered it with. — xaosflux Talk 11:47, 25 June 2023 (UTC)
@Xaosflux: I mean: in arch Linux it worked, in Windows it works, but not in Debian Bookworm.
So: there is something missing in my Debian installation, and I have no idea what.
Oh, no: failed on Windows, too:

This security key doesn't look familiar. Please try a different one.

Solved:
It does not allow me to log in from en.wiki. I have to log in from ro.wiki. tgeorgescu (talk) 14:03, 25 June 2023 (UTC)
@Tgeorgescu: that seems to be known issue phab:T244088. I'll add an extra reminder about it at Help:2FA. — xaosflux Talk 15:46, 25 June 2023 (UTC)

Hello!

I use toollabs:wcam-bot to calculate WP:IMAGERES on non-free files here on enwiki however the page has suddenly gone Chinese for some reason. I still remember the buttons fortunately however if someone could change it back to English it be good. Jonteemil (talk) 23:41, 25 June 2023 (UTC)

@Jonteemil that tool is not part of the English Wikipedia. You can try asking over at w:zh:User talk:Wcam - who may or may not be the maintainer. No maintainance documentation is listed on the tool or in the tool directories. — xaosflux Talk 00:03, 26 June 2023 (UTC)

Moscow Karl Marx monument coordinates

I'm trying to fix the map appearance in the infobox in the article Karl Marx monument, Moscow. Currently, the map shows a location near a place called Vlasyevo, quite far from the center of Moscow, where the monument is actually located.

The corresponding article in the Russian Wikipedia shows the correct location. It pulls the coordinates from Wikidata. The numbers in Wikidata and in the English Wikipedia article look the same to me, but I almost never deal with coordinates and maps, so it's quite possible that I'm misunderstanding something.

Can anyone please help?

Thanks :) Amir E. Aharoni (talk) 06:09, 25 June 2023 (UTC)

@Amire80, I can see from your edits, that you have fixed the error yourself.--Arjunaraoc (talk) 01:02, 26 June 2023 (UTC)

Tech News: 2023-26

MediaWiki message delivery 16:16, 26 June 2023 (UTC)

New Articles

Hi,

Can anyone help me with the 'New Articles' section on the Algerian portal using the AlexNewArtBot? I tried to use it, but it didn't work as I saw on this page: User:AlexNewArtBot/AlgeriaSearchResult. I would be grateful if someone could help me with this. Thank you!

Regards Riad Salih (talk) 21:35, 26 June 2023 (UTC)

AlexNewArtBot no longer runs but InceptionBot has taken over its duties. You could ask there. It may simply be that the bot hasn't run that task since you updated the request page (though it is active now with other work). Certes (talk) 22:12, 26 June 2023 (UTC)

Transclusions of non-existent module

I've just noticed that Module:JSONutil seems to have hundreds of pages transuding it [40] despite it not existing. I think the culprit is Module:Format TemplateData, but my LUA skills are not up to the job of debugging what it's trying to do, could someone check that I've found the right module and try to fix it?

As an aside, does anyone know if some mediawiki page tracks pages including non-existent modules? They don't appear in Special:WantedTemplates? 192.76.8.65 (talk) 14:14, 26 June 2023 (UTC)

It exists in some other languages, e.g. de:Module:JSONutil. I think it gives options for non-English languages, and Module:Format TemplateData has portable code which can be copied between languages. It tests whether Module:JSONutil exists and the test alone causes a WhatLinksHere entry. I don't think anything is broken or needs a "fix". PrimeHunter (talk) 15:38, 26 June 2023 (UTC)
I've fixed it anyway - personally I find the entire concept of blindly copying code between wikis inherently counterproductive. I did a database query to find more instances and found several - mostly subpages of Module:Road data such as Module:Road data/banners/CAN, but see no need to take further action here since if anything is actually broken it will end up in Category:Pages with script errors, which is tracked. * Pppery * it has begun... 23:19, 26 June 2023 (UTC)

Wikipedia style AI evaluation

It's critical that the artificial intelligence (AI) models that power Wikipedia's tools are aligned to the community. I am building a system to evaluate the quality of these AI models used across Wikimedia projects, such as ORES and LiftWing. The system I build is specifically designed to support wiki-style discussion processes. I need your feedback! If you are interested in testing the system and sharing your feedback, please see m:Research:Community-centered Evaluation of AI Models on Wikipedia/Study Recruitment.

Our project is documented at m:Research:Community-centered Evaluation of AI Models on Wikipedia.

Sincere thanks for your help and consideration! Tzusheng (talk) 00:09, 27 June 2023 (UTC)

Reply function and unblock requests

Is there any way to either prevent unblock requests from being made via the reply function, or to alter the reply function so that unblock requests are not indented and don't have a signature placed outside the request? It's just kinda annoying to fix that constantly. :) 331dot (talk) 08:38, 26 June 2023 (UTC)

@331dot: seems to be mostly bad logic in the reply tool, phab:T310215 is open on this. We certainly wouldn't want the former fix, the later fix is basically don't autosign when the user already signed. — xaosflux Talk 13:34, 26 June 2023 (UTC)
T310215 is not the same as this as it's about replying to {{unblock}}. The reply tool already suppresses the signature at the end if the comment contains ~~~~. The solution should be to suppress it even if it's inside a template. Nardog (talk) 11:29, 27 June 2023 (UTC)
If you really hate the users submitting unblock requests, and want to require them to figure out wikitext editing before they may be unblocked, then you can mark up the instructions on submitting unblock requests with <div class="mw-notalk">…</div> as described in mw:Help:DiscussionTools/Magic words and markup, so that they don't get a "Reply" button. This will also disable other features, like topic subscriptions (which is good I guess, because the messed up signatures also mess up the subscribed comment notifications).
Alternatively, you could change the templates so that they follow normal talk page conventions and put the signature at the end. Matma Rex talk 22:40, 26 June 2023 (UTC)
See also: Special:BlockedExternalDomains.

Hi, does anyone here feel like migrating easy cases of MediaWiki:Spam-blacklist to MediaWiki:BlockedExternalDomains.json (and then removing the old ones)? That would make editing for everyone slightly faster. More info (ticket). I can do it but I'm not to use my rights for controversial changes. Ladsgroupoverleg 11:41, 24 June 2023 (UTC)

@Ladsgroup, you may file a {{edit protected}} request on MediaWiki talk:Spam-blacklist with the preferred contents in a pair of sandboxes. I would add a link to Special:ComparePages for the removals from the spam-blacklist. I expect there to be at least one concern since there is a script that maintains the former and will need to be modified to prefer the latter for the simple cases. Izno (talk) 19:23, 24 June 2023 (UTC)
I'll do it soon, I got sick today otherwise I would have done it :( Ladsgroupoverleg 13:33, 25 June 2023 (UTC)
  • It looks like many admins are using scripts to help maintain these right now, expect this may cause some issues in that workflow. I did init the new page and add a header for now. — xaosflux Talk 11:54, 25 June 2023 (UTC)
Does this page have a corresponding MediaWiki:Spam-whitelist? Will the existing whitelist still override it? — xaosflux Talk 15:51, 25 June 2023 (UTC)
Whitelist support should be a firm requirement for any migration. MrOllie (talk) 21:36, 26 June 2023 (UTC)
@Xaosflux It doesn't have a whitelist and the current one doesn't work with it so it makes things complicated a bit. I'm planning to add a whitelist soon so those ones can be moved later. Ladsgroupoverleg 21:37, 26 June 2023 (UTC)
  •   Not done @Ladsgroup: where are these hits being logged? I added a test link to the new form, the ticket notes suggest it is being handled by AbuseFilter, however when I made an attempt to violate the rule and was stopped, I did not generate an abuselog hit, or a spamblacklist log hit. Also what message is being used to generate The text you wanted to publish was blocked by our filter. The following domain is blocked from being added:?. We have localized that to be much more informative on the prior message. Is there documentation of how multi-block collisions are handled (between GSBL, LSBL, and this new list)? I think this is premature as-is, so certainly would be a "controversial change" until additional development and documentation is ready. — xaosflux Talk 14:46, 27 June 2023 (UTC)
    @Xaosflux For the hit log: [41] (permalink). I will make the documentation ASAP. You can change the message in MediaWiki:Abusefilter-blocked-domains-attempted Ladsgroupoverleg 14:51, 27 June 2023 (UTC)
    Although CX Zoom's test edit here was blocked, it nevertheless caused the "bad" domain name to be displayed in my watchlist: Blocked domains hit log 14:52 CX Zoom (talk, contribs) caused a blocked domain hit on Wikipedia:Village pump (technical) by attempting to add testinvalid.invalid. That could get annoying! The existing edit filter log entries do not show up in the watchlist. -- John of Reading (talk) 15:52, 27 June 2023 (UTC)
    The spam blacklist log is limited to just logged-in users, which prevents it from ending up in RecentChanges and therefore watchlists. Presumably this log should have the same restriction added to it @Ladsgroup. Legoktm (talk) 16:37, 27 June 2023 (UTC)
    sigh, I'll make a patch again. I love implicit logic. Ladsgroupoverleg 18:10, 27 June 2023 (UTC)
    @Legoktm: gerrit:933605 Tested locally, fixes the issue. Ladsgroupoverleg 18:18, 27 June 2023 (UTC)

Mobile screen smaller in some cases

On my phone (just browsing in Chrome, not through the app), I get a notification that I have a new talk page message: clicking on it, I get a different (desktop-like) look of my talk page, with a left-se menu and even a right-sde margin, leaving very little space in the middle for the actual text. Every other page has the normal mobile layout, and when I access my talk through the top-right menu it gets the normal, full-width look, so I have no idea why accessing it in this (standard) way gives this strange result. I normally don't post the many mobile issues here, but this is a new one... Fram (talk) 07:07, 28 June 2023 (UTC)

Can you upload a screenshot? It kind of sounds to me like Vector22 is loading, but a screenshot would confirm. Izno (talk) 16:59, 28 June 2023 (UTC)

Recent change filters

 
Screencap of Recent Changes screen showing missing portion of filter.

I do recent changes patrol and I typically set filters such as "likely have problems" and "likely bad faith", but sometimes one or both of these sections are missing entirely. It's apparently a known bug. I was directed to this phab ticket, but it doesn't seem to be quite what I'm describing, though it may be related. The experience I'm having requires no actions other than going to RC and clicking the button to show filters. Usually everything is there, but quite frequently one or both will be gone. Effective RC patrolling relies heavily on screening out the edits that seem to be reasonable to leave us with more manageable lists to work through. Can something be done? Matt Deres (talk) 21:44, 27 June 2023 (UTC)

@Matt Deres: Any chance you could upload a screenshot of what you mean? (You can either upload it to Commons or create a new bug report on Phabricator and upload it there) — TheresNoTime (talk • they/them) 21:53, 27 June 2023 (UTC)
Murphy's law says it'll be a week until it happens to me again, but the third and fourth screenshot on the Phab link show what it looks like. This one in particular shows it clearly. The Contribution Quality and User Intent predictions are the topmost areas of the filter and they're both missing entirely - the topmost section is now regarding registered users. The next time it occurs to me, I'll do a screencap just to be sure, though. Over the past few months, I've only had them both gone on one occasion; it's much more frequently that one or the other is missing. I don't use the other filters as much, but I don't think I've seen other sections missing from the list. Matt Deres (talk) 22:03, 27 June 2023 (UTC)
I had the same issue a few months ago and reported it here on the mediawiki. I didn't follow up though as it appeared later again. Tzusheng (talk) 01:44, 28 June 2023 (UTC)
Okay, that didn't take long at all. Matt Deres (talk) 01:53, 28 June 2023 (UTC)
Sometimes it disappears, and sometimes it remains there, and remains selected, but has no effect - it's incredibly inconsistent as to when that happens. Sometimes days will go by without it happening, and some days it happens constantly, essentially suspending the ability to do RCP effectively, as refreshing the page or unselecting and reselecting the filter only works sometimes. Other times it may happen once or twice a day. I would think it's client-side, but it occurs both on my work computer and on my home computer - observed on Google Chrome for Windows as well as Firefox. PriusGod (talk) 18:18, 28 June 2023 (UTC)

Replies are weird for me

Hey, I don't know if this is intentional or not, but every time I reply, regardless if I clicked on the main reply or not, it will always act like I replied to the last reply. This is making me go nuts. Why does this happen? And how can I fix it?🌶️Jalapeño🌶️ Don't click this link! 06:45, 21 June 2023 (UTC)

Link? Example? Steps to reproduce? Nardog (talk) 13:57, 21 June 2023 (UTC)
I'm not sure, but every time I go on a move discussion, AfD discussion, or anything, every time I press reply to the main topic, it automatically adds a : at the beginning of my reply. 🌶️Jalapeño🌶️ Don't click this link! 13:58, 21 June 2023 (UTC)
That's expected. By DiscussionTools' definition, a reply is a comment with one more indent level than the comment being replied to, so if you reply to the first comment in a topic with no indentation, your comment will be appended at the end (or before the second non-indented comment if any) prefixed with :. DiscussionTools is built with threaded discussions in mind and is not well suited for RM, XfD, RfC, etc. where people !vote rather than directly address the OP. Nardog (talk) 14:10, 21 June 2023 (UTC)
How can I fix this? 🌶️Jalapeño🌶️ Don't click this link! 07:07, 22 June 2023 (UTC)
Define "fixed". The obvious solution is to edit the section the normal way to reply. Nardog (talk) 18:42, 22 June 2023 (UTC)
There's nothing to fix. The tool performs a reply; if you want to e.g. add a bullet, you're not replying to the previous post, so don't use the tool. Mike Christie (talk - contribs - library) 19:14, 22 June 2023 (UTC)
I would respectfully disagree with the editors above. You have correctly identified an issue that needs to be fixed (indeed, for about ten months it was listed as one of the issues blocking the reply tool from being enabled on this wiki). Specifically, the reply tool doesn't support all the ways someone would want to reply to a discussion. This has been a bug for a while. It hasn't been fixed yet because it's tough to write code that knows when to use an asterisk and when to use a colon. This issue is tracked at T263902, where you can see progress towards fixing it. There hasn't been any progress for a while, probably because there are more high-priority issues, but you can still add your thoughts there if you want (just be mindful of mw:Bug management/Phabricator etiquette). Thanks for reporting the issue; it's always good to be aware of the issues people are currently having. Enterprisey (talk!) 01:45, 23 June 2023 (UTC)
Well, I don't disagree that it would be nice to be able to !vote with DiscussionTools, but Jalapeño's assessment that it "act[s] like I replied to the last reply" is simply inaccurate. It does what it says on the tin, it's just that it's not particularly useful in certain types of discussions. Nardog (talk) 02:06, 23 June 2023 (UTC)
Jalapeño's contribs show them manually inserting a * (well, that's just an educated guess), which results in a prefix of :*, which does denote replying to the last reply. Enterprisey (talk!) 02:19, 23 June 2023 (UTC)
Hmm. @Enterprisey It may just be a habit for me to manually add a * at the beginning, but I think it was because one time it didn't put a * for me. I'll try forgetting it, and seeign if that fixes it. 🌶️Jalapeño🌶️ Don't click this link! 07:13, 23 June 2023 (UTC)
You have correctly identified an issue...
+1 to what @Enterprisey mentioned above, @Jalapeño: the Reply Tool does not currently support commenting in voting-style discussions...I'm glad you acted on the instinct to raise this.
Can you please review the steps below and tell me what – if anything – I've missed/misunderstood about what you're expecting/needing the Reply Tool to do that it currently does not? I ask this wanting ot make sure I link this discussion to the appropriate places in mw:Phabricator.
  1. Visit a deletion discussion. E.g. https://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Abdulla_Mahmoud_(footballer).
  2. Tap the [ reply ] button
  3. Notice the Reply Tool/box opens
  4. Draft the comment/vote you'd like to enter into the discussion
  5. Press the blue "Reply" button
  6. Expected behavior: comment/vote you drafted is published with an automatically placed before it
  7. Actual behavior: comment/vote you drafted is published with no symbol automatically placed before it (wikitext is : instead of *).
PPelberg (WMF) (talk) 19:30, 26 June 2023 (UTC)
That shouldn't be the expected behavior. There are certainly situations where it makes sense to reply (with :) in a !voting-style discussion, including to the OP. (It would be quite confusing if only the first reply button added a bullet at the end of the topic.) What we need instead in XfD, RfC, RM, etc. is a separate button at the bottom that opens a reply box specifically for adding a !vote. Template:Discussiontools-anchor exists as a hack but it obviously doesn't support bullets. (If it was to be implemented, how to realize paragraph breaks could be a challenge, as {{pb}} only works if set up on the wiki.) Nardog (talk) 19:42, 26 June 2023 (UTC)
Thank you for sharing this additional context, @Nardog. I've added the above to phab:T259865 so that when we prioritize work on this feature we consider the points you're raising alongside potential solutions. PPelberg (WMF) (talk) 23:39, 28 June 2023 (UTC)
If I recall correctly, earlier pre-release iterations of the reply tool attempted to use the same list style as the preceding comment (* or :), but due to difficulties in getting the logic correct, this was changed. I appreciate it's a hard problem; if a better "follow the leader" algorithm could be devised, though, perhaps that would help. isaacl (talk) 21:27, 26 June 2023 (UTC)
@PPelberg (WMF) You've perfectly explained the issue. I also expected an before my message. 🌶️Jalapeño🌶️ Don't click this link! 07:58, 27 June 2023 (UTC)
Understood, ok! Thank you for letting me know, @Jalapeño.
I've added a link to this discussion to the ticket in Phabricator where we are thinking about adding support for voting style discussions: T259865. PPelberg (WMF) (talk) 23:31, 28 June 2023 (UTC)

Infobox road mess

Can someone with the skills please take a look at Natalio Bacalso Avenue and work out why it's populating Category:Infobox road instances in Philippines (a category redirect) instead of Category:Infobox road instances in the Philippines? If possible can you change the entry or, better still, fix the template to prevent this problem recurring? Thanks in advance. Timrollpickering (talk) 12:59, 29 June 2023 (UTC)

I don't know why yet, but it's triggered by the presence of the |province= field ([42] is not broken in that way). DMacks (talk) 13:57, 29 June 2023 (UTC)
province= does not seem to produce an output in the infobox. DuncanHill (talk) 14:01, 29 June 2023 (UTC)
Fixed.[43] Turns out reading the {{Infobox road}} docs was necessary (see my edit-summary for explanation). DMacks (talk) 14:01, 29 June 2023 (UTC)
I left a note for User:Lowkeypedia, whose edit we're discussing, and raised the issue at Template talk:Infobox road#Feature request: catch unimplemented province= use. DMacks (talk) 14:10, 29 June 2023 (UTC)

Toolforge error

I ran

qwerfjkl@tools-sgebastion-10:~$ become qwerfjklbot
tools.qwerfjklbot@tools-sgebastion-10:~$ toolforge-jobs restart task-b


which produces this error every time I try to use that command:

ERROR: An internal error occured while executing this command.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/toolforge_weld/api_client.py", line 71, in _make_request
    response.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://api.svc.tools.eqiad1.wikimedia.cloud:30003/jobs/api/v1/restart/task-b

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tjf_cli/cli.py", line 712, in main
    run_subcommand(args=args, api=api)
  File "/usr/lib/python3/dist-packages/tjf_cli/cli.py", line 659, in run_subcommand
    op_restart(api, args.name)
  File "/usr/lib/python3/dist-packages/tjf_cli/cli.py", line 586, in op_restart
    api.post(f"/restart/{name}")
  File "/usr/lib/python3/dist-packages/toolforge_weld/api_client.py", line 95, in post
    return self._make_request("POST", url, **kwargs).json()
  File "/usr/lib/python3/dist-packages/toolforge_weld/api_client.py", line 75, in _make_request
    raise self.exception_handler(e)
tjf_cli.api.TjfCliHttpError: Internal Server Error
ERROR: Please report this issue to the Toolforge admins: https://w.wiki/6Zuu

The link there, https://w.wiki/6Zuu, leads to wikitech:Help:Cloud Services communication, which isn't very helpful. — Qwerfjkltalk 15:34, 29 June 2023 (UTC)

Showing sortkey when visiting a category

I need a script which, on enabling, shows the sortkey of various pages in a category inside a bracket next to it. For example:

  • Foobar event (France)

Let's say, Foobar event is a page inside a category, its sortkey being "France". In the category, it appears under the "F" column, but I want to differentiate it from other listed pages with "F" sortkey, for example, "Finland" without having to open and read the article. Is there a way? Thanks! CX Zoom[he/him] (let's talk • {CX}) 19:09, 28 June 2023 (UTC)

@CX Zoom: See User:PrimeHunter/Sortkeys.js. It's not as pretty as your request but it works. PrimeHunter (talk) 19:20, 28 June 2023 (UTC)
Yeah, this works for me. Thanks! CX Zoom[he/him] (let's talk • {CX}) 19:26, 28 June 2023 (UTC)
There is one problem, it only limits to the first 500 members of the category CX Zoom[he/him] (let's talk • {CX}) 19:29, 28 June 2023 (UTC)
@CX Zoom: It's 5000 for me, maybe because I'm an admin. I have added instructions on how to continue.[44] It would be better if somebody (not me) wrote a script which actually uses the API instead of just linking to it. PrimeHunter (talk) 22:30, 28 June 2023 (UTC)
@CX Zoom @PrimeHunter I've created a script that should do what you want.
Installation in Special:MyPage/common.js:
// [[User:Nux/CategorySortKeys.js]]
importScript('User:Nux/CategorySortKeys.js');
Enjoy 🙂 Nux (talk) 01:36, 29 June 2023 (UTC)
Thanks, it works. CX Zoom[he/him] (let's talk • {CX}) 08:31, 29 June 2023 (UTC)
@Nux: Thanks a lot, that's great! I have changed User:PrimeHunter/Sortkeys.js to load your script for existing users. My original script has been moved to User:PrimeHunter/SortkeysAPI.js if anyone still wants to use it or use both. PrimeHunter (talk) 15:52, 29 June 2023 (UTC)

Issues with cells splitting when sorting a table with rowspan

 
Example of the cell splitting/rating duplication issue

WP:WEATHER is in the process of discussing a new table format for our tornado tables (see the test run here: List of tornadoes in the tornado outbreak of May 4–6, 2007) and we reached one that is appealing mobile and tablet users but we're having one formatting issue when it comes to storability. The table utilizes the following formatting:

! scope="row" rowspan="2" style="background-color:#{{#invoke:Storm categories|color|cat1}}; border-bottom: 1px solid black"| EF1
|SW of [[Arnett, Oklahoma|Arnett]]
|[[Ellis County, Oklahoma|Ellis]]
|[[Oklahoma|OK]]
|{{Coord|36.0891|-99.8206|name=Arnett (May 4, EF1)}}
|{{Sort|001|May 4}}
|23:21–23:45
|{{convert|4|mi|km|abbr=on|sortable=on}}
|{{convert|50|yd|m|abbr=on|sortable=on}}
|- class="expand-child"
| colspan="8" style=" border-bottom: 1px solid black;|A barn, an outhouse, and farm equipment were destroyed west of Arnett; the adjacent home had its windows blown out. Many trees and power lines were downed along the tornado's path.<ref>{{cite report|agency=National Weather Service Forecast Office in Norman, Oklahoma|publisher=National Centers for Environmental Information|year=2007|accessdate=April 11, 2022|title=[Oklahoma Event Report: EF1 Tornado]|url=https://www.ncdc.noaa.gov/stormevents/eventdetails.jsp?id=35235}}</ref>
|-

With this format we run into an issue of the EF# column splitting into two rows for a single event when sorting functions are used, visually doubling the number of EF#s listed. We know the root of the problem is with rowspan="2" as Argenti Aertheri got the summary row to sort with the rest of the event using |- class="expand-child". Is there a way to force the EF# cell to stay combined? Or is this just something not feasible with Wikipedia's coding? Help:Sortable tables implies that's just how it will be—after sorting, the rowspanning cells are cut into rows and their content is repeated—but I want to be extra sure. Thanks in advance. ~ Cyclonebiskit (chat) 03:07, 29 June 2023 (UTC)

The documentation of Help:Sortable tables is correct. —TheDJ (talkcontribs) 07:45, 29 June 2023 (UTC)
Yep, that's what you get. I did something similar on Template:Authority control/doc — Martin (MSGJ · talk) 07:56, 29 June 2023 (UTC)
The technical behavior you are experiencing is intentional and correct, as it's the best way we've found to allow rowspans on a sortable table; the results were, um, "surprising" when sorting was attempted before the code split merged rows.
The real problem is that you are trying to use two rows for one event. And, BTW, it's hard to understand that table; why is the defining element for each row the EF rating? Wouldn't the Location, or County, or maybe even the Coord. column be a better choice to "name" the event? "EF0" is obviously not unique (and of course, neither are county nor state), so it seems one of the worst choices for the row heading. Also, why are the Location and County columns not sortable? As somebody with relatives in Iowa, say, the very first thing I'm interested in is the location. "It hit Smithton? Wow, that's right near Jonesville! I hope Uncle Bart wasn't hurt." Maybe if you rethink what data you are trying to show, in decreasing order of importance, you can avoid the technical obstacles above (and only struggle with trying to get long notes neatly displayed with their respective event). — JohnFromPinckney (talk / edits) 18:46, 29 June 2023 (UTC)
The EF rating isn’t a unique defining element, but is the most significant element of the report and what most readers (off-wiki knowledge) notice and look for first in the charts. The Weather Event Writer (Talk Page) 18:50, 29 June 2023 (UTC)
Well, okay, if you say so (I have no off-wiki knowledge :-p). In that case, what do you think about this code for the tables in the Confirmed tornadoes section? It moves the notes up into a Notes column so each event is a self-contained row. Further, it omits a lot of unnecessary code (e.g., align="center"|&nbsp;EF1&nbsp; becomes simply | EF1 ). Additionally, I have bolded the totals row in the upper statistics table. If that's something you and your fellow experts could live with, it could be moved into the List page easily. (It is based on this diff; any changes to the List that come after that won't necessarily be reflected in my sandbox.) — JohnFromPinckney (talk / edits) 20:10, 29 June 2023 (UTC)

subst #if: not working with is redirect template

{{is redirect}} should return "yes" when the given page is a redirect, blank otherwise. It works on normal transclusion. It works correctly on direct substitution (example #1, #2). It works correctly when {{is redirect}} is put inside #if: parser function (example #3, #4). But, when you try to subst this parser funstion onto a page, it behaves weirdly and always return the output for true (example #5, #6).

  1. {{subst:is redirect|USA}} -> yes (expected)
  2. {{subst:is redirect|United States}} -> [blank] (expected)
  3. {{#if:{{subst:is redirect|USA}}|true|false}} -> true (expected)
  4. {{#if:{{subst:is redirect|United States}}|true|false}} -> false (expected)
  5. {{subst:#if:{{subst:is redirect|USA}}|true|false}} -> true (expected)
  6. {{subst:#if:{{subst:is redirect|United States}}|true|false}} -> true (not expected)

What's wrong here? And someone please fix it. Thanks! CX Zoom[he/him] (let's talk • {CX}) 20:49, 29 June 2023 (UTC)

{{Is redirect}} needs to have special code to support being substed. I've just added that, so it should now work. * Pppery * it has begun... 20:52, 29 June 2023 (UTC)
Checked again something is still off. CX Zoom[he/him] (let's talk • {CX}) 21:00, 29 June 2023 (UTC)
Fixed again in Special:Diff/1162553156 * Pppery * it has begun... 21:02, 29 June 2023 (UTC)
Thanks a lot. Works perfect now. (1, 2). CX Zoom[he/him] (let's talk • {CX}) 21:08, 29 June 2023 (UTC)
I can't think of a situation where it makes sense to subst both #if and the conditional. If you're substing the former, there's no need to subst the latter. Nardog (talk) 20:59, 29 June 2023 (UTC)
Actually, that's not how substing works - if you subst the #if but not the conditional the #if will see the conditional unevaluated and thus always return true. * Pppery * it has begun... 21:00, 29 June 2023 (UTC)
Ah, I was mixing up transclusions with {{{arguments}}}. Nardog (talk) 21:09, 29 June 2023 (UTC)

Categorisation error due to error in user warning template

At Template:Uw-username, due to an extraneous space, an error in categorisation had happened. It had led to the following markup:

{{#ifeq:{{NAMESPACENUMBER}}|3|{{#ifeq:{{ROOTPAGENAME}}|{{ROOTPAGENAME:}}[[Category:Pages which use a template in place of a magic word|S{{PAGENAME}}]]|[[Category:Wikipedia usernames with possible policy issues|{{PAGENAME}}]]}}}}

After the fix, the correct markup has appeared:

{{#ifeq:{{NAMESPACENUMBER}}|3|{{#ifeq:{{ROOTPAGENAME}}|<username at the time of subst>|[[Category:Wikipedia usernames with possible policy issues|{{PAGENAME}}]]}}}}

But in pages where this is already substituted, the erroneous markup remains. Can this be fixed? Thanks! CX Zoom[he/him] (let's talk • {CX}) 16:34, 29 June 2023 (UTC)

To be clear: the erroneous markup assigns the page no categories, but it should have been in Category:Wikipedia usernames with possible policy issues if the username at the time of subst matches current username. Thanks! CX Zoom[he/him] (let's talk • {CX}) 16:39, 29 June 2023 (UTC)
The erroneous space was inserted in 17 Sept 2015. Every subst since then is expected to have the error. This edit was actually meant to revert an earlier error on 21 Jan 2014 which substed all values, so any transclusions during that period might be permanently locked in the username category, because at the time of subst the #ifeq: was held true. CX Zoom[he/him] (let's talk • {CX}) 17:46, 29 June 2023 (UTC)
@CX Zoom, sounds like you want WP:BOTREQ? — Qwerfjkltalk 16:41, 29 June 2023 (UTC)
Hi, I'm not well-versed with BOTREQ, feel free to move this as appropriate. CX Zoom[he/him] (let's talk • {CX}) 17:42, 29 June 2023 (UTC)
That bit of the template should also really use {{{|safesubst:}}} like the rest of the template. — Qwerfjkltalk 18:28, 29 June 2023 (UTC)
Which part? CX Zoom[he/him] (let's talk • {CX}) 18:29, 29 June 2023 (UTC)
@CX Zoom, This:
{{#ifeq:{{NAMESPACENUMBER}}|3|{{#ifeq:{{ROOTPAGENAME}}|<username at the time of subst>|[[Category:Wikipedia usernames with possible policy issues|{{PAGENAME}}]]}}}}

Should be:
{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACENUMBER}}|3|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}ROOTPAGENAME}}|<username at the time of subst>|[[Category:Wikipedia usernames with possible policy issues|{{{{{|safesubst:}}}PAGENAME}}]]}}}}
— Qwerfjkltalk 18:34, 29 June 2023 (UTC)
This means that all the wikitext is substituted. — Qwerfjkltalk 18:35, 29 June 2023 (UTC)
No. It was done on 21 Jan 2014 as I mention above, but that is an error. Because {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}ROOTPAGENAME}}|{{{{{|safesubst:}}}ROOTPAGENAME}}|category}} will always return true, and subst the category permanently. But, we want it to check whether or not the current page name is equal to the page name at the time of subst; if true, means name hasn't been changed, thus populate the category; if false, means name has been changed, do not populate the category. For the real-time checking, a non-substed ROOTPAGENAME is needed. CX Zoom[he/him] (let's talk • {CX}) 18:54, 29 June 2023 (UTC)
Filed phab:T340806 for the underlying issue this is working around. * Pppery * it has begun... 03:18, 30 June 2023 (UTC)

The block and lock notification in user contributions (sp-contributions-blocked-notice) has changed from red to yellow

If a user was site-blocked or if their account was locked, the notice was that orange/red color. It was only yellow for partial-blocks. It looks like this has changed just now, and it's now just yellow. Why?!! Can we please talk about changing this back? :-) ~Oshwah~(talk) (contribs) 19:16, 29 June 2023 (UTC)

Red for a full block, and yellow for partial ones, does seem to be more informative than making both appear in the same color. Looking at red-yellow-green traffic light colors, I'd also argue that red and yellow are quite intuitive choices. ~ ToBeFree (talk) 20:17, 29 June 2023 (UTC)
Was this change even discussed anywhere before it was deployed today? If so, please point me to it. PLEASE! ~Oshwah~(talk) (contribs) 20:19, 29 June 2023 (UTC)
Appears to be because of gerrit:893061 (T326587). Nardog (talk) 20:20, 29 June 2023 (UTC)
Ugh, how frustrating... :-/ ~Oshwah~(talk) (contribs) 20:21, 29 June 2023 (UTC)
This custom CSS works for me on Monobook to change just the block box back to something approximating the prior styling. I've not tested it on other skins other than the best my favourite, so YMMV. The usual disclaimers of provided as-is, don't come to me for support, etc apply here
Alternatively, changing the top line to .mw-special-Contributions .mw-message-box.cdx-message--warning.mw-warning-with-logexcerpt { border: 1px solid #bb7070; background-color: #ffdbdb; padding: 0.25cm 0.9em; } will probably make it apply to every warning box on the Contributions page (including global lock notices), but this is one I've not played with in detail so don't know if there are side-effects.
From the looks of the comments on phab:T326587#8977895, it's being looked into anyway at a software level, so keeping this override longer-term may be unnecessary. stwalkerster (talk) 21:09, 29 June 2023 (UTC)
Please report issues you have with the site calmly in the future. This is something trivial to fix, but it's not the first time we have had issues with this area. En.wp has custom CSS that for the second time in a year or two the devs have not considered or decided is unimportant. I'll fix the CSS in a minute. Izno (talk) 05:29, 30 June 2023 (UTC)
You have returned to your regular red schedule +- caching. Izno (talk) 05:52, 30 June 2023 (UTC)

PageDescriptions won't show descs of quality articles

I've noticed that the PageDescriptions gadget shows the description of articles if they're B-class or less, but won't show them if they're GA or FA. Is this an isolated issue or are others experiencing this? Wretchskull (talk) 18:03, 28 June 2023 (UTC)

The gadgets are colliding with eachother, they both use the same area to display their information. —TheDJ (talkcontribs) 19:15, 28 June 2023 (UTC)
@TheDJ: Ah I see. Will someone patch this or do I just turn it off in that case? Wretchskull (talk) 23:37, 28 June 2023 (UTC)
Any idea what the second gadget is? Maybe one of the two gadgets just needs an `innerHTML=` replaced with `.append()` or something like that. –Novem Linguae (talk) 06:13, 30 June 2023 (UTC)

Article not able to be rated B-class

 – Potentially related to the various recent technical modifications that the template is undergoing now. CX Zoom[he/him] (let's talk • {CX}) 15:41, 30 June 2023 (UTC)

Audio and video not playing in mobile

Looks like audio and video files can't be played in WP mobile version (for now), but in Commons. Is this has something to do with the new MediaWiki rollout? WP:THURSDAY? TagaSanPedroAko (talk) 05:36, 30 June 2023 (UTC)

Can you provide an example video link with this problem? –Novem Linguae (talk) 06:03, 30 June 2023 (UTC)
I encountered the issue first with audio, such as with audio files for anthems in country and some subnational division article infoboxes. I press the play button, then loading bar appears but audio file doesn't play.-TagaSanPedroAko (talk) 06:22, 30 June 2023 (UTC)
Feel free to provide a link. Then I will add ?useskin=minerva to it and see if I can reproduce the error. –Novem Linguae (talk) 06:25, 30 June 2023 (UTC)
For example, the article for Catalonia. When I will play the file for the region's anthem at the infobox, I get the error I describe above. TagaSanPedroAko (talk) 06:34, 30 June 2023 (UTC)
Sorry, unable to reproduce using https://en.m.wikipedia.org/wiki/Catalonia?useskin=minerva and https://en.wikipedia.org/wiki/Catalonia?useskin=minerva. Hitting play on the national anthem pops up a video player modal, and then starts autoplaying the anthem for me. Maybe someone else can help. –Novem Linguae (talk) 07:03, 30 June 2023 (UTC)
What is your operating system, its version, your browser, and its version? It would be useful to know what the hardware is too. Is this the mobile website or one of the apps, and provide the applicable version of the app if it's one of those. Izno (talk) 07:09, 30 June 2023 (UTC)
@TheDJ, since I know you've been futzing with removing some of the metadata in TMH (phab:T199129), maybe some device was an unintended victim. Izno (talk) 07:12, 30 June 2023 (UTC)
yeah I'll take a look. —TheDJ (talkcontribs) 07:46, 30 June 2023 (UTC)
@Novem Linguae Issue is in Chrome for iOS. TagaSanPedroAko (talk) 08:30, 30 June 2023 (UTC)
TheDJ was able to reproduce your bug. It appears to affect iOS. He opened a ticket at phab:T340816. Than you for reporting. –Novem Linguae (talk) 08:53, 30 June 2023 (UTC)
This was backported a couple hours ago. Should be fixed. –Novem Linguae (talk) 19:55, 30 June 2023 (UTC)

Deleting file revision results in entire file being deleted

Hi, I noticed today that, when trying to delete just a single revision of a file, it results in the deletion of the file entirely. Sometimes, I have to delete old revisions of freely licensed file in accordance with WP:CSD#F2 as some revisions are irreparably damaged. I am unable to export the file to Commons without doing so. It first occurred with File:Random order ternary mechanism.svg (see deletion log) and File:Boredoms-vcn-track4.svg. When I got to File:Boredoms-vcn-disc2-track2.svg, which has two broken revisions, the entire file was deleted despite my attempt to delete the revision situated in the middle. This is not a normal occurrence and figured this has to be a bug. Is this a known issue? plicit 02:18, 30 June 2023 (UTC)

Were you trying to revision delete? You can always try searching https://phabricator.wikimedia.org/ for bugs. I did a quick search for "revision delete file" and didn't see anything obvious. Do you have a reliable steps to reproduce yet? If so, can always file a bug on Phabricator. Worst case, someone notices it's a duplicate bug and merges it into the correct bug for you. –Novem Linguae (talk) 06:10, 30 June 2023 (UTC)
@Novem Linguae: I was able to find another file with a broken revision: File:Yukon Legislature after 1996 election.PNG. Can another admin give it a go? Clicking "delete" on the first revision should result in only that revision being deleted. The notice even reads, "You are deleting the version of Yukon Legislature after 1996 election.PNG as of 05:40, October 15, 2005." But if the bug persist until now, the entire file will get deleted. plicit 07:25, 30 June 2023 (UTC)
I will try it out on Yukon Legislature after 1996 election.PNG. Graeme Bartlett (talk) 08:23, 30 June 2023 (UTC)
So the steps to reproduce is to visit File:Yukon Legislature after 1996 election.PNG, then try to delete the older of the two revisions? The thumbnail for that older revision is already not showing for me which is a red flag. Trying to visit https://upload.wikimedia.org/wikipedia/en/archive/1/15/20051014204912%21Yukon_Legislature_after_1996_election.PNG gives me File not found: /v1/AUTH_mw/wikipedia-en-local-public.15/archive/1/15/20051014204912%21Yukon_Legislature_after_1996_election.PNG. I note that both revisions are from 2005. –Novem Linguae (talk) 08:25, 30 June 2023 (UTC)
The same thing happened, both revisions of file and all the page information was deleted. (I selectively restored to revert). Graeme Bartlett (talk) 08:27, 30 June 2023 (UTC)
If anyone else wants to retry this, I suppose, undelete the corrupted file, and try again. Graeme Bartlett (talk) 08:29, 30 June 2023 (UTC)
@Explicit. Do all the pages you've encountered this bug on have a broken thumbnail like this on one of the revisions? In other words, how do you know which files will have this bug? I will try to gather enough info to file a good bug report. –Novem Linguae (talk) 08:35, 30 June 2023 (UTC)
Actually, I was able to reproduce this on testwiki with a brand new uploaded file. This bug may currently affect all files. I've filed phab:T340821. –Novem Linguae (talk) 08:50, 30 June 2023 (UTC)
Thanks! I wasn't sure how far-reaching the bug went, I don't delete revisions very often unless it stops me from transferring files to Commons. I'm not sure what causes corrupt revisions to begin with, but I don't think I've seen them affect files uploaded after 2007. plicit 13:11, 30 June 2023 (UTC)
The fix was just backported. Tested and working on testwiki. Should be all fixed. Thanks for reporting. –Novem Linguae (talk) 08:28, 1 July 2023 (UTC)

Unsubst help

Please can someone help me with Module:Unsubst?

I applied it to {{Nth-century fooers from Northern Ireland}} [45] were it worked fine.

But I cannot get it to work on Template:Fooers from Northern Ireland/sandbox. My edit[46] produces something ugly.

What am I doing wrong? BrownHairedGirl (talk) • (contribs) 20:33, 30 June 2023 (UTC)

  Fixed You needed to escape the table syntax, and the closing curly brackets were in the wrong spot. * Pppery * it has begun... 01:29, 1 July 2023 (UTC)
Thanks, @Pppery. That's great. BrownHairedGirl (talk) • (contribs) 11:22, 1 July 2023 (UTC)

Redlinked category problems

The latest run of Special:WantedCategories has naturally produced the inevitable handful of template-generated redlinked category problems that are beyond my capacity to fix:

  1. Category:Articles with Swiss Standard German-language sources (de) was being autogenerated by the use of {{in lang}} on Swiss Super League (the language code causing it is clearly "de-ch"). But when I create the category, I get an error message on it, saying that "Category:Articles with Swiss Standard German-language sources (de) is not the category being populated by the {{In lang}} template. The correct category is located at: Category:Articles with German-language sources (de)." Except the category very obviously is being generated by the in lang template, because it wouldn't be on the page at all if it weren't — but since I'm not familiar with the in lang template coding or how it determines what categories to populate with what language codes, I have no idea how to fix this. Could somebody with more familiarity with that template either "authorize" the Swiss Standard German category or get the article moved back to the general German category if a standalone "Swiss Standard German" category isn't desired?
  2. Category:User kio and Category:User kio-3 are being autogenerated by the use of {{Babel}} on a userpage. But since I also don't normally work with user language categories, I have no idea how to either create or kibosh those categories, and I can't just wrap the whole thing in {{suppress categories}} since that would also bork the bluelinks. So, again, could somebody with more experience working with that template resolve these two?

Thanks. Bearcat (talk) 14:08, 1 July 2023 (UTC)

I've created the last two. I have no idea what's going on with the first one either. * Pppery * it has begun... 14:22, 1 July 2023 (UTC)
Looks like Trappist fixed the Swiss German problem by updating the language module to a proper de-ch code populating a de-ch category instead of a de one, so that's been fixed as well. Thanks to both of you. Bearcat (talk) 15:13, 1 July 2023 (UTC)

Pop up on Android changes Settings

On 6/29/23 while logged in to Wikipedia on my phone (Android v.11) using the browser (not app), I began getting a pop up message that says,"en.m.wikipedia.org says Please reload your page to use hotcat. Cancel ... Ok". Regardless whether I tap Cancel, Ok, or the Back button to clear the pop up, my Settings are changed to activate Advanced Mode, which changes how my Watchlist is displayed. I de-activate Advanced Mode, but the pop up will soon reappear and my Settings will again be changed to Advanced Mode. I haven't been able to determine what particular sequence of my inputs (if any) are triggering the pop up. So far, I am unable to control this behavior. I posted this message at Teahouse; a responder suggested I inquire here. Any insight available? DonFB (talk) 10:52, 30 June 2023 (UTC)

Chrome, Firefox, other? Nux (talk) 15:03, 30 June 2023 (UTC)
"Built in" browser says "Powered by Chrome". Problem also happens when I explicitly have selected and use the installed Chrome browser, which is version 92.0.4515.131. DonFB (talk) 19:54, 30 June 2023 (UTC)
Version 92? Wow. That is old. That is like 2 years old. Nux (talk) 20:15, 30 June 2023 (UTC)
The obvious solution is to disable HotCat in preferences. If you want to keep using it but not on mobile, add this to your common.js.
if (mw.config.get('skin') !== 'minerva') {
	mw.loader.load('ext.gadget.HotCat');
}
Nardog (talk) 20:05, 30 June 2023 (UTC)
If you go to settings on your mobile phone (behind the hamburger icon in top left) does it show advanced mode as enabled or disabled? Jdlrobson (talk) 20:11, 30 June 2023 (UTC)
I normally keep it Disabled. After every occurrence of the pop up, it becomes Enabled. DonFB (talk) 20:22, 30 June 2023 (UTC)
HotCat enables it, see c:Special:EditPage/MediaWiki:Gadget-HotCat.js, line 3010. Nardog (talk) 20:23, 30 June 2023 (UTC)
I'll take your word for it; not able to understand all of the code. Problem also occurs on Firefox, v. 111.0 (Build #2015937963). "Advanced" activation happens even when I tap "Cancel" on the popup. Thanks for suggestion to disable Hotcat, though it's just a workaround. Popup should not be happening, imo. DonFB (talk) 20:40, 30 June 2023 (UTC)

Oh... So you are actively disabling the advanced mode. This sounds counter-intuitive to me, because this gadget only works when you have categories enabled. So not sure why would you want to disable categories 🤔. You can only use hotcat when the advanced mode is on...

But if you want to keep your flow, you can use the code below. This will only load hotcat when you enable the advanced mode:

$(function() {
	if (document.querySelector('#catlinks a')) {
		mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
	}
});

Add above in your common.js. And remember to disable the gadget! --Nux (talk) 22:02, 30 June 2023 (UTC)

They said they didn't like the advanced mode's watchlist. HotCat didn't load on the mobile site, but now it does (see #Tech News: 2023-26 above). There's nothing "counter-intuitive" about wanting to use HotCat on desktop and not the advanced mode on mobile. Nardog (talk) 22:06, 30 June 2023 (UTC)
Thanks for additional suggestions. Disabling Hotcat appears to have been effective in preventing the popup. I keep Advanced mode off, because it results in larger, less cluttered, more finger-friendly displayed text without features I don't use a lot on mobile. I remain mystified why this popup behavior would suddenly start happening after years of stability. DonFB (talk) 22:18, 30 June 2023 (UTC)
Nardog's comment above seems to explain the popups. But the operation is problematic by repeatedly occurring and changing my preferred setting. Seems a user should be able to stop the reminders without disabling an item in Preferences. If that's the only way to stop the popup, users should be informed. DonFB (talk) 22:36, 30 June 2023 (UTC)
I think the popup routine is outright malfunctioning. If I tap Cancel, it should not turn on Advanced, but that's what it was doing. DonFB (talk) 22:48, 30 June 2023 (UTC)
What Cancel does is stop the page from reloading. I agree it's not a good design, but it seems deliberate. Nardog (talk) 23:10, 30 June 2023 (UTC)
Yeah, well, now that I have some understanding of what was happening, I can evaluate the routine as--awful. It will repeatedly change a preferred Setting, no matter what the user does. I'm aware of something called Phabricator. I don't know how to report an issue like this or if that's the place. I offer a suggestion for yourself or other tech-savvy users that this might be something to call attention to in whatever is the appropriate place. DonFB (talk) 23:33, 30 June 2023 (UTC)
Not a Phab matter because the script is volunteer-maintained and MediaWiki:Gadgets-definition can be edited by any interface admin. The solution should probably be to disable it in Minerva in Gadgets-definition. Nardog (talk) 23:37, 30 June 2023 (UTC)
Nvm, turns out it was Jon (WMF) (Jdlrobson) who added the responsible piece of code. I agree with DonFB that this shouldn't be happening. The script should just exit early if the advanced mode is off. Nardog (talk) 23:41, 30 June 2023 (UTC)
I think the use of advanced mode is very limited. I know that people are often surprised that categories are disabled on mobile, and so far, I have never heard of anyone disabling advanced mode once they discover that it can be enabled (and they can see categories). The change to enable advanced mode in Hotcat was made in May. Hotcat is the most commonly used gadget on plwiki. It seems that only you, DonFB, are experiencing issues with it. Nux (talk) 23:45, 30 June 2023 (UTC)
To be clear I mean the usage described above seem very limited. Otherwise many of 49k users of Hotcat would have a similar problem (49k on enwiki). Nux (talk) 23:47, 30 June 2023 (UTC)
Also note that the solution is already above. The gadget is loaded from Commons anyway so there is no additional performance penalty from loading the gadget from common.js. Unless there are more reports it would be bad to disable gadget that 49k people are using, possibly some of them using it on mobile. Nux (talk) 23:51, 30 June 2023 (UTC)
That choice should be left to the user. Forcing a preference is antithetical to the purpose of customizable gadgets. Nardog (talk) 23:52, 30 June 2023 (UTC)
And the user has chosen the option to use hotcat. You cannot use hotcat without categories. So hotcat assumes when you enable it you also want to enable categories. The logic is solid. Disabling categories because whatchlist looks not the way you like it is... not logical. You should fix the watchlist instead. Nux (talk) 23:56, 30 June 2023 (UTC)
One should totally be able to use HotCat on desktop and turn off advanced mode on mobile. Nardog (talk) 23:58, 30 June 2023 (UTC)
(Reply to Nux message of 23:45) If I don't want Advanced turned on in my mobile, the system should not be repeatedly turning it on against my will, with no documentation how to stop it. I think this is a case that shows insufficient attention to thoughtful design. If you have any influence or technical ability to change the design to give a user ability to stop such intrusive program behavior, or to publicize the need to disable a Preference to stop it, I request doing so. DonFB (talk) 00:01, 1 July 2023 (UTC)
@DonFB You have the solution above. Is there a problem in using it? Nux (talk) 00:02, 1 July 2023 (UTC)
I'm using it and glad to have it. But really, an unexplained forced change to a preferred setting does not seem like a feature of considerate software design. DonFB (talk) 00:10, 1 July 2023 (UTC)
This was added during the recent Wikimedia hackathon as a group of several editors (mostly from Hebrew Wikipedia) complained to me that HotCat was not working. For all of them they hadn't enabled the advanced mode and I suggested this as a possible solution.
It is quite unusual for someone to be using non-advanced mode and HotCat. So far most editors I know using HotCat either use advance mode on Minerva or Vector/Vector 2022/Monobook when using their mobile phones so it seemed logical to be at the time to automatically switch them into advanced mode.
That's obviously not the case given this example, but you can't have HotCat and not have advanced mode, so a choice needs to be made here one way or the other either:
1) Keep the existing behaviour and tell user's to disable the gadget
2) Replace the existing functionality with an explicit opt in button, rather than the existing refresh workflow to give feedback to people why it's not working when they expect it to be working E.g. A box / notification could appear saying "HotCat is currently disabled. Please click here to enable."
3) Update the gadget to have settings (not sure if this is possible) to allow you to enable/disable on a per skin basis. Jdlrobson (talk) 01:43, 1 July 2023 (UTC)
No doubt I must have enabled Hotcat on my desktop (a long time ago), but I only rarely used it, and never wanted to use it on mobile. I liked the simpler mobile interface with Advanced turned off, so it was extraordinarily annoying when the popups began, could not be stopped, and turned on Advanced every time. Maybe other users who experienced the popups simply allowed Advanced to remain active, but that was decidedly not my preference DonFB (talk) 02:01, 1 July 2023 (UTC)
Unlike the experienced programmer who helped me on this page, it did not occur to me to turn off Hotcat to stop the popups, and I doubt if I ever would have thought of doing that. DonFB (talk) 02:32, 1 July 2023 (UTC)
If you can't see categories without the advanced mode, then why would anybody expect to be able to use HotCat without the advanced mode? How would they? The only reasonable thing to do when it's off AFAICS is to exit early. Nardog (talk) 04:43, 1 July 2023 (UTC)
FWIW, I'd vote for Jdlrobson's number 2 option shown above, if that can be done. Make it a one-time notification that lets user tap response for 'yes' or 'no/no thanks/decline' and says go to settings if you decide later to turn on Hotcat. Or put a banner somewhere on the mobile interface informing user new Hotcat functionality is available in Settings. The least desirable method is the one that was actually used. DonFB (talk) 05:18, 1 July 2023 (UTC)
I can look into that if there's no objections. The proper fix is likely to pull the categories via API but that seems like too much of a refactor for me to be able to do that.
Nardog - its my experience that lots of editors who want to edit categories are not aware there is an advanced mode and that it contains categories so a hint seems helpful. Jdlrobson (talk) 19:17, 1 July 2023 (UTC)
Yes, a hint would've been ideal. A pre-emptive takeover of user settings was not a great choice. DonFB (talk) 22:28, 2 July 2023 (UTC)
I agree that Option 2 might be a good compromise. I think it would be beneficial to place a button/link to enable the advanced mode where you would typically find the categories. So maybe somewhere below the article body. It would probably be the easiest way to locate it. Nux (talk) 10:38, 3 July 2023 (UTC)

Solving an overlink issue with a template

Folks with template markup knowledge might be able to help with Template talk:Starbox begin#How to make the template not overlink; I don't know template markup well enough to do it myself. Jo-Jo Eumerus (talk) 10:47, 3 July 2023 (UTC)

My Talk-Page Edit Screen completely disappears?

PROBLEM: My usual Talk-Page Edit Screen *completely* disappears for some reason - see => https://en.wikipedia.org/w/index.php?title=User_talk:Drbogdan&action=edit - this occurs with Google Chrome and Opera browsers using Windows 10 on a Dell XPS 8900 computer.

SOLUTION: Comments Welcome - TIA - Drbogdan (talk) 12:49, 3 July 2023 (UTC)

  Done - PROBLEM FIXED - Simply reverting latest edit fixed the problem - Thanks in any regards - Stay Safe and Healthy !! - Drbogdan (talk) 12:59, 3 July 2023 (UTC)

Tech News: 2023-27

MediaWiki message delivery 22:49, 3 July 2023 (UTC)

Fixing speciesbox

 – Novem Linguae (talk) 14:03, 4 July 2023 (UTC)

Articles with English-language sources

The latest run of Special:WantedCategories featured two redlinks for Category:Articles with American English-language sources (en-us) and Category:Articles with British English-language sources (en-gb), both of which were being newly generated by old, longstanding usages of {{in lang|en-US}} or {{in lang|en-GB}} tags in references or on external links. While we do have an established scheme of tracking categories for Category:Articles with non-English-language sources, we do not have any established scheme of tracking categories for "Articles with sources by particular English dialect", so I had to resolve the problem by removing the template usages rather than by creating the categories — but the fact that old usages of the template were generating new redlinked categories that never previously existed at all implies that they were caused by a change to a template or module within the past few days. It's presumably the same change that caused the Swiss German category that I posted about a couple of days ago, but since I still don't personally know what module that template's category-generating function is shunted off to, i wanted to ask if somebody can look into this to make sure "English dialect" categories get aborted at the source and don't come back in the future. Thanks. Bearcat (talk) 13:21, 4 July 2023 (UTC)

Most of the recent changes to Template:In lang, Module:In lang, Module:Lang and its submodules were made by Trappist the monk (talk · contribs) - have you asked them? --Redrose64 🌹 (talk) 13:34, 4 July 2023 (UTC)
I'd have to have known what the modules in question were before I could identify who made the changes in order to approach them directly about it, now, wouldn't I? Bearcat (talk) 13:43, 4 July 2023 (UTC)
At WP:Sandbox, edit the page, blank out whatever's there and add the single line
{{in lang|en-gb}}
then preview the page (don't save it). Below the buttons like "Publish changes", "Show preview" etc, you should now see one or more rows of text, one of them will say "Templates used in this preview (help):"; if this is preceded by a right-pointing traingle, click that to uncollapse the list. You should now see this list:
where "(edit)" are edit links. If you install User:Anomie/previewtemplatelastmod to Special:MyPage/common.js, the list is sorted reverse chronologically, and also has extra information - date and time of last edit, a "hist" link, user name who made the last edit, and the last edit summary. --Redrose64 🌹 (talk) 14:54, 4 July 2023 (UTC)
Or you could try Special:RecentChangesLinked/Template:In lang. — Qwerfjkltalk 15:09, 4 July 2023 (UTC)
The problem with that is that it lists pages like Navajo language and Module:Citation/CS1/Configuration which aren't relevant to this problem. --Redrose64 🌹 (talk) 15:15, 4 July 2023 (UTC)

Hatted sections not expanding for me on mobile

Hi all, this has happened on other pages for me also, but this is today's example. If you got to https://en.wikipedia.org/wiki/Talk:Multiplicity_(psychology) there is a section that has been hatted because Wiki is not a forum. On desktop, this expands fine. On mobile, the section does not expand (I'm on Chrome 114.0.5735.196, on Android 11. The [show] message is just in bold, with no sign it's a link, if that helps at all. Red Fiona (talk) 22:24, 30 June 2023 (UTC)

I've noticed the same thing in the Android app. -- Random person no 362478479 (talk) 22:42, 30 June 2023 (UTC)
Firefox on the mobile site also. @Jon (WMF) ? Izno (talk) 22:50, 30 June 2023 (UTC)
Or possibly caused by DiscussionTools I guess. Izno (talk) 22:50, 30 June 2023 (UTC)
Static link to the mentioned topic. #Does this topic even exist? Nux (talk) 12:06, 1 July 2023 (UTC)
Does the page work in safe mode? (appending ?safemode=1 at end of URL) Jdlrobson (talk) 19:18, 1 July 2023 (UTC)
It didn't when I tried it on mobile. Red Fiona (talk) 19:29, 1 July 2023 (UTC)
Does any one think this was working before and stopped now? Minerva (default mobile skin) does not support collapsibility, and expressly disables the module that provides that. You can use other skins in mobile mode to get collapsing work there.

Optionally, you can manually force the collapsing in Minerva if you add this to dev console:

$('.mw-collapsible.hidden-archive').makeCollapsible()
while on the page (mobile view). Making collapsing to work on mobile is in the works at phab:T111565. – Ammarpad (talk) 17:29, 4 July 2023 (UTC)

Do changes to module-only templates propagate without purging?

I've got a template. That template invokes a module. That module calls frame:extensionTag ('templatestyles' ... to use a CSS stylesheet.

If I leave the template untouched, but make a change to both the module and the CSS, will both changes propagate instantly? Or will talk pages need to purge first? If so, will both changes at least propagate simultaneously, or could we end up with some pages with only one change, and not the other change? DFlhb (talk) 16:44, 4 July 2023 (UTC)

Template changes propagate eventually, but not instantly. Adding more layers of indirection via Lua and CSS does not change the propagation process. It's possible that some pages get updated in few seconds between the time you change the module and the time you change the CSS (and then get updated again for the CSS change), but otherwise the propagation should happen simultaneously. * Pppery * it has begun... 16:47, 4 July 2023 (UTC)
Good to know, thanks. DFlhb (talk) 16:53, 4 July 2023 (UTC)
Yes, the lack of guaranteed simultaneity is indeed an issue, but it's rarely a particularly problematic one for most templates, since they aren't transcluded enough to where an update to a template/module and an update to one of its dependencies, like the TemplateStyles sheet, wouldn't happen in the same batch in a job (which I think is either 100 or 1000 page updates per job). The ones that are you should be careful of changes with, but they're fairly easy to know since they're transcluded a lot (e.g. I had the exact problem with Module:Navbar and its 5.4 million transclusions which got me chatter on both WP:VPT and on Template talk:Navbar). A comment on relevant talk pages and perhaps WP:VPT warning others that there will be some funkiness and that it's expected is usually sufficient. Izno (talk) 17:37, 4 July 2023 (UTC)
(The other alternative is to preserve CSS that works both for the new version and the old until ~2-4 weeks after you've made a change. This may be more or less possible depending on the change you're making.) Izno (talk) 17:39, 4 July 2023 (UTC)
I'll do that, thanks. I'm referring to Module:WikiProject banner (5.1 mil transclusions, change discussed here). Do you think it would be excessive to also temporarily define the new CSS inside the module, as a redundancy? DFlhb (talk) 17:59, 4 July 2023 (UTC)
I don't think it's excessive, but I wouldn't personally. A few days/weeks of potential "that looks weird" on talk pages is not a big deal. Izno (talk) 18:20, 4 July 2023 (UTC)

A proposal about Script Installer

Kudos to Enterprisey, the creator of Script Installer Gadget. It has made difficult tasks extremely easy. I had a small suggestion, whether to add the URL of the WP:USL after "You currently have the following scripts installed" in the panel. Then the install would probably be easier. Mentioning its maintainer and developer @Enterprisey with respect. ‍~ 𝕂𝕒𝕡𝕦𝕕𝕒𝕟 ℙ𝕒ş𝕒 (inbox - contribs) 04:55, 3 July 2023 (UTC)

Thanks for the kind words. I've added a mention of USL in the location you've suggested. I haven't made it a link because I'm slightly too lazy to figure out how to properly do it, but I hope to get around to it in the future. (If anyone reading this wants to send in a patch, that would also work.) Enterprisey (talk!) 15:02, 5 July 2023 (UTC)

Lessen line spacing in long or expanded table of contents

the wub has come up with another great improvement to the Vector 2022 and 2010 (2010 is already compact) table of contents (TOC). From his talk page:

/* Lessen line spacing in table of contents in Vector 2022. */
.vector-toc .vector-toc-text,
.vector-feature-zebra-design-enabled .vector-toc .vector-toc-text,
.vector-feature-zebra-design-disabled .vector-toc .vector-toc-text {
   padding: 1px 0;
}

You can start at 4px. I reduced it to 1px which I like a lot.

Add to: Special:MyPage/vector-2022.css which for me is User:Timeshifter/vector-2022.css

It works by itself (no need for the "expand all" user script for the TOC).

It is great for Village Pump archives. For example:

Or for long articles (many articles for country presidents, etc.) with expanded TOCs. There were 2 recent Village Pump discussions (now archived) about creating an "Expand all/Collapse all" button for the Vector 2022 table of contents. See: here and here. More info: User:Timeshifter/vector.js

I wish the floating TOC in Vector 2022 did not require scrolling the article up or down to get the popup TOC to fit in the screen, especially when it is expanded. It is a major flaw. I think if it were fixed many more people would like Vector 2022.

Can anyone provide some code to make the floating TOC act less like a dropdown menu, and more like an ad popup that fits the screen, and stays in place? Auto-margins or something?

More like sticky headers. Where the popup TOC is one big sticky header. A popup that doesn't disappear when you scroll the article, or within the popup TOC. The TOC should only disappear when I click somewhere outside the popup TOC.

Then I wouldn't have to worry about scrolling away from the TOC by accident. I could scroll down the page with the popup TOC open if needed. --Timeshifter (talk) 04:11, 26 June 2023 (UTC)

 
Jonesey95's Vector 2022 TOC
I've been using similar CSS since the debut of Vector 2022 to fix the excessive amounts of white space in and around the sidebar TOC, and to allow it to use all of my available vertical space. I don't understand the whole "popup" concept described above, but after hiding a bunch of stuff that I have never clicked on in ten years here, I have a working TOC in the left sidebar. Screen shot attached. – Jonesey95 (talk) 06:30, 26 June 2023 (UTC)
Jonesey95. I had a similar problem on Shoutwiki for legacy Vector 2010. I was able to decrease the white space on the left and right side of the sidebar links. I added a bunch of links to the sidebar. They linked to another wiki.
I just checked the sidebar here and the decreased line spacing is in effect from the newly-added CSS. But there is too much white space on the left. What CSS are you using to lessen that left-side white space in the sidebar?
I see now that the popup TOC is only a problem at the very top of the page. It only becomes a floating sticky TOC when it is opened after scrolling down the page a little bit. Just enough for the line with TOC button to stick at the top of the page, and stay there as you scroll all the way down the page.
If the TOC is clicked before scrolling down a few inches, then it is flaky. It should be changed to become a sticky floating TOC no matter where it is clicked. --Timeshifter (talk) 09:22, 26 June 2023 (UTC)
@Jonesey95: Can you please share the css code for this? CX Zoom[he/him] (let's talk • {CX}) 09:07, 26 June 2023 (UTC)
My code is at User:Jonesey95/common.css. I make no guarantees that it works perfectly, but it gives me compact sidebars that work well enough for me, along with a permanent, ubiquitous sticky header that I got from Quiddity's CSS. It will no doubt need to be changed if/when the new zebra layout is rolled out. – Jonesey95 (talk) 12:51, 26 June 2023 (UTC)
I very much like the numbering on sections, like the original TOC. But I'm unable to understand what part of the code does this. CX Zoom[he/him] (let's talk • {CX}) 07:42, 27 June 2023 (UTC)
It should be the part that has the word "numbering" in a comment preceding the code. – Jonesey95 (talk) 13:31, 27 June 2023 (UTC)

For those who are interested see: User:Timeshifter/vector.css or User:Timeshifter/vector-2022.css - This way you can see ahead of time what you will be getting if you install the CSS code from "the wub". The vertical compactness of the CSS lines in vector.css is very similar to the vertical compactness of TOC lines after adding the CSS codes. This makes TOC scrolling much easier and faster in Vector 2022.

the wub came up with some CSS to lessen the space between TOC lines in legacy Vector 2010:

.toc li {
    margin-bottom: 0;
    line-height: 1.4;
}

It works great. I got it down to line-height: 1.2;

Not sure if I can go further without some overlap of parts of the text. --Timeshifter (talk) 15:14, 26 June 2023 (UTC)

/vector.css also works for Vector-2022? I thought /vector.css is only for Vector legacy, and /vector-2022.css for Vector-2022. CX Zoom[he/him] (let's talk • {CX}) 07:39, 27 June 2023 (UTC)
It is working for me. Maybe /vector-2022.css allows for changing Vector 2022 without unintentionally messing with legacy Vector 2010. --Timeshifter (talk) 09:06, 27 June 2023 (UTC)
Currently, it does so. It will not soon. If the changes you are making are 2022 specific, ensure they go in the 2022 subpage. Izno (talk) 18:19, 27 June 2023 (UTC)
Thanks, Izno. I moved relevant CSS to: Special:MyPage/vector-2022.css which for me is User:Timeshifter/vector-2022.css --Timeshifter (talk) 01:41, 28 June 2023 (UTC)

the wub. I noticed some laddering in the expanded TOC here: Help:Table. The width of the TOC from where the text begins to the left side of the scrollbar is 20.2 cm on my 27 inch desktop PC. The TOC width here at Wikipedia:Village pump (technical) is 24 cm from where the text begins to the right side of the TOC box (has no scrollbar).

I have seen laddering on other pages too. Would it be possible to set the TOC without a specific width? I believe then the TOC would expand as far right as needed. And then it would wrap once it reaches the edge of the screen. This is how a table with a single column acts. It would only expand as needed. So the TOC would be narrow on pages with narrow TOCs.

Is there some CSS I could add to remove any width settings for the TOC? --Timeshifter (talk) 16:29, 29 June 2023 (UTC)

@Timeshifter I don't understand what you mean by laddering. The width of the TOC looks fine to me on both pages. When it is the "unpinned" version i.e. not in the sidebar, its width does expand to match the content. the wub "?!" 23:24, 29 June 2023 (UTC)
the wub. I guess I will have to stop using the word "laddering" because I don't see that word in Line wrap and word wrap.
In the expanded TOC in Help:Table these section headings wrap to 2 lines each:
mw-datatable – row highlighting via cursor hover. White background
tpl-blanktable – row highlighting via cursor hover. White background
In the TOC here at Wikipedia:Village pump (technical) this section heading wraps to 2 lines:
The block and lock notification in user contributions (sp-contributions-blocked-notice) has changed from red to yellow
Talk:Barack Obama/Archive 82:
The fact that Barack Obama was the first African American elected to the presidency should not be in the second sentence of the lead
There is no need for any width settings in the Vector 2022 TOC since it is no longer part of the article. If the TOC acts like a single-column table then it will expand and contract as needed to match the widest line in the TOC. When it bumps up against the right side of the screen the longest lines will wrap.
The Mediawiki developers may still have widths set for the TOC out of habit from legacy Vector 2010 when the TOC was within the article, and space was needed around it for images floating on the right, etc..
That is why I am looking for some CSS to negate the TOC widths.
--Timeshifter (talk) 15:05, 5 July 2023 (UTC)

Prosesize gadget doesn't work for me

The WP:PROSESIZE gadget has stopped working for me. When I click on the "Page Size" link in the left toolbar, the first paragraph of the page is highlighted in bright yellow, and that's it. It worked fine about a month ago, and I first noticed the problem on July 1st. I use the MonoBook skin and Firefox, if that's any help. Can this problem be fixed? Regards, Edward-Woodrow :) [talk] 23:56, 4 July 2023 (UTC)

How old is your version of Firefox and what OS are you using it on? Izno (talk) 00:07, 5 July 2023 (UTC)
Firefox ver. 114.0.1 - MacOS (Big Sur). Edward-Woodrow :) [talk] 00:29, 5 July 2023 (UTC)
Ok, that rules out ancient browser pretty firmly. What you're probably going to need to do to start is turn off your other gadgets and comment out your other scripts to ensure it's prose size that's acting up or if there is another script/gadget that is conflicting with it. If it's another script/gadget, you'll need to go 1 by 1 (or binary search) to see which.
If that's not the issue, then it's possible something in last Thursday's deploy made something funny, but I wouldn't know where to start since Monobook is basically unmaintained these days (nothing since June 5 that could have been an issue, which is too long ago). Which leaves something on the parser output side, and something in the skin infrastructure, as potentially the cause.
Galobtter is the most recent editor of the script, but the last change was in January, which probably rules that out also. Izno (talk) 00:42, 5 July 2023 (UTC)
It works for me, FWIW, on John Dalton. I get 2912 words. Vector 2022 skin. – Jonesey95 (talk) 03:00, 5 July 2023 (UTC)
It's not a MonoBook problem; I've tried and it also doesn't work in Vector 2010 or Vector 2022. Edward-Woodrow :) [talk] 12:05, 5 July 2023 (UTC)
Hmm... I disabled all non-default gadgets except ProseSize, commented out all my common.js scripts and blanked by common.css and switched to Vector 2022. Same problem. Edward-Woodrow :) [talk] 12:17, 5 July 2023 (UTC)
Again, on what page? Nardog (talk) 16:11, 5 July 2023 (UTC)
Every page I've tried it on, from stubs to FAs. Millipede, Der Spiegel, Torrey Hills, San Diego, and Moldova in the Eurovision Song Contest 2015, if you want some examples. Edward-Woodrow :) [talk] 16:13, 5 July 2023 (UTC)
And is the size counting also not working for you, or just the highlighting? Nardog (talk) 16:17, 5 July 2023 (UTC)
Just the first paragraph of the page is highlighted in a block bright yellow (#ffff00), and then nothing else happens. No size reading, nothing. As I said, it worked fine about a month ago. Edward-Woodrow :) [talk] 16:23, 5 July 2023 (UTC)
What is an example of an article where this has happened? Nardog (talk) 01:19, 5 July 2023 (UTC)
Hah! I fixed the problem... MediaWiki:WikiEdit.js was interfering. I couldn't find it, because I had it in my global.js, which I never look at. Edward-Woodrow :) [talk] 16:26, 5 July 2023 (UTC)

*Sigh*... Okay... what else has changed now?

Some of my .js scripts are now throwing errors stating that 'r' is not defined (line 37 of this script, for example). Everything was working fine this morning. Can someone help explain what's going on? ~Oshwah~(talk) (contribs) 00:58, 1 July 2023 (UTC)

On what page has this happened? Nardog (talk) 01:26, 1 July 2023 (UTC)
O/T tip: this style link will go straight there; useful on longer scripts.   Mathglot (talk) 05:53, 1 July 2023 (UTC)
You should use DevTools to to debug your script. Also you seem to be throwing errors that you are not catching. You should always take care of errors you throw. At a very least do a console.warn/error and return safely from a function. Nux (talk) 09:33, 1 July 2023 (UTC)
Update: I was able to figure out what changed. ~Oshwah~(talk) (contribs) 17:07, 5 July 2023 (UTC)

Search bar

What is wrong with the search bar on the main page in Vector 2022 skin?? Never works on my ipad, I have to click on an article just to get the search bar working! ♦ Dr. Blofeld 07:54, 6 July 2023 (UTC)

@Dr. Blofeld: It works on my iPhone. In a narrow window you may have to first click a magnifying glass icon at the top to make the search bar appear. Does it work in safemode or if you log out? PrimeHunter (talk) 11:14, 6 July 2023 (UTC)

Change to WikiProject banner shell

A less verbose design has been rolled out for {{WikiProject banner shell}}, after discussion at Template talk:WikiProject banner shell § How project banners should look. Though the change was fully implemented in WPBannerMeta, please discuss any issues at the section linked above. DFlhb (talk) 12:40, 6 July 2023 (UTC)

Content translator not working

Hello, I asked in Wikipedia:Help desk and ppl recomended to write here.


I checked all the pages and I have extended autoconfirmed status, but when translating from Catalan to English I get a warning


On the English Wikipedia machine translation is disabled for all users and this tool is limited to extended confirmed editors (see WP:CXT).


and a


Translation services not available for the selected languages. Why?


I don't understand why, because both Google translate and Apertium translate from Catalan to English. TaronjaSatsuma (talk) 13:44, 5 July 2023 (UTC)

@TaronjaSatsuma the technical answer is: because the community doesn't want that enabled here. — xaosflux Talk 15:41, 5 July 2023 (UTC)
For non-technical background see Wikipedia talk:Content translation tool and its archives. — xaosflux Talk 15:42, 5 July 2023 (UTC)
Ok, I see it's general.
I believe that the situation should be better explained in the tool itself.
Still, thanks for your answer. TaronjaSatsuma (talk) 16:29, 5 July 2023 (UTC)
Xaosflux made MediaWiki:Contenttranslation-summary which is displayed at top of Special:ContentTranslation. It currently says: "On the English Wikipedia machine translation is disabled for all users and this tool is limited to extended confirmed editors (see WP:CXT)." I do think it's a little confusing. It sounds like "this tool" refers to machine translation and then it becomes self-contradictory. Many users probably don't know that machine translation is just a part of the content translation tool. WP:CXT explains more but many users ignore links. I suggest: "On the English Wikipedia this tool is limited to extended confirmed editors and the machine translation part is disabled for all users (see WP:CXT)." PrimeHunter (talk) 11:46, 6 July 2023 (UTC)
updated to clarify. — xaosflux Talk 13:24, 6 July 2023 (UTC)

Flipping/mirroring images

I wonder if it would be possible to enable flipping/mirroring of images in standard image templates, which will help in various cases, when for example a (non-human) subject of an image should face the text (per the MOS). This is often an issue in animal articles, and particularly in the paleontology Wikiproject, where drawings of extinct animals are frequently used, but can be unwieldy if not facing the desired direction. One solution has been to upload flipped versions of images, but this is a huge, seemingly redundant task if this could simply be done with code by using an optional parameter in image templates. FunkMonk (talk) 15:44, 4 July 2023 (UTC)

You need to be very careful if doing this. Per Wikipedia:Manual of Style/Images#Editing images, Images should not be changed in ways that materially mislead the viewer. For example, images showing artworks, faces, identifiable places or buildings, or text should not be reversed (although those showing soap bubbles or bacteria might be). --Redrose64 🌹 (talk) 15:57, 4 July 2023 (UTC)
Definitely follow Redrose64's guidance above. That said, here's a tool that can be used for good or evil:
 <div style="transform: scaleX(-1);">[[File:Example.jpg|thumb|This is a caption]]</div>
which looks like:
 
This is a caption
Jonesey95 (talk) 16:37, 4 July 2023 (UTC)
Yes, the template page should state what it can and can't be used for. But this goes for flipped images in general whether they are uploaded as a new file or not. Having an automatic parameter would instead help us eliminate a lot of useless flipped versions of files; if it is determined that an image of, say, a person, should never have been flipped, all we have to do is remove the hypothetical flip parameter from the image template. But if it exists as a flipped file on Commons even after it has been removed from an article here, it's a much longer process, there will be a chance it will be added again later, that is has been added to a non-English Wikipedia in the meantime, and it may have to go through a drawn-out deletion request process. As for the example above, doesn't it also flip the caption? FunkMonk (talk) 17:01, 4 July 2023 (UTC)
And the text in the image. In general, don't do what you're suggesting, as I suspect it will also be a general performance degradation relative to uploading a flipped image. Izno (talk) 17:29, 4 July 2023 (UTC)
Yeah, images with text or other cases where asymmetry is important should not use the parameter, just like we shouldn't upload flipped versions of such images, so it isn't really a novel issue. The difference is just that the parameter is much easier to just remove from an image template than getting rid of a wrongly flipped file. FunkMonk (talk) 17:42, 4 July 2023 (UTC)
I suspect it will also be a general performance degradation relative to uploading a flipped image. remains of interest. Izno (talk) 17:46, 4 July 2023 (UTC)
For the technique described (where the flipping is achieved using the CSS declaration transform: scaleX(-1)), the WMF servers simply serve the unflipped image and the flipping is done entirely client-side. Therefore any performance degradation will be at the client's end, and WP:DWAP doesn't come into it.
If the client (the user's browser) does not support CSS Transforms Module Level 1, it will fail gracefully, with the unflipped image being displayed. Most current browsers support that CSS module, but they don't have to, because it's not yet a full W3C Recommendation. --Redrose64 🌹 (talk) 21:33, 4 July 2023 (UTC)
1) It is additional CSS going down the pipe. That is the first point of minor performance degradation. 2) The second point is that it will take longer on the client side to digest and use that CSS. Transforms in particular cost more in computing than many of the other CSS properties. They are both minor but not non-existent.
I am unconcerned about browsers that do not support it as there are (basically) none that we support at/above grade C.
Besides those two points, I think this adds additional complexity for something that any image creator can take care of trivially, without degradation in performance. Izno (talk) 22:13, 4 July 2023 (UTC)
What level of "performance degradation" are we talking about here, and do we have any reason to even suspect it poses significant (or any at all) challenges to most modern computers? And flipping with code is already being done in many articles that have cladograms with illustrations, so again, I see no realistic downside to making this less unwieldy to do. We're literally just talking about making it possible without also flipping the captions, flipping with code is already possible and being done all over the place. FunkMonk (talk) 17:07, 6 July 2023 (UTC)
A template with TemplateStyles targeting <img> rather than random CSS would work here. Izno (talk) 17:30, 4 July 2023 (UTC)
I think the rules are made for editors, and not vice versa. If there are layout reasons why the image can't be placed on the other side of the page, then personally I would prefer to just live with the subject looking outwards. (I appreciate if the image is of a drawing where there was no particular reason or asymmetry for the subject to look a given way, flipping it wouldn't matter, but without knowing the background of the drawing, it would be hard to know this.) isaacl (talk) 21:03, 4 July 2023 (UTC)
In the case where a representation has been created by the uploader and they know the image can be safely flipped, I think it would be better for them to upload both versions with appropriate indications in the file name, which would signal their intent. isaacl (talk) 21:10, 4 July 2023 (UTC)
But in this case, many editors do prefer what the guideline recommends, which is that subjects face towards the text. It simply looks better. And we're talking about thousands of images from various sources, not just some by the editors themselves here and there. A method of flipping a the image itself which doesn't also flip the entire caption and frame would be enough. FunkMonk (talk) 00:08, 5 July 2023 (UTC)
I feel fidelity to the original image is a greater concern. Images can be placed on the left side, too. isaacl (talk) 00:50, 5 July 2023 (UTC)
Perhaps, but that's irrelevant to the guideline and the fact that many editors do want to make images face the text, and it also does not address the fact that flipped versions of images are already being uploaded en masse, which is an even more severe infringement on their fidelity. We simply don't need flipped versions if it can be done automatically instead. FunkMonk (talk) 03:15, 5 July 2023 (UTC)
Yes, my comments on flipped images are regarding uploaded flipped images, as well as any instances using a client transformation. Putting images on the appropriate side so the subject will face the text does address the style issue. isaacl (talk) 03:27, 5 July 2023 (UTC)

Where did "Forgot your password?" go?

I remember that it used to be possible to select "Forgot your password?" on the Log in page, and give the username/email address to receive a temporary password over the email. See the log in page of Beta Wikipedia where it is still present. But on the real Wikipedia, its gone. CX Zoom[he/him] (let's talk • {CX}) 17:31, 6 July 2023 (UTC)

Works for me. * Pppery * it has begun... 17:33, 6 July 2023 (UTC)
I'm sorry, I was wrong in my assessment of the situation. Actually, that link was gone for me on enwiki. So, I check where that leads leads to on Beta, and then I manually opened Special:PasswordReset on enwiki, and got the error "Your IP address is blocked from editing. To prevent abuse, it is not allowed to use password recovery from this IP address." because apparently I'm in this range. I was then able to recover my account via a password reset at metawiki. CX Zoom[he/him] (let's talk • {CX}) 17:38, 6 July 2023 (UTC)

Dropdown menu bug

Dropdown menu bug in other wikis

 
Bug in question

I recently came across a bug in every wiki except for Wikipedia. I have no idea how Phabricator works, so can somebody please file a ticket for this? Thanks in advance, QuickQuokka [⁠talkcontribs] 10:04, 5 July 2023 (UTC)

@QuickQuokka I've never been able to get my head around Phabricator, either. I'd suggest posting at WP:VPT might get the attention of more technical folk. Nick Moyes (talk) 10:12, 5 July 2023 (UTC)
Doesn't seem like a MediaWiki bug. Commons works fine for me. One or some of the gadgets might be trying to add tabs in way not working with Vector 2022. Did you try to switch to Vector? What gadgets are you using that add this things as semi-tabs? Nux (talk) 11:01, 5 July 2023 (UTC)
@Nux: Using the old Vector skin seems to fix it, but I'd honestly rather not use it.
Here is my global.js, Here is my common.js QuickQuokka [⁠talkcontribs] 11:16, 5 July 2023 (UTC)
@Nux: Also btw I haven't changed anything in my gadgets or JavaScript files lately[a], the closest thing is me changing my global.css to change the color of redirects and interwiki links. --QuickQuokka [⁠talkcontribs] 11:28, 5 July 2023 (UTC)
@QuickQuokka seems like a problem with the meta:MoreMenu. I'm not using it, but maybe @MusikAnimal might be able to help. Seems like V22 might be not supported yet. BTW, MusikAnimal you might want to try out Wikipedia:Wikiploy for deployment from Github 🙂. Nux (talk) 11:38, 5 July 2023 (UTC)
This is a known incompatibility between Twinkle and Vector 2022. See this Twinkle talk page thread for details and a workaround. – Jonesey95 (talk) 11:51, 5 July 2023 (UTC)
@Jonesey95: I tried adding that into my global.css and previewing it, but it seemed to change nothing. --QuickQuokka [⁠talkcontribs] 12:26, 5 July 2023 (UTC)
Really? I haven't noticed anything. — Qwerfjkltalk 16:00, 5 July 2023 (UTC)
@Qwerfjkl: I have noticed it (see T337893), but I thought it was fixed, and up until today it was working fine. --QuickQuokka [⁠talkcontribs] 16:47, 5 July 2023 (UTC)
@QuickQuokka, if it's on other wikis but not this one, it might be an ITSTHURSDAY issue (which will happen on Wednesday for smaller wikis). — Qwerfjkltalk 16:57, 5 July 2023 (UTC)

@Qwerfjkl: Now thinking about this, you're absolutely right. I see that all the wikis where this happens are group 1 wikis (which I mostly use), so it makes sense. Hope they resolve this. --QuickQuokka [⁠talkcontribs] 17:04, 5 July 2023 (UTC)

This has been fixed for meta:MoreMenu on all wikis. It will be fixed in Twinkle before the breaking changes arrive here on enwiki tomorrow. For interface admins on other wikis, you can either go by phab:T319358#8989477 or wait for it to be fixed upstream (assuming they're using the new version of Twinkle and that Twinkle devs are actually maintaining that. I'm not even sure…). MusikAnimal talk 16:59, 5 July 2023 (UTC)

The buttons particularly are phab:T340952. It will be fixed soon. Izno (talk) 17:07, 5 July 2023 (UTC)

@Qwerfjkl: Yep, now broken on enwiki too 🥲 --QuickQuokka [⁠talkcontribs] 09:51, 6 July 2023 (UTC)

Notes

  1. ^ I did try out a new script, but I removed it shortly after

In Farsi Wikipedia the bug still persists. See https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C

And this screenshot:  

But English Wikipedia has fixed it. Please do the same fixing as English Wiki for us. Thanks, Hooman Mallahzadeh (talk) 14:16, 6 July 2023 (UTC)

@Hooman Mallahzadeh: Is it the Twinkle menu that shows up like this? CX Zoom[he/him] (let's talk • {CX}) 15:55, 6 July 2023 (UTC)
@CX Zoom Yes, "توینکل" in Farsi is equivalent to "Twinkle" in English. Hooman Mallahzadeh (talk) 15:59, 6 July 2023 (UTC)
@Hooman Mallahzadeh: Then, the local installation of Twinkle on fawiki needs to be edited to bypass this error. For example this edit was required for Twinkle to be fixed on enwiki. phab:T319358#8989477 lists the changes that needs to be made for an immediate fix, or you can wait until this is fixed from software side at phab:T340952. CX Zoom[he/him] (let's talk • {CX}) 16:06, 6 July 2023 (UTC)

Top right drop down menus (enwiki)

Anyone else have some of these just become expanded by default? Gråbergs Gråa Sång (talk) 09:15, 6 July 2023 (UTC)

It seems to be changing, atm it's the Twinkle one. Gråbergs Gråa Sång (talk) 09:17, 6 July 2023 (UTC)
Same here. Happy Thursday! -- Tamzin[cetacean needed] (she|they|xe) 09:18, 6 July 2023 (UTC)
Not an issue logged out... Maybe it's about Twinkle specifically? -- Tamzin[cetacean needed] (she|they|xe) 09:20, 6 July 2023 (UTC)
Could be, at least now. It was the user and tools menus before. Gråbergs Gråa Sång (talk) 09:21, 6 July 2023 (UTC)

I am having the same issue and I think it is WP:Twinkle as if I disable it in preferences it is just fine. Lightoil (talk) 09:28, 6 July 2023 (UTC)

If you need Twinkle, you can always switch to the Monobook skim, which is working fine. —Kusma (talk) 09:35, 6 July 2023 (UTC)
Seen. A Vector 2022 skin change caused Twinkle to break again. I'm working on a Twinkle patch. Stay tuned. –Novem Linguae (talk) 10:40, 6 July 2023 (UTC)
Thanks for working on a Twinkle patch, @Novem Linguae
@Kusma's suggestion of using the Monobook skin may solve the dropdown issue ... but for me, after a few weeks of adjusting to the Vector 2022 skin, switching back again would be a pain. So I'll keep on swearing at the fallen-down dropdown until the goddess of code smiles on Novem's labours. BrownHairedGirl (talk) • (contribs) 10:54, 6 July 2023 (UTC)
+1. Gråbergs Gråa Sång (talk) 11:04, 6 July 2023 (UTC)
Thanks! Gråbergs Gråa Sång (talk) 11:02, 6 July 2023 (UTC)
The hotfix is ready for an interface admin: MediaWiki talk:Gadget-Twinkle.js#Hotfix for vector-2022 Twinkle dropdown menu appearanceNovem Linguae (talk) 11:06, 6 July 2023 (UTC)
Bless you, @Novem Linguae.
My stock of swearwords was being rapidly depleted, but your speedy fix has saved me from the trauma of a completely empty stash. BrownHairedGirl (talk) • (contribs) 13:30, 6 July 2023 (UTC)
No worries. I'm happy to help. I'll probably apply for interface admin soon so I can do these faster. –Novem Linguae (talk) 18:58, 6 July 2023 (UTC)
Fixed! :-) ~Oshwah~(talk) (contribs) 12:23, 6 July 2023 (UTC)
👍 Gråbergs Gråa Sång (talk) 13:48, 6 July 2023 (UTC)

Editing through the "+" link

I strongly disagree with the change a few months ago where edits to pages by clicking on the "+" link put the user in a radically different environment from the regular edit. Now users have two editing interfaces, the regular edit interface and the new "+" interface. When a user clicks on "+", they should have the same environment as if they clicked on "edit". Can we go back to the status quo ante, please? As an example of the madness of this new interface, I always sign my comments starting with an em dash. In this new environment, instead of the Insert menu, I have to click on the Omega icon to get the special characters to appear. Users should not have to contend with idiosyncrasies such as this. By the way, for both environments, I use the source editor and avoid the visual editor. —Anomalocaris (talk) 09:13, 6 July 2023 (UTC)

You can disable this feature in Special:Preferences#mw-prefsection-editing under "Enable new topic adding". -- Tamzin[cetacean needed] (she|they|xe) 09:16, 6 July 2023 (UTC)
Tamzin: Thanks! But why anyone thinks that users should have to contend with a special interface for new topics, different from the regular edit, is beyond me. This is a total violation of sound interface design. —Anomalocaris (talk) 16:58, 6 July 2023 (UTC)
There are many ways to edit Wikipedia. Do not think that because you learned one way that everyone should learn the same way or in fact that everyone does. Izno (talk) 17:52, 6 July 2023 (UTC)
Izno: See my comment at mw:Talk:Talk pages project/New discussion#Please fix the vague instructions. —Anomalocaris (talk) 18:39, 6 July 2023 (UTC)
Regarding example 1, the intended interaction for most editors in the future is to use the "Reply" button, not the "edit" button, to reply to comments. Which provides the same interface as the + button now does. If you don't have those links, that's because you've already customized your interface via either CSS or the options I think available in preferences to remove them. Regarding item 2, WAID already provided the suggested remedy: turn it off in your preferences.
In general, data has already shown that the talk pages project has improved talk page use. Izno (talk) 19:08, 6 July 2023 (UTC)

{{pp}} should only display a padlock by default, not banner

I have read that template's talk page, there's little discussion about this (to look it up just simply Ctrl+F "default"). What do you all think about this? Hddty (talk) 04:28, 7 July 2023 (UTC)

Wikiproject Film script error (with Supported by Japanese task force??)

  Resolved

Hello, This message "Category:Script error: The function "quality" does not exist.-Class Japanese cinema articles" appears on various TP of articles in the Project Fillm that are of interest for the Jp task force. Can anyone help with that? Examples: TF page itself, or here or here. Thank you. -MY, OH MY! (mushy yank) 12:39, 7 July 2023 (UTC)

See this discussion. The change that caused this problem was just reverted; affected pages may require a WP:NULLEDIT. – Jonesey95 (talk) 12:47, 7 July 2023 (UTC)
Thank you very much. -MY, OH MY! (mushy yank) 12:55, 7 July 2023 (UTC)

Is there any way of identifying the most recent links to a specific page?

Is there any function that would allow me to check Special:WhatLinksHere and get result sorted by when the links were added to the target pages? The purpose would be, for example, to find the most recent instances of when a particular guideline is invoked in a discussion through linking.

Or is there some other way to achieve the same thing than WhatLinksHere? Peter Isotalo 09:07, 7 July 2023 (UTC)

Related changes, aka Special:RecentChangesLinked, shows changes to pages which link here. (Select "Show changes to pages linked to the given page instead".) However, the addition of new links may be drowned by other changes to pages that already linked here. Also, as the name implies, changes are only shown if they are recent (3 days by default, 30 selectable), not if they are older but still the latest. I hope that helps, but I suspect it doesn't. Otherwise you'll probably need a bot, because the list of which pages already linked here yesterday (and should thus be excluded from the report) isn't maintained. Certes (talk) 09:56, 7 July 2023 (UTC)
Help:Searching#linksto: can be combined with "Advanced search", "Sorting order", "Edit date" at Special:Search to find the most recently edited pages with a link but the link could have been added at any time. User:PrimeHunter/Search sort.js gives another way to select sorting order. PrimeHunter (talk) 13:39, 7 July 2023 (UTC)
One option is run WhatLinksHere or equivalent locally at your chosen time interval, saving the results to compare with the next run. If you don't fancy writing a simple program for that, a browser add-in such as Distill might help. However, it's still not going to spot a second link to the same target, for example if someone starts an ANI section citing WP:NOTHERE when it is already linked in an ongoing ANI thread. Alternatively, we could hope that this wishlist item is better supported next year, which would satisfy the request easily. Certes (talk) 14:40, 7 July 2023 (UTC)
Many thanks for the tips. This is good enough for my purposes for the moment. Peter Isotalo 14:50, 7 July 2023 (UTC)

Making fields default in visual editor?

 

When I insert {{dyknstr}} in the visual editor, there are no fields selected by default. You always want at least "article" and one of "prep" or "queue. What do I need to do to make those get inserted by default? RoySmith (talk) 15:25, 7 July 2023 (UTC)

Template usage in the Visual Editor is guided by the Template Data code in the template's documentation. See Wikipedia:TemplateData. – Jonesey95 (talk) 15:34, 7 July 2023 (UTC)
Cool, got it. Thanks. RoySmith (talk) 01:03, 8 July 2023 (UTC)

Packed galleries still having problems in mobile

Since my post last May, which fizzled out with nothing fixed, looks like the issue with galleries on mobile continues to persist. See for example the gallery at Southeast Asia#Demographics. Issue encountered on Chrome for iOS. Do this also affect other browsers? Android? TagaSanPedroAko (talk) 07:38, 1 July 2023 (UTC)

  • Fine on Firefox for Android, also the default Samsung browser and the app. Looks like an iOS issue. Black Kite (talk) 10:32, 1 July 2023 (UTC)
    There was a Phabricator ticket that has been opened for that issue, but nothing have came out of it. Maybe someone should reopen it or file a new one. TagaSanPedroAko (talk) 05:43, 6 July 2023 (UTC)
    Please do not open a new task or file a new one. And "bumping" tasks is somewhere in the realm of "don't do that". Izno (talk) 17:40, 6 July 2023 (UTC)
    Well ok. The thing with the current ticket regarding packed gallery is that there was no progress since it was first posted. The previous thread was already archived. TagaSanPedroAko (talk) 09:22, 8 July 2023 (UTC)

It's included in Category:Pages where post-expand include size is exceeded. And yet it's such a minuscule page, calling, from what I can tell, another tiny template once.

What's going on here? 17:47, 6 July 2023 (UTC) Headbomb {t · c · p · b}

Headbomb: Your linked page was deleted, so kindly restate the issue. —Anomalocaris (talk) 18:43, 6 July 2023 (UTC)
  Fixed the link. Headbomb {t · c · p · b} 18:45, 6 July 2023 (UTC)
I think that the problem is recursion. The page Template:User19 is attempting to transclude Template:User-multi/template which in turn is supposed to display some documentation, which itself should display some examples of actual {{user19}} use, but it's not. All we see is a link to Template:User-multi/template; plus (if at Preferences → Appearance you have enabled "Show hidden categories") a category box containing Pages where post-expand include size is exceeded - the link appearing instead of a transclusion suggests WP:PEIS, the presence of the category confirms it. --Redrose64 🌹 (talk) 22:00, 6 July 2023 (UTC)
I'm sure you're right. {{User19}} has doc=yes while the very similar {{User17}} has doc=no. I previewed an edit of {{User19}} after changing it to use doc=no and the result was that the category no longer applied. {{User17}} has some "NODOC" code which looks pretty useless to me. I'll leave saving the edit for the moment to give others who might understand the situation to have a look. Johnuniq (talk) 01:43, 7 July 2023 (UTC)
While wondering why templates like {{User11}} work but {{User19}} has this include-size-exceeded problem, I discovered that Template:User19/doc exists and is transcluded. It probably contains something that leads to the recursion. I intend to delete the /doc page because I think better documentation is generated automatically if /doc does not exist. If that would be a bad idea, please speak up. Johnuniq (talk) 06:08, 8 July 2023 (UTC)
{{User19/doc}} caused {{Userspace linking templates}} to be transcluded a second time and it has a huge post-expand include size which is made worse by being passed through other templates. The only real content was that duplicate transclusion so I have deleted {{User19/doc}}. {{User19}} renders now. PrimeHunter (talk) 11:22, 8 July 2023 (UTC)

Help with the longstanding "®exp_filter" PetScan bug

Sometimes WP:PetScan adds ®exp_filter into text fields after you hit the "Do it!" button. Those "®exp_filter"'s break the search. User:Certes explained the issue:

PetScan accepts a URL parameter called regexp_filter. "Link to a pre-filled form..." inserts &regexp_filter=value into the URL it generates. (value is usually blank.) This works perfectly when the link is clicked. However, such links are often pasted into wikitext or HTML. Some browsers interpret the string "&reg" as an HTML entity for the registered trademark symbol, even when not followed by a semicolon, so &foo=bar&regexp_filter= becomes &foo=bar®exp_filter=, appending the unwanted text to the preceding parameter and usually causing it to make an unwanted appearance in one of the input boxes.

And they added:

Could we change the parameter name to something that doesn't begin with reg? Of course, regexp_filter= should also be accepted for backwards compatibility, but if a replacement parameter name not beginning with reg can be offered in "Link to a pre-filled form" then the problem should be solved.

Other discussions about this longstanding annoying bug:

This page is very active, so maybe someone here knows how to fix this? I believe this is a bigger issue than it looks, because many people who use PetScan don't notice ®exp_filter in text fields that break their PetScan searches, so people just assume that the search simply just didn't find anything. So, next time when your PetScan search doesn't give any results, check the text fields if there's a ®exp_filter. 2001:14BA:9C35:6600:193F:16A0:BF8A:43A1 (talk) 19:33, 8 July 2023 (UTC)

Math markup doesn't work

While reading, I came across some math markup that doesn't display properly. Here's the markup at WP:MATH: <math>E=mc^2</math>,  , but it displays as E=mc^{2}, with the broken image icon above it. I am using Google Chrome 103 on El Capitan. – dudhhr talk contribs (he/they) 05:58, 8 July 2023 (UTC)

Is "Math" in Preferences -> Appearance set to "SVG"? Nardog (talk) 07:11, 8 July 2023 (UTC)
Yes. Math markup displays properly on my iPad (iOS 12, Safari whatever version), and on my MacBook Pro (High Sierra) and Windows 10 PC; both of those use the latest release of Firefox. – dudhhr talk contribs (he/they) 07:22, 8 July 2023 (UTC)
Seems like what you see is an alt of the SVG image. You might want to clear cache in that Chrome. Or just use Firefox :) Nux (talk) 13:40, 8 July 2023 (UTC)
I think it might be a certificate issue: Wikipedia, Commons, and upload.wikimedia.org gave warnings for invalid certificates, but I'm not sure what domain the math markup images use. Probably just an issue that comes with using an old OS version, iOS 9 has the same problem. – dudhhr talk contribs (he/they) 21:13, 8 July 2023 (UTC)
The image is here [49] if that shows a warning then that is the problem. Apple is using vendor locking on iPhones so I don't think you can work this out without changing your phone (installing Firefox probably won't make a difference). Nux (talk) 21:26, 8 July 2023 (UTC)
The problem is more important on my El Capitan iMac (it's from 2007!) than my iOS 9 iPad (I have a newer iPad), but yes tha was the issue. I told the browser to ignore the invalid certificate and it displays now. – dudhhr talk contribs (he/they) 22:00, 8 July 2023 (UTC)

The image on this page was inserted strangely; the problem is that the caption is, as usual, in the centre, while the image is on the left (opening the page from a mobile phone). JackkBrown (talk) 21:52, 9 July 2023 (UTC)

As far as I can tell, removing
<div class="floatnone">
from the expanded output of {{CSS image crop}} appears to allow the image to stay in the center on mobile. That's as far as I got, though, and I could be going down the wrong path. – Jonesey95 (talk) 22:12, 9 July 2023 (UTC)
This is affected by changes in the default CSS and structure changes in images. In any case probably using built in classes for this template is not a good idea. Instead of floatnone etc the template should use its own classes and a templatestyles CSS. At this point in time it would probably be best and easiest to do the layout with display:flex. Nux (talk) 00:05, 10 July 2023 (UTC)
@Jonesey95: @Nux: I directly removed the image (by the way, I found that the image was cropped; there are other people in the original image); I edited quickly, I hope I didn't damage the infobox. JackkBrown (talk) 00:35, 10 July 2023 (UTC)

When I open the page, I find an error message saying that "Lua error in Module:User_scripts_table at line 22: attempt to index local 'jsContent' (a nil value)." It looks like a big red link, and when I click on it, it shows:

Lua error in Module:User_scripts_table at line 22: attempt to index local 'jsContent' (a nil value).

Backtrace:

  1. Module:User_scripts_table:22: in function "chunk"
  2. mw.lua:527: ?
  3. [C]: ?

A huge table with rankings of user scripts should be expected. The person who loves reading (talk) 03:23, 10 July 2023 (UTC)

Fixed. Nardog (talk) 03:25, 10 July 2023 (UTC)
Thanks! The person who loves reading (talk) 03:31, 10 July 2023 (UTC)

Expanding and hiding of dropdown menus cause no change in their indicator symbol

Hi, at the top menu of Wikipedia there exists dropdown menus named "tools" and "languages" and "TW". These menus are by default at the state of "hidden" and have the symbol "˅". But after clicking on these words, the dropdown menus's state changes to "expanded". The problem is that their indicator symbol should change to "˄", but this scenario is not applied, and the symbol does not change and remains "˅". This changing of symbol to "˄" is necessary to indicate dropdown menu's state is "expanded" and a click on it causes a "hide" action. This scenario is nearly always applied in MS Windows's dropdown menus. Hooman Mallahzadeh (talk) 13:31, 8 July 2023 (UTC)

From a UI standpoint, yeah obviously this should've been the case, but I've never faced a functional problem due to it, so it might not be that much of a priority than some other very pressing issues. CX Zoom[he/him] (let's talk • {CX}) 15:38, 8 July 2023 (UTC)
I'm not sure why our UI should follow Windows UI design standards ? There is no need to change the icon to indicate state change. The dropping down of the menu is already indicating the state change. —TheDJ (talkcontribs) 09:34, 10 July 2023 (UTC)
@TheDJ The purpose of changing of such symbols is not for "showing the menu's state", instead it is for indicating the correct "action" of this symbol. The symbol "˅" indicates "expand the menu" and the symbol "˄" indicates "hide the menu". Hooman Mallahzadeh (talk) 09:54, 10 July 2023 (UTC)
You may raise this issue at mw:Talk:Reading/Web/Desktop Improvements if you want to. CX Zoom[he/him] (let's talk • {CX}) 11:38, 10 July 2023 (UTC)
@CX Zoom Thanks, I raised the issue there. — Preceding unsigned comment added by Hooman Mallahzadeh (talkcontribs) 11:55, 10 July 2023 (UTC)

Trace categories of an article

Is there a tool that shows the path how an article is part of a category much higher in the tree than the first-levels categories of that article? Example: I'm trying to address CS1 errors for classical music and opera articles. I'm baffled by PetScan results that shows that the article Electrothermal-chemical technology is member of Category:CS1 errors and Category:Opera (here) as well as Category:Classical music (here). How do those categories become (far removed) parents of that article? -- Michael Bednarek (talk) 05:55, 10 July 2023 (UTC)

I haven't been able to find a good tool, but I was able to find, using Special:CategoryTree and some educated guessing/randomly clicking, the following sequence of parent categories: Electrothermal-chemical technology -> Category:Propellants -> Category:Pyrotechnics -> Category:Special effects -> Category:Stagecraft -> Category:Opera -> Category:Classical music. I hope this helps! --rchard2scout (talk) 08:30, 10 July 2023 (UTC)
I think someone may be able to write a query for this. Yesterday Cryptic wrote a query for me that shows the category path in the result table see quarry:query/75085. You may talk to him directly, or ask at WP:RAQ. CX Zoom[he/him] (let's talk • {CX}) 09:12, 10 July 2023 (UTC)
I've simplified that query to quarry:query/75121. Feel free to fork and reuse it, you only have to change the basecat in the first line and the page title in the last line. --rchard2scout (talk) 09:51, 10 July 2023 (UTC)
Thank you both for your assistance. It's very much appreciated, and I made a note of this tool and your code, although I admit it's above my pay grade, but thank you for showing it so clearly. I'm still baffled by the subtle ways Wikipedia's category system works. -- Michael Bednarek (talk) 12:06, 10 July 2023 (UTC)

Redirects for article titles ending in periods

I have just made a redirect to Mail Boxes Etc. from Mail Boxes Etc - because when various email clients and other tools encounter the plain text string https://en.wikipedia.org/wiki/Mail_Boxes_Etc. they make a link to https://en.wikipedia.org/wiki/Mail_Boxes_Etc (without the period).

Every article ending in a period should likewise, it seems, have a redirect from the version without a period.

Before I request a bot to do this, is there any case where it might be problematic? Should we do it for other punctuation characters? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:47, 7 July 2023 (UTC)

I know that I have seen this question before, but it will be tricky to search for a discussion about it. Do we, or should we, have an "R from" template for this sort of redirect? It could go on Mr and Ph. D and many more. – Jonesey95 (talk) 02:06, 8 July 2023 (UTC)
{{R from modification}} or {{R from alternative punctuation}} could be used if something more specific isn't created. Anomie 13:09, 8 July 2023 (UTC)
I remember a discussion about issues with trailing parenthesis causing issues in some locations; I can't remember where it was, but the result was against the creation of redirects. BilledMammal (talk) 14:26, 8 July 2023 (UTC)
Here's a similar case: the wikilink Westward Ho! goes to the town in Devon, England; but if you use the full URL instead, the MediaWiki parser doesn't recognise the terminal bang as part of the URL unless you percent-encode it - compare https://en.wikipedia.org/wiki/Westward_Ho! (which goes to a dab page) with https://en.wikipedia.org/wiki/Westward_Ho%21 (which works as intended). This shows that the terminal period isn't the only punctuation that is affected. --Redrose64 🌹 (talk) 09:38, 8 July 2023 (UTC)
Correct. Another character that would be a problem in this case, is the space character. This is because URLs require percent encoding to have all the information. But because encoding is hard to read, browsers started hiding the encoding (Mediawiki realized the same early on actually and replaced spaces with underscores to improve readability). Especially when you copy paste an unencoded url into other applications that then do URL detection, this becomes problematic. There is not enough information being preserved, so you have to guess and guessing inherently allows for guessing wrong when it comes to edge cases. —TheDJ (talkcontribs) 11:14, 8 July 2023 (UTC)
We don't have article titles ending in a space, do we? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:13, 8 July 2023 (UTC)
No, MediaWiki doesn't allow that, even to the point that links such as e.g. https://en.wikipedia.org/wiki/Foobar_ or https://en.wikipedia.org/wiki/Foobar%20 go to Foobar. Anomie 13:57, 8 July 2023 (UTC)
Looking at both the classic parser and parsoid, MediaWiki's own logic drops any of ,;.:!? from the end of a URL, and also ) if the URL doesn't contain an (. Other services may, of course, behave differently. If we go with MediaWiki's list, it appears there are currently 125010 mainspace redirects (list) that would need to be created, 23668 of which (list) would point directly to articles and 101342 would bypass a double redirect. Whether any other namespaces should be processed is a good question. And while WP:MASSCREATION applies more to actual articles than redirects, as a BAGger I'd still want to see a WP:VPR discussion showing consensus for the creation of these redirects.
P.S. If we want to go ahead with this, it might be worth asking me to adapt AnomieBOT's EnDashRedirectCreator code that already handles various issues like double redirects, conflicts in possible targets, automatic G8 tagging if the target is deleted, and so on. Anomie 13:09, 8 July 2023 (UTC)
Rather than stating a duplicate discussion, I have posted a pointer to this one, on VPR. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:21, 8 July 2023 (UTC)

Test links

For convenience, I have created:

If anyone sees the need for similar links for other characters, feel free to continue the series in my userspace. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:29, 8 July 2023 (UTC)

Discussion (Redirects for article titles ending in periods)

  • Oppose the cons of cluttering search results outweigh the pros of this one. Instead I would suggest a software edit to make trailing punctuation act like a space unless there is already a redirect at that location. (t · c) buidhe 14:17, 8 July 2023 (UTC)
    • If I understand what you're trying to suggest here correctly, I think you have the problem backwards and what you suggest would not address the problem presented here. But T28556 covers both the problem here (auto-linking software omitting trailing punctuation) and the problem your suggestion would address (auto-linking software picking up unintended trailing punctuation); it doesn't seem like anyone has been interested in trying to implement it in over a decade. T40265 is similar, specifically about parens not being included. Anomie 14:37, 8 July 2023 (UTC)
    • Besides Anomie's rebuttal, results for a search for "Mail Boxes Etc" seems to include Mail Boxes Etc. but not Mail Boxes Etc so I'm not clear what cluttering of search results you're referring to? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:06, 8 July 2023 (UTC)
  • Comment. For periods only this would result in the creation of 19,053 redirects; which redirects would be created can be seen here. For all the special characters listed above this would result in the creation of 824,459 redirects; which redirects would be created can be seen here. BilledMammal (talk) 14:26, 8 July 2023 (UTC)
  • There are some 240 nonredirect mainspace pages ending in periods where the same title without trailing periods exists and isn't a redir to the first title. (Probably more, if you consider redirects ending in periods.) While some of them look like errors - for example, Bobby Bonds Jr. and Bobby Bonds Jr - most seem to make more sense, like Ten. and Ten. They're going to be a lot harder to justify when there's nineteen thousand new redirects, and all of them point to the titles with periods. —Cryptic 14:45, 8 July 2023 (UTC)
  • Oppose In favor of adding the relevant code to Template:New page DYM, like is already done with the closing parenthesis. * Pppery * it has begun... 16:31, 8 July 2023 (UTC)
  • Should we start with some or all of the 23668 articles, leaving the 101342 redirects for later? Some of those redirects will be of marginal use. Beware of a couple of pathological cases: And Now... v. And Now!, and Will Any Gentleman? v. Will Any Gentleman...? Certes (talk) 22:35, 9 July 2023 (UTC)

Tech News: 2023-28

MediaWiki message delivery 19:51, 10 July 2023 (UTC)

How do I request deletion of a recently created template?

HI, I ran into this new template Template:Stop AAPI Hate. I believe this has been created in error. The topic should be Stop Asian Hate not Stop AAPI Hate (which is a non-profit mostly gathering data) and I am not sure the subject needs a template. And I find it alarming that the "Groups associated with opposition" is there at all. When I try to google or search for "Wikipedia delete template" I get sent to pages about templates for deleting everything but templates. I'm sure the problem is between the chair and the keyboard, so I am coming here for some assistance. Could someone point me in the right direction? Thanks! WomenArtistUpdates (talk) 23:09, 10 July 2023 (UTC)

The venue you are looking for is Wikipedia:Templates for discussion. * Pppery * it has begun... 23:20, 10 July 2023 (UTC)
Thanks Pppery! I'll start with a ping from the template's talk page and then move on to "Templates for discussion". Best, WomenArtistUpdates (talk) 00:00, 11 July 2023 (UTC)

Live side preview window

Often times we come here to bitch and moan about stuff not working.

Well this time, I want to throw my hat to whoever came up with that idea and coded it. It works very well, and is extremely useful!

  The da Vinci Barnstar
If you were involved with this, give yourself this barnstar. Remember to subst it or something. Headbomb {t · c · p · b} 14:12, 10 July 2023 (UTC)

Headbomb {t · c · p · b} 14:12, 10 July 2023 (UTC)

@Samwilson, MusikAnimal, and TheresNoTime. Nardog (talk) 14:35, 10 July 2023 (UTC)
Thank you!! :) All of the Community Tech team should get credit here, but also to @Czar and all of the voters and participants in the 2021 wishlist proposal, and finally and perhaps most importantly @TheDJ who wrote the original user script that inspired the proposal and project as whole! :) All of you should feel entitled to advertise this barnstar in your userspace if you wish. I will refrain as this was in a work capacity for me. Warm regards to all, MusikAnimal talk 17:01, 10 July 2023 (UTC)
@MusikAnimal: I'm giving you full permission to give yourself that barnstar (alongside whichever boss made you work on this). Because in the past, even if stuff ended on the wishlist, they were often not worked on. Or they rolled out half assedly.
This thing just seems to work and not interfere with anything else. Which is... unusual for a tool was rolled out en masse, which changes the editing experience so radically. Headbomb {t · c · p · b} 21:47, 10 July 2023 (UTC)
@Headbomb: I'm so glad to hear this! Thanks for using it, and thanks for your nice words. :-) The thing I was most worried about was changing the default height-resizer, because that appears all the time even without the preview pane being open. All seems okay though. :-) Sam Wilson 01:35, 11 July 2023 (UTC)

Today’s Featured Picture July 12, 2023

CONGRATULATIONS for the first time a video picture works. Without the reader doing anything! YEA! You solved that past problem! Thank you! Wis2fan (talk) 04:12, 12 July 2023 (UTC)

It's File:PIA24039-MarsCuriosityRover-DustDevil-20200809.gif which is a GIF that animates automatically. Johnuniq (talk) 04:47, 12 July 2023 (UTC)

Help Desk question about screen reader

Someone posted at the help desk about problems they are having accessing Wikipedia using a screen reader: Wikipedia:Help_desk#Lack_of_Access. Maybe someone here has relevant expertise? -- Random person no 362478479 (talk) 19:38, 12 July 2023 (UTC)

I've replied there. Graham87 06:33, 13 July 2023 (UTC)

Image not displaying in an article

 
Three-view of the Mirage IIIE

File:Dassault_Mirage_III-5_Risszeichnung.png is included at the top of the Project ROSE article. But in my browser it is refusing to display; this code [[File:Mirage III-5 Risszeichnung.png|thumb|300px|right|Three-view of the [[Mirage III]]E]] displays only the frame and the caption. If I click in the empty space, the image opens in my browser just fine. And a plain link to the image file without any piping also displays OK, see below; this image just seems to break the piping, or something like that. I have never met this phenomenon before. If you can all see it on the right as well then the problem is obviously mine, but can you? If not, any ideas? — Cheers, Steelpillow (Talk) 15:56, 12 July 2023 (UTC)  

This should be listed somewhere as a perennial topic. The image needs to be purged somewhere. I tried purging its page here and on Commons, and it still shows as broken for me. – Jonesey95 (talk) 18:33, 12 July 2023 (UTC)
This appears to be an issue with the pre-generated thumbnail, if you try to view the thumb it's has an error message. -- LCU ActivelyDisinterested transmissions °co-ords° 20:27, 12 July 2023 (UTC)
Here the original is simply broken:
libpng error: IDAT: invalid distance too far back
Error in pixReadStreamPng: internal png error
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
Error in writeImageFileInfo: failure to read full image of Dassault_Mirage_III-5_Risszeichnung.png
I'll see if I can fix it with some tool. —TheDJ (talkcontribs) 11:22, 13 July 2023 (UTC)
I used png-fix-IDAT-windowsize from the pngcheck package and this repaired the file. —TheDJ (talkcontribs) 11:30, 13 July 2023 (UTC)
Yay! Thank you! I guess the question for our developers now is, if most rendering engines can deal with this technical lapse, should our image scaling engine be equally robust? — Cheers, Steelpillow (Talk) 14:26, 13 July 2023 (UTC)

Mobile lead image placement

Hello, I've noticed on mobile articles that the image (or infobox) placed before the first paragraph of a page in the code always appears after the first paragraph instead (though as far as I can tell only on main article namespaces). What exactly causes this? I was wondering if it was possible to replicate on other wikis. Thanks, Ringtail Raider (talk) 23:31, 11 July 2023 (UTC)

Please link to an example article, as recommended by the edit notice that appears when you post on this page. – Jonesey95 (talk) 00:39, 12 July 2023 (UTC)
This is mw:Extension:MobileFrontend. Izno (talk) 00:46, 12 July 2023 (UTC)
oh okay, thanks. I didn't know it was a separate extension, sorry. Ringtail Raider (talk) 19:33, 12 July 2023 (UTC)
Extensions are a typical way to extend MediaWiki. No apologies necessary. The relevant code is in MoveLeadParagraphTransform::identifyInfoboxElement(). It looks for elements with class thumb, infobox, and <figure> elements.
Looking at it has given me some thoughts about an unrelated system that has a change hanging out that someone wanted my feedback for, so, thanks for that. :^) Izno (talk) 03:22, 13 July 2023 (UTC)
@Ringtail Raider: It's controlled by the infobox class. See mw:Reading/Web/Projects/Lead Paragraph Move. PrimeHunter (talk) 01:40, 12 July 2023 (UTC)
It does it for images too though, like on axe. Ringtail Raider (talk) 19:31, 12 July 2023 (UTC)
The mobile website version always pulls the first text paragraph up. This is for readability and is done automatically by a post processing step in the renderer. —TheDJ (talkcontribs) 07:19, 12 July 2023 (UTC)
I've noticed that mobile often puts the first paragraph at the top, before infobox. But not always. One of the examples is United States Court of Appeals for the Fourth Circuit, which follows MOS:ORDER. Another example is Akkadian Empire. I think {{coord}} does this, which might be interpreted as the first paragraph (invisible), after which comes the infobox, and actual lead paragraph below it. To keep the uniformity, something should be done about it. (I vaguely remember finding an article without {{coord}} also having this weird behaviour, but I don't remember what it was.) CX Zoom[he/him] (let's talk • {CX}) 14:25, 12 July 2023 (UTC)
Having {{coord}} in the lead area (outside of the infobox) violates MOS:ORDER. If you move {{coord}} to its proper place at the end of the article and the mobile display is still undesirable, we might be able to figure out what causes the differences and submit a feature request. – Jonesey95 (talk) 14:37, 12 July 2023 (UTC)
I'm dumb, thanks! Coord should come at last, but I've found coords before infobox to be a very widespread practice. Is it possible to run a query or something? CX Zoom[he/him] (let's talk • {CX}) 14:44, 12 July 2023 (UTC)
My two examples have been fixed, upon placing coords at the last. Thanks! CX Zoom[he/him] (let's talk • {CX}) 14:48, 12 July 2023 (UTC)
The other article I taked about probable uses {{stack}} which also causes the same issue, for example Chess. CX Zoom[he/him] (let's talk • {CX}) 14:44, 12 July 2023 (UTC)
The MobileFrontend code is imperfect, and wherever possible editors are encouraged to make this in the arrangement in the article itself (mw:Recommendations_for_mobile_friendly_articles_on_Wikimedia_wikis) rather than rely on this behaviour that only works most of the time.
MobileFrontend is more or less a stop gap solution because most articles were written before mobile was a thing, or by people on desktop computers not considering how it might look on a mobile device. Jdlrobson (talk) 20:16, 13 July 2023 (UTC)

When I am replying and add new text, it appears at the front of a sentence

I'm using the Chrome browser, if it matters. So, if I type in reply “I think that is a great idea” and then later add “However,” it will appear as “HoweverIthink that is a great idea”. Any idea why this happens and how to fix it?

I asked at the regular Wikipedia Help Desk and they said members in this community had experienced this, but I could not find threads on this, if anyone has any pointers to solutions or workarounds for this.

Thanks!

Veritas Aeterna (talk) 20:59, 11 July 2023 (UTC)

There are quite a few similar reports that have been made on Phabricator:
It might be related to a gadget or browser extension you've installed. Also, are you using visual or source mode? Nardog (talk) 02:01, 12 July 2023 (UTC)
I got it happen in both visual and source mode again, but it is inconsistent in making its appearance. Now I can't get it happen here! It's like taking your car into the mechanic for a rattle and then when you want to show it to them, of course it doesn't happen! Veritas Aeterna (talk) 23:10, 13 July 2023 (UTC)

RTL scripts sometimes left-shifting lines displayed in editing environment (browser dependent)

Using source editor on mobile web interface, Firefox version 114.1.1 on Android 11.

I've noticed that some instances of Arabic-script text are causing characters not to appear in the editing interface, although they are present in the source. At Lebanon#Environment, we have the following two sources at the end of the section:

In the source editor, at my device's resolution and text size, the first source's |date= parameter 15 October 2019 displays as 5 October 2019, and the second source's 15 October 2019 displays as 15 October 019. In each case, the hidden digit would appear at the beginning of a new line. As I type this now in ReplyTool's interface, I notice that the same lines (containing the |title= parameter) are missing the left margin space rather than any characters present in the wikisource. In both examples and in both editing interfaces, only one character (or margin space) is not displayed, despite multiple instances of Arabic script across multiple lines. Folly Mox (talk) 15:24, 14 July 2023 (UTC)

From elsewhere in Lebanon,
In the full screen source editor, my interface displays access-ate where the missing d would begin the line containing the |website= parameter.
Here the line containing the |title= parameter is not displaying the line-initial opening curly bracket of the {{cite web}} template call.
Again here in ReplyTool, the left margin space of the line is not displayed. I typed the bulleted list * before pasting in the examples, and in the second example the left margin space before the asterisk (on the same line as the problem glyphs) was hidden after the paste-in. The left few pixels of the asterisk on that line and of the d of "access-date" in the first example visibly overlay the blue bounding box of the editing interface. Folly Mox (talk) 15:43, 14 July 2023 (UTC)
Could not duplicate in Chrome 102.0.5005.78. Duplicated in Firefox in the desktop view editing interface under Vector 2022. Folly Mox (talk) 16:26, 14 July 2023 (UTC)
I can reproduce in Firefox 115.0.2 on Windows 10, mobile version, source editor. If a line starts with left-to-right text but ends with right-to-left text like Arabic then the first character on the line can be pushed outside the left margin and become partially or fully hidden. During a change of the window width, I can sometimes see the character gradually disappear while it moves into the margin. PrimeHunter (talk) 16:43, 14 July 2023 (UTC)
I've reproduced for Hebrew text (from Macarena Sánchez:
Both the |title= and |website= parameters push the display left on the lines where they begin. Folly Mox (talk) 16:47, 14 July 2023 (UTC)
For some reason I tried replicating this in Edge beta 115.0.1901.170 and DuckDuckGo 5.163.0 but was unable. Replicated in Firefox 115.2.0 (thanks for the hint my browser needed an update, User:PrimeHunter). Folly Mox (talk) 17:22, 14 July 2023 (UTC)

Double click to edit should be instead 3 or 4 clicks

I have enabled double click to edit, in the preferences to edit of my account. The problem is that when I am trying to select a word by double clicking on it, I get instead the edit window. I think a simple fix of this unintended and annoying overlap is to click 3 or 4 times instead of just 2 in order to summon the edit page. Regards,--Thinker78 (talk) 22:17, 14 July 2023 (UTC)

Triple click usually selects a whole sentence or paragraph in browsers, or the whole pagename in the case of page headings. Quadruple click sounds awful and unergonomic when you can just click "edit". Many pointing devices have a double click button but not more. Let's stick to double click. Anyway, the feature is at Special:Preferences#mw-prefsection-editing and not Special:Preferences#mw-prefsection-gadgets so it's part of MediaWiki itself and not something implemented here at the English Wikipedia. A change could be suggested at Phabricator but it strongly sounds like a decline to me. PrimeHunter (talk) 23:19, 14 July 2023 (UTC)
Thanks for the info. I will modify my request but certainly not double click. Regards, Thinker78 (talk) 00:03, 15 July 2023 (UTC)

Images in galleries and infobox not displaying

The images in the two galleries of Jasper Francis Cropsey are not displaying, and I could only get the infobox image to display by putting in a fully formatted "File" statement, i.e. the "image=" is not working, although the "caption =" is. The rest of the images in the article display just fine.

Is something going on with gallery and infobox images?

Beyond My Ken (talk) 17:27, 13 July 2023 (UTC)

Just checked some other articles, and infobox, gallery, and multiple images are not displaying. Has anyone files a bug report on this yet? Beyond My Ken (talk) 17:34, 13 July 2023 (UTC)
"Works for me". Browser and operating system versions would be good to know, and you may need to run through the list of gadgets/scripts to see if any of them are causing you grief.
(We need a WP:VPTROUBLE for the standard replies here.) Izno (talk) 17:38, 13 July 2023 (UTC)
Firefox 115.0.2 under Windows 10 Home 19045.3208. Have not changed any settings or added or subtracted any gadgets recently, so something on Wikipedia's end seems to have changed and is interacting with something in my set up. I note that small images (such as the icons on Arbitration Case pages) aren't displaying for me either.
CSS/JS

Common css:

//.mw-thanks-thank-link {display: none;}
.mw-headline-anchor {display: none;}try
textarea#wpTextbox1 { line-height: 1.6; }
#mw-watchlist-resetbutton {display: block;}
#ca-special-specialAssociatedNavigationLinks-link-3 { display: none; }

Common js:

window.ADMINHIGHLIGHT_EXTLINKS = true;
$(function() {
    $watchlistReset = $('#mw-watchlist-resetbutton');
    $watchlistRes'''et.submit( function ( event 
        $watchlistReset.off( 'submit' ).submit();
    });
});
//
//catALot///////////////////////////////////////
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
	mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATheopolisme%2FScripts%2Fadminhighlighter.js&action=raw&ctype=text/javascript'); // [[User:Theopolisme/Scripts/adminhighlighter.js]]
importScript( 'User:Ohconfucius/script/EngvarB.js' ); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript( 'User:Enterprisey/userinfo.js' ); // Backlink: [[User:Enterprisey/userinfo.js]]
importScript( 'User:Danski454/goToTop.js' ); // Backlink: [[User:Danski454/goToTop.js]]
importScript( 'User:Erutuon/scripts/imageSize.js' ); // Backlink: [[User:Erutuon/scripts/imageSize.js]]
//importScript( 'User:BrandonXLF/FloatSide.js' ); // Backlink: [[User:BrandonXLF/FloatSide.js]]
// [[File:Krinkle_Global_SUL.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Tools/Global_SUL.js&action=raw&ctype=text/javascript');
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]


Monobook js:

function externISBN() {
  for (var i = 0; i < document.links.length; i++) 
    {       
        if( document.links[i].href.match(/isbn=(.*)/) ) {
          document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1;
        }
    }
}
addOnloadHook(externISBN);
var magicURL = "http://www.amazon.com/gp/search?ie=UTF8&field-isbn=MAGICNUMBER&tag=wikipedia08-20";
importScript('User:Lunchboxhero/externISBN.js');
/* importScript('User:UncleDouggie/smart watchlist.js'); */
importScript('User:Matma Rex/VE killer.js');
window.hotcat_use_category_links = true;
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/massmove.js&action=raw&ctype=text/javascript' ); //[[User:Ahecht/Scripts/massmove.js]]

Monobook css:

/* spam. bah */
#siteNotice {
    display: none;
}
#bodyContent div span img {
  display: none;
}
#wpTextbox1 {
	width:100% !important;
	height:275px !important;
}
.editCheckboxes #minoredit_helplink { display: none; 
}
.mw-parser-output div.navbar-mini abbr { font-variant: normal; 
}
span#sig {background:inherit !important;font-weight:normal !important;text-decoration:none !important;
}
span#sig b{font-weight:normal !important;
}
/* Add a zero-width space before the in-text citation */
sup.reference:before {
    content: "\200B"; text-decoration: none;
}
.ambox-Orphan {
    display: none !important;
}
li#pt-sandbox {display: none;}
#ca-special-specialAssociatedNavigationLinks-link-3 { display: none; }

Beyond My Ken (talk) 18:03, 13 July 2023 (UTC)

#bodyContent div span img { display: none; } looks suspect. You can try removing that first. MediaWiki has indeed changed its output (intentionally) for images that would cause this particular line to remove just about every inline image (basically every image outside a thumb) as well as gallery images. Remove this line and your imagery should be restored. If you have particular kinds of images you're trying to target (I'd guess you're trying to remove {{flagicon}}s?), I can assist with adding classes to relevant templates, which I find to be good practice anyway. Izno (talk) 18:33, 13 July 2023 (UTC)
Good guess, flag icons were the purpose. I'll take it out, thanks. Beyond My Ken (talk) 02:58, 14 July 2023 (UTC)
@Beyond My Ken, those already have class flagicon. You can target an image inside that class with .flagicon img { display: none !important; }. Izno (talk) 17:06, 14 July 2023 (UTC)
Thanks, I'll give it a try. Beyond My Ken (talk) 00:13, 15 July 2023 (UTC)
@Izno: Yeah, that was it, all seem to be working now - and to pat myself on the back, it's what I suspected might be the problem after I posted the CSS/JS files and had to run off to the hospital. Thanks. Beyond My Ken (talk) 03:04, 14 July 2023 (UTC)

Watched article not showing up on my watchlist

I just moved William Brockman Bankhead House from my user space to Main Space. And I have it bookmarked. I can see it on my contributions list. But it won't show up on my watchlist. It is not browser specific. Purging does not seem to help. Feedback? — Maile (talk) 00:43, 15 July 2023 (UTC)

I see the problem, maybe. But don't know how to correct it. It looks like this article was created by me on July 11. At that time, I still had a version in my user space. I don't remember having it in two places, as I intended to work on it in my user space and then move it - which I did. Anyway, that's the problem - two copies of this out there. Can anyone correct this for me, please? — Maile (talk) 01:02, 15 July 2023 (UTC)
It's OK now, so never mind. — Maile (talk) 03:09, 15 July 2023 (UTC)

HotCat message

Why do I keep seeing this message on mobile view?

HotCat requires AMC mode.
Enable HotCat and AMC mode on this page

What is AMC mode? Is that the advanced mode? And why does HotCat require AMC mode? This hasn't been the case for a long time (at least for me). I hope I can find some answers. Thank you. HueMan1 (talk) 05:55, 15 July 2023 (UTC)

@HueMan1: Yes, AMC mode is the advanced mode at https://en.m.wikipedia.org/wiki/Special:MobileOptions. "Enable HotCat and AMC mode on this page" should be a button which can also enable it. The mobile version only shows categories if advanced mode is enabled. PrimeHunter (talk) 10:26, 15 July 2023 (UTC)
@PrimeHunter: Is there a way to get rid of this message without disabling HotCat? I only use HotCat on my computer, but I also make edits on mobile every once in a while, so it would be a bummer if I had to change the settings whenever I switched from PC to mobile and vice versa. Besides that, I'm not really a great fan of AMC mode, so I'm out of ideas. HueMan1 (talk) 11:22, 15 July 2023 (UTC)
If you are not using hotcat on mobile then just don't tap on the button. Nux (talk) 11:29, 15 July 2023 (UTC)
Yes, that was changed recently after a discussion: Wikipedia:Village_pump_(technical)/Archive_206#Pop_up_on_Android_changes_Settings Nux (talk) 11:24, 15 July 2023 (UTC)
@Nux: I did exactly what you said at Wikipedia:Village pump (technical)/Archive 206#Pop up on Android changes Settings (the one with a code), and it worked! Thanks. HueMan1 (talk) 11:47, 15 July 2023 (UTC)

First paragraph not rearranged above {{Infobox military conflict}} that uses campaignbox parameter

At (for example) Carnatic Wars the lead section is not visible on page load on mobile; you need to scroll down below the infobox to see it. The mobile frontend should rearrange it above the infobox, but does not. If you remove the |campaignbox= parameter and instead transclude the campaignboxes directly onto the page, preview shows the lead section is rearranged as expected. This is especially vexing as the campaignboxes themselves are hidden on mobile, yet using the parameter does affect how the page is displayed.

I tried raising this at Template talk:Infobox military conflict since that template seems to be the culprit, but no one has responded in four months. Hairy Dude (talk) 14:17, 15 July 2023 (UTC)

The template uses {{stack}}. I think if we added the mw-stack class to it then MobileFrontend would catch that there's an infobox there. I'm actually to blame for removing it in 2021 because I didn't understand it was there deliberately. :) Izno (talk) 15:54, 15 July 2023 (UTC)

Issue with coordinate templates and article previews

Hi, I have noticed that articles with coordinate templates at the top of the page are not displaying desktop mouse-hover previews correctly. MOS:ORDER suggests moving coordinate templates above DEFAULTSORT into the footer or as an infobox parameter. Here are some articles that are experiencing the problem: Shubenacadie Canal, Halifax Harbour and Cape May Canal. I am having these issues using Google Chrome and Safari browsers. 108.18.207.147 (talk) 20:08, 15 July 2023 (UTC)

Pinging user BeyondMyKen: Beyond My Ken 108.18.207.147 (talk) 20:10, 15 July 2023 (UTC)
I do not see the same problem that the IP is describing, so it may be something in their set-up that needs to be corrected. The editor was doing mass edits, moving the coords from the top of pages to the bottom without having sought a consensus to do so, so I advised them to stop.
In the larger picture, items on the editing page should generally be located (approximately) where they appear on the rendered page, so it makes little sense to put coordinates at the bottom of the page when they appear at the very top of the article (or in the infobox). MOS:ORDER -- which is, of course, a guideline and not policy -- should probably be changed. Beyond My Ken (talk) 20:45, 15 July 2023 (UTC)
Incidentally, the same issue regarding MOS:ORDER came up with respect to "Featured list", "Featured article" and "Good article". MOS:ORDER used to call for these to appear at the bottom of the editing page, and after I pointed out that this made no sense in respect to their position at the top of the rendered page, the recommended order was changed. Beyond My Ken (talk) 20:51, 15 July 2023 (UTC)
The issue is legitimate and is the same issue described in this recent archive. Summary: A change was made to the coordinates module that page previews does not expect so it gets some empty content instead of a valid paragraph.
I am waiting on feedback about proposed resolution at Module talk:Coordinates#Protected edit request on 29 May 2023, though there is an open phab task to adjust what the software does that I've also given feedback on and the responsible engineer hasn't jumped on my comments. I have been considering poking it with some other stuff I've learned recently, I've also just been somewhat lazy. Izno (talk) 20:56, 15 July 2023 (UTC)

Navbox without nowrap

This week I have been developing the metatemplate {{Constituency Teachtaí Dála navbox}}, which makes by-constituency navboxes for Teachtaí Dála (TD) elected for each current and former constituency of Dáil Éireann, the lower house of the Oireachtas (Ireland's parliament).

After a few long days of development, it is mostly working well. See e.g. {{Dublin North-West (Dáil constituency)/TDs}}

For clarity, each constituency article lists the TDs in a table. See e.g. Dublin Bay North (Dáil constituency)#TDs. That table is transcluded (with some tweaks) to the navbox, e.g. {{Dublin Bay North (Dáil constituency)/TDs}}, so we have auto-generated navboxes with no forking of the list.

This table layout is unusual for a navbox, most of which use a horizontal list of officeholders, and {{Navbox}} is set up for that usage. My (ab)use of {{Navbox}} mostly works well enough, but some edge cases have been problematic.

The most intractable issue relates to constituencies with 9 seats, such as the former Dublin City North (Dáil constituency)#TDs (DCiN). In a 9-seater such as DCiN, that table is very wide. In the article Dublin City North (Dáil constituency)#TDs, the table adjusts itelf by wrapping names as needed, and thereby fits happily even on a relatively narrow screen.

However, when enclosed in {{Navbox}}, the names no longer wrap: see {{Dublin City North (Dáil constituency)/TDs}}. Even on my full-HD laptop, the uncollapsed navbox spills out the right of the article body area when viewed with the default WP:Vector 2022 skin, unless I set the zoom level unpleasantly low.

That's despite me setting the table with the CSS style white-space:normal !important. I have checked the source of the rendered HTML, and the white-space:normal !important is definitely there as intended. But it's not working, presumably overridden by some part of {{Navbox}}'s flurry of CSS classes.

I tried creating a hard-coded version at {{Dublin City North (Dáil constituency)/TDs/sandbox}}, so that I could experiment with adding style parameters to {{Navbox}}. None of my attempts worked.

So I tried a different approach. {{Dublin City North (Dáil constituency)/TDs/sandbox2}} dumps {{Navbox}}, and instead uses the lightweight {{Navbar-collapsible}}. This solves the wrapping problem, and also the minor irritation that {{Navbox}} centred any text which acompanied the table.

However, despite my efforts, {{Dublin City North (Dáil constituency)/TDs/sandbox2}} is frustratingly just short of emulating the look-and feel of {{Navbox}}: the title bar is slightly wrong. When listed with other navboxes at the bottom of an article, that inconsistency is jarring: see e.g this test at Oscar Traynor.

Can anyone suggest a way of

  1. making {{Navbar-collapsible}} look like {{Navbox}}, or
  2. making {{Navbox}} stop styling its contents, or
  3. using other approach

Please feel free to edit either sandbox. BrownHairedGirl (talk) • (contribs) 21:17, 13 July 2023 (UTC)

Module:Navbox adds the class nowraplinks with no option to omit it. I don't know whether it can be overridden but I have used Module:String#replace to remove it.[55] The links wrap now in {{Dublin City North (Dáil constituency)/TDs}}. PrimeHunter (talk) 11:11, 14 July 2023 (UTC)
Bless you, @PrimeHunter. That's a cunning hack which solves the problem. Thanks too for documenting it so clearly.
Thanks to you, my navbox series now has no remaining major bugs. Whoopee!! BrownHairedGirl (talk) • (contribs) 12:27, 14 July 2023 (UTC)
I have made a better override fix with |listclass=wraplinks [56] and documented it.[57] PrimeHunter (talk) 12:55, 16 July 2023 (UTC)

Incorrect date

What is wrong with date at Talk:Angels Ain't Listening? Eurohunter (talk) 16:56, 16 July 2023 (UTC)

It has a left-to-right-marker character (U+200E) immediately following the year portion of the date.
Trappist the monk (talk) 17:08, 16 July 2023 (UTC)

Category

Hello, I hope everyone is doing well.

I would like to inquire if there is a way to determine the total number of articles in a specific category, such as Category:Algeria. I am interested in knowing the overall count of articles. Riad Salih (talk) 13:58, 14 July 2023 (UTC)

@Riad Salih: Category:Algeria says The following 200 pages are in this category, out of approximately 362 total. Is that good enough? Certes (talk) 14:20, 14 July 2023 (UTC)
@Certes So if I'm correct, the category include 562 articles in total? Riad Salih (talk) 14:23, 14 July 2023 (UTC)
No, 362 is the total — Martin (MSGJ · talk) 14:36, 14 July 2023 (UTC)
@MSGJ I don't think it's possible. If we take only one subcategory under Category:Algeria, we will find that it has more than 1500 articles on its own. Riad Salih (talk) 14:57, 14 July 2023 (UTC)
There are 362 articles in Category:Algeria. However, you may also be interested in subcategories. For example, Baya (artist) isn't in Category:Algeria but is in Category:20th-century Algerian painters‎ which is in Category:20th-century Algerian artists‎ which is in Category:Algerian artists by century‎ which is in Category:Algerian artists‎ which is in Category:Arts in Algeria‎ which is in Category:Algeria. Counting the articles in subcategories is possible in theory but difficult in practice, because non-Algerian subcategories creep in. For example, Category:Algeria contains Category:Algerian culture‎ which contains Category:Languages of Algeria‎ which contains Category:Arabic language‎, which contains lots of articles unrelated to Algeria. Certes (talk) 15:06, 14 July 2023 (UTC)
So it is not possible to count all the articles related to Algeria. However, in the French Wikipedia for example, there is a method to estimate the number of articles, which is based on the presence of "the portal bar: Algeria" in the articles, since the portal is mandatory. Riad Salih (talk) 17:43, 14 July 2023 (UTC)
As you say, portal bars are not universal on English Wikipedia, so it's not helpful to count them. One option is a search, though that will miss articles such as Bahmer which is only in categories such as Populated places in Adrar Province. Certes (talk) 19:55, 14 July 2023 (UTC)
I asked WP:AWB on its Make list tab. I selected Category (recursive) in the Source dropdown and then wrote Algeria in the Category text box and clicked Make list. After several hours, the list completed with 1,250,738 articles in the list. Filtering to remove duplicates returns a list of 534,430 articles.
Trappist the monk (talk) 02:48, 15 July 2023 (UTC)
@Trappist the monk Thank you for your effort, but logically it seems impossible for Algeria to have 534,430 articles related to it. This is because there are only around 14,000 articles in French Wikipedia and almost 10,000 in the Arabic version. Therefore, I suggest that we develop a new system to count articles related to a specific portal. This will make it easier to determine the number of articles related to a particular topic. Riad Salih (talk) 14:36, 15 July 2023 (UTC)
{{WikiProject Algeria}} has 7,149 transclusions, according to "What links here". That template is manually placed on pages, just like the categories, so YMMV. – Jonesey95 (talk) 21:02, 16 July 2023 (UTC)

Reflist not wrapping around Multiple images template or vice versa

For some reasons that I already debugged on but can't figured out, the reflist would overlay (not wrap around) the {{Multiple images}} near the end of the body when they are aligned right at Alstom Movia R151. I'm on Vector (2022) with full-width mode toggled, this doesn't happens for normal-width mode, and also doesn't happens when not using {{Multiple images}} such as with the older revision of the same article. I also tested using another browser without logging in (had to since my account has userscripts and css customization), but still same results. Paper9oll (🔔📝) 14:32, 15 July 2023 (UTC)

This is a sometimes-reality of floating content extending into columned lists (as are used by reflist and {{div col}}). I would suggest either lengthening the article, or if that is not possible, using a different kind of layout for the images such as a real gallery. (I might question the use of an image for which the caption is literally "Ditto", which is slang at best.) Izno (talk) 16:14, 15 July 2023 (UTC)
Ah I see, I realigned the images back to left, and cutted it down, while removing the "Ditto", not sure why it's there. Thanks for the insights on how the templates work. Paper9oll (🔔📝) 17:16, 15 July 2023 (UTC)
You can also add {{clear}} after the last image. It leaves a bit of white space but lets the References section breathe. – Jonesey95 (talk) 21:06, 16 July 2023 (UTC)

Number of categories in WP:EN ?

Hi guys, I'm coming from french wikipedia. I wonder how many categories do you have in your version of Wikipedia? Do you have any link like Petscan? (that I'm not able to make work actually..) Laszlo (talk) 11:39, 16 July 2023 (UTC)

You can check things like that via quarry: https://quarry.wmcloud.org/query/75253 Nux (talk) 16:18, 16 July 2023 (UTC)

Hi @Nux,
Thanks for that link. So do you have kind of 2,276,686 categories for 6,684,639 articles (meaning 1 category per 3 articles). Has there been any discussion about the usefulness of categories on English Wikipedia? Laszlo (talk) 06:44, 17 July 2023 (UTC)
@Laszlo This is more a question for WikiResearch or WMF Search Team. In addition to veteran desktop editors finding articles, many bots and search results are informed by article categories (along with local wiki links) to find what related/other relevant articles may be interesting for users. Some stuff could be better maintained by Wikidata but making categories multi lingual in a consistent way also brings d:Bonnie and Clyde problem ~ 🦝 Shushugah (he/him • talk) 07:17, 17 July 2023 (UTC)
many thanks for these informations. Quite interesting! Laszlo (talk) 07:47, 17 July 2023 (UTC)
Re the number of categories: there's also Wikipedia:Database reports/Page count by namespace, which has that information and more besides. Categories aren't just for the article namespace. Graham87 12:41, 17 July 2023 (UTC)

Why are long OWID SVG map captions being overlapped by logo again?

I would like some people from the technical Village Pump to help out here where I moved my post to:

--Timeshifter (talk) 12:57, 17 July 2023 (UTC)

Tech News: 2023-29

MediaWiki message delivery 23:06, 17 July 2023 (UTC)

Moving the sandbox page of an inactive user to his Wikipedia article.

Hello. As the title suggests, I want to know if there is a procedure, maybe via a request to have a very detailed and sourced sandbox page of a now inactive user moved to the corresponding Wikipedia article, while having it assigned as his contribution.

To illustrate, I want this user, Lds's works (who is unfortunately inactive since 5 years) to be transferred to their Wikipedia pages. This would be these 3 articles: https://en.wikipedia.org/wiki/User:Lds/Sandbox/Zhuge_Liang to his wiki page Zhuge Liang, https://en.wikipedia.org/wiki/User:Lds/Sandbox/Cao_Cao to his wiki page Cao Cao and https://en.wikipedia.org/wiki/User:Lds/Sandbox/Three_Kingdoms_battle to his wiki page Conquest of Wu by Jin.TheWayWeAllGo (talk) 00:25, 18 July 2023 (UTC)

There is a possibility to do a history merge. However for Cao Cao, it appears to be a fork from about 2013 and developed separately from the article until 2018. The article has continued to have changes in that time and until now. So rather than history merge, which would make a history mess, it should have detailed checking to see what is an improvement and then selectively merge those sections by copy and paste. Attribution must be given. Graeme Bartlett (talk) 00:37, 18 July 2023 (UTC)
For the Cao Cao and Conquest of Wu by Jin's articles, from what I have read you could copy/paste the sandbox page to the Wikipedia article and the text everywhere would be greatly improved.Lds was a very active member of the concerned era community, his work was always solid and reliable. In these cases, the result would be better sourced and more detailed paragraphs. The Zhuge Liang's article is the one where I agree, some changes that should be kept have been made, such as the 4 subsections: Holding power as a regent, Economic reforms, Legal and moral reforms and Education and talents enrollment policy. After the operation has been completed. I would readd these previous information into the Appraisal and legacy section of the article. In any case, I could do the same for other information if I find them worth keeping thereafter. I will complete the request for history merge and redirect to our conversation for details. — Preceding unsigned comment added by TheWayWeAllGo (talkcontribs) 11:41, 18 July 2023 (UTC)

Slow

Is it just me or has Wikipedia just got very slow? Started about 15 minutes ago. DuncanHill (talk) 11:36, 18 July 2023 (UTC)

  • I keep getting "Error: 503, Backend fetch failed" DuncanHill (talk) 12:51, 18 July 2023 (UTC)
It seems the European center does have a higher 5xx rate than normal, that might be related perhaps ? I've pinged the IRC channel, hopefully someone can take a look. —TheDJ (talkcontribs) 13:41, 18 July 2023 (UTC)
@TheDJ: I don't know what you did but it seems to be better now. DuncanHill (talk) 14:18, 18 July 2023 (UTC)
There are more details in phab:T342121. Apparently they had switched some stuff around in one of the datacenters, and one of the datacenters came back with 1 of its 5 fibers not passing enough light and causing high packet loss. This fibre channel has been disabled. and everything should be normal again. —TheDJ (talkcontribs) 14:47, 18 July 2023 (UTC)

vim extension

Couldn't find any vim extension/tool for editing Wikipedia (in browser). Is there any? Is it possible to make one on user level? YRhyre (talk) 18:00, 18 July 2023 (UTC)

See Help:Text editor support for many references to vim as an editor. – Jonesey95 (talk) 18:18, 18 July 2023 (UTC)

How to manage table width without manual line breaks

I just reverted a change made to today's TFA, because it led to the table taking the full width of the screen. The editor who made the change said in their edit summary that the line breaks looked weird in mobile. Is there a way to make text in a cell like this flow so as not to force a wider table? That way presumably it would look good both in desktop and mobile. Mike Christie (talk - contribs - library) 22:09, 18 July 2023 (UTC)

You should set a max-width on the table size in this instance. Izno (talk) 22:17, 18 July 2023 (UTC)
Never make assumptions about the available width. You don't know how wide anybody's screen is. --Redrose64 🌹 (talk) 22:26, 18 July 2023 (UTC)
Yes, agreed; just didn't know how to avoid a mess while making no assumptions. Have implemented max-width and it seems to be working. Thanks! Mike Christie (talk - contribs - library) 22:39, 18 July 2023 (UTC)
The table has a couple of accessibility issues (MOS:DONTHIDE and MOS:COLOR). I would remove the floating and smaller font size and put it in prose, possibly moving the note out of the table to normal prose. Nardog (talk) 23:29, 18 July 2023 (UTC)
MOS:COLOUR is addressed, I think, because all the information conveyed by colour is also conveyed in the text. MOS:COLOUR only requires "that colour is not the only method used". For DONTHIDE, I think the table is big enough that it interferes with readability, but I don't feel that strongly about it. Mike Christie (talk - contribs - library) 00:05, 19 July 2023 (UTC)

Talk header too wide on Firefox

 

I'm using Waterfox on Linux, which should be about the same. {{Talk header}} displays way too wide, as shown in the screenshot to the right of the template's talk page. Aaron Liu (talk) 20:21, 17 July 2023 (UTC)

This could possibly be related to {{search box}}, as {{archives}} also has a similar issue (see Template:Archives/testcases/box#2 and #3). Aaron Liu (talk) 20:25, 17 July 2023 (UTC)
Yes, it's a combination of two factors: 1) that search box is too wide, and 2) we haven't transitioned message boxes to divs (yet). Izno (talk) 20:30, 17 July 2023 (UTC)
Is there a way to fix it for now? Did anything change to trigger this? I know how it should look like, so either it's that I only recently started using this laptop, or something changed. Aaron Liu (talk) 20:34, 17 July 2023 (UTC)
Nothing has changed recently, no. And no, there isn't really a way to fix it unless you shrink the size of the search bar. Izno (talk) 20:42, 17 July 2023 (UTC)
And how do you do the latter? Aaron Liu (talk) 20:46, 17 July 2023 (UTC)
The template appears to set the width of the search box to "auto", which I think means that a width is not set. I do not see clear documentation about the default width at mw:Extension:InputBox when |type=fulltext, both of which the Search box template uses. If I'm reading the code and documentation correctly, that is. – Jonesey95 (talk) 22:11, 17 July 2023 (UTC)
Looks fine to me at Template talk:Talk header, which seems to be where you took your screenshot, on Firefox 115.0.2 on Linux (Debian). Tried with several different window sizes, mostly on Monobook but I also took a quick look using Vector and Vector 2022. Anomie 23:09, 17 July 2023 (UTC)
Weird. Yes that's where it was taken. Did you have full width enabled on Vector 2022? 'cuz the wide thing certainly won't show if every other banner was stretched to the same size. Aaron Liu (talk) 23:14, 17 July 2023 (UTC)
Tried it now. Clicking the toggle made no difference, rendering was correct either way. Anomie 02:53, 18 July 2023 (UTC)
Weird. Also, I meant that the window needs to have a fixed width for it to appear wrong. Aaron Liu (talk) 13:22, 18 July 2023 (UTC)
I don't know what you mean by that. But I see your screenshot is 640 pixels wide, and I tried window widths both larger and smaller than that. Have you tried looking at the page with safemode enabled in case one of your scripts or gadgets is increasing the width of the search box? Anomie 12:10, 19 July 2023 (UTC)
"I'm using Waterfox on Linux, which should be about the same." That's a pretty big assumption.. Which version are you using ? G4, G5 ? The most likely candidates as always are either gadget/userscript modification, or a browser extension. —TheDJ (talkcontribs) 13:52, 19 July 2023 (UTC)

Need a <br> to <br/> bot

We need a <br> to <br/> bot, since <br> breaks wikicode highlighting. .... 0mtwb9gd5wx (talk) 23:04, 19 July 2023 (UTC)

Don't use the bad highlighter instead. The default highlighter is quite serviceable. Izno (talk) 23:53, 19 July 2023 (UTC)
The above problem has been worked around in the ("Remember the dot" version of the) syntax highlighter gadget. See these instructions, which work like a charm. – Jonesey95 (talk) 06:08, 20 July 2023 (UTC)

Editing with certain sorting in visual editor

Hi. I am trying to make multiple edits in List of current heads of state and government#Member and observer states of the United Nations. Is there a way to sort a column (in my case by continent) and edit in such order while in editing mode with the visual editor? If not, suggestions? Aso, it would be good to implement a change so this is possible. Regards, Thinker78 (talk) 22:39, 18 July 2023 (UTC) (Moved from the help desk on 23:36, 19 July 2023 (UTC))

User:Thinker78, not a quick way, but if you highlight the first cell of a row and tap the little triangle icon that shows up to the left of the table, you'll get row options like "move above" and "move below", which swap the highlighted row with the one immediately preceding or following it. Repeated sufficient times in the correct order, this will yield a table sorted how you want it. Folly Mox (talk) 05:04, 19 July 2023 (UTC)
No, this is not possible. Folly Mox's suggestion actually sorts the table in the wikitext according to the order of interest, which I do not think you want either. Izno (talk) 23:56, 19 July 2023 (UTC)
Don't think that would be possible to implement. Once you would sort elements in VE, it would stay that way. VE is a WYSIWYG so when you see order there would be order on save... Unless maybe 🤔 done with grid, but that would be terrible to implement in a way that is usable. Nux (talk) 07:05, 20 July 2023 (UTC)

Which image is displayed in Mobile View?

Where the infobox has a collage of images, which one is chosen for display above the article to a reader on a mobile? There has been discussion of infobox image collages recently at Wikipedia_talk:WikiProject_UK_geography#Ceremonial_county_infobox_images, and I will paste here now a question I have just raised there, on the grounds that someone here may know the answer, which I think is highly relevant to our discussion there.

Question Does anyone know how Mobile View selects the image to show as a full-width banner above the article, far more prominently than the infobox collage which is only seen if you opt to expand the infobox? For Lancashire it shows Clitheroe from row 2; for Cumbria, Derwentwater from the top; for Bedfordshire, Bedford, the 2nd image on top row; Surrey, Guildford from top;Leicestershire, National Forest from 2nd row. This seems random but there must be a rule somewhere which the display follows. That single displayed image is what creates an impression for a reader in mobile view, as an increasing number of readers will be. If we can understand which image becomes the banner, then we can choose it appropriately.

Any ideas? (I'm using Mobile View on an Android phone, Samsung A12, if that makes any difference - but typing now on a laptop, as editing that WP Talk page from my phone is infuriatingly impossible, as I keep forgetting: so I had to copy my carefully-composed reply into my sandbox, move from phone to laptop, and paste it back in. And they say that editors on mobiles are not considered to be some second class type of editor?) PamD 22:54, 19 July 2023 (UTC)

mw:Extension:PageImages#Image choice. Izno (talk) 23:53, 19 July 2023 (UTC)
@Izno Thanks: I knew there had to be a rule somewhere! PamD 07:14, 20 July 2023 (UTC)

should footnotes whose corresponding page(s) on another platform that were archived be changed?

while reading a page on Marie curie I wanted more information, so I opened footnote 48 and 49. the page that is opened from the main link gives a 404 article not found error, separate from the other link is the archived version. Should the links be changed so that they always open the archived page?

it wont let me upload an image for some reason so for now i have it in google drive and the link copied here. ill try the image again soon. [60]https://drive.google.com/file/d/1QESCVxaje0U-n8CdhvRPFfPXCywcAV0n/view?usp=sharing


edit: the bot said that i cant upload it because it is possibly unconstructive. the drive link will have to do i guess


Megabits13 (talk) 16:45, 18 July 2023 (UTC)

You can change the status of the link in the {{cite web}} citation by changing |url-status=live to |url-status=dead, which will then link the title to the archived version. I have made the changes with this edit. Is this what you wanted? —  Jts1882 | talk  17:13, 18 July 2023 (UTC)
In this particular case, AIP reorganized their history pages, breaking the URLs in the process. I've fixed them all in the Marie Curie article, but there may be others. Hqb (talk) 17:41, 18 July 2023 (UTC)
thanks so much both of you! thanks for changing it and teaching me how to do this in the future! Megabits13 (talk) 03:01, 19 July 2023 (UTC)
Don't you love it when large sites change their pathing and don't implement a translate table :-) There are in excess of 400 entries that use AIP links with this specific pathing. It looks like each will need to be visited manually. Neils51 (talk) 09:31, 20 July 2023 (UTC)

Issue with PDF downloads

When I download an article as a pdf, sometimes an error page will appear when I hit download. A short time after that, it sometimes will go to another error message. This first started happening yesterday. It does not always happen and and I don't see any pattern for what causes the first or second error messages. My wifi connection is stable. I am using windows 10 pro, my browser is chrome version 114.0.5735.199 (Official Build) (64-bit). The first error message is:

This site can’t be reached The webpage at https://en.wikipedia.org/api/rest_v1/page/pdf/Comanche–Mexico_Wars might be temporarily down or it may have moved permanently to a new web address.

ERR_INVALID_RESPONSE

The second error message is a black background with: {“type”:”https://mediawiki.org/wiki/HyperSwitch/errors/unkown_error”,”method”:”get”,”detail”:”upstream connect error or disconnect/reset before headers. Reset reason: connection termination”, “uri”:”/en.wikipedia.org/v1/page/pdf/Comanche%280%93Mexico_Wars”}


I did my best to transcribe it, but because I couldn't upload the screenshot, I had to do this by hand, so the spaces were based on distances between letters and symbols, and the last part of the uri was hard to make out, so it may be slightly off. Khainelives (talk) 22:45, 19 July 2023 (UTC)

I saw an old discussion about wikipedia article to pdf and it said that it is using an in-browser tool, and that it is a HACK, thus it really does not work. .... 0mtwb9gd5wx (talk) 23:01, 19 July 2023 (UTC)
Select 'Printable version' and Print to PDF... or whatever. Neils51 (talk) 09:51, 20 July 2023 (UTC)

Log offset when viewing deleted pages

 

When viewing deleted pages in the main namespace, the "This page does not exist" notice with related logs is offset down, leaving an empty space at the top and causing the text to slightly get clipped by the below notice of Wikipedia not having an article with that name. This only seems to happens in the main namespace: this notice appears as normal in Draft, Category, and Wikipedia namespaces. It's only broken in the two Vector skins, working in Timeless or Monobook. Tested it on both Chrome and Firefox, the same on both.

Is this an error with the English Wikipedia or have I done something wrong to cause this? Randi🦋TalkContribs 10:14, 20 July 2023 (UTC)

Can you please add a link ? —TheDJ (talkcontribs) 14:37, 20 July 2023 (UTC)
Any non-existing main namespace article title that has been deleted or salted in the past, e.g. Red link example, spawns this for me. Randi🦋TalkContribs 14:56, 20 July 2023 (UTC)
I was asking because I do not in fact have a mental list of article titles that have been deleted in the past to draw examples from. I realise some people do, but most people will not. —TheDJ (talkcontribs) 20:07, 20 July 2023 (UTC)
Sorry, I should've included some examples in the original message. Randi🦋TalkContribs 22:01, 20 July 2023 (UTC)
The image page had the link from its first revision. useskin=vector, vector-2022. Both look ok to me (though I'm confused why the boxes aren't pink with safemode=1 - does that disable site and/or template styling too, not just user css?). —Cryptic 15:01, 20 July 2023 (UTC)
Oh, in regards to safemode, I've tried disabling gadgets and it seems that the shortdesc helper causes this, rather than it being a Wikipedia-wide problem. Sorry, was foolish to not consider that. Seems like that's an already-reported issue. Randi🦋TalkContribs 15:18, 20 July 2023 (UTC)
safemode removes styles from Common.css and that style is at MediaWiki:Common.css#L-145. It does not remove TemplateStyles. Izno (talk) 15:40, 20 July 2023 (UTC)

Loading issue for Widows app

Facing loading issues in windows app 117.198.98.46 (talk) 09:19, 22 July 2023 (UTC)

script for byte filter on contributions page

Against mobile phones web browers' autoupdate

Good evening, I would like to point out that in most mobile browsers (Google Chrome, Mozilla Firefox, etc) the autoupdate/refresh option is active by default, which periodically deletes content written while editing a Wikipedia article. A function has tò be introduced that retrieves written content that has not yet been published, as it is already present for new topics opened on WP discussion pages 151.36.171.64 (talk) 18:09, 21 July 2023 (UTC)

I don't know anything about the feasibility of this, but this would be very useful for myself as well. I've had it refresh on me even after having the page minimized for a minute or two and its very frustrating. :3 F4U (they/it) 19:25, 21 July 2023 (UTC)
You may both be interested in the upcoming edit-recovery feature that the Community Tech team (of which I'm a member) is working on at the moment. It should mean that any in-progress edit is saved between browser refreshes or even if you close the window and come back later. If you've got any ideas for how it should work, I'm all ears! :-) Sam Wilson 09:30, 22 July 2023 (UTC)
Yes, that's right, that's what I meant. The browser, while keeping a wikipedia page open to edit it, every many minutes reloads the entire page, losing what has been written. This happens on all Android mobiles.Thanks. 79.30.232.128 (talk) 19:28, 22 July 2023 (UTC)
Just to correct terminology here. This is not a autorefresh. What people are describing is their computers or phones running out of memory, and the operating system closing down the browser (tabs) while the user goes off to do something else. When the user returns, the device reopens all the pages the user had open, but anything not saved within a page may be lost in that case. It also helps if ppl close some tabs/pages every once in while ;) A small reminder that problems like this are often in part caused by manufacturers cutting costs in areas where ppl have trouble identifying the result of that. Like, you can see the camera is making bad photos, but not having enough memory is much less noticeable to ppl so that’s where they cut cost. PS Sam, team should test what such refresh mean for session storage. Is it icicled ? —TheDJ (talkcontribs) 11:40, 22 July 2023 (UTC)
@TheDJ: I'm not sure what icicled means, but it sounds like it means 'persistent between browser restarts', and yep: we're going to use IndexedDB, which is long-lived (which means we're having to build in explicit clearing of it). This is a really good use case, that I'll make sure is highlighted in the project. Sam Wilson 12:40, 22 July 2023 (UTC)

Script that copies wikitext link for a comment or heading to clipboard

After reading this comment from KevinL, as I have no plans to use the Convenient Discussions script, I wrote my own user script that makes it easier to copy a wikitext link for a specific comment or heading to the clipboard. It uses the ID used by the mw:Talk pages project/Notifications feature, so the comment will be highlighted. For headings, it also allows you to use the usual ID used by the table of contents. If there is anyone who is interested in helping to test it, particularly if they have multiple gadgets or user scripts enabled that add items to any menu (portlet) on the page, I would appreciate it! For more details on the script, see User:isaacl/script/copy-comment-link-to-clipboard. isaacl (talk) 21:26, 22 July 2023 (UTC)

Is there a way to style a row border for just one row in a table?

I'm working on a table at User:Mike Christie/List of Argosy issues that has three rows of data per year, so to visually separate them I'm using a single narrow row filled with black. I'd like to make it even thinner, just 2px would probably be enough. Is there a way to apply a style that would do what I need? Mike Christie (talk - contribs - library) 21:26, 22 July 2023 (UTC)

See my recent edit. Izno (talk) 21:31, 22 July 2023 (UTC)
Perfect. Thank you. Mike Christie (talk - contribs - library) 21:35, 22 July 2023 (UTC)
Perhaps something like the following wikitext markup:
{| class=wikitable
 |+ Caption
 |- 
 ! Heading1 !! Heading 2 !! Heading 3
 |- style="border-bottom:2px solid;"
 | A || B || C
 |-
 | D || E || F
 |}
which produces the following output:
Caption
Heading1 Heading 2 Heading 3
A B C
D E F
isaacl (talk) 21:42, 22 July 2023 (UTC)
That works too -- more or less the same as Izno's solution except it styles the bottom of the row. Thanks. Mike Christie (talk - contribs - library) 21:47, 22 July 2023 (UTC)
I don't see any different border-line on any part of isaaci's result. But I agree that using border-styling of the cells themselves is probably semantically better than inserting blank/filled spans of other cells. I find Izno's example to be visually overwhelming. I first see the lines, then the sets of table-rows, and the headers seem visually "separated" from all but the first set of table-rows. Might be better to make the intra-year separators less prominent (dashed?) rather than the inter-year separators more prominent. For those playing along at home, see Help:Table#Individual cell borders for border-formatting tricks and traps. DMacks (talk) 21:54, 22 July 2023 (UTC)
Maybe a thicker border will show up? Here's an example with a 0.25em border width:
Caption
Heading1 Heading 2 Heading 3
A B C
D E F
isaacl (talk) 21:57, 22 July 2023 (UTC)
Honestly, the color probably just needs to be softened to some reasonable grey between Vector 22's border color and black; 2px otherwise seems reasonable. Alternatively, you can probably set the border-top-width to 2px and use the default color. Izno (talk) 23:27, 22 July 2023 (UTC)
The one difference I suggest is not hardcoding the border colour, so it will inherit it from the style for the table. In theory this could work better with different skins (and maybe a future dark mode), though this will depend on how the skin is coded. isaacl (talk) 21:55, 22 July 2023 (UTC)
I dropped the colour from the first one and changed it to a dashed line as Dmacks suggested. I'll think about which looks better. I also tried 1px dashed, thinking that if I'm trying dashed lines maybe the visual difference would be enough without the 2px, but that doesn't seem to have shown up. Any idea why? Mike Christie (talk - contribs - library) 22:28, 22 July 2023 (UTC)
The table is using the "collapsing border model", where neighbouring borders are collapsed together. Thus when a border is defined by multiple neighbouring elements, such as a table cell and table row, the model has to resolve the conflict between them (see the border conflict resolution section in the CSS specification for more details). When the row border is set to 1px, it has the same width as the cell border, and the solid style of the cell border wins out over dashed style of the row border. isaacl (talk) 22:58, 22 July 2023 (UTC)
It's probably best not to work from a draft spec; the current W3C recommendation is 17.6.2.1 Border conflict resolution. --Redrose64 🌹 (talk) 23:35, 22 July 2023 (UTC)
Yes, I looked at that one first, followed the link at the bottom to the current draft, found the corresponding section, and saw that it had the same content, so I just linked to the draft. The point wasn't really the details, but that Mike's change didn't appear due to how it interacted with the cell borders. isaacl (talk) 02:11, 23 July 2023 (UTC)
Thanks both; that explains why it didn't work. I think I'm going to stick with the solid line for now. Mike Christie (talk - contribs - library) 02:46, 23 July 2023 (UTC)