Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by -sche (talk | contribs) at 01:46, 2 December 2023 (→‎MediaWiki:Gadget-popups.js). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

 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.

Purge API seems to still be broken

This is a followup to Wikipedia:Village pump (technical)/Archive 208#Purge API broken? It's still broken for me. I was hoping that T349348, which has been closed as "resolved", would fix it. The code review says the "Change has been successfully merged" and the "Post-merge build succeeded" November 01. But I can't find the MediaWiki release that deployed this patch. Can someone figure out and explain the current status of this? Thanks, wbm1058 (talk) 13:13, 20 November 2023 (UTC)[reply]

Can you clarify what is still broken for you? The bug and the patch you linked are for the Pywikibot framework, but later you talk about MediaWiki, so I am a bit confused. The previous thread you linked is pretty long and also confusing. Matma Rex talk 13:44, 20 November 2023 (UTC)[reply]
Just tried purging a page with forcelinkupdate=1 via ApiSandbox. I can see the page_links_updated value in database is updated. I don't think anything is wrong in MediaWiki; it could be an issue with the client code used. – SD0001 (talk) 13:52, 20 November 2023 (UTC)[reply]
THIS and THIS is the code for my BRFA-approved bot which is running on the Toolforge. It was working fine in August, when I pretty-much wrapped up my project to install this automated process. I've not made any (breaking) code changes since then, as I thought I was done tweaking the code to the point where it just ran itself and no longer needed close supervision. The first page it is attempting to refresh links for is Soygu (which is a redirect). The bot is stuck repeatedly attempting to purge this page, and no error code is returned to indicate there was any problem. Quarry query shows that the date is not being updated. Likely it was last updated by my bot on August 17, 2023. – wbm1058 (talk) 16:48, 20 November 2023 (UTC)[reply]
It seems to me that your bot has successfully purged that page with recursive links update about 50 times per day for the last couple of days (and completed 750,000 other purges every day – I'm surprised we have the logs for this, but we do: [1]). It's interesting that page_links_updated is not being updated, I will try to find out if that's expected or when it changed. It seems like a different issue than the last time (and it seems like the purges are working). Matma Rex talk 18:26, 20 November 2023 (UTC)[reply]
When viewing a Gerrit patch, if you click on the three dots at the top-right and select "Included in", it tells which branches the patch has been merged into. If it were a MediaWiki patch, you can then cross-reference with toolforge:versions to determine if it has been deployed yet. Here however, the patch is to Pywikibot. I see it is included in the 8.5.0 and 8.5.1 releases, so you'll want to make sure your Pywikibot is updated to one of those versions in order for the change to take effect. MusikAnimal talk 18:46, 20 November 2023 (UTC)[reply]
Thanks for the helpful information. I realize now that I incorrectly assumed it was a MediaWiki patch. I don't think I have access to the Logstash, which would have helped me verify my bot's actions. I guess I could apply for nda group access for researchers and volunteers, if I sign an NDA for access to confidential data?
page_links_updated was definitely getting updated until sometime after August, so answering the question "why did it stop getting updated?" should hopefully lead to the solution. wbm1058 (talk) 19:50, 20 November 2023 (UTC)[reply]
(Logstash is indeed not public, and you could apply to get access, but you're not missing much in this case – I just linked to log messages that indicate that your API requests reach this point in the code: [2]) Matma Rex talk 20:41, 20 November 2023 (UTC)[reply]
I've looked for any recent changes to MediaWiki that would affect this, and I didn't find any. Then I tried doing a similar request using Special:ApiSandbox, and it worked for me – the page_links_updated field got bumped. So I tried running your code, and… it worked too. I'm definitely confused.
My current theory is that your bot is successfully scheduling the links update (as indicated by the log messages), but they are not actually happening for some reason.
In order to test that theory, I'd like to ask you to do two things, and run the script just once with these changes:
  • Uncomment print_r($result); in refreshmainlinks.php line 106
  • Change curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('Expect:'));
    to curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('Expect:', 'X-Wikimedia-Debug: backend=mwdebug2001.codfw.wmnet; log'));
    in botclasses.php line 109
The first will show you the API result, just in case it contains some interesting warnings. The second will enable debug logging on the WMF servers for these requests (wikitech:WikimediaDebug), I'll be able to view the results in Logstash and perhaps we'll find out what is happening.
Matma Rex talk 20:41, 20 November 2023 (UTC)[reply]
OK, I've shut down my bots while we debug this, since they weren't working right anyway... toolforge jobs delete refreshlinks and toolforge jobs delete refreshmainlinks
I started testing this by doing the purges at a slower rate, and then ramped up the speed, figuring I would refresh-links as fast as I could, until the system couldn't keep up... I think the problem may be that the system doesn't have a good way of telling me that it's not keeping up. Now I'll make the code changes and run the test that you requested. – wbm1058 (talk) 21:41, 20 November 2023 (UTC)[reply]
I also commented out the last line of refreshmainlinks.php so that it wouldn't run forever: #goto doit_again;
toolforge-jobs run refreshmainlinks --command "php ./php/refreshmainlinks.php" --image php8.2 -o ./logs/refreshmainlinks.log -e ./logs/refreshmainlinks.log
Running now... wbm1058 (talk) 21:57, 20 November 2023 (UTC)[reply]
console log
PHP version: 8.2.7

Logging in...
GET: https://en.wikipedia.org/w/api.php?action=query&meta=tokens&type=login&format=json (0.175213098526 s) (100 b)
POST: https://en.wikipedia.org/w/api.php?action=login&format=json (0.79974794387817 s) (73 b)
...done.

Days ago to refresh: 95
Current time: 1700517512 (2023-11-20 21:58:32)
Refresh time: 1692309512 (2023-08-17 21:58:32) ==> 20230817215832

Connected to database
mysqli_result Object
(
    [current_field] => 0
    [field_count] => 1
    [lengths] => 
    [num_rows] => 10000
    [type] => 0
)

