Jump to content

Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia
(Redirected from Wikipedia:VPT)
 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.

Display of contributions and "Current" label

[edit]

When displaying contributions, a bold "Current" tag is added to the end of the edit when it is the latest edit to that article, talk page, etc. Is there a method or gadget to move it to a point where it is in a uniform column? I do a lot of wp:RCP and editor will often repeat their edits without correcting the problem. I will view the "Current" tag in my list of contributions to see if the article has been changed. Trying to determine if articles have been edited or not is rather cumbersome with just the list as the "current" tag is not in a uniform vertical column. I could add it to my watch list with a short expiration. I usually do a text search on my contributions page for "current" which highlights it. Highlighting makes it easier, but I'm looking for a better method. Example of listing in my contributions:

  • 19:08, 6 March 2025 (diff hist) (−6) Iran men's national basketball team (Undid revision 1279103344 by 217.218.49.102 (talk) unexplained change of header) (current) (rollback: 1 edit) (Tag: Undo)

What I would like to see:

  • 19:08, 6 March 2025 (diff hist) (C) (−6) Iran men's national basketball team (Undid revision 1279103344 by 217.218.49.102 (talk) unexplained change of header) (rollback: 1 edit) (Tag: Undo) --OR--
  • (C) 19:08, 6 March 2025 (diff hist) (−6) Iran men's national basketball team (Undid revision 1279103344 by 217.218.49.102 (talk) unexplained change of header) (rollback: 1 edit) (Tag: Undo)

Thank you, Adakiko (talk) 19:32, 6 March 2025 (UTC)[reply]

@Adakiko: "Search for contributions" on a contributions page has the option "Only show edits that are latest revisions". User:Markhurd/hidetopcontrib can do the opposite. Does that work for your purpose? PrimeHunter (talk) 20:35, 6 March 2025 (UTC)[reply]
@Adakiko: Here are two CSS rules:
/* For current rev in contribs, add "(C)" before the size change */
li.mw-contributions-current span.mw-changeslist-links+span.mw-changeslist-separator:after {
  content: "(C)";
  font-weight: bold;
}
/* For current rev in contribs, suppress the "(current)" marker */
li.mw-contributions-current span.mw-uctop {
  display: none;
}
The second rule is optional. They go in Special:MyPage/common.css, since it works in all skins. But personally I use a rule that I wrote some months ago:
/* highlight current edit in contribs */
li.mw-contributions-current {
  background-color: #eeffcc;
}
I created it at somebody's request, don't recall who for. --Redrose64 🌹 (talk) 21:07, 6 March 2025 (UTC)[reply]
@Redrose64: Thank you. added it to my CSS and it works great! Now all I have to do is to look for the "C" on the left. I go into shock each time I look at my contributions page and don't see "current". Cheers Adakiko (talk) 19:10, 8 March 2025 (UTC)[reply]
@Adakiko: As I mentioned, the second rule is optional - you can have both "(C)" and "(current)" displayed, by just using the first five lines, down to (and including) the first closing brace }. --Redrose64 🌹 (talk) 20:03, 8 March 2025 (UTC)[reply]
@Redrose64: I prefer the lack of "Current". I need to retrain myself. Can I train an old dog a new trick? Thanks again! 20:05, 8 March 2025 (UTC)[reply]
I go into shock each time ... There is an option Only show edits that are latest revisions. It would be really good if there was also the reverse option Only show edits that are not the latest revisionGhostInTheMachine talk to me 09:03, 14 March 2025 (UTC)[reply]
I have a script that does this: User:JPxG/current-switcher.js (it's even a toggleable switch on the contribs page so you don't have to reload it). jp×g🗯️ 11:21, 14 March 2025 (UTC)[reply]
I have also added Redrose64's rule. Thanks for that. I did, however, adjust the colour. The lime green gave me indigestion — GhostInTheMachine talk to me 09:03, 14 March 2025 (UTC)[reply]

Removing copyrighted text

[edit]

This probably isn't the right place to ask this, but I User:141.154.49.21 has been cutting-and-pasting huge pieces of text into articles. I ran two articles through "Earwig's Copyvio Detector" and it was a complete cut-and-paste.

I'm not sure how to "rev del" the additions. A bit of help would be great. Thank you! Magnolia677 (talk) 11:28, 9 March 2025 (UTC)[reply]

You can always contact an admin at Category:Wikipedia administrators willing to handle RevisionDelete requests. I have started revdeling those edits, including one you hadn't caught, yet. I've also dropped a warning on the IP's talk page. - Donald Albury 13:38, 9 March 2025 (UTC)[reply]
Thank you! Magnolia677 (talk) 14:06, 9 March 2025 (UTC)[reply]
I've revdeled copyvios in 6 articles. I don't see any other actionable copyvios. Donald Albury 14:09, 9 March 2025 (UTC)[reply]
@Magnolia677, FTF the right place to ask for revision deletion is WP:ANI. Izno (talk) 05:21, 12 March 2025 (UTC)[reply]
@Izno: Er, it isn't. See WP:REVDELREQUEST - Donald Albury was correct. --Redrose64 🌹 (talk) 18:14, 12 March 2025 (UTC)[reply]
Uh yes I apparently did not process what I was responding to fully. Izno (talk) 18:30, 12 March 2025 (UTC)[reply]

Search text box on Timeless doesn't format correctly

