Select Page

Wikipedia:Village pump (technical)

 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 5 days.

Sub-referencing: User testing

Hi I’m Johannes from Wikimedia Deutschland's Technical Wishes team. We are making great strides with the new sub-referencing feature and we’d love to invite you to take part in two activities to help us move this work further:

  1. Try it out and share your feedback
    Please try the updated wikitext feature on the beta wiki and let us know what you think, either on our talk page or by booking a call with our UX researcher.
  2. Get a sneak peak and help shape the Visual Editor user designs
    Help us test the new design prototypes by participating in user sessions – sign up here to receive an invite. We're especially hoping to speak with people from underrepresented and diverse groups. If that's you, please consider signing up! No prior or extensive editing experience is required. User sessions will start May 14th.

We plan to bring this feature to Wikimedia wikis later this year. We’ll reach out to wikis for piloting in time for deployments. Creators and maintainers of reference-related tools and templates will be contacted beforehand as well.

Thank you very much for your support and encouragement so far in helping bring this feature to life! Johannes Richter (WMDE) (talk) 15:06, 28 April 2025 (UTC)[reply]

If only you hadn't decided that VE's shortcomings meant you had to change from the straightforward syntax people had hammered out over years of discussion to a previously rejected option that tries to shove wikitext into a tag parameter. Anomie 12:41, 29 April 2025 (UTC)[reply]
Yes, the previous approach of wrapping a subreference citation in <ref>...</ref> with a parameter identifying the main citation was much cleaner and more flexible. It also allowed for generating metadata. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 14:36, 29 April 2025 (UTC)[reply]
Thanks for your feedback! See meta:Talk:WMDE Technical Wishes/Sub-referencing#Moving forward with sub-referencing for a detailed explanation why we chose the new syntax approach. In short: One of the main goals of sub-referencing was providing a MediaWiki solution for re-using references with different details which works for all users, no matter which editing interface they use. That's why we reached out to communities for feedback last year and decided to go with the new syntax. Johannes Richter (WMDE) (talk) 08:01, 30 April 2025 (UTC)[reply]
I've commented there already, and you ignored me there too. I read your reasoning there as "VE has shortcomings and we don't want to fix it, so we're choosing a worse solution". Anomie 11:20, 30 April 2025 (UTC)[reply]
Sorry for leaving your comment [1] without a reply, I was on leave until this week [2]. Please note that WMDE Technical Wishes is a small team dedicated to improve certain MediaWiki features. We do not have the resources to take on VisualEditor, that's what the Wikimedia Foundation is doing. We were faced with the option to stop our work on sub-referencing indefinitely – despite having worked on it for years – or continue with a different approach. Based on community feedback from different projects we decided to do the latter. Johannes Richter (WMDE) (talk) 12:19, 30 April 2025 (UTC)[reply]
I can't speak for Anomie, but personally, I worry with a new feature like this that it will be deployed half-baked, as the Visual Editor and Vector 2022 and dark mode have been, and then the developers will move on to another project, even as volunteer editors dutifully report bugs in Phabricator. If the Wikimedia Foundation has a lot of resources and still lets the Visual Editor and Vector 2022 languish for years with unresolved bugs that make life difficult for editors who need to fix or work around problems, how is the WMDE going to address the inevitable bugs that are reported when editors get their hands on this new feature and start making a mess? – Jonesey95 (talk) 13:32, 30 April 2025 (UTC)[reply]
Thanks for your feedback. As with any other feature we've developed in past years [3] we will continue to provide support for sub-references after deployment. Johannes Richter (WMDE) (talk) 10:46, 5 May 2025 (UTC)[reply]
Will there be a way to make it as user-friendly as {{sfn}} (which creates nice and readable wikitext) by suitable wrapper templates? And how would something like {{sfnm}} work with sub-references? —Kusma (talk) 13:44, 30 April 2025 (UTC)[reply]
sfn and sfnm would need to be provided the parent's name in addition to their current information, and the general references would need to be moved into a <references> or equivalent (at a minimum). At which point it is a serious question whether even to continue using sfn on any specific page. There is no template-use-wide promotion from one system to the other without bot or script or manual effort. Izno (talk) 15:40, 30 April 2025 (UTC)[reply]
So there's no way to make an intelligent version of {{sfn}}? The "parent" of {{sfn|Foo|Bar|2019|pp=3–5}} should obviously be CITEREFFooBar2019, which would need to be put somewhere as reference but that should not be necessary to specify again. I don't quite understand how {{sfnm}} could be emulated, though.
I can't personally see how the new system would be generally superior to use of our current sfn (but I can see that it would greatly improve the citation sections of German Wikipedia, where the use of citation templates is much less common than here). It will be just another citation style with its own set of advantages and disadvantages. —Kusma (talk) 16:43, 30 April 2025 (UTC)[reply]
There is no way to make an intelligent version of sfn that is guaranteed to work into the arbitrary future, even if it potentially works now, based on statements already made by the parsing team. And based on how strip markers work, I am pretty sure it would not be something that could be used today.
sfnm would need a new additional syntax, 1ap=Parent_Name or similar, just the same as sfn.
I can't personally see how the new system would be generally superior to use of our current sfn There are two primary preferable factors.
  1. It would not rely on templates, making it much more suitable for large pages. Eventually, we may even be able to remove the IDs that the cite modules output, benefiting the largest pages (WP:PEIS would be reduced).
  2. It integrates well with the Cite display. References in the reference list will be listed in the context of their parent, rather than arbitrarily located. And also, there will be integration with reference popups, so that you can see both the child and parent reference at the same time.