0> Soygu
POST: https://en.wikipedia.org/w/api.php?action=purge&format=json&assert=user&forcerecursivelinkupdate=1 (3.1107079982758 s) (2223 b)
Array
(
    [batchcomplete] => 
    [purge] => Array
        (
            [0] => Array
                (
                    [ns] => 0
                    [title] => Soygu
                    [purged] => 
                    [linkupdate] => 
                )

            [1] => Array
                (
                    [ns] => 0
                    [title] => Soyinka, Wole
                    [purged] => 
                    [linkupdate] => 
                )

            [2] => Array
                (
                    [ns] => 0
                    [title] => Soynuts
                    [purged] => 
                    [linkupdate] => 
                )

            [3] => Array
                (
                    [ns] => 0
                    [title] => Soyode
                    [purged] => 
                    [linkupdate] => 
                )

            [4] => Array
                (
                    [ns] => 0
                    [title] => Soyons Libres
                    [purged] => 
                    [linkupdate] => 
                )

            [5] => Array
                (
                    [ns] => 0
                    [title] => Soyul
                    [purged] => 
                    [linkupdate] => 
                )

            [6] => Array
                (
                    [ns] => 0
                    [title] => Soyun Kasum oglu Sadykov
                    [purged] => 
                    [linkupdate] => 
                )

            [7] => Array
                (
                    [ns] => 0
                    [title] => Soyuz-7 (rocket)
                    [purged] => 
                    [linkupdate] => 
                )

            [8] => Array
                (
                    [ns] => 0
                    [title] => Soyuz 7K-L1E No.1
                    [purged] => 
                    [linkupdate] => 
                )

            [9] => Array
                (
                    [ns] => 0
                    [title] => Soyuz 7K-LOK No.1
                    [purged] => 
                    [linkupdate] => 
                )

            [10] => Array
                (
                    [ns] => 0
                    [title] => Soyuz 7K-LOK No.2
                    [purged] => 
                    [linkupdate] => 
                )

            [11] => Array
                (
                    [ns] => 0
                    [title] => Sozuza
                    [purged] => 
                    [linkupdate] => 
                )

            [12] => Array
                (
                    [ns] => 0
                    [title] => Soñer, Javier
                    [purged] => 
                    [linkupdate] => 
                )

            [13] => Array
                (
                    [ns] => 0
                    [title] => Soñora, Joel
                    [purged] => 
                    [linkupdate] => 
                )

            [14] => Array
                (
                    [ns] => 0
                    [title] => Soči
                    [purged] => 
                    [linkupdate] => 
                )

            [15] => Array
                (
                    [ns] => 0
                    [title] => Soʻx District
                    [purged] => 
                    [linkupdate] => 
                )

            [16] => Array
                (
                    [ns] => 0
                    [title] => So’a language
                    [purged] => 
                    [linkupdate] => 
                )

            [17] => Array
                (
                    [ns] => 0
                    [title] => Sp1 transcription factor
                    [purged] => 
                    [linkupdate] => 
                )

            [18] => Array
                (
                    [ns] => 0
                    [title] => Sp6likevirus
                    [purged] => 
                    [linkupdate] => 
                )

            [19] => Array
                (
                    [ns] => 0
                    [title] => SpAd
                    [purged] => 
                    [linkupdate] => 
                )

        )

    [normalized] => Array
        (
            [0] => Array
                (
                    [from] => :Soygu
                    [to] => Soygu
                )

            [1] => Array
                (
                    [from] => :Soyinka,_Wole
                    [to] => Soyinka, Wole
                )

            [2] => Array
                (
                    [from] => :Soynuts
                    [to] => Soynuts
                )

            [3] => Array
                (
                    [from] => :Soyode
                    [to] => Soyode
                )

            [4] => Array
                (
                    [from] => :Soyons_Libres
                    [to] => Soyons Libres
                )

            [5] => Array
                (
                    [from] => :Soyul
                    [to] => Soyul
                )

            [6] => Array
                (
                    [from] => :Soyun_Kasum_oglu_Sadykov
                    [to] => Soyun Kasum oglu Sadykov
                )

            [7] => Array
                (
                    [from] => :Soyuz-7_(rocket)
                    [to] => Soyuz-7 (rocket)
                )

            [8] => Array
                (
                    [from] => :Soyuz_7K-L1E_No.1
                    [to] => Soyuz 7K-L1E No.1
                )

            [9] => Array
                (
                    [from] => :Soyuz_7K-LOK_No.1
                    [to] => Soyuz 7K-LOK No.1
                )

            [10] => Array
                (
                    [from] => :Soyuz_7K-LOK_No.2
                    [to] => Soyuz 7K-LOK No.2
                )

            [11] => Array
                (
                    [from] => :Sozuza
                    [to] => Sozuza
                )

            [12] => Array
                (
                    [from] => :Soñer,_Javier
                    [to] => Soñer, Javier
                )

            [13] => Array
                (
                    [from] => :Soñora,_Joel
                    [to] => Soñora, Joel
                )

            [14] => Array
                (
                    [from] => :Soči
                    [to] => Soči
                )

            [15] => Array
                (
                    [from] => :Soʻx_District
                    [to] => Soʻx District
                )

            [16] => Array
                (
                    [from] => :So’a_language
                    [to] => So’a language
                )

            [17] => Array
                (
                    [from] => :Sp1_transcription_factor
                    [to] => Sp1 transcription factor
                )

            [18] => Array
                (
                    [from] => :Sp6likevirus
                    [to] => Sp6likevirus
                )

            [19] => Array
                (
                    [from] => :SpAd
                    [to] => SpAd
                )

        )

)
That's the beginning of my log. I don't think it shows anything abnormal. – wbm1058 (talk) 22:15, 20 November 2023 (UTC)[reply]
OK, it's refreshed 10,000 links in 34 12 minutes, so you should have plenty of X-Wikimedia-Debug stuff to examine in the logs now. – wbm1058 (talk) 22:47, 20 November 2023 (UTC)[reply]
Yep, I see them, I will have a look. Thanks. Matma Rex talk 23:04, 20 November 2023 (UTC)[reply]
Well, I don't know why this is happening. I filed a task about it, so that someone else from my team might have a look with fresh eyes, feel free to follow along: T351729. It might take us a few days to get around to this (it's the holiday and flu season), I hope the problem is not urgent. Matma Rex talk 15:24, 21 November 2023 (UTC)[reply]
Perhaps there's one more thing we could try: could you try to run your bot script once using another account, and check if it succeeds? And also, could you try to perform the purge using Special:ApiSandbox#action=purge&forcerecursivelinkupdate=1&titles=... while logged into your bot account, and check if it succeeds? If one of these methods works, that might help us guess where the problem lies. Matma Rex talk 15:28, 21 November 2023 (UTC)[reply]
I picked two random pages with August "links-updated" dates (verified by a Quarry query), then logged into the Bot1058 account (using the normal password, not the BotPasswords password) and performed the API sandbox purge. It worked!
Bot1058 API sandbox results
    "batchcomplete": true,
    "purge": [
        {
            "ns": 0,
            "title": "Speciestaler",
            "purged": true,
            "linkupdate": true
        },
        {
            "ns": 0,
            "title": "Specific State Memory Recall",
            "purged": true,
            "linkupdate": true
        }
    ],
    "normalized": [
        {
            "fromencoded": false,
            "from": "Specific_State_Memory_Recall",
            "to": "Specific State Memory Recall"
        }
    ]
