Wikipedia:Village pump (technical)
Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
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.
Frequently asked questions (see also: Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
How do I transfer Google authenticator from one Samsung phone to another?
editI use it for 2FA on my account. Thanks. Doug Weller talk 07:33, 18 August 2025 (UTC)
- I guess you have already installed the app on your new phone. On your old phone, open the app, tap the three-dot menu, and select Transfer accounts, then choose Export accounts. Select the accounts you want and a QR code will appear. On your new phone, open the app, choose Import accounts, then Scan QR code, and scan the code from your old phone. Your accounts will be copied over, and you should keep your old phone until you have confirmed that everything is working correctly. – DreamRimmer ■ 07:46, 18 August 2025 (UTC)
- @DreamRimmer Sounds good. I've no plans to get rid of my old phone in any caee. Doug Weller talk 14:05, 18 August 2025 (UTC)
- @DreamRimmer,
you should keep your old phone until you have confirmed that everything is working correctly
Better yet, make sure you know where the printout of your recovery codes is and verify it hasn't faded. — Alexis Jazz (talk or ping me) 16:17, 18 August 2025 (UTC)
- Another way is to disable 2FA when on the old phone, and then re-enroll with the new phone. This does require that you are still eligible for 2FA however (different groups have different eligibility). As you are still an oversighter, you should still be eligible. —TheDJ (talk • contribs) 08:54, 18 August 2025 (UTC)
- @TheDJ Thanks. Forgot about eligibility! I think all Admins should be required to have 2FA. Doug Weller talk 14:05, 18 August 2025 (UTC)
- Global requirements are slowly increasing over time. There are some sensitive groups that we require to have 2FA, and some that their tools become disabled when 2FA isn't set up now. — xaosflux Talk 14:09, 18 August 2025 (UTC)
- I think there needs to be a better recovery system other than "have a database admin manually flip the 2FA bit" before it's made mandatory for a larger group of editors. --Ahecht (TALK
PAGE) 19:42, 25 August 2025 (UTC)- What's the procedure if your phone is lost or damaged? Hawkeye7 (discuss) 21:24, 27 August 2025 (UTC)
- @TheDJ Thanks. Forgot about eligibility! I think all Admins should be required to have 2FA. Doug Weller talk 14:05, 18 August 2025 (UTC)
Turns out I didn't have to do anything. When I transferred my apps with Samsung Smartswitch it worked on the new phone. Doug Weller talk 14:24, 21 August 2025 (UTC)
Tech News: 2025-34
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Updates for editors
- Later this week, people who are logged-in and have the "Discussion tools" Beta Feature enabled will gain the ability to "Thank" individual comments directly from talk pages, rather than needing to navigate to page history. Learn more about this feature. [1]
- An A/B test comparing two versions of the desktop donate link launched on testwiki on 12 August and on English Wikipedia 14 August for 0.1% of logged out users on the desktop site. The experiment will run for three weeks, ending on 12 September. [2]
- An A/A test to measure the baseline for reader retention was launched 12 August using Experimentation Lab. This measures the percentage of users who revisit a wiki after their initial visit over a 14-day period. No visual changes are expected. The experiment will run through 31 August. [3]
- Five new wikis have been created:
- View all 46 community-submitted tasks that were resolved last week.
Updates for technical contributors
- Detailed code updates later this week: MediaWiki
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 00:33, 19 August 2025 (UTC)
- Looks like it would use the m:Incident Reporting System. – SD0001 (talk) 13:29, 19 August 2025 (UTC)
- Yes, that's what's going on with that link. Izno (talk) 19:43, 19 August 2025 (UTC)
- Yeah, that screenshot is from ptwiki, where we had already been testing that feature out. If you're curious to see more about it, it's also on testwiki.
- We released Thanks there first (without the beta feature), because it already had the overflow menu present for Report and the editors were thus used to an extra button being present. DLynch (WMF) (talk) 20:16, 21 August 2025 (UTC)
- I do have to say, the single-item overflow menu just for "Thank" is a bit goofy, but it will make more sense once "Report" is rolled out. --Ahecht (TALK
PAGE) 13:52, 26 August 2025 (UTC)
- I do have to say, the single-item overflow menu just for "Thank" is a bit goofy, but it will make more sense once "Report" is rolled out. --Ahecht (TALK
- What Report does and when it should be used seems unclear to the casual visitor. I suspect most of its clicks will accidentally escalate minor matters which are best dealt with by local admins. Certes (talk) 22:48, 26 August 2025 (UTC)
- @Certes From what I've seen, "Report" will first ask if it is an immediate threat of physical harm (which gets reported to T&S), and otherwise just shows an info page that's basically a summary of Wikipedia:Dispute resolution. --Ahecht (TALK
PAGE) 17:53, 29 August 2025 (UTC)
- @Certes From what I've seen, "Report" will first ask if it is an immediate threat of physical harm (which gets reported to T&S), and otherwise just shows an info page that's basically a summary of Wikipedia:Dispute resolution. --Ahecht (TALK
- Looks like it would use the m:Incident Reporting System. – SD0001 (talk) 13:29, 19 August 2025 (UTC)
CSS / dark mode images
editOK, so the image at right in "light mode", renders correctly. When you switch it to "dark mode", the colors become a bit de-saturated, this is especially obvious in the reds. I initially thought this was an optical illusion, but confirmed it by inspecting the element in Firefox's DOM/style inspector. The guilty CSS for handling dark mode appears to be this CSS:
html, html img:not(.mw-invert), html video:not(.mw-invert), html ogvjs:not(.mw-invert), html svg:not(.mw-invert), html iframe:not(.mw-invert), html .mw-no-invert, html .cdx-no-invert, html td .diffchange, html .wvui-typeahead-suggestion__thumbnail, html .skin-minerva .mw-notification-visible .mw-notification-content, html .oo-ui-searchWidget-results .oo-ui-iconElement-icon, html .list-thumb, html .media-viewer .image img, html .media-viewer .mw-file-description img {
filter: invert(1) hue-rotate(180deg);
}
If I remove the hue-rotate(180deg)
the image renders correctly, however, the other colors on the page do not. I initially thought it might be possible to override the filter property on just the image element, but this does not appear to work. I know there's a CSS class, .mw-no-invert
, but this seems to have the effect of inverting the image (see other example at right).
Is there some way to prevent the images from being inverted selectively that I've missed? —Locke Cole • t • c 03:38, 22 August 2025 (UTC)
- That doesn't seem right. Please report it as a bug in Phabricator. —TheDJ (talk • contribs) 07:48, 22 August 2025 (UTC)
- It's because you're using the deprecated WP:Dark mode (gadget) instead of vector-2022's dark mode. The above CSS is defined locally (see MediaWiki:Gadget-dark-mode.css) so a phab report wouldn't help. – SD0001 (talk) 08:25, 22 August 2025 (UTC)
- That got it. Oddly I disabled the dark mode gadget in preferences, hit save, then went to appearance and chose vector-2022, hit save and came back and the issue was still present. Went into the appearance widget in vector-2022 and dark/light mode were disabled, saying the gadget was still active, helpfully it had a button to disable it and that finally got it working.
- Still not a huge fan of vector-2022, but I guess if I want a functional dark mode, this is my only choice. —Locke Cole • t • c 15:39, 22 August 2025 (UTC)
Still not a huge fan of vector-2022
- Same. I much prefer the gadget version + skin:Minerva Neue, it looks nicer on smartphone, even while viewing desktop pages without even enabling the browser's desktop mode. The downsides are that there are templates where it doesn't work[a] (usually the underused/undocumented ones), and certain images need to have |class=skin-invert in their source code to be visible; and also, of course, the one you posted above. I don't like that the default Dark Mode (Vector 2022) keeps the background white for certain transparent images.
Notes
- ^ example: the older version of {{Periodic table (by nutritional elements)}} before August 16, 2025
CheckNineEight (talk) 11:55, 29 August 2025 (UTC)
- If the gadget is deprecated and the vector2022 dark mode is preferred one for vector 2022, is it possible to disable the gadget from running if the skin is vector 2022? – robertsky (talk) 17:14, 22 August 2025 (UTC)
- We can remove it from the options. I am fairly certain that does not remove it from the selection people will have made in their preferences, but I am not totally certain.
- I do not know about the word deprecated myself. Izno (talk) 19:44, 22 August 2025 (UTC)
- Yeah, I don't know that deprecated is the right word. It currently says not recommended, which makes sense, but if you want to use a non-vector 2022 skin, I think that gadget is the only thing that enables a dark mode option. —Locke Cole • t • c 19:51, 22 August 2025 (UTC)
- Like I said, 'if the skin is vector 2022'. Have additional codes or something to detect if current skin used is v22 and either direct the user to enable the darkmode option in their preferences or enable that for them instead of allowing the css to load. It shouldnt impact on the other skins until they get dark mode support... if ever. – robertsky (talk) 05:53, 24 August 2025 (UTC)
- Vector 2022 already disables its own dark mode if you have the dark mode gadget on. Nardog (talk) 06:37, 24 August 2025 (UTC)
- Like I said, 'if the skin is vector 2022'. Have additional codes or something to detect if current skin used is v22 and either direct the user to enable the darkmode option in their preferences or enable that for them instead of allowing the css to load. It shouldnt impact on the other skins until they get dark mode support... if ever. – robertsky (talk) 05:53, 24 August 2025 (UTC)
- If the gadget is deprecated and the vector2022 dark mode is preferred one for vector 2022, is it possible to disable the gadget from running if the skin is vector 2022? – robertsky (talk) 17:14, 22 August 2025 (UTC)
Vector 2022 TOC is still needlessly disabled on most lists
editHi, as you know the Vector 2022 skin has the TOC on the sidebar, which is no longer inserted inside articles. However, it seems most TOC templates (such as {{Compact TOC}}) automatically hide the TOC, and other pages manually hide it by using the _NOTOC_ magic word. This makes browsing lists much harder. Since it could be argued that alphabetical lists are the kind of pages where having a TOC is most important, why haven't the TOC templates and specific list pages been updated?
Just as an example, compare Glossary of nautical terms (A–L) with Glossary of nautical terms (M–Z). (Here, the TOC is disabled by the wikitext of the page). FaviFake (talk) 14:58, 22 August 2025 (UTC)
- What is the technical question here? That a TOC is hidden when editors have asked for it to be hidden is expected. — xaosflux Talk 15:06, 22 August 2025 (UTC)
Since it could be argued that alphabetical lists are the kind of pages where having a TOC is most important, why haven't the TOC templates and specific lists been updated?
- I guess my question is "shouldn't we check the NOTOC pages (or use a bot or script to do that) and correct the outdated templates/magic words that cause the TOC to not appear?" FaviFake (talk) 15:31, 22 August 2025 (UTC)
- It would probably be nice to not break things for people who use skins other than Vector 2022, however, so it's likely not that simple. Anomie⚔ 17:26, 22 August 2025 (UTC)
- Yup! This is one of the reason I asked here before doing anything :) I had suspected that would be a problem. I'd like to find a solution to this problem that hopefolly works for everyone. FaviFake (talk) 17:29, 22 August 2025 (UTC)
- There is discussion at phab:T317818#8778839. de:Vorlage:Nummer-eins-TOC (example) uses
<div style="display:none">__TOC__</div>
instead of__NOTOC__
to hide the MediaWiki TOC inside the page in all skins but allow it in the Vector 2022 sidebar. PrimeHunter (talk) 19:27, 22 August 2025 (UTC)- Oh, that's smart! I don't see any drawbacks. What would it take for all templates and pages using NOTOC to start using that method instead?
- Maybe we could create a template that just contains
<div style="display:none">__TOC__</div>
and replace every NOTOC with it. It could be called {{hit}} (hide inline toc). Thoughts? FaviFake (talk) 09:41, 23 August 2025 (UTC)- The trend over the past several years would prefer the template be named like {{hide inline toc}} over an abbreviation like {{hit}}. I'd be wary of blindly replacing all
__NOTOC__
with this template, and if there really aren't ever reasons to hide the TOC in Vector2022 it'd probably be better for devs to remove support for__NOTOC__
from that skin entirely rather than hackily having the TOC be hidden with CSS in all other skins. Anomie⚔ 13:34, 23 August 2025 (UTC)- Yes, of course, i intended {hit} to be a redirect. (But we still haven't renamed ambox...).
- Sure, it would be better for the devs to do something, but it's been two years since this started happening and nothing has changed. in the interim we should try to do something for these poor lists. Also, some very specific pages might still need to hide the TOC, but they're likely very few in comparison to the many article needlessly lacking a sticky TOC. This might make the devs wary of removing the magic word.
- What do you think of creating {{hit}} and letting people manually replace NOTOC on the pages they find, without any bots involved? FaviFake (talk) 13:48, 23 August 2025 (UTC)
- They tried renaming ambox, but it failed for that case.Manual replacement, 🤷. I'd still skip the cryptic redirect name in this case and use the more descriptive name though. And hopefully no one decides to act like an unauthorized bot or a WP:MEATBOT about it. Anomie⚔ 14:02, 23 August 2025 (UTC)
- The trend over the past several years would prefer the template be named like {{hide inline toc}} over an abbreviation like {{hit}}. I'd be wary of blindly replacing all
- Since all non–Vector 2022 ToCs are inside
.mw-parser-output
, you could just have TemplateStyles with#toc { display: none; }
and it would hide the ToC for all non–Vector 2022 skins. Nardog (talk) 16:00, 23 August 2025 (UTC)- I'm not too technical, could you explain what this means? FaviFake (talk) 16:27, 23 August 2025 (UTC)
- Nothing if you don't understand it. I was just suggesting a simpler alternative to PrimeHunter's approach. Nardog (talk) 00:13, 25 August 2025 (UTC)
- Oh ok thanks, I think I get it. FaviFake (talk) 10:49, 25 August 2025 (UTC)
- Many custom TOC's like {{Compact TOC}} add
id="toc"
so it isn't that simple. If duplicate id's are still considered problematic when one of them is indisplay:none
then my approach may also need more work. PrimeHunter (talk) 19:58, 25 August 2025 (UTC)
- Nothing if you don't understand it. I was just suggesting a simpler alternative to PrimeHunter's approach. Nardog (talk) 00:13, 25 August 2025 (UTC)
- I'm not too technical, could you explain what this means? FaviFake (talk) 16:27, 23 August 2025 (UTC)
- There is discussion at phab:T317818#8778839. de:Vorlage:Nummer-eins-TOC (example) uses
- Yup! This is one of the reason I asked here before doing anything :) I had suspected that would be a problem. I'd like to find a solution to this problem that hopefolly works for everyone. FaviFake (talk) 17:29, 22 August 2025 (UTC)
- It would probably be nice to not break things for people who use skins other than Vector 2022, however, so it's likely not that simple. Anomie⚔ 17:26, 22 August 2025 (UTC)
Discussion at meta:Module talk:Message box § c-Waddie96-20250823092200-Edit protected 2025-08-23
edit You are invited to join the discussion at meta:Module talk:Message box § c-Waddie96-20250823092200-Edit protected 2025-08-23. Relating to giving messageboxes/mbox's the role=note
as currently they have the role=presentation
which means the accessibility API in implementing WAI-ARIA just skips past all messagebox content. waddie96 ★ (talk) 09:29, 23 August 2025 (UTC)
- Why are you notifying us of a discussion on Meta? Meta's version of messagebox is independent of enwiki's. * Pppery * it has begun... 21:52, 24 August 2025 (UTC)
- It's more just input on the accessibility part @Pppery as I was unsure if my correction to give mbox role="none" instead of role="presentation" is correct, and also that would affect our version because I'd make an edit request because it's a meta template, and it would of course be most ideal if our mbox met accessibility requirements... waddie96 ★ (talk) 18:20, 25 August 2025 (UTC)
Add topic button shiver
editWhy is Add topic button shiverring and reappearing sometimes while scrolling down or up? This is much more common while scrolling to see content below. It behaves unintuitively. Sometimes, it flashes near plus symbol on the other hand. (mobile view, updated Android Chrome browser more than a week ago to latest version) 5.43.101.148 (talk) 08:26, 25 August 2025 (UTC) [e]
The problem is present especially when scrolling while lower line of text 'Last edited before ... by ...' is visible. --5.43.101.148 (talk) 10:45, 25 August 2025 (UTC)
- It is because of clashing animations. When it is in view, it should always be visible. When it is not in view, and you scroll down, it is not visible, but if you scroll up, it makes itself visible.. When you get to the bottom these commands seem to conflict at times. I have filed the ticket phab:T402798. —TheDJ (talk • contribs) 12:59, 25 August 2025 (UTC)
It is flashing also when click at Edit link from three dots loaded somewhere in the middle, along with loaded text Reply and arrow before that are flashing and are part of same tech feature. --5.43.101.148 (talk) 08:49, 26 August 2025 (UTC)
Reply tool changed IMDb link in unrelated section?
editWhat happened in Special:Diff/1307716563? I made that edit by clicking on the "reply" link after Kusma's signature in Special:Permalink/1307711238. And somehow
[https://www.imdb.com/title/tt12819538/ short]
in an unrelated part of the page was changed to
[[imdbtitle:12819538|short]]
Without my having touched it. RoySmith (talk) 08:57, 25 August 2025 (UTC)
- And reproduced in Special:Diff/1307719925. RoySmith (talk) 09:17, 25 August 2025 (UTC)
- Check your scripts first to see if anything would do something like this, but otherwise I think it's fair to file an upstream for it. Izno (talk) 16:23, 25 August 2025 (UTC)
I came across this page and its page history makes no sense. It is full of seemingly RevDels for the edit summary and a lot of zero byte edits with no diff from the previous edit. I have browsed edits that have had revdel/oversight applied to them on other pages and they don't appear like this, normally it won't let the edit be selected for diff comparison in the history. For example, I haven't seen a diff between consecutive edits like this before where there is (No difference)
. If this is the wrong place for this question or if this is not good for a public forum, please let me know and I'll remove, but what is happening with this page history and is it broken? Casablanca 🪨(T) 16:03, 25 August 2025 (UTC)
- Apparently this is the result of a revdeleted page move. Izno (talk) 16:24, 25 August 2025 (UTC)
- @Casablanca Rock: Yes, the two edits by Milan092 were actually page moves and the following edits reverted the moves so they didn't change the wikitext. The edit summary would have started with "45dogs moved page ...", but the whole edit summary was revisiondeleted. For comparison, here is a normal move without revisiondeletion. PrimeHunter (talk) 17:12, 25 August 2025 (UTC)
Visual editor stalling while opening the editor
editI've been experiencing a problem using the visual editor today: if I click on "edit" or open the source editor and then try to switch to the visual editor via the pencil icon, it starts to open the visual editor and then stalls ~2/3s of the way through. (2/3s is based on the how much of the block at the top of the screen turns from white to blue; see image.) I've encountered this problem on every page I've tried to edit using the visual editor (e.g., Deportation of Kilmar Abrego Garcia). I've tried clearing the cache and restarting my browser, Firefox 142.0 for Mac, but neither helped. Wondering if anyone has a suggestion. Thanks, FactOrOpinion (talk) 19:48, 25 August 2025 (UTC)
Tech News: 2025-35
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Updates for editors
- Template authors can now use additional CSS properties, since the CSS sanitizer used by TemplateStyles was updated. For example:
width: fit-content
;ruby-align
; relative units such aslh
; and custom strings inlist-style-type
. These improvements are a Community Wishlist wish. [9][10][11][12][13][14][15][16][17][18] - On large wikis, the default time period to display edits from, within the Special:RecentChanges page, has been changed from 7 days to 1 day. This is part of a performance improvement project. This should have no user-facing impact due to the quantity of edits on these wikis. [19]
- Administrators can now access the Special:BlockedExternalDomains page from the Special:CommunityConfiguration list page. This makes it easier to find. [20]
- Wikimedia Commons videos were not shown in the Videos tab in Google Search. The problem was investigated and reported to Google who have now fixed the issue. [21][22]
- One new wiki has been created: a Wiktionary in Betawi (
wikt:bew:
) [23] - View all 39 community-submitted tasks that were resolved last week.
Updates for technical contributors
- Two fields of the recentchanges database table are being removed.
rc_new
andrc_type
are being removed in favor ofrc_source
. Queries to these older fields will start to fail starting this week and developers should userc_source
instead. These older fields were deprecated over 10 years ago and should not be in use. This is part of work to improve the performance and stability of queries to the recentchanges table. [24] - Detailed code updates later this week: MediaWiki
In depth
- The latest quarterly Language and Internationalization Newsletter is now available. This edition includes: support for new languages in MediaWiki and translatewiki; the start of the Language Onboarding and Development project to help support the growth of new and small wikis; updates on research projects; and more.
Meetings and events
- The next Language Community Meeting is happening soon, August 29th at 15:00 UTC. This week's meeting will cover: the Avro keyboard developers from Wikimedia Bangladesh, who were recently awarded a national award for their contributions to this keyboard; and other topics.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Can someone help guide me through how to customize my default Dark Mode appearance?
editI don't know if this is the right place to ask this question, but I was sent here. I know there's a way to do it via the user CSS page, but I don't know how. There isn't really a guide or tutorial (as far as I can see) from the Preferences page. I'm not trying to make a new skin, or make changes to the default skin itself, I just want to configure/customize how it looks personally; I just want to make the default Dark Mode as dark as the gadget version, and also make some color changes. CheckNineEight (talk) 01:59, 26 August 2025 (UTC)
- Maybe Wikipedia:Personalization#Personal_CSS will be the right place to start? Sapphaline (talk) 10:17, 27 August 2025 (UTC)
- It doesn't tell me how to actually customize skin appearance, it just tells me that a CSS subpage is a thing that I can do – which I already know about. The Main page for that link is almost close enough for providing samples, though; still, doesn't really give me a good grasp of how this works, doesn't give me confidence of doing what I intend to do – which is to customize the look of Dark Mode. CheckNineEight (talk) 02:44, 28 August 2025 (UTC)
- Okay, is there, like, a way to easily import a default skin's entire CSS code, so I can read it and edit it from my CSS subpage? Like, a {{subst:}} function? CheckNineEight (talk) 03:16, 28 August 2025 (UTC)
- "easily import a default skin's entire CSS code" No, Wikipedia's CSS is pretty complicated, stretches hundreds of lines and even differs for almost every single page of the site. This is also why it isn't further explained. People who know how CSS works should be capable to change it already, for those who don't it mostly boils down to "you are going to have to learn or copy from someone else (if that person exists)". If you just want to change colors, you should be able to get the list of CSS variables from your browser's web inspector (they are all on the html element, as they are for most websites in the world) and be able to change them as you see fit via you common.css. —TheDJ (talk • contribs) 08:19, 28 August 2025 (UTC)
- Oof! How do I inspect element on mobile? I don't even have a PC. CheckNineEight (talk) 11:36, 28 August 2025 (UTC)
- "easily import a default skin's entire CSS code" No, Wikipedia's CSS is pretty complicated, stretches hundreds of lines and even differs for almost every single page of the site. This is also why it isn't further explained. People who know how CSS works should be capable to change it already, for those who don't it mostly boils down to "you are going to have to learn or copy from someone else (if that person exists)". If you just want to change colors, you should be able to get the list of CSS variables from your browser's web inspector (they are all on the html element, as they are for most websites in the world) and be able to change them as you see fit via you common.css. —TheDJ (talk • contribs) 08:19, 28 August 2025 (UTC)
Should items be in caps?
editShould these items be in caps in a "see also":
Bubba73 You talkin' to me? 04:00, 26 August 2025 (UTC)
- See Rock Garden, Calhoun#See also where you have correctly listed them as Miniature park and Rock garden. Matching the case of the article title is correct. This is a question for WP:HELPDESK, not WP:VPT. Johnuniq (talk) 06:10, 26 August 2025 (UTC)
- Thanks; sorry I asked in the wrong place. Bubba73 You talkin' to me? 06:32, 26 August 2025 (UTC)
Link to the talk page via template
editTemplate:WikiProject status is confusing people. They usually see this at the top of a WikiProject's main page (e.g., Wikipedia:WikiProject Biography). If they want to leave a note for the WikiProject, they click the bolded link to Wikipedia:WikiProject (not what they want), and then to the talk page (which is WT:COUNCIL and definitely not what they want).
How can I put a link in the template that will point to Wikipedia talk:WikiProject Biography for WPBIO, to Wikipedia talk:WikiProject Medicine for WPMED, to Wikipedia talk:WikiProject Military history for MILHIST, etc.? WhatamIdoing (talk) 17:24, 26 August 2025 (UTC)
- The
{{TALKPAGENAME}}
magic word will produce the name of the talk page for the current page. Anomie⚔ 17:27, 26 August 2025 (UTC)- Thanks. I've updated Template:WikiProject status/sandbox. It's a more complex template than I thought it would be. Is there any easy/semi-automatic way to test all the parameters? WhatamIdoing (talk) 01:39, 27 August 2025 (UTC)
- You could add any necessary test cases to Template:WikiProject status/testcases. Anomie⚔ 01:53, 27 August 2025 (UTC)
- I hadn't found that page. Thanks! That shows I haven't fixed it all yet. WhatamIdoing (talk) 18:59, 27 August 2025 (UTC)
- You could add any necessary test cases to Template:WikiProject status/testcases. Anomie⚔ 01:53, 27 August 2025 (UTC)
- Thanks. I've updated Template:WikiProject status/sandbox. It's a more complex template than I thought it would be. Is there any easy/semi-automatic way to test all the parameters? WhatamIdoing (talk) 01:39, 27 August 2025 (UTC)
Why is the search engine getting worse?
editWikipedia previously had one of the best fuzzy search engines on the Web. Lately, it seems to be getting dumber and dumber. Today I searched for "Former NPR host Hansen," and it gave me every entry containing "NPR," EXCEPT "Liane," which is the correct answer. It even gave me pages containing "Liane Hansen" in both text and hypertext link, but didn't return the actual "Liane Hansen" page. This is TERRIBLE performance from what was previously one of the best search engines around. What was done to dumb down the search engine? Gil gosseyn (talk) 22:28, 26 August 2025 (UTC)
- YMMV, but I always go to Google and type "wiki xxx", where xxx is the thing I want. "wiki Former NPR host Hansen" takes me to the right page. For all of the complaints about Google that I hear, it still works great for me. In my 12 years of active editing, I have never had good luck with the Wikipedia search page when doing plain-text searches; it can give a lot of results, but they are never sorted by relevance. – Jonesey95 (talk) 22:45, 26 August 2025 (UTC)
- mw:Help:Searching says "The results will only include pages that contain all the words in your search.", and has done since at least 2013. The word "Former" doesn't appear anywhere in the text of that article (ignoring the templates), so it is working as expected. It is possible to make a "fuzzy" search (details in mw:Help:CirrusSearch#Words, phrases, and modifiers) but that isn't the default. If we search for NPR host Hansen that gives the expected results. I hope that info helps. Quiddity (WMF) (talk) 22:52, 26 August 2025 (UTC)
- @Gil gosseyn: The navbox is deliberately ignored because it has the class autocollapse. That's usually good to eliminate irrelevant hits. Here the occurrence of "former" in the navbox was indeed irrelevant to her being a former NPR host but Google picked up the random hit on the word so it gave the right result for the wrong reason. It's an odd word to include in the search. The article is the first hit on NPR host Hansen. PrimeHunter (talk) 07:51, 27 August 2025 (UTC)
Discussion at Template talk:Screen reader-only § Simplify CSS?
editYou are invited to join the discussion at Template talk:Screen reader-only § Simplify CSS?. Sapphaline (talk) 10:14, 27 August 2025 (UTC)
Example css file to remove Depictions of Prophet Muhammad doesnt work
editIve tried using the css file that is supposed to remove/censore depicitons of the Prophet that is linked to in the in the instruction page which itself linked too in the "wikipedia is not censored" template on talk pages.
The css file doesnt work and I dont know how to get it to work, Ive tried adding an extra comma but that did nothing (link to the revision[25]). I swear i hit publish on it three seperate times but my contributions history says i only did it once. regardless,I used the 2008 section of the wiki contraversies article and Depictions of Muhammad to check and all three times the images still showed, before i added and after.if anyone has any advice please do pitch in, thank you! AssanEcho (talk) 18:05, 27 August 2025 (UTC)
- That CSS examples page uses a pretty brittle method in that it targets the specific image names. Someone needs to update it for the images that are presently on the page.
- Example: One of the lines in the CSS is
a[href="/wiki/File:Muammad-as-youth-meeting-monk-bahira-compendium-persia-1315-edin-550.jpg"],
. The file has been renamed such that this rule doesn't match any longer (a[href="/wiki/File:Young_Muhammad_meets_the_monk_Bahira_-_from_Jami'_al-Tawarikh.jpg"],
would now match what I believe to be the same image). - An alternative would be to use the
|class=
that images have to add something like|class=image-of-muhammad
on that page and then target that. It would be marginally less brittle. Izno (talk) 18:09, 27 August 2025 (UTC)- perhaps that should just be whats added instead of the current method even if (im guessing) it results in the more tame images (eg, depictions with a veil) being censored too.
also, general wiki policy dectates an editor shouldnt edit a talkpage post beyond minor grammar corrections soon after originally posting but i copied and pasted by accident an older version of this post from notepadd and left out a sentance, could i readded even though its a bit against guidlines, it doesnt add anything which would require you change your postAssanEcho (talk) 18:16, 27 August 2025 (UTC)- Maybe a userscript like Anomie's linkclassifier would be a better fit here. — Qwerfjkltalk 14:52, 28 August 2025 (UTC)
- on this page? "User:Anomie/linkclassifier"? AssanEcho (talk) 14:18, 29 August 2025 (UTC)
Dark mode makes equation images unreadable
editThe dark mode in Wikipedia settings makes the transparent background of equations black but leaves the equation itself a black and unreadable. There's a tiny difference in the shade so you can technically read it if you turn your brightness way up or strain your eyes really hard, but that defeats the point of dark mode so it should really just make the equations the same color as text. NNNNNNNN (talk) 02:28, 28 August 2025 (UTC)
- 1) Open Friedmann equations
- 2) Switch to dark mode.
- 3) Observe no problems with equations.
- Issue is not reproduced. Johnjbarton (talk) 02:46, 28 August 2025 (UTC)
- NNNNNNNN, Johnjbarton makes a good point: when reporting a bug of something you see somewhere, make sure you say exactly where you are seeing it so others can try to help diagnose a cause. There are at least five different ways of creating equations I can think of off the top of my head, each of which has different tricks and traps, and traps when editors use tricks to overcome other traps. DMacks (talk) 02:55, 28 August 2025 (UTC)
- If the equation happens to be a file (uploaded image), it might have to do with that file missing the "|class=skin-invert" parameter. CheckNineEight (talk) 11:47, 28 August 2025 (UTC)
- When it comes to "dark mode", it's also worth specifying whether it's the Vector 2022 dark mode or the Gadget dark mode. Anomie⚔ 13:04, 28 August 2025 (UTC)
Maplink wikidata broken?
editThe {{Maplink}} on the right is an exact copy of the one used on Sen̓áḵw. Despite working perfectly fine last time I checked a few weeks ago, |id=Q116290876
no longer automatically navigates to, and displays, the boundary defined by Q116290876. No meaningful changes have been made to the Wikidata entry, nor the OpenStreetMap feature it's linked to.[3] Switching to the similar |id=Q17018530
also doesn't work. I have no idea what happened here. — AFC Vixen 🦊 09:02, 28 August 2025 (UTC)
- I see a blue screen (ocean, I think it is). It does not display the island it’s meant to. 2001:8003:B15F:8000:D7E:2F03:5B3D:FAE6 (talk) 11:41, 28 August 2025 (UTC)
- 2001:8003:B15F:8000:D7E:2F03:5B3D:FAE6, I can see a blue screen, and zooming out, it looks like Null Island. — Qwerfjkltalk 14:49, 28 August 2025 (UTC)
- I think the issue is related to the link between OpenStreetMap and Wikidata rather than Wikidata as such. I am using a module/template that shows rivers (based on OpenStreetMap) as well as their basin (based on Commons .map). Currently it is showing the basins, but not the rivers themselves (see https://sv.wikipedia.org/wiki/Indals%C3%A4lven for an example). Gunnar Larsson (talk) 17:19, 28 August 2025 (UTC)
Side note: this may be related to #Infobox map not rendering properly, as Omaha–Council Bluffs metropolitan area also uses a {{Maplink}} relying on Wikidata, and unlike the editors in that discussion, I am seeing no shapes on that particular map. — AFC Vixen 🦊 09:08, 28 August 2025 (UTC)
- I see an orange triangle-like shape at [26] and the same shape in red here and at Sen̓áḵw. Have you tried another browser or logging out? PrimeHunter (talk) 09:50, 28 August 2025 (UTC)
- I have the same issue, all I see is a blank blue box. I'm using the latest version of Firefox and the only addon I have installed is an adblocker, which is disabled.
- Testing in incognito mode in Firefox, and normally in Edge and Chrome, the issue also persists. It exists both logged out and logged in. Nebman227 (talk) 12:53, 28 August 2025 (UTC)
- Hmm. Works fine for me here both logged in and in incognito mode in Firefox 141, and while logged out in Chromium 139. Anomie⚔ 13:08, 28 August 2025 (UTC)
- Huh. Now it switched to Null Island as others mentioned above. No idea. Anomie⚔ 14:59, 28 August 2025 (UTC)
- Hmm. Works fine for me here both logged in and in incognito mode in Firefox 141, and while logged out in Chromium 139. Anomie⚔ 13:08, 28 August 2025 (UTC)
- I know they just joined one of the datacenters back, after upgrading it to newer version of Debian and Kartotherian. That might have something to do with it, and explain why some ppl have different results than others. —TheDJ (talk • contribs) 17:36, 28 August 2025 (UTC)
- For what it's worth, this issue I first noticed on Omaha appears to be affecting many articles - a brief glance shows Kansas City metropolitan area and Greater St. Louis having the same issue. Home Lander (talk) 00:49, 29 August 2025 (UTC)
- Hi folks! I am working on https://phabricator.wikimedia.org/T381565 and yesterday I depooled the eqiad datacenter to test the new stack in codfw. I just repooled it, and now I see the map reported up above rendered correctly (same thing for the Kansas city neighborhoods. I am still a little puzzled why this happened, since we upgraded the postgres backend in codfw, kartotherian was upgraded months ago. LToscano (WMF) (talk) 13:02, 29 August 2025 (UTC)
Infobox map not rendering properly
editOn Omaha–Council Bluffs metropolitan area, the map in the infobox is only rendering the brown shaded areas; the blue, green, and orange are not showing, at least for me. Can someone sort it out, as it's beyond my level of intelligence? Home Lander (talk) 18:02, 27 August 2025 (UTC)
- I'm getting blue and brown, but the other thing that's weird for me is that I'm not getting a map consistent between what's displayed currently and the MediaViewer version of it. Firefox 142 on Win10. Izno (talk) 18:05, 27 August 2025 (UTC)
- I should have mentioned, I suppose, that I'm on Windows 11 and Chrome 139.0.7258.139. Home Lander (talk) 18:07, 27 August 2025 (UTC)
It looks like it is working again now.Gunnar Larsson (talk) 13:00, 29 August 2025 (UTC)
Discussion seeking advice on edit filters and modules
editThere is a discussion at Wikipedia talk:Banning policy#Should an edit filter be used to make the template admin-only? where it would be very helpful to have advice from editors with technical expertise on edit filters and modules. Thanks. --Tryptofish (talk) 22:52, 28 August 2025 (UTC)
Turn IP account to named account?
editI have run into a named account with recent activity that appears to be a continuation of an IP account that did a handful of edits in 2019. Now I realize that I don't understand IP accounts - how they become "users", and what security exists on them since they do not have passwords. Presumably one would need to access WP with that same IP address to then take over the IP account and give it a username. I have seen this IP account: User_talk:159.224.181.7, which now (after 6 years of inactivity) has a username - Qrivas - which appears to be a synonym for the IP account.
This case may be completely legitimate and I do not want to cast aspersions on this user. I ask this because if it is possible to "hijack" IP accounts that seems to me to be a security issue for WP. I am presuming that it is possible to fake an IP address, but I don't know if that is true. Lamona (talk) 03:36, 29 August 2025 (UTC)
- There is no way (baring burying the entire edit and asking one of the two people with import upload access to re-import it, which would leave an audit trail a mile wide and definitely wasn't done here) to reassign edits from an IP address to a username. It's just not possible. That, of course, doesn't stop Qrivas from posting on 159.224.181.7 as if they were the same person as 159.224.181.7, since it's all just text and I could respond to talk page comments as if I were you in the same way. * Pppery * it has begun... 03:40, 29 August 2025 (UTC)
- Yes, Qrivas simply made two edits to an IP talk page in 2019. That's all, and anyone can do it. It may or may not have been their IP address at the time. It's allowed to respond to a talk page post without being the associated IP or user. I sometimes do it myself. PrimeHunter (talk) 09:47, 29 August 2025 (UTC)
Code review for Module:High-use refactor
editI've refactored Module:High-use to make it:
- easier to understand (added comments)
- easier to localize
- have less repeated code
- use
|demo=
as the title everywhere, including in the Toolforge link, if provided - use the base page for /testcases pages as well as /doc and /sandbox
- use Lua for the system categorization code instead of preprocessing a string containing
{{sandbox other}}
, a switch statement, and a Module:Effective protection level invocation
The refactored code is in Module:High-use/sandbox and the test cases are at Template:High-use/testcases. I've made an edit request, but I wanted to post here as well to get some additional sets of eyes on my code, and hopefully catch any issues I missed. —CalendulaAsteraceae (talk • contribs) 05:33, 29 August 2025 (UTC)
API:Exturlusage
editI used some Python code to update my list of articles linking to example (here). That uses mw:API:Exturlusage. The result seems mostly correct but I noticed some pages do not contain "example", for example CLCN5 + PAK1 + PAK3 + PAK4 + PAK5 + PAK6. I cannot see any 'related changes' that would explain why the API thinks CLCN5 has an external link to example.com. Does anyone have a reasonable way of checking that API:Exturlusage does return the articles mentioned in this post? Any clues for why example.com is not present now? Johnuniq (talk) 05:54, 29 August 2025 (UTC)
- The image in CLCN5#Notes links to example.com. You can use Special:ExpandTemplates to examine this kind of stuff. Nardog (talk) 07:29, 29 August 2025 (UTC)
- Amazing, thanks. Now that I've seen it, I realize that viewing the HTML source is a good way to find the link. The link comes from Template:Academic-written review. Johnuniq (talk) 07:38, 29 August 2025 (UTC)
- You can adjust your script to skip pages that do not have a direct link in the wikitext and include only those where the link is used directly, as this will save your time. – DreamRimmer ■ 07:47, 29 August 2025 (UTC)
- You can also use User:PrimeHunter/ExpandTemplates.js to get the template expansion of the whole page with a click and see the link there. PrimeHunter (talk) 09:50, 29 August 2025 (UTC)
- Amazing, thanks. Now that I've seen it, I realize that viewing the HTML source is a good way to find the link. The link comes from Template:Academic-written review. Johnuniq (talk) 07:38, 29 August 2025 (UTC)
Requesting help for creating mockup of proposal
editHello all,
I recently proposed This Week's Article for Improvement, a new feature for Wikipedia's front page. It would display Wikipedia:Articles for improvement in a manner similar to Wikipedia:Today's featured article. Reception seems to be positive. Here's a sampling of support:
- "This is a step in the right direction" - User:Cremastra
- "I think this is a good idea" - User:Danubeball
- "Definitely agree - now is the time to innovate and try new things" - User:Chaotic Enby
- "I agree with the above" - User:Sahaib
(In the interest of honesty, users like User:PerfectSoundWhatever and User:Rosguill are skeptical.)
However, none of us are apparently adept enough at technical skills to create a proper mockup of the idea. Can someone help me create a proper template that can be used to illustrate this proposal and to implement it if it ever gets to that stage?
Here's my non-dynamic, hardcoded mockup. The new mockup must have a) parameters for the linked article, intro paragraph, and lead image, b) be formatted similarly to other main page templates. Once we get that down, we can create a mock queue system to demonstrate the idea to Wikipedia:Village pump (policy).
Many thanks to all who help! Bremps... 16:29, 29 August 2025 (UTC)
Discussion at Template talk:Tooltip § Render this as parenthesized text when used in the mainspace
editYou are invited to join the discussion at Template talk:Tooltip § Render this as parenthesized text when used in the mainspace. Sapphaline (talk) 21:21, 29 August 2025 (UTC)
Can we consider blacklisting anything with a utm source (or other tracking parameter)?
editGot this idea after taking a look at WP:AISIGNS and seeing that more than 2000 links have a UTM source=chatgpt parameter.
If we blacklist utm source, it may help prevent the addition of some AI generated content by spambots and the like.
Lightly tested regex: .*(\?|\&)utm_source=.*
We can do an abuse filter if needed as well if we want to be less WP:BITEy. There isn't a legitimate reason to have utm_source in links. Affiliate marketers often use utm_source and similar tracking IDs to ensure who gets last click attribution for sales and advertising, and that is not something we want to encourage on Wikimedia projects. There already are some tracking URLs blocked such as bing (dot) com (slash) ck and youtube (dot) com (slash) url, those are on the global spam blacklist as they are just one of the ways spammers bypass our filters.
We can maybe even give a separate message for those with utm_source= some AI chatbot like Copilot or ChatGPT or Gemini that shows that we are almost certain that an LLM was used. Aasim (話す) 22:21, 29 August 2025 (UTC)
REST API endpoints
editWhat happened to my beloved REST API endpoints? All deprecated except Math? Polygnotus (talk) 04:00, 30 August 2025 (UTC)
- There are new REST APIs in core now. See mw:API:REST API. Izno (talk) 04:04, 30 August 2025 (UTC)
- @Izno Thank you! I missed them! Polygnotus (talk) 04:08, 30 August 2025 (UTC)
NYT Zotero translator
editWhere can I find the Zotero translators used by Citoid and the like? Are they on Gerrit somewhere? Does it directly use https://github.com/zotero/translators ? Polygnotus (talk) 04:57, 30 August 2025 (UTC)
- its all described in mediawikiwiki:Citoid#Installation —TheDJ (talk • contribs) 08:45, 30 August 2025 (UTC)
PBLOCK from deleted page
editLet's say I partially block a user from a page, and the page gets deleted. Is the user still blocked from editing the page (i.e. can't create it), or does the deletion end the relevant action, comparable to how it ends a protection? Also, what if the page gets recreated by someone else: can the partially blocked user edit it? I just did a partial block on User:ThisIsaTest — the first I've ever done — and have no idea what would happen if I did the same thing to a real user. Nyttend (talk) 04:57, 31 August 2025 (UTC)
- The pblock remains on the books but has no effect unless the page is undeleted (and even then may not be effective). While a block appears in most of the UI to be preventing a specific title, it's actually technically implemented by preventing edits to a specific Page ID; this means pblocks survive moves but don't survive deletions. * Pppery * it has begun... 05:15, 31 August 2025 (UTC)
- Let's try this and see what happens. Could you partial-block me from editing User:Nyttend/testrjehtunrinetdngrm for, say, a week? I'll let you know when I'm ready for you to delete it. Nyttend (talk) 06:13, 31 August 2025 (UTC)