I think the second factors are the pretty killer feature that doom sfn, but being able to decrease the output of our citation module would be another win. And would coincidentally fix the issue that a number of Wikipedians think is a non-issue with respect to ouptutting duplicate IDs on many pages. Izno (talk) 16:54, 30 April 2025 (UTC)[reply]
I haven't actually met WP:PEIS in articles yet, so I don't think it is a huge issue. And the code looks a bit messy so I am sure people will use suitable wrapper templates anyway. For the second point, the proposal replaces one arbitrary ordering (by the point where a specific reference including page number is first used in an article) by a different arbitrary ordering (by the point where a specific reference is first used, and these are then sorted by where the specific page number is first used). It is just a new and additional citation style. I don't think the features are "killer" enough to convince the people at FAC to make this the default in less than a decade or two. —Kusma (talk) 18:27, 30 April 2025 (UTC)[reply]
@Kusma I monitor this search, and there are usually half a dozen or so articles per day that exceed the limit and need to be fixed. I'd say that the majority of my edits these days are fixing WP:PEIS errors in mainspace. --Ahecht (TALK
PAGE
)
19:08, 7 May 2025 (UTC)[reply]
@Ahecht, thank you. From a cursory glance, excerpt transclusion and flags seem to be typical culprits, mostly in list-type articles (which I don't interact with much). Are there any where citation templates are a problem? That would be very useful to know for the folks over at Wikipedia_talk:Citing_sources#RFC_on_preferring_templates_in_citations. —Kusma (talk) 19:49, 7 May 2025 (UTC)[reply]
@Kusma Sure, there are lots of longer pages where a majority of the post-expand include size is citation templates. In many of these cases this could be fixed by using {{#invoke:cite|web}} in place of {{cite web}} (the former has half the include size of the latter), but that's usually a last resort since it makes the source "ugly". Usually, if an article has so many citations that the citation templates are the problem (and we're often talking close to 1,000 citations), it's time to split the article anyway. --Ahecht (TALK
PAGE
)
21:22, 7 May 2025 (UTC)[reply]

We will be enabling the new Charts extension on your wiki soon!

(Apologies for posting in English)

Hi all! We have good news to share regarding the ongoing problem with graphs and charts affecting all wikis that use them.

As you probably know, the old Graph extension was disabled in 2023 due to security reasons. We’ve worked in these two years to find a solution that could replace the old extension, and provide a safer and better solution to users who wanted to showcase graphs and charts in their articles. We therefore developed the Charts extension, which will be replacing the old Graph extension and potentially also the EasyTimeline extension.

After successfully deploying the extension on Italian, Swedish, and Hebrew Wikipedia, as well as on MediaWiki.org, as part of a pilot phase, we are now happy to announce that we are moving forward with the next phase of deployment, which will also include your wiki.

The deployment will happen in batches, and will start from May 6. Please, consult our page on MediaWiki.org to discover when the new Charts extension will be deployed on your wiki. You can also consult the documentation about the extension on MediaWiki.org.

If you have questions, need clarifications, or just want to express your opinion about it, please refer to the project’s talk page on Mediawiki.org, or ping me directly under this thread. If you encounter issues using Charts once it gets enabled on your wiki, please report it on the talk page or at Phabricator.

Thank you in advance! -- User:Sannita (WMF) (talk) 15:06, 6 May 2025 (UTC)[reply]

Saving y'all a click: enwiki is May 20-22, 2025. --PresN 15:25, 6 May 2025 (UTC)[reply]
For a quick look at a bar chart as deployed on Italian Wikipedia see w:it:Kirovo-Čepeck. William Avery (talk) 07:17, 7 May 2025 (UTC)[reply]
Takes awhile to load, but good to see it working. CMD (talk) 07:40, 7 May 2025 (UTC)[reply]
Except for the fact that it pushes the content down when it's within the length of the infobox. It's also way to high. 12.172.251.103 (talk) 11:47, 8 May 2025 (UTC)[reply]
I'm running on the assumption it's configurable enough to not take up the entire page width each use. CMD (talk) 11:50, 8 May 2025 (UTC)[reply]
Not there yet. See T376845. William Avery (talk) 12:45, 10 May 2025 (UTC)[reply]
Sannita (WMF) Does it support horizontal bars? During the outage, I tinkered with a stopgap replacement that is template-based, and uses horizontal bars. For example, on Talk- or other non-mainspace pages, horizontal bars would permit the use of timeline-based charts that grows vertically downward as the timeline period is longer, unlike wit vertical bars which get thinner and thinner until they are squished into lines or become merged if too long a period is specified, unless averaging is introduced, which loses some detail and may hide sudden peaks. Meanwhile, the entire chart can be collapsed so it takes almost no vertical space on the Talk page except for the header. I am thinking in particular of the old, {{pageviews}} template often used among the headers of Talk pages, and disabled during the outage. Is there an option for a horizontal chart in the new extension? For some examples of horizontal pageviews from the temporary {{Xreadership}} template implemented as a stopgap during the outage, see Talk:Houthis, Talk:Same-sex marriage, or Talk:Pokémon. Thanks, Mathglot (talk) 21:26, 10 May 2025 (UTC)[reply]

Hello. For some reason, the mobile search bar seems to be having issues with some pages, where it refuses to show them as a partial title match. It seems completely random which pages are affected, but try typing Kirby and the Forgotten Land or Georgette Heyer into the search bar and you will see what I mean. This issue affects both desktop and mobile. The weirdest part is that not every page is affected, only some. If anybody knows what is causing this, please let me know. Thanks, QuicoleJR (talk) 17:12, 7 May 2025 (UTC)[reply]

I've also noticed this. For some reason, it seems that search is currently not working correctly. Lovelyfurball (talk) 17:14, 7 May 2025 (UTC)[reply]
It also is an issue on the desktop with the legacy 2010 skin. - Favre1fan93 (talk) 19:49, 7 May 2025 (UTC)[reply]
me to if you search like macos 10.9-15 the versions wont show up 50.209.62.201 (talk) 20:19, 7 May 2025 (UTC)[reply]
“partial” ye more like completely inaccurate i get 2005 page search results when i look up 2025 2601:586:4600:58B0:D874:DC52:810D:1C3C (talk) 21:25, 7 May 2025 (UTC)[reply]
Wikidata weirdness
...is it possible that this is somehow related to the search/selection dropdowns on Wikidata being...discolored (in MonoBook)? - The Bushranger One ping only 21:08, 7 May 2025 (UTC)[reply]
My suspicion: WP:ITSTHURSDAY. --Redrose64 🌹 (talk) 22:35, 7 May 2025 (UTC)[reply]
I have had difficulty in searching for Second presidency of Donald Trump, Kash Patel, and United States Secretary of Health and Human Services, though I was able to populate the last page just by searching "United States Secretary of Health", a redirect. elijahpepe@wikipedia (he/him) 22:40, 7 May 2025 (UTC)[reply]
Been having this issue today as well. On mobile and desktop. Skyversay (talk) 02:59, 8 May 2025 (UTC)[reply]
Seems to be about half of all articles:
Extended content
(async function() {
	let list = "", random = (await $.get('https://en.wikipedia.org/w/api.php?action=query&format=json&list=random&rnlimit=25&rnnamespace=0')).query.random;
  
 	for (let r of random) {
	  let result = await $.get(`https://en.wikipedia.org/w/rest.php/v1/search/title?q=${ encodeURIComponent(r.title.slice(0, -1))}&limit=100`);
    list += `${r.id} ${r.title}: ${result.pages.map(s => s.id).includes(r.id) ? "FOUND" : "MISSING"}\n`;
   }
	console.log(list);
})()
20711499 Big Daddy G: FOUND
23148143 List of Salyut expeditions: FOUND
63868331 Sinicia gens: MISSING
1517496 Blessed Sacrament Catholic Church (Ottawa): FOUND
61762773 Francesco d'Errico: MISSING
40368221 Dasht-e Ahmad: MISSING
1806748 Doumbi Fakoly: FOUND
57248169 Thomas Kavali: MISSING
14070558 Celtic academy: FOUND
63368386 Árpád Érsek: MISSING
27371437 Antliff: FOUND
10393060 Paul Masnick: FOUND
43161650 Squash at the 2014 Commonwealth Games – Women's doubles: MISSING
20474762 Ponca Reservation: FOUND
17987330 Qiu Fazu: FOUND
15262879 Diocese of Killala: FOUND
7246021 Star-Spangled Banner (flag): MISSING
30371379 Amasa Day House: FOUND
9930252 Iosif Chișinevschi: MISSING
2011429 Wafangdian: FOUND
4302235 Lillias Hamilton: MISSING
67844683 Tachidiidae: MISSING
57345495 Ceraticelus bulbosus: MISSING
40275632 Blacksburg Historic District: MISSING
40898555 Djiboutian art: MISSING
Suffusion of Yellow (talk) 03:17, 8 May 2025 (UTC)[reply]
I filed T393663 about this now. Matma Rex talk 03:44, 8 May 2025 (UTC)[reply]
The issue seems to have been resolved. QuicoleJR (talk) 13:17, 8 May 2025 (UTC)[reply]

Neither id nor anchor worked properly inside table

Please see Template talk:Anchor#neither id nor anchor worked properly in one case. --Altenmann >talk 21:24, 7 May 2025 (UTC)[reply]

XTools error

I've tried logging in again but the error message persists. Achmad Rachmani (talk) 12:22, 8 May 2025 (UTC)[reply]

Seems to be a problem on their end. A bug, phab:T393703 is open on this. — xaosflux Talk 13:14, 8 May 2025 (UTC)[reply]
See also phab:T393520. Achmad Rachmani (talk) 14:38, 8 May 2025 (UTC)[reply]
Fixed! My apologies for the disruption. MusikAnimal talk 19:53, 8 May 2025 (UTC)[reply]

New user's userspace caught in title blacklist

So, I recently found that a new user's talk page: User talk:Epic failure72 is caught in Mediawiki:Titleblacklist due to .*Epic fail.* in it, meaning that they won't be able to create pages in their own userspace and user talk space. I believe that the blacklisted title should also blacklist usernames automatically, or there should be a way to exempt users from titleblacklist within their own userspace. Thanks! CX Zoom[he/him] (let's talk • {C•X}) 12:05, 9 May 2025 (UTC)[reply]

@CX Zoom, AFAIK username blacklisting works via m:Title blacklist only. —Kusma (talk) 12:30, 9 May 2025 (UTC)[reply]
Yes, just those in the title blacklist at Meta. Those that are in the local blacklist prevent page creation but do not prevent username creation. CX Zoom[he/him] (let's talk • {C•X}) 13:57, 9 May 2025 (UTC)[reply]
Suppose they could ask for an override in MediaWiki:Titlewhitelist for the more specific username + wildcard. 14:06, 9 May 2025 (UTC) — xaosflux Talk 14:06, 9 May 2025 (UTC)[reply]
Makes sense. Thanks! CX Zoom[he/him] (let's talk • {C•X}) 09:05, 10 May 2025 (UTC)[reply]
Since SUL, the local title blacklist can't block account creation, because someone could easily get around it by creating their account on Meta. The only other way for it to possibly work would be for all 800-some active projects' blacklists to apply, which would be challenging to check for every creation. Anomie 22:47, 9 May 2025 (UTC)[reply]

Is this a potential security risk?

Hello. I have thought of this hypothetical scenario:

  1. Example Jr makes a user script, User:Example Jr/script.js.
  2. Other users import the script with importScript('User:Example Jr/script.js');.
  3. Example Jr changes their username to Example Sr.
  4. A bad actor creates an account with the now available username Example Jr.
  5. That bad actor, now able to edit User:Example Jr/script.js, places whatever code they wish to steal accounts, cause mass vandalism (if the script is widely used), etc.

Can this happen? Or do I not understand? I know that the page would be moved (because of the name change) but they could remove the redirect.  loserhead (talk 16:26, 9 May 2025 (UTC)[reply]

@Loserhead for WMF wikis at least, ordinary users should not be able to create new accounts with the now vacated username. A "bad actor" as described in step 4 would be a trusted user in one of the many Foundation wikis (holding the override-antispoof userright). – robertsky (talk) 16:41, 9 May 2025 (UTC)[reply]
@Robertsky Thanks for clearing that up.  loserhead (talk 17:30, 9 May 2025 (UTC)[reply]
Redirects do not work in Javascript pages, so when a javascript page is moved, no redir is created. --Redrose64 🌹 (talk) 20:24, 9 May 2025 (UTC)[reply]
@Redrose64 That is not correct, they do and it is. They use a different format from wikitext redirects. Matma Rex talk 21:40, 9 May 2025 (UTC)[reply]
You mean like User:Serial Number 54129/common.js? That's just a normal line of Javascript that uses the mw.loader.load() function to pull in another JavaScript page. --Redrose64 🌹 (talk) 22:34, 9 May 2025 (UTC)[reply]
Yes, it's valid JavaScript. But it's also recognized as a redirect by the software, as illustrated by the fact that you had to use {{-r}} to link directly to it. CSS pages work similarly with a specially marked @import, and Lua modules with return require. Anomie 22:51, 9 May 2025 (UTC)[reply]
It is a redirect, otherwise you wouldn't have to use a link with redirect=no to link to it :) Its "Page information" also states this clearly. Matma Rex talk 22:52, 9 May 2025 (UTC)[reply]
The relevant change for Javascript pages was phab:T73200. Izno (talk) 01:20, 10 May 2025 (UTC)[reply]

Can the template list be closed by default in the editing window?

Note: Actually, it is just after the edit window, and is labeled "Templates used in this preview".

It is really annoying to have to scroll by a huge list of templates (especially in country list articles) before I can see changes, or see the full preview.

I know I could close the list but I often forget to do so before scrolling past the point I can easily do so. --Timeshifter (talk) 01:40, 10 May 2025 (UTC)[reply]

Not by default afaik, but there's a keyboard shortcut for folding. (I only discovered it a few weeks ago, and it blew my mind!) -- Avocado (talk) 14:41, 10 May 2025 (UTC)[reply]
@Avocado: It isn't working for me. See:
List of countries by intentional homicide rate#By country, region, or dependent territory
Mediawiki remembers whether the template list was collapsed or not from before. Most of the time though I don't pay attention because I am not on country list pages, and the template list is much shorter. And I may have looked for some template on that short list.
But then I happen to be working on a country list page, and have this problem. I would like some CSS to keep the template list closed by default regardless of my last use of it. --Timeshifter (talk) 17:58, 10 May 2025 (UTC)[reply]
Yeah, the keyboard shortcut isn't sticky. Fwiw, I don't think this is something you can do with CSS, but there might be a javascript solution. Afraid I'm not personally familiar enough with the editor to make any specific suggestions for that, tho. -- Avocado (talk) 18:59, 10 May 2025 (UTC)[reply]
The keyboard shortcut is not working for me at all on Firefox on Win 10 Pro.
Javascript is fine too. --Timeshifter (talk) 19:35, 10 May 2025 (UTC)[reply]
It works for me in Firefox on Mac -- or at least, the "fold all"/"unfold all" ones do. You do have to click into the edit box first, which sometimes gets me. (And this is in the 2010 source editor, fwiw, with syntax highlighting enabled.) -- Avocado (talk) 23:19, 10 May 2025 (UTC)[reply]

I see the problem. We are talking about 2 different things. You are talking about within the edit window.

I am talking about the template dropdown list after the edit window labeled "Templates used in this preview". I added a note at the top of the thread. --Timeshifter (talk) 23:38, 10 May 2025 (UTC)[reply]

Oh! Sorry for not reading closely! -- Avocado (talk) 00:03, 11 May 2025 (UTC)[reply]
The "Templates used in this preview" list, and the other collapsible lists below the edit form, should remember their state. If you collapse it, then it should start off collapsed the next time you open the editor. Matma Rex talk 00:07, 11 May 2025 (UTC)[reply]
Timeshifter knows that. They wrote I would like some CSS to keep the template list closed by default regardless of my last use of it., so what they want is for the collapse state to be forgotten, and re-initialised to collapsed. The related HTML is
<div class="templatesUsed">
  <div class="mw-templatesUsedExplanation mw-editfooter-toggler mw-editfooter-toggler-collapsed" ...>
    ...
  </div>
  <ul class="mw-editfooter-list mw-collapsible mw-made-collapsible mw-collapsed" style="display: none;">
    ...
  </ul>
</div>
when collapsed, and
<div class="templatesUsed">
  <div class="mw-templatesUsedExplanation mw-editfooter-toggler" ...>
    ...
  </div>
  <ul class="mw-editfooter-list mw-collapsible mw-made-collapsible" style="">
    ...
  </ul>
</div>
when uncollapsed. There's an associated CSS rule:
[dir="ltr"] .mw-editfooter-toggler-collapsed.mw-editfooter-toggler::before {
  transform: rotate(-90deg);
}
which makes the triangles point to the right when the list is collapsed. Collapsing and uncollapsing are done by means of some JavaScript, which:
  • if the current state is collapsed: removes the mw-editfooter-toggler-collapsed and mw-collapsed classes, and also removes the display: none; declaration
  • if the current state is uncollapsed: restores the mw-editfooter-toggler-collapsed and mw-collapsed classes, and also restores the display: none; declaration
The presence or absence of the mw-editfooter-toggler-collapsed class determines whether the triangle points right or down.
The presence or absence of the display: none; declaration declaration determines whether the list is hidden or visible.
I can write a CSS rule (or two) which will make the list start off collapsed, but the collapsing would then be permanent; I think that JavaScript is required to then make it uncollapsed on click. --Redrose64 🌹 (talk) 10:42, 11 May 2025 (UTC)[reply]
If you can get it to always be collapsed when I load, reload, or save a page that would be great. But I want to be able to manually open the list. I'll use whatever works that I can add to my user CSS and user JS. --Timeshifter (talk) 18:18, 11 May 2025 (UTC)[reply]
Oh, sorry I misread that. You could do this in your user JS:
localStorage.setItem('mwedit-state-templatesUsed', '0');
This will change the remembered state of the list to be collapsed whenever you load a page. Matma Rex talk 19:54, 11 May 2025 (UTC)[reply]
Thanks! It works. Others may be interested. If so, add it here:
Special:MyPage/common.js
I see you are a mediawiki developer. Maybe this option can be added here:
Special:Preferences#mw-prefsection-editing
--Timeshifter (talk) 00:41, 12 May 2025 (UTC)[reply]

Can't SSH to my Toolforge account

I'm running a bot on Toolforge, but suddenly I can't SSH into login.toolforge.org any longer. The issue persists even after generating a new key and registering it to my developer account.

debug1: Server accepts key: [EMAIL REDACTED] ED25519 SHA256:[KEY REDACTED] agent
debug3: sign_and_send_pubkey: using publickey-hostbound-v00@openssh.com with ED25519 SHA256:[KEY REDACTED]
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:[KEY REDACTED]
debug3: send packet: type 50
Connection closed by 185.15.56.62 port 22

The server accepts the key, but then immediately closes the connection. Has anyone else experienced this or know what might be going on? Dragoniez (talk) 07:15, 10 May 2025 (UTC)[reply]

Never mind, I didn't do anything but it's working again now. Maybe the system was down? We never know. Dragoniez (talk) 08:27, 10 May 2025 (UTC)[reply]
See phab:T393732. — Alien  3
3 3
15:03, 10 May 2025 (UTC)[reply]

Noladeti Lashalom needs to be linked to this Hebrew article. I can't do it through wikidata since I am VPN-locked. Can someone do it for me? thanks Someonefighter (talk) 08:59, 10 May 2025 (UTC)[reply]

@Someonefighter don't worry about the language links in the future. New articles are usually picked up quite fast by bots and editors on wikidata side. If it is still an issue editing on wikidata for you, you might want to apply for WP:IPBE there. – robertsky (talk) 09:16, 10 May 2025 (UTC)[reply]
Thank you! If it becomes an issue again, I will apply for WP:IPBE there too Someonefighter (talk) 09:37, 10 May 2025 (UTC)[reply]

How can I use different colors in light theme and dark theme?

Some wikis support using different colors in light theme and dark theme. Is this feature currently supported in English Wikipedia, or not yet? Upset New Bird (talk) 12:00, 10 May 2025 (UTC)[reply]

Generally, to make it easier for different skins to configure appropriate colours, it's best to use a colour from the standard set of colours. See :mw:Recommendations for night mode compatibility on Wikimedia wikis § Use CSS variables or CSS design tokens with fallback for background and text where possible. That page also provides instructions on how to write style rules to choose different colours based on dark or light mode, but using the standard colours will leverage the work being done by others to ensure that the standard palette is accessible and matches the skin in use. isaacl (talk) 14:28, 10 May 2025 (UTC)[reply]
See also: Help:Table/Advanced#Colors in tables. Feel free to update that section, and its subsections. --Timeshifter (talk) 18:06, 10 May 2025 (UTC)[reply]
@Isaacl, @Timeshifter: For example, I mean how to show the colors "white", "yellow", "purple", "red", "black" and "gray" in light mode as "black", "blue", "#80FF80", "cyan", "white", and "gray" in dark mode. Upset New Bird (talk) 00:07, 11 May 2025 (UTC)[reply]
There's no simple way to shift specific colours to different colours. The link I provided has a link to a page listing the standard set of colours, named by their role in the user interface design. You can redefine the corresponding custom CSS properties to different colour values, but you'll have to be comfortable with writing CSS to do that. isaacl (talk) 02:32, 11 May 2025 (UTC)[reply]
@Isaacl: I found the way to do so! See [4]. Upset New Bird (talk) 03:40, 11 May 2025 (UTC)[reply]
Thanks for making me aware of the light-dark() feature, first deployed by browsers in 2024. I'm not sure what your planned usage is, though. If you're using it in text you're writing, for example, then using light-dark() will ignore the user's light/dark mode Wikipedia setting in favour of the user's setting in the browser/OS. It also will only work with newer browsers. The page to which I linked explains how to write CSS rules that will follow the user's light/dark mode Wikipedia settings, including if they configure it to follow the browser/OS setting. isaacl (talk) 04:23, 11 May 2025 (UTC)[reply]
@Isaacl: Note that the "light-dark()" feature I used works in light/dark mode in English Wikipedia itself. Upset New Bird (talk) 06:58, 11 May 2025 (UTC)[reply]
Clearly there's some subtleties in the dark mode implementation that I don't know about... The other issues I described remain. What is your intended usage? isaacl (talk) 08:41, 11 May 2025 (UTC)[reply]
@Isaacl: My purpose is in order to optimize the table both in light mode and dark mode. Is it odd? Upset New Bird (talk) 08:45, 11 May 2025 (UTC)[reply]
The light-dark() function is quite new, it was added to CSS Color Module Level 5 with the 29 February 2024 revision. Since this doc is a W3C Working Draft, it should not be relied upon. To those sceptics who have told me in the past that W3C Working Drafts will eventually make it to W3C Recommendation, please note that the color-contrast() function, which was last described in the 28 April 2022 revision, has since been dropped. --Redrose64 🌹 (talk) 11:59, 11 May 2025 (UTC)[reply]
@Redrose64: It seems that English Wikipedia supports "light-dark()" function, but does not support "color-contrast()" function. This table shows different colors by the user's color mode (light or dark). [5] Upset New Bird (talk) 01:01, 12 May 2025 (UTC)[reply]
Support for light-dark() and color-contrast() is nothing to do with Wikipedia, it's entirely in your browser. If your browser doesn't support color-contrast(), that does not surprise me, as it was removed from the CSS Color Module Level 5 spec, which as I already mentioned, is a draft and subject to amendment. --Redrose64 🌹 (talk) 16:02, 12 May 2025 (UTC)[reply]
Are you referring to a specific table? For tables in general, I think it's better to just use colours from the standard set. The actual colours used in light and dark modes will be centrally maintained, and can be adjusted by skins. isaacl (talk) 14:30, 11 May 2025 (UTC)[reply]
@Isaacl: What I mean is to make it easier to view tables in dark mode. Upset New Bird (talk) 01:35, 12 May 2025 (UTC)[reply]
I don't understand what is the current problem with tables in dark mode, or why any issues can't be handled by using the standard set of colours. isaacl (talk) 04:35, 12 May 2025 (UTC)[reply]

Note: The "light-dark()" feature is now available in all three major browser engines, and becomes Baseline Newly available as of 13th May 2024. See [6]. Upset New Bird (talk) 02:48, 12 May 2025 (UTC)[reply]

AIUI, light-dark is insufficient to support all display modes on Wikipedia. There is "light mode", "dark mode", and "OS mode" here. light-dark meaningfully supports only the last of the three. Izno (talk) 03:03, 12 May 2025 (UTC)[reply]
light-dark() reacts to the color-scheme property that is set by the dark mode toggle, so it should work also for "forced" light and dark mode. hgzh 08:56, 12 May 2025 (UTC)[reply]

Trying to balance the party colours in this template I am creating

Hello, with the 2025 Australian Senate Election results currently being counted I am creating this template to create a new standard for Joint Tickets in the senates results. Currently they are raw modified tables in the results at the New South Wales and Victoria bits (look for the joint tickets involving HEART, People First and Libertarians), and on the pages there the 3 colours are balanced. I am trying to replicate this with the template to replace the need for modifying the table directly but it isn't working properly and I have no idea how to get the 3 colours to balance. The documentation provides an example from the NSW results of that election. Any tips or help on how I can get these colours to be balanced? Thanks in advance! Comfisofa (talk) 11:41, 11 May 2025 (UTC)[reply]

 Fixed and added a comment to help future editors understand why the template is written the way that I just did. CX Zoom[he/him] (let's talk • {C•X}) 12:59, 12 May 2025 (UTC)[reply]
Incredibly thankful for this! Truly a life saver! Comfisofa (talk) 13:33, 12 May 2025 (UTC)[reply]

Is incategory searching broken?

When I'm doing WP:DRAFTNOCAT/WP:USERNOCAT cleanup, because Category:Living people is massive (thus impossible to search manually) and collects new draft and user sandbox pages daily instead of once in a blue moon, I do an incategory search on it a few times a day instead of only dealing with it when the weekly reports run. I've noticed that for several weeks now that after getting a draft or user page out of the category there's been a lag before the page would actually drop out on refreshing the search — in the past a page would typically drop out close to instantly in some cases, and within 30 seconds to one minute in others, but for several weeks now it's taken more like 10 to 15 minutes before a page would drop.

Today, however, all of the draft/user pages that were in the category this morning still haven't dropped out more than two hours after being removed. So I wanted to ask, is there something wrong with incategory searching all of a sudden? Bearcat (talk) 15:39, 12 May 2025 (UTC)[reply]

Thanks for noticing, indeed the indexing pipeline got stuck today around 13:30 UTC and no updates were being processed. It failed very early in the bootup process which didn't trigger our typical alerts. New alerts have been added, and that system has been restarted and is now processing edits again. most of the pages in the example have cleared out, the rest of the backlog should finish soon.
As to the update latency, around 5 minutes is the expected minimum latency for edits to make it into search today. Somewhere between 5 and 8 is probably most typical. That was indeed on a 30s cycle previously, but the update pipeline had to change to include asynchronously generated information (such as article topic predictions) which pushed the minimum update time to around 5 minutes.
EBernhardson (WMF) (talk) 16:55, 12 May 2025 (UTC)[reply]
Thanks for figuring this out so quickly. No worries on the five to ten minute drop time — it is a minor hassle when I'm doing draft/user nocat cleanup, because I have no way to distinguish "page that just hasn't dropped yet" from "the creator added the categories back again one minute after I removed them" or "I actually missed a category the previous time" without checking the page a second or third time, but all things considered if that's the worst thing that happens to me all day it isn't that big a deal. So if there's a clear reason for it, it's a thing I can continue to live with — but obviously pages not dropping hours later was something weird, so thanks for resolving it. Bearcat (talk) 20:17, 12 May 2025 (UTC)[reply]

Viewing watchlist by date added?

I'm familiar with the Raw Watchlist view, but that's alphabetical. Is there any way to get a listing of all articles on one's own watchlist, ordered by date added? -- Avocado (talk) 21:35, 12 May 2025 (UTC)[reply]

No. --Redrose64 🌹 (talk) 22:31, 12 May 2025 (UTC)[reply]

Tech News: 2025-20

MediaWiki message delivery 22:34, 12 May 2025 (UTC)[reply]