Noting one difference, in the API sandbox results, "purged": true, and "linkupdate": true which in the console log they are null: [purged] => and [linkupdate] =>
I'm not sure whether that's a significant difference. – wbm1058 (talk) 20:01, 21 November 2023 (UTC)[reply]
The difference is because ApiSandbox applies formatversion=2 param. – SD0001 (talk) 06:12, 22 November 2023 (UTC)[reply]
Right, thanks. I added &formatversion=2 to the API call and ran the test again. Returned "1" rather than "true" but I suppose that's just a matter of variable-type declarations.
console log, with &format=json&formatversion=2
Array
(
    [batchcomplete] => 1
    [purge] => Array
        (
            [0] => Array
                (
                    [ns] => 0
                    [title] => Soyinka, Wole
                    [purged] => 1
                    [linkupdate] => 1
                )

            [1] => Array
                (
                    [ns] => 0
                    [title] => Soynuts
                    [purged] => 1
                    [linkupdate] => 1
                )
Checking the Quarry query, still failed to update page_links_updated. – wbm1058 (talk) 17:00, 22 November 2023 (UTC)[reply]
Finished another 10K edits run with X-Wikimedia-Debug stuff, under a different bot account of mine. Checking with Quarry for a couple of the pages that it was supposed to have purged, they still show page_links_updated August 17. So it still fails when running under a different account. Hmm, wbm1058 (talk) 22:43, 21 November 2023 (UTC)[reply]
Thanks for checking, that's interesting, although I'm not sure what it means yet. We haven't had the time to investigate. Matma Rex talk 16:42, 27 November 2023 (UTC)[reply]

Zoom messed up on iOS 17

I recently updated my phone from iOS 16 to iOS 17.1.1. When I access Wikipedia’s desktop site on my phone, every page I load starts out zoomed in about 200%. I can pinch to fully zoom out, but it’s annoying that I have to do that on every page. Also the width of the search bar is messed up. Are these known bugs, or is this because of some sort of browser setting on my end? —pythoncoder (talk | contribs) 20:16, 21 November 2023 (UTC)[reply]

Might be a setting, because i'd expect a lot of people to report about such a problem if it were widespread. Have you checked the fontsize option (under the Aa button) in the browser ? It's persisted per website, so if you accidentally change it, you are stuck with it until you reset it to 100%. —TheDJ (talkcontribs) 23:10, 21 November 2023 (UTC)[reply]
Just noticed this thread and realized it's the same for me, I updated a 12 mini to iOS 17.1.1 and have the same result. Home Lander (talk) 16:58, 23 November 2023 (UTC)[reply]
Looks normal to me. I'm on iOS 17.1.1 as well. ― novov (t c) 08:56, 27 November 2023 (UTC)[reply]

Email Problem

Hello! Recently, I sent emails directly to an @wikipedia.org address and emailed a user via Special:EmailUser founction. However, both got no response. Is there any technique issues or am I blacklisted? How do I fix it? Thanks.--Whisper of the heart 03:03, 22 November 2023 (UTC)[reply]

@Whisper of the heart: Your Wikipedia mail should be working. Have anyone said they don't receive mails from you or are you merely wondering why they haven't replied? That's not a technical issue but you can mail yourself or me as a test if you want. PrimeHunter (talk) 20:20, 22 November 2023 (UTC)[reply]
OK, I will send a test email to you. Whisper of the heart 20:47, 22 November 2023 (UTC)[reply]
@Whisper of the heart: I got the mail. PrimeHunter (talk) 20:50, 22 November 2023 (UTC)[reply]
Great! It seems that my email is working, but receivers haven't replied for some reason. Thanks a lot--Whisper of the heart 21:10, 22 November 2023 (UTC)[reply]
@Whisper of the heart: If you email somebody via Special:EmailUser, the recipient is not obliged to respond. Indeed, over the last fourteen years about twenty people have sent emails via Special:EmailUser/Redrose64 and IIRC I only replied to one of them, and that was concerning when this RfA should be filed. You might wonder why I have email set up if I have no intention of responding: it's in case I forget my password (this has actually happened). --Redrose64 🌹 (talk) 22:37, 22 November 2023 (UTC)[reply]
@Redrose64: Make that at least two; you responded to mine :-) ... I do intend on following up on that one properly (by making my way to your neck of the woods) within the next year ... this is not a threat. :-) Graham87 (talk) 10:11, 23 November 2023 (UTC)[reply]
The boilerplate appended to mail sent through Special:EmailUser actually warns against responding, at some length. —Cryptic 22:46, 22 November 2023 (UTC)[reply]
@Redrose64 FYI, in Special:Preferences you can turn of "allow users to email me", while keeping your email for password recovery. — xaosflux Talk 22:48, 22 November 2023 (UTC)[reply]
You people are right, actually I also set up rules to filter emails including Wikipedia's robot messages to another folder...--Whisper of the heart 11:32, 23 November 2023 (UTC)[reply]
You also mentioned a direct email to a @wikipedia.org address. I don't know about other addresses, but if that was emergency@wikipedia.org, you should definitely have received a reply, probably within about 10 minutes or so. If you didn't, don't assume your message has been read. Suffusion of Yellow (talk) 23:41, 23 November 2023 (UTC)[reply]
I'll add that the emergency email seems to have been having problems with emails being directed to the spam folder. This may or may not be the same with whichever wikipedia email address Whisper of the heart was directing their email towards. EggRoll97 (talk) 01:31, 25 November 2023 (UTC)[reply]
@Suffusion of Yellow and EggRoll97: The groups I emailed was the checkuser team, in fact I still get no reply so far so I believe my mail was lost or spamed, but luckly I got in touch with them by other way... I think maybe their mailbox have the same problem as the emergency email's.--Whisper of the heart 18:39, 29 November 2023 (UTC)[reply]

Adjust video thumbnails

Not a good thumbnail
Good thumbnail but no longer opens the video player

I uploaded a video but was not blessed with a good thumbnail. So I uploaded File:Ubisoft Quebec office in 2013 thumb.jpg, this worked but now the video player doesn't open anymore.
How do I adjust the thumbnail for a video?Alexis Jazz (talk or ping me) 16:56, 24 November 2023 (UTC)[reply]

This probably got broken in the figure element rewrite. You can also use the thumbtime parameter to get the thumb of an offset in the video. Ill file a ticket later tonight. —TheDJ (talkcontribs) 17:13, 24 November 2023 (UTC)[reply]
TheDJ, thanks, that's exactly what I was looking for! Somehow thumbtime wasn't documented on mw:Help:Images. I had already filed phab:T351937, I changed it from a feature request to a bug report.Alexis Jazz (talk or ping me) 18:45, 24 November 2023 (UTC)[reply]
It’s documented at mediawikiwiki:Extension:TimedMediaHandler#Syntax_synopsis and probably also somewhere at Commons. —TheDJ (talkcontribs) 19:08, 24 November 2023 (UTC)[reply]
Also at WP:EIS#Video files. --Redrose64 🌹 (talk) 13:53, 26 November 2023 (UTC)[reply]

Pages using infobox boxer (amateur) with conflicting parameters

The latest run of Special:WantedCategories features a redlink for an infobox-generated (hence unremovable) maintenance category that I don't know what to do with, Category:Pages using infobox boxer (amateur) with conflicting parameters. I don't know if this is a category we want, or if it's one that should just be banished into the ether — and even if we want it I have absolutely no idea where it would belong in the category tree, while if we don't want it then I have no idea how to make it go away.

So could somebody with more knowledge about infobox maintenance categories either create the category if it's wanted, or kill it off so that it's never generated at all anymore if it isn't? Thanks. Bearcat (talk) 15:21, 25 November 2023 (UTC)[reply]

I have created the category. * Pppery * it has begun... 16:39, 25 November 2023 (UTC)[reply]
@Bearcat: The template {{Infobox boxer (amateur)}} has this code
{{#invoke:Check for clobbered parameters|check
| template = [[Template:Infobox boxer (amateur)|infobox boxer (amateur)]]
| cat = {{main other|Category:Pages using infobox boxer (amateur) with conflicting parameters}}
| nicknames; nickname
| weight class; weight_class
| medals; medaltemplates
}}
and as long as that code is present, Category:Pages using infobox boxer (amateur) with conflicting parameters should exist.
When there are pages listed in that cat, the thing to do is to visit the page (e.g. Luke Jackson (boxer)), and edit the lead section. Then, without altering anything, click Show preview. This will yield a message like this:
Preview warning: Using more than one of the following parameters in infobox boxer (amateur): medals, medaltemplates.
Return to the point where you were editing the lead section, locate the parameters concerned - in this case |medals=2006 Commonwealth Games and |medaltemplates=
{{MedalCompetition|[[Boxing at the Commonwealth Games|Commonwealth Games]]}}
{{MedalBronze| [[2006 Commonwealth Games|2006 Melbourne]] | [[Boxing at the 2006 Commonwealth Games|Featherweight]]}}
. Decide whether they should be combined, or one of them simply removed. Amend and save, the page should drop out of the category. --Redrose64 🌹 (talk) 16:31, 26 November 2023 (UTC)[reply]