[edit]
the formatting (search icon in the text)

So on timeless the search bar doesn't format correctly, when on the search bar specifically:

Vector works correctly however, and the search bar is correct when typing in top, only on while on a search page does the bug occurs. Des Vallee (talk) 07:18, 10 March 2025 (UTC)[reply]

I was 95% this has a task but it seems not to. Izno (talk) 05:26, 12 March 2025 (UTC)[reply]
Is this going to be fixed? I deal with it constantly and it can make it hard to see the text I typed. It also seems like a pretty easy fix. Des Vallee (talk) 09:57, 17 March 2025 (UTC)[reply]
[edit]

As of right now, [[iarchive:newlettersofdavi0000hume|New Letters of David Hume]] displays like a wikilink: New Letters of David Hume. Can we format these links so that they appear the same as: New Letters of David Hume? There is not much oversight on IA for uploads. Rjjiii (talk) 21:48, 11 March 2025 (UTC)[reply]

@Rjjiii: [[iarchive:...]] uses the IArchive entry at meta:Interwiki map. Wikilink syntax [[...]] does not produce an external links icon. If we wanted to, we could make a template so {{iarchive|newlettersofdavi0000hume|New Letters of David Hume}} produces external link syntax like [https://archive.org/details/newlettersofdavi0000hume New Letters of David Hume]. A bot could change all current [[iarchive:...]] to use the template. PrimeHunter (talk) 23:37, 11 March 2025 (UTC)[reply]
Hmm, a template and bot is probably overkill. A bot could just replace Interwiki links with regular links. But now that I'm looking at the list, it's not clear why we should format many of these sites as wikilinks. A lot of them are wikis about very unrelated things like Pokémon, Linux distributions, and Final Fantasy. I might raise the issue over there, and see what the response is, Rjjiii (talk) 02:04, 12 March 2025 (UTC)[reply]
I'm pretty much the sole maintainer of meta:Interwiki map, so I might as well reply here. No, you won't get me to remove the iarchive: interwiki prefix. Both because I don't find "some projects want this with an icon" convincing as a reason to remove, and also there are more than 10,000 uses across hundreds of projects (slow link) affected by this and wrangling a bot to fix all of them exceeds my willingness to care even if everyone agreed it should be done. I don't think anything I can do there has any control over whether an icon is displayed, although maybe some local CSS hack could. * Pppery * it has begun... 02:08, 12 March 2025 (UTC)[reply]
That would indeed be theoretically possible:
.mw-parser-output a.extiw[href^="//archive.org"] {
    background-image: url(/w/skins/Vector/resources/skins.vector.styles/images/link-external-small-ltr-progressive.svg?fb64d);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 0.857em;
    padding-right: 1em;
}
However it's indeed very hacky - it unnecessarily duplicates code, and will break if theme internals change. So probably not a good idea to use on enwp.  novov talk edits 10:56, 12 March 2025 (UTC)[reply]
I can accept it if the answer is just that the cat is already out of the bag. I thought this was something new because I have only seen it in a few recent edits, but it looks like it was added over 10 years ago. To be clear though, the concern isn't about icons in general or aesthetics. If Wikipedia consistently formats wikilinks one way and external links another way, it's inherently confusing to randomly format something like "Windows XP". Rjjiii (talk) 02:43, 13 March 2025 (UTC)[reply]
There is an old 2009 request at phab:T20562: "Indicate in output whether an interwiki link is marked local". PrimeHunter (talk) 10:50, 13 March 2025 (UTC)[reply]

ParserFunction errors

[edit]

I'm just terrible at tracking down the cause of ParserFunction errors. Can anyone fix whatever's causing the problem in Template:Data world#Derived data? Whatever it is, its causing similar errors in the same place in other template pages of the form "Template:Data [country]". The error message says that it's an error in Template:Nts; but that template hasn't been edited in nearly five years, and these errors have popped up only recently. Deor (talk) 00:53, 12 March 2025 (UTC)[reply]

Use "Related changes" for stuff like this. I reverted a recent edit at Template:Order of magnitude with a grumpy edit summary. Johnuniq (talk) 08:54, 12 March 2025 (UTC)[reply]
As a template editor with almost 20 years' experience, I don't appreciate the grumpy revert summary. The issue here (as Snævar explained) wasn't with my edit to {{Order of magnitude}}, but with other templates attempting to pass it non-numeric input, which may be buried deeply in template call stacks (see User talk:Pppery#Template:Order of magnitude). {{Order of magnitude}} has over 200 thousand transclusions, as its documentation states, and these breakages cannot be reasonably tested for (if you disagree, feel free to add example testcases to the testcases page - for the record, my change passed all current testcases without issue). ディノ千?!☎ Dinoguy1000 17:58, 12 March 2025 (UTC)[reply]
Agreed with Dinoguy1000 here. * Pppery * it has begun... 19:30, 12 March 2025 (UTC)[reply]
  1. land area is text, not a variable
  2. Template:Data world returns three curly brackets on each side, which can not be used for calculation
  3. You are doing an calculation with the total area and land area numbers, so you need mw:Help:Extension:ParserFunctions##expr. It does not calculate without you asking it to.
So once that data world no longer gives curly brackets, you end up with this: {{ppm|{{sigfig|{{#expr:({{{total area}}}/{{data world|pst2|{{{land area}}}}})}}|3}}}}. Snævar (talk) 09:07, 12 March 2025 (UTC)[reply]
I have installed User:Anomie/previewtemplatelastmod. After installation, the technique is to go to the problem page, click the "Edit" tab for the whole page, and scroll down to the part after the edit box, publish/preview/etc. buttons, below which there is a line reading "Pages transcluded onto the current version of this page" - if this is preceded by a right-pointing triangle, click that to expand the list. The topmost entry (or entries) should be the most likely candidate for the problem. --Redrose64 🌹 (talk) 19:25, 12 March 2025 (UTC)[reply]
I have a forked version of that script at User:Ahecht/Scripts/previewtemplatelastmod.js, which keeps the default sort order (which can be useful since it's sorted by namespace) unless you click the "sort" link. --Ahecht (TALK
PAGE
)
15:45, 17 March 2025 (UTC)[reply]

Technical error

[edit]

I get this when I try to edit a section.

[a4f116d8-d17e-4d45-abf2-d1a337557eff] 2025-03-12 11:19:03: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError" HandsomeFella (talk) 11:21, 12 March 2025 (UTC)[reply]

There are some ongoing issues, people are investigating. Follow T388646 for updates. Matma Rex talk 11:32, 12 March 2025 (UTC)[reply]

Internal error on Preview

[edit]

Trying to preview my edit at Lemon dove, I get "[e0a059cb-fd01-4dd0-a254-f278b1d56ebf] 2025-03-13 11:54:10: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"" Happened repeatedly. Has now cleared, but thought I should mention it here, I don't recall ever having anything like it in years of editing. DuncanHill (talk) 11:57, 13 March 2025 (UTC)[reply]

There are ongoing server issues, not related to your action, and seemingly the same thing as this yesterday. See T388646. Matma Rex talk 13:05, 13 March 2025 (UTC)[reply]

Forming a request at Wikipedia:RefToolbar

[edit]

Hello everyone, after a bunch of back-and-forth about what the proper venue is for making an addition to the RefToolbar, I think I finally know the correct procedure. I'm to make a formal {{Edit interface-protected}} request there (after testing my proposed changes). I have the edit request ready to go. The specific page I need modified is MediaWiki:RefToolbarConfig.js and my request will look something like this:


The purpose of this request is adding the url-status field to to cite-news, cite-book, and cite-journal, matching what is already present at cite-web.

Instructions:

Add a comma to the end of current lines 93, 124, and 163, and add a new row beneath each reading: {"field": "url-status", "tooltip":"cite-urlstatus-tooltip"}

Same instructions, line by line:

Line 93: change {"field": "quote"} to {"field": "quote"},

New added line beneath: {"field": "url-status", "tooltip":"cite-urlstatus-tooltip"}

Current line 124: change {"field": "quote"} to {"field": "quote"},

New added line beneath: {"field": "url-status", "tooltip":"cite-urlstatus-tooltip"}

Current line 163: change {"field": "postscript", "tooltip":"cite-postscript-tooltip"} to {"field": "postscript", "tooltip":"cite-postscript-tooltip"},

New added line beneath: {"field": "url-status", "tooltip":"cite-urlstatus-tooltip"}


I'm nearly certain this will fix the issue. I however don't know the first thing about testing these changes in my sandbox. Could someone help point me in the right direction? I don't want to make the request and have it rejected for being untested. Thank you. TheSavageNorwegian 16:37, 12 March 2025 (UTC)[reply]

LinkSearch across multiple projects

[edit]

Is there a tool that works like Special:LinkSearch, but across all the Wikipedias and sibling projects? Or do I need to post a request for someone to search the database dumps for me? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:08, 13 March 2025 (UTC)[reply]

https://spamcheck.toolforge.org/ and https://global-search.toolforge.org/DreamRimmer (talk) 17:29, 13 March 2025 (UTC)[reply]

Stopped receiving email notifications of changes to an article on my watchlist

[edit]

In late 2024, I expanded someone else’s Start-class article called Bombardment of Greytown,  which after some extensive changes was declared a B Level article by Hawkeye7. In the course of the run-up to that B level bestowment, I had received, thanks to my watchlist, no less than 13 email notifications alerting me to changes made, ending on 7 December 2024.

Having received the B Level imprimatur and having ceased to receive any more email alerts as to further activity, I assumed no more changes were being made. But, recently, I glanced at the article, and I noticed substantial additions have been made to it in 2025 by Historyguy1138 and a warning template added to the top by Grutness that, “This article's tone or style may not reflect the encyclopedic tone used on Wikipedia. etc.” (I am now in contact with both these Wikipedians.)

My watchlist never alerted me that any of this was happening. I checked my watchlist settings recently and it said: “Your watchlist has 11 pages (and their talk pages). Email notification is enabled.” My watchlist list included the Bombardment of Greytown page.

Why do you suppose I stopped receiving email notifications after 7 December 2024 when changes continue to be made after that date? Will-DubDub (talk) 20:54, 13 March 2025 (UTC)[reply]

Because you failed to visit the page after receiving the 7 December 2024 email notification. Watchlist email notifications only get sent if you visit the page after each email. Graham87 (talk) 21:54, 13 March 2025 (UTC)[reply]
Thanks for telling me this! I asked Grutness this question and he had no idea and referred me to Village Pump. And he’s one of the longest serving administrators on Wikipedia. Can you refer me to where this is written? Thanks! Will-DubDub (talk) 22:50, 13 March 2025 (UTC)[reply]
The mail should be based on MediaWiki:Enotif body which says: "There will be no other notifications in case of further activity unless you visit this page while logged in." PrimeHunter (talk) 23:05, 13 March 2025 (UTC)[reply]
I went to the link above, MediaWiki:Enotif body, and at the top it says: “This page does not exist. The deletion, protection, and move log for the page are provided below for reference.” But below that seems to be some solid information.
I went to my preferences and changed my watchlist and notifications. I said: Email me when a page or a file on my watchlist is changed. And increased the “Days to show in watchlist” from 3 to 30.
Bottom line: Once I missed that email notification on 7 December 2024 did that mean I can now never get another email notification again about changes to that article? It seems there should be a workaround to restart those email notifications after a single lapse. Will-DubDub (talk) 00:27, 14 March 2025 (UTC)[reply]
In Special:Preferences do you have your language (in the Internationalization section) set to anything other than 'en - English'? — xaosflux Talk 00:32, 14 March 2025 (UTC)[reply]
Yeah that isn't a good idea, as you'll miss custom messages like that. There's also relevant information at Help:Email notification; as it says there, watchlist email notifications weren't enabled here until April 2012, by which time most experienced editors (including Grutness and I) had gotten used to checking our watchlist manually. I think most experienced English Wikipedia editors only use the email notification system for non-English wikis or places like Wikimedia Commons. Graham87 (talk) 01:22, 14 March 2025 (UTC)[reply]
Ignore the red box at MediaWiki:Enotif body. Do you not see the text I quoted below the box and in the mail? After visiting Bombardment of Greytown while logged in, you get an email about the next edit. It doesn't matter whether you made earlier visits. PrimeHunter (talk) 01:30, 14 March 2025 (UTC)[reply]
Thank you PrimeHunter and Graham87!.
I’m still confused, but less so than before.
I find this statement by Graham87:
“Watchlist email notifications only get sent if you visit the page after each email.”
To be in conflict with this statement by PrimeHunter:
“After visiting Bombardment of Greytown while logged in, you get an email about the next edit. It doesn't matter whether you made earlier visits.”
Hewing to PrimeHunter's for now, I believe I did visit the article periodically (and while logged in) during the period those changes were being made! Could it be I missed them because my “Days to show in watchlist” was only set for 3 days (the default, I'm guessing) and the vagaries of my visits and the change notifications never synched up helpfully because that three-day window was too short? (I’ve now set “Days to show” to 30 days.) Will-DubDub (talk) 21:27, 14 March 2025 (UTC)[reply]
I think PrimeHunter's explanation is more technically correct. But the number of days setting has nothing to do with the watchlist email ffeature; it's related to vieweing your watchlist on Wikipedia using Special:Watchlist. Graham87 (talk) 23:15, 14 March 2025 (UTC)[reply]
Thanks, Graham. I hope you can see where that ”Days setting” looked logically promising. Thanks for setting me straight. I’ve set up a bookmark to my Special:Watchlist, so I can check it regularly. (And thanks PrimeHunter!) Will-DubDub (talk) 19:36, 15 March 2025 (UTC)[reply]

How to rename a page without moving it

[edit]

Hello, sorry if this isn't the right place, but after hours of searching, I can't find anywhere else to ask this. I want to change the name of the Infigen Energy page to Iberdrola Australia, because Infigen Energy was acquired by Iberdrola Australia and the company now operates under this brand.

The page is updated and is 100% about Iberdrola Australia, but the name is Infigen Energy. I don't want to move it to a new page, just rename it, but all the codes I can find are for moving and renaming at the same time.

Is there a place where I can request this action, or can someone help me do this rename correctly? Thank you very much. LaboniyAngel (talk) 09:15, 14 March 2025 (UTC)[reply]

A rename is accomplished via a page move. You can request a move at Requested Moves. I would suggest that you see WP:COMMONNAME, though. We don't necessarily use official or legal names as titles- but the most commonly used name(and it certainly could be that the official name is the most common, just be aware). 331dot (talk) 09:20, 14 March 2025 (UTC)[reply]
[edit]

At the bottom of the User Profile menu of Preferences, there is a link to https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:CampaignEvents/Invitation_lists, which reads as 'invitation lists" in plain text. This appears to be a redlink on MediaWiki, with the correct link being https://meta.wikimedia.org/wiki/Campaigns/Foundation_Product_Team/Invitation_list. I don't have global IPBE, so I have no idea if this is just en-wiki or others. JarJarInks٩(◕_◕)۶Tones essay 13:02, 14 March 2025 (UTC)[reply]

I have created MediaWiki:Campaignevents-invitationlist-preference to change our link from invitation lists to invitation lists. PrimeHunter (talk) 15:18, 14 March 2025 (UTC)[reply]
That seems to work! Thanks! JarJarInks٩(◕_◕)۶Tones essay 16:57, 14 March 2025 (UTC)[reply]

Semi-protected talk pages crash

[edit]

Whenever I press Add topic on a semi-protected talk page(the talk page itself is protected, not the origin page) the browser crashes with error code Aw Snap SIGSEGV. This implies that the page was trying to edit a part of restricted memory. This does not happen on non-protected pages. I am using a Chromebook model name CR1104CGA updated to the latest version, and with browser version 126.0.6478.265 It seems that the computer that you are doing this on matters a lot as other computers, and even other Chromebooks do not give the same outcome. Caleb's World11 (talk) 19:39, 14 March 2025 (UTC)[reply]

Start with the instructions at Google Support and report back. Izno (talk) 21:56, 14 March 2025 (UTC)[reply]
@Caleb's World11 I'm having the exact same issue, except it's happening pretty much everywhere, including creating pages and protected non-talk pages. Gaismagorm (talk) 12:54, 17 March 2025 (UTC)[reply]
it looks like it doesn't always crash when creating pages, but it does always crash when editing protected articles Gaismagorm (talk) 13:22, 17 March 2025 (UTC)[reply]

Tofu boxes even with fonts installed?

[edit]

Per various talk page complaints, some users seem to be having trouble viewing special characters on Anatolian hieroglyphs, even when they have the requisite fonts installed. It’s not clear to me that this is a Wikipedia-specific problem, but is there perhaps a Wikipedia-specific workaround?

At least for me, the symbols appear correctly in Chrome but appear as tofu boxes in Firefox and Safari. This is so both in the normal page view and in the editing interface, though the characters appear correctly in reader view, even in Safari. When I copy-paste the tofu boxes from Wikipedia into a text document, they appear correctly as Anatolian hieroglyphs. Other special characters and ancient scripts are working fine. Botterweg (talk) 19:45, 14 March 2025 (UTC)[reply]

Chrome probably works because of the 'Noto Sans Anatolian Hieroglyphs' font, which Google did make. Apple Symbols, Rashi script and Alphabetum fonts also claim to work. Alan Wood goes over what fonts work with which script, and he has no font listed for Anatolian. If you add an compatible font to your operating system fonts then they should work with all browsers. Snævar (talk) 23:27, 14 March 2025 (UTC)[reply]
Yeah, thanks, I wondered if Chrome and the Noto fonts both being from Google was somehow relevant. However, that can't be the whole story since I do have Noto Sans Anatolian Hieroglyphs installed, and it works just fine in other programs like Microsoft Word. Botterweg (talk) 02:34, 15 March 2025 (UTC)[reply]

I need help with my Ip address

[edit]

Hi Despite being logged into my account, my IP address is appearing in the edit history instead of my username. This occurred during an edit reverted by ClueBot NG on the 'Michael Dormer (artist)' page. I have confirmed I am logged in, and this issue persists. I have confirmed that I am logged in, by seeing my username in the upper right hand corner of the screen. I would like to know why this is happening and how to prevent it. Nitra78877 (talk) 21:30, 14 March 2025 (UTC)[reply]

Looking for how to set Infobox mapframe maps and Location map maps in infoboxes to viewer's thumb size

[edit]

I haven't had any luck at the templates' talk pages, so I'm posting links here in case there are any technical folks who might be able to tell me how to set Infobox mapframe maps and Location map images in infoboxes to the viewer's thumb size (per MOS, as Module:InfoboxImage can do) instead of using fixed pixel sizing.

Please respond at the original threads, not here. Thanks. – Jonesey95 (talk) 22:15, 14 March 2025 (UTC)[reply]

You were answered approximately 30 minutes ago at infobox mapframe. Izno (talk) 22:26, 14 March 2025 (UTC)[reply]
An answer saying "it looks like you can't do it" is only marginally helpful. As a template editor, my favorite answer to "how do I do this" questions at a template's talk page is "you can't do it yet, but I have tweaked the sandbox to make it possible; does that meet your needs?" I'm hoping someone will find a way to help these templates comply with the guidelines at MOS. – Jonesey95 (talk) 23:40, 14 March 2025 (UTC)[reply]
His answer was correct, however. You cannot do what you want to do. Izno (talk) 17:43, 15 March 2025 (UTC)[reply]

Talk template formatting help

[edit]

I made Template:MEDRS evaluation. But it's hard to use on a talk page, because it doesn't line up properly inside the :::indented comments. How do I fix that? WhatamIdoing (talk) 02:44, 15 March 2025 (UTC)[reply]

WhatamIdoing, {{block indent}}? — Qwerfjkltalk 12:11, 15 March 2025 (UTC)[reply]
The colon is indenting only the first line. You need to force that indenting to continue through the template. I put one possible way in the sandbox and tested it on the page where it is transcluded. It indents and does not cause Linter errors. It should be tested further to make sure that all of the parameters work properly. – Jonesey95 (talk) 14:27, 15 March 2025 (UTC)[reply]
Use Template:Bulleted list instead. Izno (talk) 17:44, 15 March 2025 (UTC)[reply]

Wide equations no longer scrollable on mobile site

[edit]

Until recently, equations that extend beyond the width of the page in the mobile browser version of Wikipedia were horizontally scrollable. However, a recent update has removed this functionality, making such equations partially unreadable unless users switch to desktop mode. This affects articles with large LaTeX-rendered formulas, breaking accessibility for mobile users.

Steps to reproduce:

1. Open a Wikipedia article with wide equations (e.g., physics/math pages) in a mobile browser (Chrome, Safari, etc.).

2. Observe that the equation does not scroll and is cut off instead.

3. Switch to desktop mode, where the full equation becomes visible.

Expected behavior: Equations should be horizontally scrollable as they were before.

Could this be reverted or fixed to restore readability for mobile users? 204.144.182.17 (talk) 22:27, 15 March 2025 (UTC)[reply]

I don't remember the past behaviour but I can confirm visiting Navier–Stokes_equations#General_continuum_equations displays cut-off equations that I can't scroll on mobile. The long ones half way down that section. Commander Keane (talk) 23:47, 15 March 2025 (UTC)[reply]

Auto format dates in non-CS1 templates

[edit]

The Citation Style 1 (CS1) templates will automatically format dates on a page that invokes {{use dmy dates}} or {{use mdy dates}}. This works for all of the most common citation templates, but there are {{cite xxx}} templates that are not related and do nothing to dates, like {{cite patent}}, {{cite court}}, {{cite comic}}, and so on.

Would it be a good idea and would there be interest in working out a standard way to auto-format dates for those unrelated wikitext citation templates? There is an example in {{cite comic/sandbox}} that is calling {{date}}. You can see it in action at User:Rjjiii/sandbox8.(permanent link) This is slightly slower. Kraven the Hunter which calls {{cite comic}} 70 times will go from "Post‐expand include size: 373992/2097152 bytes" to "Post‐expand include size: 385280/2097152 bytes". {{Date}} is less strict than the CS1 dates. If it cannot parse a date, it will just display the input as written. Rjjiii (talk) 02:28, 16 March 2025 (UTC)[reply]

I don't think we should create more modules that read and parse the whole page every time a particular template is encountered. Perhaps I shouldn't worry about performance but the idea seems fragile and hard to maintain. I would prefer a technical solution such as a shared Lua table that can be set when the current editing section or page is rendered, and read by other modules. That might never happen but some planning might be useful. Johnuniq (talk) 03:13, 16 March 2025 (UTC)[reply]
Isn't it likely that articles using the templates you mention also employ at least one cs1|2 template? That being the case, why not have your module fetch the format from Module:Citation/CS1/Configuration? The code that loads the page source, searches for a {{use xxx dates}} template, and determines which format to use will execute only once for all cs1|2 templates and your modified other templates in the article.
Taking that thought a bit farther, I hacked an example: Module:Sandbox/Trappist the monk/df. That example fetches the global_df variable from ~/CS1/Configuration and then reformats and returns the date, minding the value of |cs1-dates= in the {{use xxx dates}} template. There are two functions exported by ~/df; one for publication dates and the other for access / archive dates. Examples can be seen at my sandbox (permalink).
Trappist the monk (talk) 16:25, 16 March 2025 (UTC)[reply]
Yes, I imagine pretty much any article using a niche citation template will use at least one of the main four CS1 citation templates or {{citation}}. I went with a really basic solution from things that already exist, but don't let my lack of knowledge or skill here get in the way if you have a better plan. I tested out the sandbox module above and it seems to work well, even with weird dates. Rjjiii (talk) 02:07, 17 March 2025 (UTC)[reply]

Archiving a source that verifies human before opening

[edit]

There is schism between the governing bodies in the sport of kabaddi, and this article: https://www.dhakatribune.com/sport/other-sports/371289/a-kabaddi-world-cup-sans-bangladesh does a good job at explaining it. Thus, it's been used at multiple kabaddi-related articles and is vital to understanding the schism. Unfortunately, it does a human-check before you're able to access it, which means that no archiving website is able to make an archive out of it. I previously tried to find a solution at Help desk but it didn't help. So, is there any trick to go around the website's restrictions? CX Zoom[he/him] (let's talk • {CX}) 16:47, 16 March 2025 (UTC)[reply]

You could just download it yourself, passing the human verification and then upload it to the text portion of archive.org. Snævar (talk) 19:20, 16 March 2025 (UTC)[reply]
I have no idea how that works. @Snævar: Could you help? CX Zoom[he/him] (let's talk • {CX}) 09:44, 17 March 2025 (UTC)[reply]

I can’t sign on my pc

[edit]

So I type my password it’s says that I didn’t do the letter thing and when I copy and paste my real password and do the letter thing it says that I don’t have the right password so I do that 5 times and then it’s says that I have to wait 5 minutes like what? Therealbubble (talk) 21:54, 16 March 2025 (UTC)[reply]

What do you mean that you cannot sign on your PC? hamster717🐉(discuss anything!🐹✈️my contribs🌌🌠) 23:02, 16 March 2025 (UTC)[reply]
They probably mean sign-in, log-in, enter their account... for that matter 'the letter thing' sounds like a CAPTCHA.
The page Special:Captcha says a CATPCHA may show if you try to login soon after typing your password incorrectly, so it certainly seems like you (Therealbubble) might be typing your password incorrectly - but I don't have an account, so cannot confirm that there isn't always a CAPTCHA when logging in. – 2804:F1...95:6EBB (::/32) (talk) 01:37, 17 March 2025 (UTC)[reply]
They logged in using their mobile, their edit tag says so, but they have a problem logging in on pc. Snævar (talk) 10:22, 17 March 2025 (UTC)[reply]
Recently, the login system was changed, see mw:MediaWiki Platform Team/SUL3
Check if you are allowing cookies from auth.wikimedia.org, logins go through there now. Check your password manager, if you have one, and set the password to auth.wikimedia.org. Also open up your browser console and paste the contents from there. Snævar (talk) 10:25, 17 March 2025 (UTC)[reply]

On mobile view, Infobox shows ahead of first paragraph for this particular article

[edit]

On mobile view with a narrow width (like on my Android phone), the Infobox shows ahead of the first paragraph for the article https://en.m.wikipedia.org/wiki/Detention_of_Mahmoud_Khalil. All other articles I can find work properly.

I see a 2017 archived version of the Village Pump (Wikipedia:Village pump (technical)/Archive 155#Infobox location) which says there was a server side technical issue that was resolved, but not all pages were fixed, such as https://en.m.wikipedia.org/wiki/Eisenhower_dollar. But now the Eisenhower_dollar article also seems to be fixed.

I have tried to look for hidden characters, but there don't appear to be any (I could be wrong). What could be the problem with the Detention_of_Mahmoud_Khalil article? ReferenceMan (talk) 02:09, 17 March 2025 (UTC)[reply]

It's caused by {{pp-extended|small=yes}}. On that article it includes <p class='PIA-flag' style='display:none; visibility:hidden;'>This page is subject to the extended confirmed restriction related to the Arab-Israeli conflict.</p>. The text is hidden but mobile still interprets it as a lead and displays the infobox right after it. PrimeHunter (talk) 09:20, 17 March 2025 (UTC)[reply]
Now reported at Module talk:Protection banner#Mobile places infobox incorrectly for WP:PIA notice. PrimeHunter (talk) 09:37, 17 March 2025 (UTC)[reply]

Can no longer edit articles

[edit]

Hi,

I’m having trouble editing existing Wikipedia pages. When I try to edit, I only see the "Edit source" option and not the regular "Edit" button. This issue affects all pages I’ve tried, and I can’t make any changes to existing articles.

I have 29 edits on my account, and I haven’t edited for about 7 months, but I was previously able to edit normally

Any help would be greatly appreciated. Thanks! Vickylizholmes (talk) 11:05, 17 March 2025 (UTC)[reply]

@Vickylizholmes Go to Special:Preferences#mw-prefsection-editing and set "Editing mode" to "Show me both editor tabs". --Ahecht (TALK
PAGE
)
15:29, 17 March 2025 (UTC)[reply]

Template calling to Wikidata with several parameters

[edit]

Hi,

I have created this template and am trying to improve it (by changing the structure), but I am not quite getting the structure for several parameters, despite checking the relevant help pages.

Basically, I would like the template to be called as follows {{SeatsEUPPs|EC|EPP}} to get the number of seats of the EPP in the European Commission, which would be {{wikidata|property|Q208242|P1410|P208=Q8880}}, where Q208242 is for the EPP and P208=Q8880 is for the European Commission.

The exact expressions won't always be the same, as sometimes I want to replace the name of the party with special terms, such as "allparties", "noparties" or something similar, and then provide a calculated expression. For instance;

  • {{SeatsEUPPs|EC}} would just give the number of seats in the European Commission, which is {{wikidata|property|Q8880|P1342}},
  • {{SeatsEUPPs|EC|allparties}} would give the sum of seats for all parties in the European Commission, which is {{#expr: {{wikidata|property|Q208242|P1410|P208=Q8880}} + seats of all other parties}}, and
  • {{SeatsEUPPs|EC|noparties}} would give the number of seats not assigned to a European party, which is {{#expr: {{wikidata|property|Q8880|P1342}}-the sum of seats for all parties}}.

I think I have to hard-code the formula/expression for every possibility and that is fine. However, I am not really fine how to use "switch" in this case to basically:

  IF param1=EC 
  THEN 
     IF param2=EPP 
     THEN formula-for-seats-of-EPP-in-EC
     ELSIF param2=PES
     THEN formula-for-seats-of-PES-in-EC
     ...
  ELSEIF param1=EP
     IF param2=EPP 
     THEN formula-for-seats-of-EPP-in-EP
     ELSIF param2=PES
     THEN formula-for-seats-of-PES-in-EP
     ...

I am sure it is rather simple, but I just can't wrap my head around it. Thanks! Julius Schwarz (talk) 11:41, 17 March 2025 (UTC)[reply]

@Julius Schwarz Complex logic like this is often better handled in WP:Lua, but as a standard template it would be something like
{{#switch: {{{param2|}}
 | EPP
 | AlternativeNameForEPP = {{#ifeq:{{{param1|}}}|EC|formula-for-seats-of-EPP-in-EC|formula-for-seats-of-EPP-in-EP}}
 | PES
 | AlternativeNameForPES = {{#ifeq:{{{param1|}}}|EC|formula-for-seats-of-PES-in-EC|formula-for-seats-of-PES-in-EP}}
 | ...
 | #default = {{#ifeq:{{{param1|}}}|EC|formula-for-total-seats-in-EC|formula-for-total-seats-in-EP}}
}}
--Ahecht (TALK
PAGE
)
15:27, 17 March 2025 (UTC)[reply]
Thanks for the reply and pointer to Lua. I will ask for support on that too! Julius Schwarz (talk) 19:33, 17 March 2025 (UTC)[reply]

Email address change error

[edit]

I'm trying to change my email address and get an error that says, Unknown error in PHP's mail() function. Does anyone know how to fix this? Thanks! Danaphile (talk) 14:49, 17 March 2025 (UTC)[reply]

Could possibly be related to the ongoing PHP 8.1 upgrade, tracked in phab:T383845. Just a guess tho. NightWolf1223 <Howl at meMy hunts> 15:04, 17 March 2025 (UTC)[reply]
Can you try again? I just tried and didn't fail, got "A confirmation email has been sent to the specified email address. Before any other email is sent to the account, you will have to follow the instructions in the email, to confirm that the account is actually yours.". — xaosflux Talk 15:30, 17 March 2025 (UTC)[reply]
Thanks! It went through. Danaphile (talk) 16:32, 17 March 2025 (UTC)[reply]

Gadget proposal: Citation Watchlist

[edit]

I would like to propose adding the Citation Watchlist script as a new gadget. The purpose of Citation Watchlist is to add visual indicators in recent changes feeds, watchlists, page histories, and user contributions pages when links to certain domain names are added. These domain names are often considered unreliable sources or otherwise require closer examination; this script makes it easier to identify when and where such links are added. New lists can be added to Wikipedia:Citation Watchlist/Lists and existing lists can be updated there. If you can edit a wiki page, you can create and update a domain list.

Citation Watchlist is under active development by the nonprofit Hacks/Hackers, with support from Wikimedia Switzerland. New versions are initially tested on test.wikipedia.org, then staged on English Wikipedia for additional tests before being released, to ensure that the script does not randomly break. To run through the requirements for gadgets:

  1. Gadgets must work if just included with no further configuration. They can be configurable via personal common.js, but must work unconfigured.
    Citation Watchlist works out of the box with no further configuration required.
  2. Gadgets must be compatible with all major browsers, i.e., they must not terminate with errors.
    Citation Watchlist has been tested and confirmed to work on Google Chrome, Mozilla Firefox, Microsoft Edge, and Safari.
  3. Gadgets should be functional in most major browsers (cross-browser compatibility). Exceptions must be clearly stated.
    As stated above, Citation Watchlist works in all major browsers. Note that on mobile devices, you can't hover over indicators to get additional information, as mobile devices lack a hover action.
  4. Duplication of gadgets should only be made if it is reasonable.
    Citation Watchlist provides functionality not available in other gadgets. While there are other gadgets that deal with references and source reliability, they do not operate in the same parts of the interface as Citation Watchlist, which focuses on revision log pages: page histories, watchlists, recent changes, and user contributions.
  5. Collections of scripts should be split if they have disparate functions.
    Citation Watchlist is not a collection of disparate scripts.
  6. Gadgets requiring permissions must be marked and must fail gracefully if the permissions aren't present.
    Citation Watchlist requires no special permissions.
  7. Gadgets only working in some skins must be marked as such if that data is available.
    Citation Watchlist has been tested and confirmed to work in Vector 2022, Vector 2010, Monobook, Minerva, and Timeless.

I am happy to answer any questions you have. If you would like to make changes to the code, I recommend doing so on Test Wikipedia so changes can be properly tested before altering the experience for existing users. Harej (talk) 18:50, 17 March 2025 (UTC)[reply]

Gadgets usually require a large usage; this one is used by only about 50 people. Izno (talk) 20:28, 17 March 2025 (UTC)[reply]
[edit]

Hello, I am working on implementing the SHORTDESC template in Persian Wikipedia, based on the English Wikipedia version. The template itself is functional, but there is an issue: the section edit link (blue "[edit]" button) does not appear next to the short description. What we have done so far: The SHORTDESC template correctly displays the short description. It uses a <span> or <div> to store the text, which is likely why the edit button does not appear. On English Wikipedia, the section edit link appears correctly next to the short description, but in Persian Wikipedia, it does not. Questions: How does English Wikipedia ensure that the edit link appears next to the short description? Is there a CSS or JavaScript function that enables this? Would wrapping the short description in a specific tag (like h2 or another container) help, or is there a more elegant solution? Any guidance on fixing this issue in Persian Wikipedia would be greatly appreciated. Thanks in advance! 😊 Arbabi second (talk) 19:56, 17 March 2025 (UTC)[reply]

You have enabled Wikipedia:Shortdesc helper. Izno (talk) 20:31, 17 March 2025 (UTC)[reply]
@Izno
Thanks for your response! It seems that English Wikipedia uses the Shortdesc Helper tool, but Persian Wikipedia does not have it enabled. We would like to ensure that the edit link appears next to the short description without relying on this tool.
Currently, our code is:
<span class="shortdescription">{{{1|}}}</span>
However, the edit button does not appear next to it.
  • Is there a way to modify this template so the section edit link appears naturally?
  • Should we wrap the text in a different tag like h2 or div?
  • If the edit link is added via JavaScript or CSS in English Wikipedia, how can we replicate that?
Any guidance would be much appreciated. Thanks again! 😊
---- Arbabi second (talk) 21:22, 17 March 2025 (UTC)[reply]

Can Shortdesc Helper be enabled on Persian Wikipedia

[edit]

Question:

We are working on implementing the SHORTDESC template on Persian Wikipedia. One of the main differences we noticed is that English Wikipedia has Shortdesc Helper, which makes it easier to edit short descriptions.

  • Is this tool available globally, or is it specific to English Wikipedia?
  • If it can be enabled on Persian Wikipedia, what steps should we take to request its activation?
  • If enabling it is not possible, is there an alternative method to achieve the same functionality?

Thanks for any guidance! 😊 Arbabi second (talk) 21:38, 17 March 2025 (UTC)[reply]