Wikipedia:Village pump (technical): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎ParserFunction error: What exactly do I do?
Line 365: Line 365:
:I suspect that Editor [[User:Anderjef|Anderjef]] broke {{tlx|UN population}} with [[Special:Diff/1099059716|this edit]] (search for 'North America' in the right diff column). {{tlx|commas}} wraps the value in {{tag|span}} tags and that confuses the <code><nowiki>{{#expr:}}</nowiki></code> parser function.
:I suspect that Editor [[User:Anderjef|Anderjef]] broke {{tlx|UN population}} with [[Special:Diff/1099059716|this edit]] (search for 'North America' in the right diff column). {{tlx|commas}} wraps the value in {{tag|span}} tags and that confuses the <code><nowiki>{{#expr:}}</nowiki></code> parser function.
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 15:52, 20 July 2022 (UTC)
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 15:52, 20 July 2022 (UTC)
::So I should just delete the {{tlx|Commas}} template there (and presumably in the "Channel Islands" entry immediately below)? [[User:Deor|Deor]] ([[User talk:Deor|talk]]) 17:41, 20 July 2022 (UTC)
::{{ping|Trappist the monk}} So I should just delete the {{tlx|Commas}} template there (and presumably in the "Channel Islands" entry immediately below)? [[User:Deor|Deor]] ([[User talk:Deor|talk]]) 17:42, 20 July 2022 (UTC)


== StickyTableHeader (gadget) on English Wikipedia hidden behind top header in Vector Skin 2022 ==
== StickyTableHeader (gadget) on English Wikipedia hidden behind top header in Vector Skin 2022 ==

Revision as of 17:43, 20 July 2022

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

If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk. Discussions are automatically archived after remaining inactive for five days.


CS1 maint.

Hi all, I've just fixed (I hope) some |url-status=bot: unknown params at Royal Ulster Rifles, for example [1]. This is the first time I've come across this message. I wonder if someone could explain for a non-techie, please: Why does this happen? ie What is it that the bot can't recognise about what appears to be a standard 404 error? And why does this ref[2] generate the same CS1 maint. message although the original url is still live? Cheers, MinorProphet (talk) 12:37, 15 July 2022 (UTC)[reply]

Have you asked the bot operator? |deadurl=bot: unknown was added at this edit (5×). In that edit it looks like IABot simply created |archiveurl= and |archivedate= from archive snapshot urls that were improperly assigned to |url=.
The St Patrick's Barracks citation was added to the article by Editor Dormskirk at this edit. Perhaps that editor can answer your question about that citation.
Trappist the monk (talk) 13:19, 15 July 2022 (UTC)[reply]

References

  1. ^ "83rd (County of Dublin) Regiment of Foot". Regiments.org. Archived from the original on 13 January 2008. Retrieved 10 July 2016.
  2. ^ "Saint Patrick's Barracks, Ballymena". Archived from the original on 29 November 2014. Retrieved 17 November 2014.
Sorry but I cannot shed any light on this either. Dormskirk (talk) 14:24, 15 July 2022 (UTC)[reply]
Thanks, both. I probably don't need to worry my head too much about it, I'll just fix things whenever I come across them. Cheers, MinorProphet (talk) 18:47, 15 July 2022 (UTC)[reply]

How to Add *Interactive Comparison Views* to Wikipedia?

Interactive Comparison Views between the "James Webb Space Telescope" (JWST) and the "Hubble Space Telescope" (HST) are being considered at "Talk:James Webb Space Telescope#Consensus on photo gallery" - the interactive comparison views of "JWST" and "HST" in the "NBC News" article at => https://www.nbcnews.com/data-graphics/compare-photos-nasas-james-webb-space-telescope-hubble-space-telescope-rcna37875[1] (also, at "ABC News")[2] are of most interest at the moment - QUESTION: Is there a way of adapting these interactive comparison views (in the NBC News article[1]) to Wikipedia - and particularly to the "James Webb Space Telescope" main article? - should note that the images are "NASA" and thus "Public Domain" - but the interactive code to compare the views in the way presented in the NBC News article[1] may be a challenge I would think - iac - Thanking you in advance for your reply - Stay Safe and Healthy !! - Drbogdan (talk) 12:51, 15 July 2022 (UTC)[reply]

References

Drbogdan (talk) 12:51, 15 July 2022 (UTC)[reply]

I suppose you could write an extension for this type of media presentation, see mw:Manual:Developing extensions for how to get started. — xaosflux Talk 15:00, 15 July 2022 (UTC)[reply]
Thanks for your comments - this may be well beyond my coding abilities at the moment - any specifics (ie, actual installation coding on an article page) welcome of course - iac - Stay Safe and Healthy !! - Drbogdan (talk) 15:10, 15 July 2022 (UTC)[reply]
@Drbogdan short answer is: we can't today, because we don't have software that can do that available. Long answer is above, we don't like to just say "nope" for no good reason, but extension development is a long process for sure. Some options you could look in now: use a gallery to just show the images side-by-side in static form; make an animated GIF that does the slider back and forth automatically. The former is traditional and should have little resistance, animated gif's in articles are slightly contentious - but have some support. — xaosflux Talk 15:39, 15 July 2022 (UTC)[reply]

@Xaosflux: (and others) - Thank You for your reply - and *Excellent* Comments and Suggestions - they're *Greatly* appreciated - the "GIF" option seems interesting - may try this at some opportunity - Thanks again for your reply - and - Stay Safe and Healthy !! - Drbogdan (talk) 18:35, 15 July 2022 (UTC)[reply]

Rollback all function not working

I'm attempting to use the "follback all" tab to revert these sock edits; although the edit summary box pops up, when I click "ok", nothing happens and the edits are not rolled back. Any other admins having this issue?-- Jezebel's Ponyobons mots 16:44, 15 July 2022 (UTC)[reply]

Their particular way of being annoying is to revert their own edit right after they make it, so there is nothing to rollback. --Floquenbeam (talk) 16:49, 15 July 2022 (UTC)[reply]
(edit conflict) I think this is because the IP self-reverted the edits? (e.g. attempting to "rollback selected" on the IPs edits to Mazda Capella fails due to this being the diff) — the background API call fails with the error alreadyrolledTNT (talk • she/her) 16:49, 15 July 2022 (UTC)[reply]
Of course that's the reason! My brain is clearly still on holiday despite being back for two days. Thanks to you both.-- Jezebel's Ponyobons mots 16:59, 15 July 2022 (UTC)[reply]
Finally ... FINALLY!! ... I type faster than someone else. --Floquenbeam (talk) 16:52, 15 July 2022 (UTC)[reply]
Well, I also edit conflicted with you when replying, so you typed faster TWICE! -- Jezebel's Ponyobons mots 16:59, 15 July 2022 (UTC)[reply]
insert {{we're number one! emoji}} here. --Floquenbeam (talk) 17:06, 15 July 2022 (UTC)[reply]
*sees the section header sans context in my watchlist and panic* Writ Keeper  17:29, 15 July 2022 (UTC)[reply]

Count of All articles in a Cat and sub-categories

Asked at Tea but no satisfactory response, so heading to where the techies hang out.

Is there a way to see how many articles are in a category inclusive of articles in subcategories (bonus points if dupes not counted but no biggie)

Specifically, I was trying to compare Category:People from Bangkok with Category:People from New York City. The former can be done by hand, but the later is not so easy. And if there is an on-wiki way, then I can expand my comparison to other cities/regions. Slywriter (talk) 18:53, 15 July 2022 (UTC)[reply]

Petscan may work for you. Here's a category search that goes three levels deep; the category tree goes deeper than that, but you have to be careful about ending up in subcategories that are something else entirely. I get 31,195 results (no duplicates) from that search, limited to 10,000 shown on the default output table; you have to change the output in the Output tab to get full results. You may also want to traverse the category tree to understand what you are getting, including a lot of fictional people. – Jonesey95 (talk) 21:30, 15 July 2022 (UTC)[reply]
It's not possible to set PetScan to go to unlimited subcategory depth: you need to specify depth as an integer (which effectively has no upper bound in either direction, it even permits negative values, even though those have no meaning). Don't set very high values - not only does it increase the processing time, it increases the possibility of hitting a category loop. --Redrose64 🌹 (talk) 08:39, 16 July 2022 (UTC)[reply]

WP 1.0 bot not working

— Preceding unsigned comment added by Pppery (talkcontribs) 20:25, 15 July 2022 (UTC)[reply]

Testers wanted for EditNoticesOnMobile

The showing Editnotices to mobile editors RfC passed today. This means Wikipedia:EditNoticesOnMobile will soon be enabled as a default gadget.
To ensure no unexpected issues arise testers are wanted. While the gadget has been tested, there are endless combinations of browsers, devices and editnotices out there and they can't all be tested by one person. Testing is simple! Enable "EditNoticesOnMobile" in your preferences and do what you normally do. If you run into any issues, report them on Wikipedia talk:EditNoticesOnMobile. If you don't run into any issues, also leave a note! This way we get some idea of how many people have tested the gadget. Thank you in advance! Alexis Jazz (talk or ping me) 23:59, 15 July 2022 (UTC)[reply]

Problem with template

Hello!

On File:United Nations Office in Armenia logo2.png, why does {{NowCommons}} say ”don't delete, file doesn't exist on Commons” eventhough it does? Jonteemil (talk) 01:14, 16 July 2022 (UTC)[reply]

It went away after I WP:PURGEd the page. Probably some timing-related problem. * Pppery * it has begun... 01:29, 16 July 2022 (UTC)[reply]
Oh, thanks.Jonteemil (talk) 03:31, 16 July 2022 (UTC)[reply]

"Tag: Reverted" showing up on edits that clearly were never reverted

I don't know how long this has been going on, or what the extent of the problem is, but, for instance, this edit and the one following it have never been reverted, evn though they were tagged as reverted: [1].

(Obviously I'm a bit miffed because one of the edits was mine, and it was reverting vandalism -- so when I check my own edit history and see that my rvv has been tagged as reverted, I have to spend a considerable amount of time trying to figure out what's going on and whether anyone in fact reverted me without me getting a notification.)

So what is going on here? Softlavender (talk) 03:36, 16 July 2022 (UTC)[reply]

The IP making to most recent edit to the page left it with wikitext exactly identical to the version as of 7 March 2022, so in some technical sense they reverted all edits after that one including both your vandalism revert and the vandalism you reverted. * Pppery * it has begun... 03:40, 16 July 2022 (UTC)[reply]
Yes, the current revision is identical to a revision less than 15 edits ago (mw:Manual:$wgRevertedTagMaxDepth), so all those revisions are tagged "reverted". It's a tag which can come and go depending on the current version. It doesn't mean that an edit was individually reverted. PrimeHunter (talk) 03:51, 16 July 2022 (UTC)[reply]
Global RFC started on this at meta:Requests for comment/Limit depth of marked reverts.--Snævar (talk) 08:44, 16 July 2022 (UTC)[reply]

Searching article text dumps

I would like to search articles in a way that I think is too complex for CirrusSearch and would time out (or at least be antisocial) on Search++. It isn't a job for Quarry because it needs article text. I've looked at PAWS but the examples there seem to read article text via API, which is feasible but not ideal (and I'd run it locally rather than add the complexity of PAWS). I could download an 86 GB dump but it would surely be far more efficient to search on a WMF machine which has access to that dump then download a few MB of results. Ideally, each job would run on one section of the dump, using a simple program. (I have a perl version ready.) However, I could just about get by with grep or equivalent. Is there such a facility anywhere?

In case this is an XY problem, what I'm trying to do is find certain links containing typos, such as [[Madonna|Madona]], which can result from an editor typing in a target badly then linking to the correctly spelled article via a VE dropdown. grep could handle single insertion (Maddonna), deletion (Madona), substitution (Medonna) or transposition (Maodnna), but anything more complex (such as Damerau–Levenshtein distance ≤ 2) really needs a proper programming language. Certes (talk) 23:39, 16 July 2022 (UTC)[reply]

@Certes dumps are already available on Toolforge. And you can run whatever freely licensed/open source programs there. Legoktm (talk) 03:08, 17 July 2022 (UTC)[reply]
Thanks, Legoktm. If anyone has successfully read article text from there then I'd love to see an example. I have a dev account (which I've barely used) and plenty of coding experience but would appreciate some hand-holding in gluing everything together. Certes (talk) 09:06, 17 July 2022 (UTC)[reply]
@Certes: You can find the dumps you're looking for in /public/dumps/public/enwiki/latest/ on any Toolforge server. You'll need a script to decompress the dump (you'll want to decompress on the fly) and parse the XML though, but it sounded like you already had something? Legoktm (talk) 04:11, 20 July 2022 (UTC)[reply]
Thanks; I'll look at getting a Toolforge project(?) started. I have a simple Perl program which I'm happy to release into the public domain. It takes standard input but could easily open a file or be run as zcat some_dump | my_program. I could add XML parsing if the appropriate Perl modules are available but may not need to bother as the regexps I'm looking for will in practice appear only in article text. I'll have to think about how to test this without running a process all day checking an entire mainspace dump, but I may be able to run it on a dump of a small namespace like Portal: first. Certes (talk) 11:13, 20 July 2022 (UTC)[reply]
Some example methods for searching dumps: User:GreenC/software/search wikipedia. -- GreenC 04:30, 20 July 2022 (UTC)[reply]
Thanks! That gives me some confidence that this can actually be done, and if I do need to parse XML then those examples will be very useful. Certes (talk) 11:13, 20 July 2022 (UTC)[reply]
It's a pity insource:/\[\[([^\|\]]+)\|\1~\]\]/ doesn't work (or does it?). — Guarapiranga  05:12, 20 July 2022 (UTC)[reply]
Good idea but a search for insource:/(p)\1/ prefix:Apple finds the pages with p1, not those with Apple. insource:/(p)$1/ prefix:Apple finds nothing, presumably because there are no Apple articles containing literally p$1. Certes (talk) 11:13, 20 July 2022 (UTC)[reply]

On what basis are interlanguage links regionally categorised?

Interlanguage links on English Wikipedia article Nakshatra as on 17 July 2022.

On what basis Russian (language), Marathi (language) & Malayalam are languages of the middle-east, and how is Spanish (language) African? It doesn't make much sense. Yes, these language show up in their respective continents (Europe, Asia) too but I still don't understand the basis. If languages of immigrants is included in deciding interlanguage link categorisation, we should have all Indian languages show up in America section but it doesn't. CX Zoom[he/him] (let's talk • {CX}) 14:18, 17 July 2022 (UTC)[reply]

It's generally due to former colonies of those countries in those regions, where the language was or is an official language. For instance, there is Dutch in the americas due to their former Caribbean colonies. Spanish is in Africa because of for instance Equatorial Guinea. Malayalam is in the Middle East, probably because of Judeo-Malayalam ?? There are a lot of states which simply recognise a lot of languages for various reasons. The list with this mapping is jquery.uls.data.js, part of jquery.uls, part of the Universal Language Selector MediaWiki extension. —TheDJ (talkcontribs) 11:49, 18 July 2022 (UTC)[reply]

Where are the ArchiverLinks at Talk:Patrick Stewart...

When I view that page, the top post has the ArchiverLink but the other three posts on that page do not. I do not know why...and I wanna know. Thanks, Shearonink (talk) 18:49, 17 July 2022 (UTC)[reply]

I don't know what this "ArchiverLink" might be but the page had formatting errors, which I've fixed. --Redrose64 🌹 (talk) 19:14, 17 July 2022 (UTC)[reply]
Ah, that's what the issue was - D'oh...The headers! Oh, the "archiverlink" is one of these - Wikipedia:One click archiving. Thanks, Shearonink (talk) 19:27, 17 July 2022 (UTC)[reply]

 You are invited to join the discussion at Wikipedia talk:New pages patrol/Reviewers § Does anybody use Special:Log -> Deletion Tag Log?. –Novem Linguae (talk) 23:54, 17 July 2022 (UTC)[reply]

Upstream error

What does "upstream error" mean? It happened a few days ago, when I clicked on a Wikipedia page. I could pull up anything else on the internet, but not Wikipedia, Wikisource or Commons - not on any of my browsers. The error message just appeared again, and only lasted a minute or maybe less. But like last time, I could not pull up any wiki sites or Commons, but had no problem with any other sites. What is causing this? — Maile (talk) 01:55, 18 July 2022 (UTC)[reply]

@Maile66 It means that the PHP part of Mediawiki cannot connect to the database part of Mediawiki. It can be caused by all kinds of issues, overloaded servers, malfunctioning extensions, bots making too many edits, database maintenance, misuse of extensions etc. The only people who really have the tools to diagnose this are the developers and sysadmins. 192.76.8.85 (talk) 02:48, 18 July 2022 (UTC)[reply]
Thanks for the info. — Maile (talk) 02:54, 18 July 2022 (UTC)[reply]
I guess the message actually said "upstream connect error" like in phab:T301505. PrimeHunter (talk) 03:04, 18 July 2022 (UTC)[reply]

Virtual keyboard behavior

When I am editing with the source editor, on an iPad (an old one, iOS 10.3.3) in desktop mode, the virtual pop-up keyboard "return" key maps to the normal carriage return as expected when typing in the edit window. But when I move to the edit summary input box, this key becomes "Go" and maps to "Publish changes". The problem for me is that I often hit this key by mistake when trying to hit the adjacent backspace key, leaving mangled and incomprehensible edit summaries that I can't fix. I would prefer only publishing my changes by closing the virtual keyboard and explicitly selecting the publish changes button. Can this be changed? MB 06:58, 18 July 2022 (UTC)[reply]

Add the following to your common.js file:
// Prevent accidental submits
$(document).ready(function(){
    $('input#wpSummary').keypress(function(e){
        if(e.which==13) e.preventDefault();
    });
});
On any device, not just iPad, you'll no longer be able to accidentally submit with the enter/return/go key, and you'll just use the Publish changes button. I find it just as useful on desktop.  MANdARAXXAЯAbИAM  09:24, 18 July 2022 (UTC)[reply]
Thanks, I will try this when I get home to my desktop PC with a real keyboard, there is no way I am going to be able to edit my .js on this tablet. MB 20:26, 18 July 2022 (UTC)[reply]

Could a bot assist with table column manipulation?

 Courtesy link: WT:WikiProject Countries § Assistance requested with SYNTH issue in country demographic articles

Is there a bot that could assist with table column operations in dozens or hundreds of articles? I reported a SYNTH problem at this discussion involving what appeared to be a dozen articles, where the fix involves primarily dropping one column from a table on each article having the issue, plus a couple of other concomitant column tweaks. I can do that and have been plodding through, but what I thought was a dozen articles has ballooned to 165 now, and I don't think that's the end of it. It's too many to handle individually. Is there a batch operation that could assist with this? Thanks, Mathglot (talk) 07:17, 18 July 2022 (UTC)[reply]

@Mathglot, I'd suggest posting this at WP:AWBREQ or, if there are >500 pages, WP:BOTREQ. If you've written some regex to do this, it would be helpful it you could post that as well. ― Qwerfjkltalk 08:27, 19 July 2022 (UTC)[reply]
@Qwerfjkl: Thanks; currently it's up to 165. I probably can't use AWB, as the regex often has to be tweaked because of all the variation in styling among table cell definitions in the various articles. My latest is s!(\|{1,2}\s*rowspan="\d"\s*)?(\|{1,2}){{(:?Flag\|)?[^|]+?}}\s*.(\|[\-}])!|-!gm, and each version gets a little better at handling variation until there's some new variant I haven't seen before, so it sort of keeps evolving. Which is easy enough for me to tweak on the fly, but I guess would be tougher in AWB (dunno; haven't used it). So I suppose I'm stuck with my hand-rolled, ever-expanding regex. Thanks again, Mathglot (talk) 10:08, 20 July 2022 (UTC)[reply]
@Mathglot, I've had similar problems with Qwerfjkl (bot) 8 (code). Good luck. ― Qwerfjkltalk 11:09, 20 July 2022 (UTC)[reply]

Problem showing UTC live clock gadget in Vector 2022 skin

The clock can't be seen complete in Vector 2022 skin in English Wikipedia. John123521 (Talk-Contib.) 13:46, 18 July 2022 (UTC)[reply]

@John123521 please report problems with that gadget here: mw:MediaWiki talk:Gadget-UTCLiveClock.js so that its maintainers can look in to it. — xaosflux Talk 14:15, 18 July 2022 (UTC)[reply]
Ah looks like you did. Are you only seeing this problem in vector-2022 on enwiki, or are you also seeing this problem on other projects with vector-2022? — xaosflux Talk 14:15, 18 July 2022 (UTC)[reply]
I only seen this problem in enwiki; jawiki and zhwiki show the clock completely --John123521 (Talk-Contib.) 14:17, 18 July 2022 (UTC)[reply]
I just saw it on testwiki as well. Think it has to do with per-project CSS settings - if one of the devs has fixes we can import them. — xaosflux Talk 14:24, 18 July 2022 (UTC)[reply]
FYI, on eu.wikipedia.org and mediawiki.org it shows outside the menu altogether. When I tried to do this for en.wikipedia.org I got some complaints (I can't find the appropriate link right now), so it might benefit from some discussion about whether this should appear in the dropdown at all?
FWIW the clock is in the user dropdown but is not clipped for me on English Wikipedia. Not sure why. Perhaps there's another gadget interfering here? Can you try disabling a few gadgets to narrow this down? Jdlrobson (talk) 17:33, 18 July 2022 (UTC)[reply]

New section tab not working when JavaScript is disabled

The "New section" tab at the top of talk pages (such as this talk page!) is not working when JavaScript is disabled: when you click on the tab, nothing happens. The tab used to work fine without JavaScript, but the underlying code must have changed recently and broke it for no-JavaScript editors. It would be great to restore this functionality for no-JavaScript editors. See mw:No-JavaScript notes for more reasons why this is important. Biogeographist (talk) 16:43, 18 July 2022 (UTC)[reply]

@Biogeographist which skin are you using? Do you have "Enable quick topic adding" enabled in Special:Preferences#mw-prefsection-editing? If so, does it work for you if you turn that off? — xaosflux Talk 17:02, 18 July 2022 (UTC)[reply]
I turned off the "Enable quick topic adding" preference, and it works: the old behavior of the "New section" tab is restored. Thanks! I never would have figured that out by myself. Biogeographist (talk) 17:10, 18 July 2022 (UTC)[reply]
And what is your browser? Does it work if you log out? It works for me in Firefox and Edge, both logged in and out. Try to bypass your cache. Use Ctrl+F5 in most Windows browsers, not F5 alone. If you disable JavaScript for testing then bypass after disabling it. PrimeHunter (talk) 17:08, 18 July 2022 (UTC)[reply]
Firefox with NoScript. The preference change noted above fixed it. Biogeographist (talk) 17:10, 18 July 2022 (UTC)[reply]
However, it doesn't work if I log out. Is there a way for IP editors to change the "Enable quick topic adding" preference? Biogeographist (talk) 17:14, 18 July 2022 (UTC)[reply]
You should have said you use Noscript to "disable" JavaScript. I'm not suprised you get problems if JavaScript is enabled in the browser itself and you use a browser extension to control which JavaScript is allowed to run. I don't have Noscript. If I disable JavaScript in Firefox and "Enable quick topic adding" is enabled then it works for me. I don't get the quick topic feature which requires JavaScript but I do get the traditional new section window. Does it work if you really disable JavaScript? See e.g. https://www.lifewire.com/disable-javascript-in-firefox-446039. PrimeHunter (talk) 17:58, 18 July 2022 (UTC)[reply]
Sorry that wasn't clear at first. NoScript is a pretty common way to disable JavaScript in Firefox, so I don't think the scare quotes are needed around "disabled", but you're right that it's necessary to differentiate methods of disabling JS due to technical implications. I just tested disabling JS via about:config, and the new section tab works as expected with that method even with "Enable quick topic adding" enabled, although that's not the method I use to disable JS. Biogeographist (talk) 18:50, 18 July 2022 (UTC) & 19:05, 18 July 2022 (UTC)[reply]
NoScript blocks JavaScript. I don't know the technical details but I guess your Firefox tells MediaWiki that it has JavaScript enabled and MediaWiki therefore chooses the JavaScript interface but NoScript blocks it. I don't know whether MediaWiki can make a workaround. PrimeHunter (talk) 19:44, 18 July 2022 (UTC)[reply]
  • I'm going to open a bug on this. — xaosflux Talk 17:15, 18 July 2022 (UTC)[reply]
    phab:T313246 opened. — xaosflux Talk 17:22, 18 July 2022 (UTC)[reply]
    Also added a note on the preference label (MediaWiki:Discussiontools-preference-summary). — xaosflux Talk 17:25, 18 July 2022 (UTC)[reply]
    I noticed that DLynch asked at phab:T313246 whether I have "New wikitext mode" enabled, and I don't, nor any of the other beta features. Also, I have NoScript configured to allow <noscript> content, so blocking of that content is not the issue. I just tested it again while logged out, and the first time I clicked on the "New section" tab, it didn't work. But then I clicked on it a second time, and the second time it worked—it redirected to the basic editor. And now it always works when I'm logged out (always redirects to the basic editor), so I can no longer reproduce the issue when logged out. I don't know what changed; I swear it didn't work when I tested it before when logged out. So it appears that phab:T313246 could be closed. I'm sorry if I unnecessarily caused a bug report to be opened, although I'm glad I mentioned the issue since Xaosflux taught me the preference fix when I'm logged in. Biogeographist (talk) 21:04, 18 July 2022 (UTC)[reply]

academia.edu/download

Most users report this URL returns 404. However some say it works. The works and not-works are both in the USA. One works user reports success on Windows 10 (Edge) and macOS (Safari). One not-works user reports failure on Windows 7 (Chrome and Firefox) and Linux (Chrome and Firefox). There are about 1,000 URLs with academia.edu/download that have the same problem. Does it work for you? -- GreenC 19:51, 18 July 2022 (UTC)[reply]

Also discussed at User_talk:GreenC_bot#Flagging_non-dead_link_as_dead and Wikipedia:Link_rot/URL_change_requests#www.academia.edu/download/ -- GreenC 19:53, 18 July 2022 (UTC)[reply]
If I go to the main page (academia.edu), it requires a login. Maybe the few "works" folks signed up for an account at some point and it kept them signed in? Schazjmd (talk) 19:58, 18 July 2022 (UTC)[reply]
There's something very weird going on with that one. It redirects to https://d1wqtxts1xzle7.cloudfront.net/30869670/Turismo_y_Territorio_en_Salta-_Caceres_et_al-_CONICET-UBA_2012-with-cover-page-v2.pdf?[big-awful-hash]. Headbomb {t · c · p · b} 20:14, 18 July 2022 (UTC)[reply]
Really? I didn't get a redirect, just a 404 (on both Edge and Chrome). Schazjmd (talk) 20:25, 18 July 2022 (UTC)[reply]
Yes that's what it does when it works.. they host the content at AWS so it redirects there. When it doesn't work it looks like this. What browser did you use? -- GreenC 20:41, 18 July 2022 (UTC)[reply]
The issue indeed seems to be of requiring an account. I'm on Firefox on Android, and have logged in account with Academia. the link works when I click in normally, but when I open it in incognito mode, it goes to a 404 page on Academia. TryKid[dubiousdiscuss] 20:52, 18 July 2022 (UTC)[reply]
Thank you, User:Schazjmd for figuring this out and TryKid for verifying. I emailed the site to let them know about it. The 404 status will cause bots to mark it dead. -- GreenC 21:32, 18 July 2022 (UTC)[reply]

Notification glitch

I recently Special:Notifications/isaacl received a notification on July 17, 2022 that I was mentioned in an edit. The edit in question, though, simply removed subsections with boilerplate text. Does anyone know why it would have triggered a notification? isaacl (talk) 20:25, 18 July 2022 (UTC)[reply]

CORS not allowing access to other projects

$.ajax( { url: 'https://de.wikipedia.org'+mw.config.get('wgArticlePath').replace('$1','Special:GadgetUsage?useskin=vector'), cache: false, type: 'GET' } );
I'm not asking for account data, this request can be made without cookies as far as I'm concerned.
It results in a CORS error. So I searched and found many solutions that don't work. In many questions about it it's unclear which options are for clients and which are for servers. I stumbled upon [2] which basically says "use this proxy". The stupid thing is: that actually works. It's obviously infinitely less secure and less reliable, but it works. *facepalm* There has got to be a better solution. Alexis Jazz (talk or ping me) 21:11, 18 July 2022 (UTC)[reply]

I found
fetch('https://de.wikipedia.org'+mw.config.get('wgArticlePath').replace('$1','Special:GadgetUsage?useskin=vector'),{mode:'no-cors'}).then(response => {console.log(response);});
which makes the request without complaining, but no obvious way to get the page content. Alexis Jazz (talk or ping me) 22:10, 18 July 2022 (UTC)[reply]
Oh for fucks sake: https://stackoverflow.com/questions/43262121/trying-to-use-fetch-and-pass-in-mode-no-cors.
Long story short: in this case, evil people can easily get around CORS by using a proxy and good actors are forced to use a proxy as well because this is pretty dumb. What's the bloody point in blocking public resources? The actual request is still made, so if my goal was to send sensitive data to evil-incorporated.com I still could. And if I need to retrieve evil-incorporated.com/mook.js I still could. *facepalm* Alexis Jazz (talk or ping me) 22:52, 18 July 2022 (UTC)[reply]
There is no better solution. This limitation of the web platform isn't to block you from retrieving whatever, it's to block you from retrieving it using someone else's device. As a simple example, if anyone on the internet could fetch https://de.wikipedia.org/wiki/Spezial:GadgetUsage from your browser, then they could extract your username from the result and associate it with your IP address. There are omre complicated scenarios, e.g. someone could access an intranet website that's only available from specific IP addresses. That's why using a proxy is the accepted workaround – then it's the proxy doing the retrieving from their own device and with their credentials, not with yours. Matma Rex talk 23:18, 18 July 2022 (UTC)[reply]
(I'd recommend setting up your own proxy on Toolforge though, using someone else's proxy is indeed not exactly a good idea.) Matma Rex talk 23:20, 18 July 2022 (UTC)[reply]
Matma Rex, thanks. Extraction of account details seems like it should be a non-issue: there should be a way to make the request without cookies. For the intranet, that would be a valid point, but an intranet site (which Wikipedia is not!) should specifically specify that its content should only be accessible by accepted domains. No, wait actually: if the data on the intranet site is sensitive in any way, it should be locked behind a login.
Also, using ToolForge as a proxy may not be allowed in this case. ToolForge rules are confusing with that. Alexis Jazz (talk or ping me) 23:40, 18 July 2022 (UTC)[reply]
Even revealing the existence of an intranet site by allowing you to retrieve the login page is a privacy leak. Anyway, you're of course right that this could be done in a better way, but that is the platform we have to develop for and it has become this way for historical reasons; I thought you'd appreciate the explanation. There are sites on the internet (and definitely on intranets) that pre-date the introduction of CORS, and it has been specced this way to be compatible with sites that do not know of it.
I don't see how that wouldn't be allowed on Toolforge, but what do I know.
(Maybe the real solution to your problem would be to write a patch for the Gadgets extension that would make the gadget usage data available in the API somewhere. It seems like it could be added to action=query&list=gadgets easily enough. I'd be happy to review it if you cared to write it.) Matma Rex talk 02:00, 19 July 2022 (UTC)[reply]
Matma Rex, I do appreciate the explanation, but it's still oddly designed and when "use a proxy" is the correct answer something has gone horribly wrong somewhere along the way. I could appreciate if intranet sites would specify that browsers should pretend they are unreachable when trying to access them from a foreign domain. I could also appreciate browsers doing that when they detect an internet site is trying to access something in a local range. But neither should be standard.
And say you know about some intranet site and you know how to hack it. Trick an employee into visiting your blog and you can make requests towards that intranet site! Never getting a response certainly complicates things, but the fact you can make requests at all should be worrying enough. Thinking about that, I'm starting to worry about routers.
Getting the usage data through the API would certainly be very nice. I'm pretty much completely unfamiliar with MediaWiki though and I haven't done any PHP in ages. I do wonder: if the API can be accessed from other domains, why can't other pages be accessed? If security is an issue, isn't there some render-as-anon option that could make CORS more lax? Alexis Jazz (talk or ping me) 02:51, 19 July 2022 (UTC)[reply]
Consider if you were logged into your banking site and then visited a site with some malicious Javascript that made a request to access private information from your bank web site. To prevent it from going through, the cross-origin request has to be blocked by default. A proxy would be unable to access your info, as it would not be logged in as you. isaacl (talk) 03:46, 19 July 2022 (UTC)[reply]
Isaacl, a request without cookies or other session data (compare opening a private window in your browser) would have the same effect for internet sites, wouldn't it? Alexis Jazz (talk or ping me) 03:59, 19 July 2022 (UTC)[reply]
Sure, making sure you're always logged out of your accounts would provide protection (and it's why this is a general security recommendation). In practice, users don't always log out, and don't browse every site with separate sessions restarted from scratch. Third-party Javascript code can be injected by third-party advertisers/trackers/discussion widget providers and so forth. Private browsing is, in a sense, overkill as not all cookies and other session data are problematic, but it's a reasonable default to wall off interactions between sites. In a similar manner, it's reasonable to block cross-site Javascript requests by default. isaacl (talk) 06:31, 19 July 2022 (UTC)[reply]
I don't mean ask the user to log out, I mean more like {mode:'no-cors'} resulting in a request akin to how that request would be made if a private window was opened for it. That's what I initially expected from that option, but instead it just prevents you from getting any response at all. Alexis Jazz (talk or ping me) 06:39, 19 July 2022 (UTC)[reply]
The native Javascript fetch API lets you specify that all credentials should be omitted, same origin credentials should be sent, or credentials should be sent in all requests (same origin or cross-origin). I don't know if the jQuery ajax API supports setting these options. isaacl (talk) 21:29, 19 July 2022 (UTC)[reply]
Yep, you definitely should worry about routers.

I do wonder: if the API can be accessed from other domains, why can't other pages be accessed? If security is an issue, isn't there some render-as-anon option that could make CORS more lax?

I think in principle this would be possible, I don't know for sure why it's not allowed. I could guess that a) folks who worked on that wanted to encourage using the API instead of parsing the HTML output and b) it would require reviewing all of MediaWiki and extensions to make sure everything respects that parameter, and doesn't directly access global state like cookies. (There is a render-as-anon option in the API: origin=*, intended especially for anonymous CORS, for example: https://en.wikipedia.org/w/api.php?action=query&meta=userinfo&origin=*.) Matma Rex talk 10:47, 19 July 2022 (UTC)[reply]
Matma Rex, I don't see how that wouldn't be allowed on Toolforge, but what do I know. wikitech:Wikitech:Cloud Services Terms of use: "Using Wikimedia Cloud Services as a network proxy: Do not use Wikimedia Cloud Services servers or projects to proxy or relay traffic for other servers. Examples of such activities include running Tor nodes, peer-to-peer network services, or VPNs to other networks. In other words, all network connections must originate from or terminate at Wikimedia Cloud Services."
Not so sure what I'd need would be allowed by that. Wikipedia isn't part of Wikimedia Cloud Services I think. And it certainly would be forbidden for any domain outside Wikimedia.
I thought about some script to create citations or similar things for stuff not supported by Citoid. Like importing ISBNs or something, processed by the client. CORS generally prevents that and ToolForge prohibits running a proxy to get the data from www.isbnsite.example to the user.
mw:Wikimedia Labs/Agreement to disclosure of personally identifiable information: "and agree your IP address will be made publicly available and not be treated as confidential". Okay, hard pass. Alexis Jazz (talk or ping me) 05:09, 19 July 2022 (UTC)[reply]
A page that is labelled as a draft with talk page comments from 8 years ago? I don't think you have much to worry about there. Izno (talk) 05:32, 19 July 2022 (UTC)[reply]
Izno, it's linked from wikitech:Portal:Toolforge/Quickstart though. Alexis Jazz (talk or ping me) 06:25, 19 July 2022 (UTC)[reply]
wikitech is a wiki after all. :) Izno (talk) 06:28, 19 July 2022 (UTC)[reply]
Huh, okay, I guess that does technically prohibit doing this, although I don't think that's the intended spirit of the rule. I'd ask for a clarification and I'd expect that doing what I suggested would be allowed. But I guess this is a moot point given SD0001's better solution below. Matma Rex talk 10:57, 19 July 2022 (UTC)[reply]
I don't think it's even technically against the rules. For example, there used to be a tool that was really just a wrapper around Phabricator's API so it could be used in gadgets without needing an API key and to bypass CORS. Legoktm (talk) 19:14, 19 July 2022 (UTC)[reply]
I agree with Izno that the random mw.o page you found is outdated, but to be clear, anyone who SSHs into Toolforge will have their IP made available to anyone else who is logged into the machine (run w -i). There's nothing stopping you from using a VPN, etc. to mask your real IP from Toolforge. Legoktm (talk) 19:16, 19 July 2022 (UTC)[reply]
@Alexis Jazz Have you tried using mw.ForeignApi? MusikAnimal talk 00:17, 19 July 2022 (UTC)[reply]
MusikAnimal, how would I get Special:GadgetUsage (an HTML page) through ForeignApi? The data from GadgetUsage isn't available through the API afaik. Alexis Jazz (talk or ping me) 00:50, 19 July 2022 (UTC)[reply]
It's available through the API, like all other query pages. https://en.wikipedia.org/w/api.php?action=query&list=querypage&qppage=GadgetUsage&qplimit=maxSD0001 (talk) 10:42, 19 July 2022 (UTC)[reply]
Thanks, I didn't even know this is possible! Matma Rex talk 10:59, 19 July 2022 (UTC)[reply]
This API is missing the information about whether the gadget is default or not though, so you have to guess whether "0" means no users or all users… But I realized you can cross-reference this with the data in https://en.wikipedia.org/w/api.php?action=query&list=gadgets, which marks default gadgets. Together with that I think this matches the Special:GadgetUsage functionality. Matma Rex talk 11:03, 19 July 2022 (UTC)[reply]
Thanks, I'll use that+mw.ForeignApi! Alexis Jazz (talk or ping me) 16:07, 19 July 2022 (UTC)[reply]
I suppose the simplest solution is to add the origin parameter to index.php the same way we have it on api.php. 0xDeadbeef 04:06, 19 July 2022 (UTC)[reply]

Tech News: 2022-29

22:58, 18 July 2022 (UTC)

Template transcluding categories and SD

{{Get short description}} transcludes the target page to find the short description, but it also seems to transclude the categories and short description. Trying wrapping it in <nowiki>...</nowiki>, or using {{#invoke:Page|getContent|expand}} doesn't seem to work either. ― Qwerfjkltalk 08:18, 19 July 2022 (UTC)[reply]

Template:Infobox television Lua errors on uncreated pages

When adding {{Infobox television}} to a new page on desktop and clicking "Show preview", I see two Lua errors. Firstly, at the top of the prose part of the screen: "Lua error in Module:Infobox_television at line 106: bad argument #1 to 'find' (string expected, got nil)." Secondly, at the top of the infobox: "Lua error in Module:Infobox_television at line 284: bad argument #1 to 'match' (string expected, got nil)." I don't see this error once the page has been created, either in the article proper or the preview screen.

I believe the issue is that the Lua is failing to grab the name of the page that the infobox is on, as the title at the top of the infobox does not display in the preview. I'm using the editing preference "Show previews without reloading the page", in case that's relevant. I note that I'm not the only one with this issue. It's just the TV infobox that's causing the issue: the page title is shown correctly and there are no Lua errors with {{Infobox film}}, for instance. — Bilorv (talk) 11:02, 19 July 2022 (UTC)[reply]

I couldn't replicate it when testing it on Etetetetete. I however added nil checks to the lines the error message pointed to. In general though, post issues at the most relevent location. This isn't it. Gonnym (talk) 11:23, 19 July 2022 (UTC)[reply]

How can I get the editor with the citation tool and the editor with strike through, etc

Also, although I have "always given the source editor", I now default to visual editor with the ability to switch. How I make these messes is beyond me. Sorry folks. I do a lot of sourcing, so really need to be able to cite easily. Doug Weller talk 11:53, 19 July 2022 (UTC)[reply]

And I now have a 🖊 instead of the word edit. Doug Weller talk 12:39, 19 July 2022 (UTC)[reply]
Using Vector 2022. I now have an arrow at the top to publish. Doug Weller talk 13:14, 19 July 2022 (UTC)[reply]
@Doug Weller if you want avoid the visual editor most of the time, try selecting "Temporarily disable the visual editor while it is in beta" in Special:Preferences#mw-prefsection-editing. — xaosflux Talk 13:33, 19 July 2022 (UTC)[reply]
@Xaosflux That worked! Although now I have to switch between Wiked and whatever it is that shows as this. Easy enough to do though. Doug Weller talk 13:59, 19 July 2022 (UTC)[reply]
And solved my inability to preview problem. Thanks so much. I'm dying of the heat here and this was a real timewaster, glad I had help, as always, from User:Xaosflux. Doug Weller talk 14:38, 19 July 2022 (UTC)[reply]

Search categories for both article and talk space conditions

Is there a way to search for articles matching an AND condition for categories amongst both the talk page and the main article page? eg. something like

All: incategory: "High-importance psychology articles" incategory: "All Wikipedia articles in need of updating"

The first category in this example is on article talk pages, the second category is on article pages. I know this search is not empty because of this table. If there is a way to do this, I think it would be worthwhile to add to Help:Searching/Features, Help:Searching, Wikipedia:FAQ/Categories and possibly also Wikipedia:FAQ/Categorization. Thanks Darcyisverycute (talk) 12:15, 19 July 2022 (UTC)[reply]

Cirrus search can't do this, but PetScan may be able to. It can look for a category on the article and a template on the talk page. However, although All Wikipedia articles in need of updating is associated with the {{Update}} template, I can't find a suitable template for High-importance psychology articles. So my suggestion doesn't quite work, but someone may be able to fix it. If not then you might have to resort to a Quarry query. Certes (talk) 12:31, 19 July 2022 (UTC)[reply]

Move

Template:Resovled How to undone move? Eurohunter (talk) 17:49, 19 July 2022 (UTC)[reply]

Start a discussion on the talk page, and contact the editor who moved the article. It is not a technical problem, but rather a contested move which should be discussed. Donald Albury 17:59, 19 July 2022 (UTC) Edited 18:01, 19 July 2022 (UTC)[reply]
@Eurohunter Since the move does not appear to have prior discussion or consensus you can go to Wikipedia:Requested moves/Technical requests and file an entry in the section "Requests to revert undiscussed moves" 192.76.8.85 (talk) 19:18, 19 July 2022 (UTC)[reply]
Also, any autoconfirmed editor can simply move the page back, as the newly created redirect to the original title has a single line in the page history (Wikipedia:Moving a page#Moving over a redirect). DanCherek (talk) 19:27, 19 July 2022 (UTC)[reply]
@DanCherek: True. I never remember about it. @Donald Albury: Start a discussion? Contested move? His move is actually wrong (move without reason - look at article) so it should be reverted without question and then he can start discussion about it. I could understand if I was the editor who moved page. Eurohunter (talk) 20:25, 19 July 2022 (UTC)[reply]
@Eurohunter, as this is VPT, the answer is just "move it again". Are you having a technical problem with this? What happens when you try? — xaosflux Talk 13:08, 20 July 2022 (UTC)[reply]
@Xaosflux: Yes I have done it - just forgot about this option (I din't not use it recently). Eurohunter (talk) 14:00, 20 July 2022 (UTC)[reply]
Thanks for confirming! — xaosflux Talk 14:43, 20 July 2022 (UTC)[reply]

Speedy delete candidate not showing in category

File:DiGiovanni competing on MasterChef.jpg is tagged for speedy deletion as a copyright violation via Twinkle since July 13, 2022. I was surprised it hasn't been deleted yet and checked the categories and found that although the image has categories on the file description page, it does not appear in the respective categories. The key ones are Category:Candidates for speedy deletion as copyright violations, and Category:Candidates for speedy deletion. Purging did not clear the problem. Whpq (talk) 20:58, 19 July 2022 (UTC)[reply]

Purging does not change categorization. It needed a null edit. – Jonesey95 (talk) 21:32, 19 July 2022 (UTC)[reply]
I am little confused. What null edit where? I see image is now in the categories but I don't see any null edit in the category or image. What am I missing? Whpq (talk) 21:47, 19 July 2022 (UTC)[reply]
If either of these situations apply:
  • page P shows category C at the bottom, but P is not listed at the page for category C
  • the page for category C lists P, but C is not shown in the categories box at the bottom of page P
this indicates that the link tables are out of synch. The fix for both is the same: go to P and perform a WP:NULLEDIT. A WP:PURGE does not update link tables. --Redrose64 🌹 (talk) 22:39, 19 July 2022 (UTC)[reply]
Thanks for the explanation. My confusion came from thinking that a null edit was the same thing as a dummy edit. Now I understand they are not the same thing. Whpq (talk) 23:18, 19 July 2022 (UTC)[reply]
Yeah, we have a lot of jargon here. In my experience fixing weird little problems, a null edit is always your best bet. Click Edit, even on a section, then click Publish without changing anything. If that doesn't fix the problem, then you really do have a problem that needs investigating. – Jonesey95 (talk) 05:29, 20 July 2022 (UTC)[reply]

gadget notice

Wikipedia:EditNoticesOnMobile will be launching as a default gadget. It is limited to mobile users who are using Minerva skin. A waved approach is being done, wave one is only admins. Should something break, it can be instantly disabled via MediaWiki:Gadgets-definition. Please report any issues to Wikipedia talk:EditNoticesOnMobile. Best regards, — xaosflux Talk 23:04, 19 July 2022 (UTC)[reply]

Shouldn't deprecated {{ref}}/{{note}} templates simply be regexed out for <ref></ref>...

... like so: \{\{ref\|([^}]+)}}(.*?)\*?\s*\{\{note\|\1}}(.*?)\n<ref name="$1">$3</ref>$2Guarapiranga  03:37, 20 July 2022 (UTC)[reply]

Not like that, probably. Your regex would have to be a lot more sophisticated to account for all of the possible parameters in {{ref}}. I clicked on three articles at random that contained {{ref}}. One of them had a broken {{ref}} template that I had to replace with a real ref found in the article, so the regex definitely would not have fixed it. The next one, Jell-O, would probably not be compatible with your regex. The next one, Johnny Unitas, would probably also not be compatible. Regexes are powerful dark magic; they require both wisdom and patience to wield effectively. – Jonesey95 (talk) 05:38, 20 July 2022 (UTC)[reply]

Getting rid of the revision slider

How can I permanently turn off the revision slider when I go to any and every article's History? I can't find the option in my Preferences. — Cheers, Steelpillow (Talk) 07:08, 20 July 2022 (UTC)[reply]

Put this in your CSS. —Cryptic 07:49, 20 July 2022 (UTC)[reply]
Thanks. Works a treat. Bit impolite for the developers not to add a kill switch IMHO. — Cheers, Steelpillow (Talk) 09:55, 20 July 2022 (UTC)[reply]
I don't see a slider on article histories, but I do see one on diffs. There should be a preference to turn it off at Special:Preferences#mw-prefsection-rendering, the checkbox labeled "Don't show the revision slider". Anomie 11:57, 20 July 2022 (UTC)[reply]

Pink paragraph

I assume this is related to User:Headbomb/unreliable script that I have installed. However, I ain't seen a whole paragraph turn pink. At HMS Terror (1813)#Legacy the paragraph starting "In July 2013, an anonymous miniaturist began reconstructing" is pink. Anyone know why? CambridgeBayWeather, Uqaqtuq (talk), Huliva 08:36, 20 July 2022 (UTC)[reply]

@CambridgeBayWeather that userscript asks that questions about it be left at User talk:Headbomb/unreliable. — xaosflux Talk 09:52, 20 July 2022 (UTC)[reply]
Yes but I don't know if the pink paragraph is caused by it or something else. CambridgeBayWeather, Uqaqtuq (talk), Huliva 10:18, 20 July 2022 (UTC)[reply]
It is caused by that script. I don't know the script. PrimeHunter (talk) 10:58, 20 July 2022 (UTC)[reply]
The easy way to tell if you suspect a userscript is causing you trouble is to simply turn it off (in this case via User:CambridgeBayWeather/common.js). You can always turn it back on again later. — xaosflux Talk 13:04, 20 July 2022 (UTC)[reply]
The text buildingterror.blogspot.com. The script runs in more places than just references to catch issues like in works cited lists. Izno (talk) 16:55, 20 July 2022 (UTC)[reply]

Edit summary box - turn off enter to save changes?

If you cursor is in the edit summary box when you press enter, the edit finalises. I have, too often, caught the enter key when reaching for the backspace and saved a change I'm part way through. Is there a user setting to turn off this behaviour? (More than happy to be told it's a browser setting, rather than a WP setting, as long as I can turn it off) Little pob (talk) 13:47, 20 July 2022 (UTC)[reply]

See #Virtual keyboard behavior above.  MANdARAXXAЯAbИAM  13:55, 20 July 2022 (UTC)[reply]
Your "common.js" file is: Special:MyPage/common.jsxaosflux Talk 13:58, 20 July 2022 (UTC)[reply]
I hadn't included the link above because that user already had a common.js file, but it's useful for others (now, and later for people looking through the archives), so I added it there too.  MANdARAXXAЯAbИAM  14:10, 20 July 2022 (UTC)[reply]
Thank you, both! Little pob (talk) 14:27, 20 July 2022 (UTC)[reply]

Why didn't this rename get logged properly?

Based on some hints (like the user talk page being redirected), I guessed that NDigital had been renamed to Niloybro, but couldn't find the log entry by searching for either name. Eventually I found this log entry by Nihonjoe but there's no performer and no target. The raw database record is here. What's going on? -- RoySmith (talk) 14:35, 20 July 2022 (UTC)[reply]

@RoySmith it seems to work for me (with or without the User: prefix example 2), and the meta log is here: meta:Special:Redirect/logid/48837681. What is not working for you? — xaosflux Talk 14:41, 20 July 2022 (UTC)[reply]
Hmmm, cannot reproduce it now. Weird. Possibly I just fat-fingered the search or something. -- RoySmith (talk) 14:56, 20 July 2022 (UTC)[reply]
I've noticed that, sometimes, the logs take a few minutes (or longer) to be properly updated by whatever system does that during a rename. I'm not sure the reason why. ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 17:17, 20 July 2022 (UTC)[reply]

ParserFunction error

I'm completely useless when it comes to template coding. Why is the "North America" entry in List of continents and continental subregions by population returning an error message? This seems to be the result of Anderjef's updating of {{UN population}} on the 18th, but I can't figure out what the problem is. The string "{{formatnum:{{UN_Population|North America}}}}" (in the "List of continents ..." page) returns the correct value of 595,783,465, but the string "{{#expr:{{formatnum:{{UN_Population|North America}}|R}}/1e6 round 0}} million" returns an error message, even though the same string for South America, "{{#expr:{{formatnum:{{UN_Population|South America}}|R}}/1e6 round 0}} million", returns "434 million". This has me stumped. Deor (talk) 15:24, 20 July 2022 (UTC)[reply]

I suspect that Editor Anderjef broke {{UN population}} with this edit (search for 'North America' in the right diff column). {{commas}} wraps the value in <span>...</span> tags and that confuses the {{#expr:}} parser function.
Trappist the monk (talk) 15:52, 20 July 2022 (UTC)[reply]
@Trappist the monk: So I should just delete the {{Commas}} template there (and presumably in the "Channel Islands" entry immediately below)? Deor (talk) 17:42, 20 July 2022 (UTC)[reply]

StickyTableHeader (gadget) on English Wikipedia hidden behind top header in Vector Skin 2022

- My bug report with reproduction + screenshot is at: https://phabricator.wikimedia.org/T313187

- There I was told that I should report this here, as this is a CSS/configuration issue which must be solved on the specific WikiMedia server instance which is the Wikipedia (I use EN and DE).

- I hope that after the fix one can browse the Wikipedia with the Vector Skin's header on top and sticky headers stacking nicely below that. Thanks PutzfetzenORG (talk) 15:25, 20 July 2022 (UTC)[reply]

@PutzfetzenORG:, I'm assuming you are referring to the testing and development gadget "Make headers of tables display as long as the table is in view, i.e. "sticky" (requires Chrome v91+, Firefox v59+, or Safari)", correct? Gadgets in that section are not well supported. The original author for that one can be contacted at User talk:TheDJ. If this is preventing you from viewing or editing pages right now, please disable it. If anyone has specific fixes to propose for it, please drop an edit request at MediaWiki talk:Gadget-StickyTableHeaders.css. — xaosflux Talk 15:34, 20 July 2022 (UTC)[reply]

Logos

How to re-create logos? More here. Eurohunter (talk) 17:10, 20 July 2022 (UTC)[reply]