Section size

WP:SIZE#If you have problems editing a long article says Often you can edit the article one section at a time by using the "Edit" links you see next to each header in the article. This should work as long as none of the sections are longer than 32 kB Is this limit still correct? Hawkeye7 (discuss) 20:09, 25 November 2023 (UTC)[reply]

I don't really understand why that number is there. There is no particular limit in either section or full page editing (well, there is for full pages, but it takes a lot of text to get there and the engine will tell you it's at the limit).
I would recommend changing it to something along the lines of "if the section also isn't large" or similar. Izno (talk) 23:19, 25 November 2023 (UTC)[reply]
The hard 32 kB limit was there because Netscape Navigator 4.76 and Opera 6.04 had problems with edit fields larger than that size. Per the Netscape Navigator and History of the Opera web browser, those web browser versions were released in the late 1990s and 2001, respectively. I wouldn't be surprised if these browsers are now unable to read Wikipedia pages, much less edit them, so I've edited the guideline accordingly. Graham87 (talk) 06:12, 26 November 2023 (UTC)[reply]

CodeMirror button for wikitext syntax highlighting is gone

I'm using source editor with editor toolbar ("2010 wikitext editor"). But the button for syntax highlighting is gone. It's called "Activate highlighting in wikitext" at Help:Edit toolbar. It is supposed to be between dropdown "Advanced" and puzzle-piece icon button . Instead, I see button called "Reference" .

As far as I know, this button comes from Extension:CodeMirror, which is still enabled according to Special:Version. In preferences, I have:

  • Preferences → Editing → check Enable the editing toolbar This is sometimes called the '2010 wikitext editor'.
  • Preferences → Editing → uncheck Enable the visual editor
  • Preferences → Editing → uncheck Use the wikitext mode inside the visual editor, instead of a different wikitext editor
  • Preferences → Editing → check Enable editing tools in source mode
  • Preferences → Gadgets → Editing → check (S) Syntax highlighter: Alternative to the default coloring of wiki syntax in the edit box (works best in Firefox and works almost all of the time in Chrome and Opera)
  • Preferences → Gadgets → Editing → uncheck Enable the legacy (2006) editing toolbar. This will be overridden by the "Enable the editing toolbar" option in the Editing tab.

There was a discussion ~ten ago about CodeMirror, which also mentioned tweaking the UI, but I'm not sure it is related. How do I get the button back? —⁠andrybak (talk) 22:45, 25 November 2023 (UTC)[reply]

Check an edit page in safe mode e.g. https://en.wikipedia.org/wiki/WoW?action=edit&safemode=1 . If it works there, you have a conflicting gadget or script enabled and will need to identify which. Izno (talk) 23:12, 25 November 2023 (UTC)[reply]
Thank you, Izno. I've tried safe mode, and unfortunately it is still "Insert a template Reference Advanced" for me. —⁠andrybak (talk) 23:16, 25 November 2023 (UTC)[reply]
@Andrybak: You need to disable the syntax highlighter gadget; this is unrelated to the CodeMirror extension. If you're wondering how it could possibly interfere while in safe mode, CodeMirror apparently checks for for this gadget (and also WikEd), and won't load if it's enabled. Suffusion of Yellow (talk) 18:54, 26 November 2023 (UTC)[reply]
Suffusion of Yellow, thank you. That's it, I got button again.
This is a recent change, introduced in commit c0b0100 (Add $wgCodeMirrorConflictingGadgets instead of checking wikEd directly, 2023-10-10). The change seems to come from phab:T178348, quote Investigation: CodeMirror and WikEd gadget (and maybe other syntax highlighting gadgets) don't get along well
I couldn't find any mention of DotsSyntaxHighlighter in any related tickets or commits. So it seems, that the combination CodeMirror+DotsSyntaxHighlighter is only hypothetically causing problems? The combination works fine for me. I used DotsSyntaxHighlighter most of the time, and enabled CodeMirror on a case-by-case basis for complicated template edits.
Thankfully, I found a workaround on mw:User:Remember the dot/Syntax highlighter. Add the following to common.js to load DotsSyntaxHighlighter without it being detected by CodeMirror:
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript');
@MusikAnimal FYI this whole section. —⁠andrybak (talk) 02:01, 27 November 2023 (UTC)[reply]
Indeed, the check against DotsSyntaxHighlighter is new. I can remove it given you say there are no conflicts. @Andrybak I have to ask, though: Is there something DotsSyntaxHighlighter does that CodeMirror doesn't? If it comes down to simply colors, you can customize those to your liking. See the guide at meta:Community Wishlist Survey 2016/CodeMirror#Color and style customization. MusikAnimal talk 21:54, 27 November 2023 (UTC)[reply]
MusikAnimal, in my experience DotsSyntaxHighlighter loads just the tiniest bit snappier than CodeMirror. CodeMirror adds just enough friction for my gnomish edits, so it is turned off most of the time.
Thank you for the pointer about color customization, and for maintaining CodeMirror in general. —⁠andrybak (talk) 22:01, 27 November 2023 (UTC)[reply]
@Andrybak My pleasure! DotsSyntaxHighlighter will work with CodeMirror again starting this Thursday. Best, MusikAnimal talk 04:36, 28 November 2023 (UTC)[reply]

Is this map/template fixable?

So while browing Wikipedia as a reader, I noted that Template:State historic sites of Louisiana map is being used at List of Louisiana state historic sites. If I'm reading the code right, this is created by taking an underlying map, and then overlaying the pins by hard-coding a pixel location in the template. This works at a standard presentation on a laptop, but at least on my mobile the way this code is written creates a warping of pin locations - everything is shifted to the west to the extent that Mansfield and Fort Jesup are showing up in Texas. Hardcoding pixel locations like this can't be a best practice. Is there any way to fix this within the current template, or does this just need replaced with something derived from Template:Location map? Hog Farm Talk 00:43, 26 November 2023 (UTC)[reply]

I'd start by replacing it with one of the few standard templates, yes. If that doesn't fix it, that's a bigger problem. (Memory says those aren't perfect but also aren't as broken at low resolution.) Izno (talk) 01:47, 26 November 2023 (UTC)[reply]
It works for me to remove text-align:center in the article.[3] PrimeHunter (talk) 10:21, 26 November 2023 (UTC)[reply]
With text-align:center the map was centered above the caption so if the caption has a longer line than the map width then the map is moved to the right. The pins were not moved so that's bad. In my desktop view the first caption line is slightly longer than the map so the pins also became slightly displaced for me in desktop. It was much more in mobile. PrimeHunter (talk) 00:22, 27 November 2023 (UTC)[reply]

Emboldening a boundary in a table

Hi,
Will someone who knows table formatting please have a look at the table in this page. I wonder about making the association of the four source language headings with system variants more evident. Ie. "Source Texts in Oberon" should associate with the variants preceding "Source Texts in Oberon-2" and "Source Texts in Oberon-2" should associate with variants between that and "Source Texts in Active Oberon". Might be clear enough already but I imagine emboldening the line above each "Source Texts" heading. Thanks, ... PeterEasthope (talk) 14:50, 26 November 2023 (UTC)[reply]

@PeterEasthope: The column headers in the middle would be against MOS:COLHEAD in the English Wikipedia but I don't know Wikibooks. I have added style="border-top: solid 2px".[4] PrimeHunter (talk) 16:32, 26 November 2023 (UTC)[reply]
Single header alternative:
  1. Make source text the first column
  2. Use rowspan to make its cells multi row
  3. Apply background colour and bold to make it look like a heading.
  4. Rotate text 90 degrees so it consumes little horizontal space
Uwappa (talk) 16:41, 26 November 2023 (UTC)[reply]
Please don't Apply background colour and bold to make it look like a heading, it will create an accessibility problem. If it's supposed to be a header for the row, mark it up as a header cell (by using ! at the start of the line instead of |) and give it the attribute scope=row. --Redrose64 🌹 (talk) 16:50, 26 November 2023 (UTC)[reply]
If you want to rotate a header then Wikibooks has b:Template:Vertical header although it's only used in one page. PrimeHunter (talk) 17:12, 26 November 2023 (UTC)[reply]
Broken into multiple tables again, to avoid violation of MOS:COLHEAD. With multiple tables, the emboldened line is not required. I find the uniform column widths aesthetically preferable to distinct widths in each table.
Is a table heading better than the column spanning heading such as "Source Texts in Oberon"? Thx, ... PeterEasthope (talk) 02:33, 27 November 2023 (UTC)[reply]

New Lua module replacement for {{Name in official languages}}

Hello, I've decided to make a Lua module to replace {{Name in official languages}}. I'd appreciate it if anyone could check whether the code has any issues.

At the moment I'm trying to figure out how to create wikilinks for the languages, which I'm having trouble with, due to Lua error at line 22: attempt to concatenate local 'display' (a nil value).

It's at: Module:User:A diehard editor/Name in various languages

- A diehard editor (talk | edits) 17:37, 26 November 2023 (UTC)[reply]

No templates in section headers.
Not at all clear to me what it is that you are trying to do. It appears that you are attempting to use Module:Lang/data to get language names from language tags. Your life might be easier if you use the functions built into Module:Lang that already do that. For example, your test template has 'en = English' so I presume that you want to fetch the language associated with en from Module:lang/data. You can do that with a template call that looks like this:
{{lang|fn=name_from_tag|en}} → English
You can require() Module:lang into your module to do the same thing:
local lang_mod = require ('Module:Lang');
local language_name = lang_mod._name_from_tag ({'en'});
Or, because I suspect that the variety of languages needed is limited, you are probably better off using the MediaWiki magic work {{#language}} to get the name associated with a language tag:
{{#language:en|en}} → English
You can also do this in your module:
local language_name = frame:callParserFunction ({name='#language', args={'en', 'en'}});
Trappist the monk (talk) 20:00, 26 November 2023 (UTC)[reply]
Changing my mind. Better to require ('Module:Lang') because you will have to anyway to properly render the official name associated with the language tag.
Also, no need to construct language name links (as you are attempting in line 22. The call to Module:lang to get the language name can be tweaked to get a linked version:
local lang_mod = require ('Module:Lang');
local language_name = lang_mod._name_from_tag ({'en', ['link'] = 'yes'});
The call to Module:lang to render the official name looks something like this:
local official_name = lang_mod._lang ({'en', 'official name'});
Trappist the monk (talk) 20:32, 26 November 2023 (UTC)[reply]
(If not covered above)
Hi,
So, basically you can't concatenate nil, yet display is indeed nil because you're feeding in values that aren't in language_names (Module:Language/data/iana_languages). This is because you're still iterating over the frame arguments including width, font_size & name as the frame object exposes its parameters via a metatable-provided interface, so your attempt to set these to nil has no effect. Because you intend to support multiple languages, and so multiple parameters, you'll need to filter out these other parameters in your iteration. However, you can't just exclude these three (width, font_size & name) because users may stuff in other random ones too, so you'll need to check the item exists within your language_names first. Due to the structure of your code, checking in ::resolve_language is too late, because you'll have already set up table lines by that point, so you'll need to check before constructing the row, e.g. in p.main.
Note too that Module:Language/data/iana_languages has entries with multiple ISO 639-1 names, e.g. "cu", so you may want to consider handling these. You should also consider users entering no languages at all, i.e. your template should not even begin to construct a table.
make_language_row can't expand the lang template directly in the Module. You should use the frame object's expandTemplate function to handle this.
I've put in some changes to your template as a demo. I'll let you sort out the styling & article links etc..
Regards,
J
5.64.158.190 (talk) 20:59, 26 November 2023 (UTC)[reply]
Thanks! Well, I was under the impression that my module wouldn't be able to call local functions in other modules.. but again I'm quite a newcomer to Lua, and Wikipedia's particular flavor of it. A diehard editor (talk | edits) 03:07, 27 November 2023 (UTC)[reply]
Here is a working example of one way to accomplish the rewrite: Module:User:Trappist the monk/Name in various languages
Trappist the monk (talk) 04:00, 27 November 2023 (UTC)[reply]
Nice 5.64.158.190 (talk) 05:13, 27 November 2023 (UTC)[reply]
Well that was better. I still want to write the module myself though for the learning experience, but the one you have certainly works. Once I've finished the module I'll convert it to Wikipedia's style and move it to Module:Name in various languages. A diehard editor (talk | edits) 06:52, 27 November 2023 (UTC)[reply]

Definition of Local Project

Hi,

I read here that Wiktionary is not considered local to the Wikipedia project as far as Interwiki prefixes are concerned, yet a call to mw.site.interwikiMap("local") includes it. Should it be there?

Thanks,

J 5.64.158.190 (talk) 21:20, 26 November 2023 (UTC)[reply]

Audio files not showing on Timeless when viewed on mobile device in portrait

I think this has something to do with one of the stylesheets here, because safe mode does not result in this issue. There is a CSS line somewhere that has "height: auto;" and that is causing the height of the audio file player to get messed up. I isolated it to https://en.wikipedia.org/w/load.php?lang=en&modules=ext.gadget.Shortdesc-helper-pagestyles-vector%2CTwinkle-pagestyles%2CresponsiveContentBaseTimeless&only=styles&skin=timeless but cannot figure out which MediaWiki page I need to go to edit this. If an interface admin can fix this that would be great. Thank you. Awesome Aasim 21:55, 26 November 2023 (UTC)[reply]

On what specific page are you experiencing the issue? Izno (talk) 21:58, 26 November 2023 (UTC)[reply]
I added a file to Fire alarm notification appliance with a recording of the standard pattern used for fire alarms in North America, and while the file shows fine when in landscape, when viewing in portrait (first on my phone but later by using the F12 developer tools to test the page), it turns out that the "height: auto" might be interfering with the proper display of the player. Awesome Aasim 22:12, 26 November 2023 (UTC)[reply]
Ok I isolated the problem even further to MediaWiki:Gadget-responsiveContentBaseTimeless.css, line 71. I think that line needs to be removed or rethought out to allow the player to work on Timeless when so narrow. Awesome Aasim 22:20, 26 November 2023 (UTC)[reply]

Spaces in template parameters

I'm trying to pass a parameter to #if which begins with a space. Essentially, I want it to output nothing if quiet=1, ELSE output a space followed by some more output.

But the template engine trims the preceding space and I can't figure out how to escape it. I can use Template:Spaces, but that produces   and requires the inclusion of a template which surely shouldn't be required. I'm sure this must be an easy fix, but I can't for the life of me find the relevant documentation pages. Can anyone help?

If you want to see my code, I'm using the sandbox at Template:X28.

Cheers, Akakievich (talk) 11:43, 27 November 2023 (UTC)[reply]

@Akakievich: One option is to encode the space as &#32;. Another is to place something non-displayed like <nowiki /> before the space. PrimeHunter (talk) 12:00, 27 November 2023 (UTC)[reply]
Maybe Template:If can help. Gonnym (talk) 12:25, 27 November 2023 (UTC)[reply]
Two great solutions, thank you both. Akakievich (talk) 12:58, 27 November 2023 (UTC)[reply]

The template adds an extra line break (?) during render and I don't know why. Example Thridrangaviti_Lighthouse#Technical_features where the last bullet uses the template, there is an extra line after it.

I am unable to replicate the problem in an example like this:

Or this:

next section

References

  1. ^ a b Rowlett, Russ. "Lighthouses of East and South Iceland". The Lighthouse Directory. University of North Carolina at Chapel Hill. Retrieved 2023-11-27.

Thanks. -- GreenC 16:20, 27 November 2023 (UTC)[reply]

Because there is a line break before the <noinclude>?
I removed that line break and previewed this page. For me with my browser, there was no difference but perhaps there is with your browser?
Trappist the monk (talk) 16:25, 27 November 2023 (UTC)[reply]
 Fixed. The line break was causing the problem. – Jonesey95 (talk) 17:04, 27 November 2023 (UTC)[reply]
Special:Diff/1165197447/1187126200, thank you. -- GreenC 17:27, 27 November 2023 (UTC)[reply]

Template sidebar design alternative?

Based on my reading of Template:sidebar, 65% of our readers do not see the sidebars (they are mobile) and no technical fix is likely or even planned AFAICT.

In Wikipedia:WikiProject_Physics the template sidebar is used for contextual navigation in many articles. Unlike the "See also" or wikilinks in the page, the sidebar acts as a stable, well-ordered, annotated, consensus global view of sub-topics in physics.

If the sidebar feature is not practical, I wonder if the Wikipedia design gurus have suggestions for alternatives? Johnjbarton (talk) 18:01, 27 November 2023 (UTC)[reply]

Thank you for raising this. I came across this exact problem when adding {{LGBT sidebar}} to GaLTaS. No-one can see it on mobile devices unless they switch to Desktop view, and they don’t know what they’re missing unless they do. Chrisdevelop (talk) 08:49, 30 November 2023 (UTC)[reply]

Clicking on images in a gallery

Could someone please go to Cupcake#Themes and click on one of the images? The gallery higher up on the page lets me click through to the image (licensing/copyright implications here), but this gallery doesn't let me do that. WhatamIdoing (talk) 20:12, 27 November 2023 (UTC)[reply]

Remove |link= from each of those images.
Trappist the monk (talk) 20:16, 27 November 2023 (UTC)[reply]
Thanks; fixed. I wonder if that bug has been filed against the visual editor. WhatamIdoing (talk) 20:20, 27 November 2023 (UTC)[reply]
@WhatamIdoing: I opened phab:T352093 on this. Do you know if it used to work and broke (regression), or has never worked? — xaosflux Talk 20:34, 27 November 2023 (UTC)[reply]
There is already phab:T350912. PrimeHunter (talk) 20:36, 27 November 2023 (UTC)[reply]
Well, the feature's been around for almost ten years, and I think if this were a normal occurrence, I'd have noticed before. It's broken now. It worked in 2015. Between now and then, I don't know. WhatamIdoing (talk) 20:39, 27 November 2023 (UTC)[reply]
Thanks, tagged as regression as well. — xaosflux Talk 20:40, 27 November 2023 (UTC)[reply]
I have a patch up to fix it now. After it merges, galleries with the issue will unfortunately need to be fixed up manually in source mode. DLynch (WMF) (talk) 17:55, 28 November 2023 (UTC)[reply]
That sounds like something a bot could do. WhatamIdoing (talk) 18:36, 28 November 2023 (UTC)[reply]
This search currently finds 428 possible mainspace cases. That's doable with AWB if somebody (not me) wants to work on these which break the image license in most cases by not linking to the file page with attribution and license. PrimeHunter (talk) 19:12, 28 November 2023 (UTC)[reply]
I've asked for help at Wikipedia:AutoWikiBrowser/Tasks#Gallery image formatting problem. WhatamIdoing (talk) 21:58, 28 November 2023 (UTC)[reply]

Tech News: 2023-48

MediaWiki message delivery 23:06, 27 November 2023 (UTC)[reply]

Largest featured articles when promoted

In 2023 the largest article promoted to featured so far might be 12,000 readable prose words [8]. Is it possible for someone to calculate the largest promoted each year 2020-23, at the time of promotion, if it doesn't take too long or tell me who can please? It may help with a discussion we're having here: Wikipedia_talk:Article_size#Summarising_evidence,_arguments_on_limits Tom B (talk) 12:16, 28 November 2023 (UTC)[reply]

Tpbradbury, WP:QUERY perhaps? — Qwerfjkltalk 18:50, 29 November 2023 (UTC)[reply]
thank you! Tom B (talk) 11:33, 30 November 2023 (UTC)[reply]
This query shows the largest page in bytes at time of promotion to FA. Getting the number of prose words would be difficult, and impossible with the Quarry tool that WP:QUERY uses. Certes (talk) 19:51, 29 November 2023 (UTC)[reply]
@Certes, thanks v much! i've rerun the query going back as far as possible i.e. 2014-2023 [9] I can manually retrieve the prosable word size for the articles you've helpfully found, thanks again! Tom B (talk) 11:10, 30 November 2023 (UTC)[reply]

Error message

Yesterday I moved a page and today I get the following error message when I try to view the page view: Error querying Pageviews API - Not Found

Maybe it takes a few days for the system to kick in? Palisades1 (talk) 20:11, 28 November 2023 (UTC)[reply]

@Palisades1 it sounds like you are referencing https://pageviews.wmcloud.org/ ? If so the maintainers of that external tool ask that you report issues here: meta:Talk:Pageviews Analysis. — xaosflux Talk 20:17, 28 November 2023 (UTC)[reply]
got it. Thanks, Palisades1 (talk) 20:20, 28 November 2023 (UTC)[reply]
@Palisades1: Always be specific and give relevant links when you ask a question. I assume this is about [10]. It was answered yesterday when you asked at Wikipedia:Help desk#What does this mean? You saw the answers so I don't know why you ask here today. PrimeHunter (talk) 20:19, 28 November 2023 (UTC)[reply]
"I moved a page" i takes at least a day before pageview information becomes available. So if you moved the page yesterday, it cannot have collected pageviews for the new title yet. —TheDJ (talkcontribs) 21:49, 29 November 2023 (UTC)[reply]

IMDb

In recent days, an editor has been going around changing the IDs in films which were using {{IMDb title}} from the actual IMDb ID to a qid= link to the film's Wikidata page. The template certainly features that option, so it's not a problem per se — but it's having undesirable side effects in certain cases, that need to be addressed: specifically, if it's done in any template that features extra clarifying "description text", such as {{IMDb title|0928413|Naked Boys Singing!|(2007 film)}} being switched to {{IMDb title|qid=Q6960446|title=Naked Boys Singing!|(2007 film)}} at Naked Boys Singing!, then using the Wikidata qid instead of the IMDB ID breaks the template display from the proper "Naked Boys Singing! (2007 film) at IMDb" to the improper "film)/ Naked Boys Singing! at IMDb", and files the article in Category:IMDb template with invalid id set.

Interestingly, by far the majority of the couple of dozen cases that were in that tracking category today were plays where a film adaptation already had its own separate Wikipedia article about the film, and thus the film adaptation's IMDb profile wasn't even needed on the play's article in the first place — so in those cases I just removed the template outright, but in the case of Naked Boys Singing the film doesn't have its own separate article yet and so I had to revert the qid change. I also question whether there's any reason why using the Wikidata qid instead of the direct IMDB id would be critically important enough to justify doing an active switchover on thousands and thousands of film articles like this — it's fine to have as an option, but is there any reason why it should be the gold standard? — but at the very least the template needs to be modified to ensure that using the qid doesn't break it.

So, could somebody with more experience in template coding than I've got fix this so that the template displays properly if the Wikidata qid is used? Bearcat (talk) 22:30, 29 November 2023 (UTC)[reply]

Since this is about me, I thought I would appear and explain what I am doing... To start off, the problem listed above was fixed 2 days after I made that edit and isn't an issue anymore. I am using Category:IMDb ID not in Wikidata to find pages with invalid imdb links, update outdated ids (example) and also create wikidata items for episodes/films/series where they don't exist. The simplest way to do this is to just set a wikidata item instead of an id when it is checked, so that it is removed from that category. Considering the fact that the imdb id is a pretty static value (Set it and forget it) it shouldn't really matter if it is set on wikidata or the wikipedia page. I don't think the template needs updating this was just a case of me being careless... I do manually check the edits I make but sometimes you miss things when you make a lot of edits at once. Any questions / concerns please ping me. Thanks Terasail[✉️] 09:33, 30 November 2023 (UTC)[reply]
To fix the issue at Naked Boys Singing!, the fix would be: {{IMDb title|qid=Q6960446|title=Naked Boys Singing!|description=(2007 film)}} (though because the title is the same as the film, just do {{IMDb title|qid=Q6960446|description=(2007 film)}}) Gonnym (talk) 09:47, 30 November 2023 (UTC)[reply]
Is there any prior agreement to mass change the templates to use wikidata? -- LCU ActivelyDisinterested «@» °∆t° 19:46, 1 December 2023 (UTC)[reply]
There's a general presumption against using Wikidata, partly because vandalism there is less likely to be detected. Certes (talk) 22:57, 1 December 2023 (UTC)[reply]

Invisible table of contents

Hi there,

i'm not seeing a TOC at Midazolam. If i switch my prefs to the old/legacy-2010 look, the TOC shows up. I looked in the code and no "toc" string to be found. Jerome Potts (talk) 09:56, 30 November 2023 (UTC)[reply]

@Jerome Charles Potts: I assume you have Vector 2022 where it may be on an icon next to the heading. PrimeHunter (talk) 10:25, 30 November 2023 (UTC)[reply]
@PrimeHunter: Thank you for your reply. I reverted back to the default Vector 2022 skin, and i see no such icon. But ah, if i hide the main menu from the left sidebar, then i get the menu icon at the top left. Regardless: lo and behold, the TOC appears now. —Jerome Potts (talk) 12:25, 30 November 2023 (UTC)[reply]

Quarry stopp executions of slow queries since 2023-11-28 14:08

Quarry:query/runs/all

For 2 days now, Quarry has automatically stopped any SQL that runs for longer than 60 seconds.

Unfortunately, this means that certain queries, e.g. searching for syntax errors in URLs, are no longer possible. (e.g. Quarry:query/77794 for dewiki expected result 0-20 recordsets within 120-180 seconds, for enwiki correspondent Quarry:query/78127]] needed 2543 seconds with ~10k recordsets)

The last successful, slow-running query ran at 2023-11-28 14:08 within 653 seconds. (talk) 10:51, 30 November 2023 (UTC)[reply]

I noticed this too, but assumed it was just me accidentally clicking the Stop button. The limit used to be 30 minutes. (Perhaps someone tried to raise that to 60 minutes and forgot it was in seconds.) Certes (talk) 12:39, 30 November 2023 (UTC)[reply]
It seems like I missed setting an explicit timeout when moving the wiki replicas to a different set of load balancers, and the defaults set were set to much lower limits that would be more appropriate for HTTP connections. I deployed a fix at around 11:00 UTC today after someone pointed out the same issue on IRC. Taavi-WMF (talk) 12:57, 30 November 2023 (UTC)[reply]
Thank you! Quarry:query/77794 returned 6 rows within 120 seconds. (talk) 13:32, 30 November 2023 (UTC)[reply]
I actually thought the limit was longer than 30 minutes? When trying to identify candidates for mass draftification I’ve sometimes needed to run scripts for times considerably in excess of that - over an hour in some cases, I believe. BilledMammal (talk) 13:40, 30 November 2023 (UTC)[reply]
It was 30 minutes last time I checked but may have changed. Certes (talk) 14:09, 30 November 2023 (UTC)[reply]
It used to be, but it's been significantly longer for a while now. quarry:query/77375 from last month, for example, completed successfully after almost three hours. —Cryptic 14:42, 30 November 2023 (UTC)[reply]
I actually wonder if it's dynamic; I find that if I’ve run a few long ones I get cut off sooner for the next few days. BilledMammal (talk) 14:51, 30 November 2023 (UTC)[reply]

Please can someone copy Template:Scalable image to Meta?

Hi all

I'm trying to use Template:Scalable image on some help pages and my user page which will appear on Wikipedia and Meta. However the template doesn't exist on Meta yet. It uses some other templates and I don't want to try to do it and make a mess I have to ask someone else to clean up, can I request someone else please copy it over for me? It will be really useful for creating documentation. I know this is a request for Meta fom Wikipedia but there are very few people who look at the notice boards there.

Thanks very much

John Cummings (talk) 12:20, 30 November 2023 (UTC)[reply]

Seems like you need meta:Help:Import and I figure you could ask at meta:Meta:Requests for help from a sysop or bureaucrat. Jo-Jo Eumerus (talk) 12:39, 30 November 2023 (UTC)[reply]

Toolforge Grid Engine shutdown

For those that don't read cloud-announce@ or wikitech-l: The Toolforge Grid Engine shutdown process will start on December 14. For more information, see https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/VIWWQKMSQO2ED3TVUR7KPPWRTOBYBVOA/. There is still a large number of tools running on the Grid Engine (https://grid-deprecation.toolforge.org/), including some that are in frequent use and are part of our critical infrastructure. AntiCompositeNumber (talk) 15:59, 30 November 2023 (UTC)[reply]

MediaWiki:Gadget-modrollback.js blocks a new Mediawiki option

Hi, I'm from ckbwiki and there, I realized that MediaWiki:Gadget-modrollback.js blocks an option labeled "Show a confirmation prompt when clicking on a rollback link". I mean, there is a conflict between the gadget and the option. per Special:GadgetUsage, looks like the gadget has enabled by 9,554 users on enwiki. I described this issue here and at T349973, but still no one helped. ⇒ AramTalk 20:52, 30 November 2023 (UTC)[reply]

@Aram we offload that gadget to mediawikiwiki, so you will want to engage someone on that project to make changes to it. The only thing we could really do would be to just disable it project wide. As that "show a prompt" preference doesn't appear to be on by default this doesn't seem like an urgent issue? I've added a warning on the description to our gadget here. — xaosflux Talk 21:38, 30 November 2023 (UTC)[reply]
@Xaosflux Thanks, that’s not bad for now. I think enough people are aware of this problem now that there is no need for me to tell anyone else. ⇒ AramTalk 16:25, 1 December 2023 (UTC)[reply]

MediaWiki:Gadget-popups.js

Is MediaWiki:Gadget-popups.js broken for anyone else? It's not working at all for me, and I'm getting this console error: jQuery.Deferred exception: Cannot read properties of undefined (reading 'join') TypeError: Cannot read properties of undefined (reading 'join') at setTitleBase (https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups:116:944)Novem Linguae (talk) 07:10, 1 December 2023 (UTC)[reply]

I just got it working using Special:Preferences. It was giving me the error when I loaded it from metawiki global.js using mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');. This used to work, but stopped working for me within the last day or two. Interesting. CORS maybe? –Novem Linguae (talk) 09:40, 1 December 2023 (UTC)[reply]
We're experiencing this issue on Wiktionary, too (wikt:Wiktionary:Grease_pit/2023/December#is_popups_disabled?), and it seems to disable(??) other gadgets and js when it fails, like the js Wiktionary uses to expand collapsed tables. Loading navigation popups a different way reportedly fixes not only the navigation popups but also the other, seemingly unrelated gadgets that broke. It's odd. -sche (talk) 01:46, 2 December 2023 (UTC)[reply]

Edit conflict-like situation that recreated a draftified article

The other day in working on some articles in CAT:UNCAT, I came upon Mulashidi. I added a category and removed the uncatted tag, and there my interaction with the article ended, or so I thought. Then Liz came to my talk page to ask why I had recreated an article that had been draftified to Draft:Mulashidi. Huh? I looked at the article history and saw to my surprise that I had "created" this article. Extra huh??? Then I looked at the logs, and saw that SunDawn's draftification and my "creation" of the article happened in the same minute. Apparently I was finding a category at the same time another editor was moving it. I was not, to my recollection, asked if I wanted to create an article that didn't exist. This may be an oddball fluke, but since it happened to me, it could happen to others as well. The system needs some sort of way to handle such things that aren't checking the history to make sure you didn't just accidentally recreate an article that existed before you started editing. Thanks to Mandarax for looking at the situation and suggesting I bring it here. LadyofShalott 13:04, 1 December 2023 (UTC)[reply]

Maybe HotCat's API requests are not using proper edit conflict detection such as starttimestamp, baserevid, etc. The code appears to be at commons:MediaWiki:Gadget-HotCat.js. There doesn't appear to be an active maintainer, the history is an assortment of editors. Next step would probably be to post on one of the HotCat talk pages (Wikipedia talk:HotCat or commons:MediaWiki talk:Gadget-HotCat.js). –Novem Linguae (talk) 19:55, 1 December 2023 (UTC)[reply]

Linking to subsections

On Wikipedia:Vital articles we have a number of headers of level 1, 2, 3 and 4. The heading "General" appears nine different times on the page, under different parent sections. Is there any way to reliably link to the "General" level 3 section which comes under "Mathematics" level 2 section? Or should we use {{anchor}} for this? I notice that using an underscore and number, e.g. Wikipedia:Vital articles#General_9, works, but would presumably break if one of the other General sections was removed. — Martin (MSGJ · talk) 13:10, 1 December 2023 (UTC)[reply]

The only options are an anchor or making the section name unique. There is no way to say "The General heading under Mathematics". Wikipedia:Manual of Style#Section headings (for articles) says "section headings should: Be unique within a page, so that section links lead to the right place." PrimeHunter (talk) 15:15, 1 December 2023 (UTC)[reply]
By the way, the underscore can also be a space in wikilinks: Wikipedia:Vital articles#General 9. PrimeHunter (talk) 15:20, 1 December 2023 (UTC)[reply]
"General" tends to be the first subheading within each section, so you could almost link to the higher level heading instead. I say "almost" because, sadly, the actual heading is "Mathematics (45 articles)" so you'd need to change the link every time the number of articles changes. This looks like a job for anchors. Certes (talk) 15:26, 1 December 2023 (UTC)[reply]
The count should probably not be in a section header at all. Section headers should be stable (they also make them a bit longer). The count can be plain text right under the section headers. Gonnym (talk) 15:44, 1 December 2023 (UTC)[reply]
Why not rename the "General" header to "<type> general"? So "History general" or some other word with the topic name. Gonnym (talk) 15:43, 1 December 2023 (UTC)[reply]
A very sensible suggestion — Martin (MSGJ · talk) 16:07, 1 December 2023 (UTC)[reply]

Redirect to foundation wiki?

I made Wikipedia:ANPDP as a redirect to foundation:Policy:Access to nonpublic personal data policy, but it's not working. It shows the redirect, but doesn't execute it until you explicitly click on the link. What did I do wrong? RoySmith (talk) 17:40, 1 December 2023 (UTC)[reply]

Cross-wiki redirects are not possible. See {{Soft redirect}} and Wikipedia:Soft redirect for what we do instead. PrimeHunter (talk) 17:47, 1 December 2023 (UTC)[reply]
Ah, thanks. RoySmith (talk) 17:52, 1 December 2023 (UTC)[reply]

"needing KML"

The latest run of Special:WantedCategories again features two template-generated redlinks I don't know how to resolve.

  1. Category:U.S. road junction articles needing KML might be useful based on Category:U.S. road articles needing KML containing subcategories for things like "auto trail" and "byway" and "county road" and "state highway", but as a person who doesn't normally edit on U.S. highways I have no idea whether it's actually desired or not,
  2. Category:The United States articles needing KML, which is obviously just completely redundant to Category:U.S. road articles needing KML (and features a superfluous "the" that wouldn't be warranted even if the category were legitimate and non-duplicative), but I can't figure out how {{WikiProject U.S. Roads}} is causing it.

Can somebody with more expertise in that area figure this out, please? Bearcat (talk) 18:38, 1 December 2023 (UTC)[reply]

I've asked at Template talk:WikiProject U.S. Roads — Martin (MSGJ · talk) 21:50, 1 December 2023 (UTC)[reply]

Can I have impact too, please?

I was told about Special:Impact today, but unlike editors like Special:Impact/PrimeHunter and Special:Impact/Gråmunken, I Special:Impact/Gråbergs Gråa Sång come up blank. Can someone make someone fix that? Gråbergs Gråa Sång (talk) 20:16, 1 December 2023 (UTC)[reply]

There are reports at phab:T352352 and phab:T352256. PrimeHunter (talk) 21:28, 1 December 2023 (UTC)[reply]