Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
- Table of contents
- First discussion
- End of page
- New post
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).
Newcomers to the technical village pump are encouraged to read these guidelines prior to posting here. 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. | ||||||||||||||||
| ||||||||||||||||
« Archives, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195 | ||||||||||||||||
The style of Special:Contributions on mobile version has been changed
I’m a mobile user and prior today when checking my contributions it shows it in the manner I’m familiar with, but today I checked my contribs but it displayed it as though it were in “advanced mode” I checked to see if I accidentally toggled “on” “advanced mode” but I didn’t. Please is there any help as to remedy this? Celestina007 (talk) 21:09, 10 February 2022 (UTC)
- I just cried for a bit, then figured tough luck. Hope you get a work-around. I loved the minimalistic mobile and just switch to desktop as needed.Slywriter (talk) 21:13, 10 February 2022 (UTC)
- @Slywriter, yes, but I’m pretty sure there’s a way to remedy this, @PrimeHunter, could you please chime in here? Could anyone please be so kind as to tell mobile users how to remedy this? Celestina007 (talk) 21:16, 10 February 2022 (UTC)
There should be a switch to turn it off here.I'm an idiot. Found the Phabricator task but couldn't connect the dots in my head. —GMX(ping!) 22:41, 10 February 2022 (UTC)Celestina007, toggling on then off restored for me.Mistook my watchlist for user contribution. :( Slywriter (talk) 22:45, 10 February 2022 (UTC)
- @Slywriter, yes, but I’m pretty sure there’s a way to remedy this, @PrimeHunter, could you please chime in here? Could anyone please be so kind as to tell mobile users how to remedy this? Celestina007 (talk) 21:16, 10 February 2022 (UTC)
- It would be extremely helpful if you reported how you feel on phab:T293268 as the simplistic view was removed as the most vocal users are the people who disliked it. I was also disappointed to lose the original styles. I'm working towards making it possible to restore the old view with user styles or possibly make some of the good parts appear in the more powerful advanced view. I'll report back when I have something viable. Jdlrobson (talk) 02:56, 11 February 2022 (UTC)
I'm also having a problem with this. I like the simple one, I dont like the current, it loads too long. Please fix this. We have already a AMC with its own style of user contribution, it's enough, but please don't make the standard mobile style complicated. —Ctrlwiki (talk) 04:10, 11 February 2022 (UTC)
- To get the classic Minerva look back. Add to Special:MyPage/minerva.js. For a more permenant fix, please record your feedback on phab:T293268. Jdlrobson (talk) 05:27, 11 February 2022 (UTC)
mw.loader.load('/w/index.php?title=User:Jdlrobson/mobilecontribs.js&action=raw&ctype=text/javascript');
- We need interface administrator to fix this. I don't usually add scripts like that, i don't like it, just return the oldest one it's easy, so scripts not needed. Why they changed it without other users opinion, I am heavily mobile user, they should notify other mobile user like me if they gonna change something on the style, the heck. —Ctrlwiki (talk) 06:03, 11 February 2022 (UTC)
- Please feel free to chip in on MediaWiki_talk:Gadgets-definition#Consider_making_User:Jdlrobson/mobilecontribs.js_a_default_mobile_gadget. Jdlrobson (talk) 00:03, 15 February 2022 (UTC)
- We need interface administrator to fix this. I don't usually add scripts like that, i don't like it, just return the oldest one it's easy, so scripts not needed. Why they changed it without other users opinion, I am heavily mobile user, they should notify other mobile user like me if they gonna change something on the style, the heck. —Ctrlwiki (talk) 06:03, 11 February 2022 (UTC)
- First off Jdlrobson, thank you for the script, that might suffice for now. I totally understand and appreciate the frustration of Ctrlwiki, I do not believe this implementations are well thought out(or the potential consequences) I believe it is behoove of anyone making such drastic interface implementations must, as a prerequisite, initiate a conversation with mobile editors. To be honest this change has done nothing but incapacitate me, every now and again, mobile editors are faced with new changes to the editing interface and we have to learn to “adapt” I’m sorry but there is only so much mobile editors can take until we feel “this” isn’t worth it anymore. As stated elsewhere, whilst the script may suffice for now, in the long run I believe this implementation be reverted back to status quo for editors using mobile devices. To anyone reading this, I’m sorry if this comes off as rather passive aggressive, of a truth, I’ve never been more upset than I was yesterday after the new (unexpected) implementation for mobile device editors was made, which i am totally irate about. Once again I’m sorry but I’m sincerely saddened by this. Celestina007 (talk) 22:37, 11 February 2022 (UTC)
- One of the problems we're (all of us) facing is that there is no obvious way to reach mobile device editors as a group. I'm looking at some fairly big changes to mobile at some other wikis (enabling the mw:Reply tool, but when you change this, then you have to change that, and when you touch that, then there's this other thing...), and I'm just not sure how to reach them. There are central pages for technical problems, for new editors, for policy wonks, etc., but not for mobile editors. I'm seriously considering a CentralNotice banner, as one of the few things that might work. Whatamidoing (WMF) (talk) 23:38, 14 February 2022 (UTC)
IP range talk pages
With too many tabs open in my browser, I tripped over my myself and inadvertently left a welcome message for a Talk page range (here), instead of the intended IP recipient. This was later cleared up, but not before a different IP saw the message and spammed my UTP, which RegentsPark kindly cleaned up for me. But that left us each scratching our heads: who knew you could create a Talk page for a range and leave a message on it, and how does that even make any sense? Maybe the mw software should prevent that? Or if there's some use case for it, can we get a edit notice added to trap this case in Preview mode with a great, big, red warning, "Are you sure you really want to leave this message for an IP range? Usually this is reserved for WP:SOMETHINGELSE." Thanks, Mathglot (talk) 23:40, 10 February 2022 (UTC)
- I wonder if preventing IP range talk pages from being created would mean preventing subpages of IP talk pages, because I bet that's what the software recognized it as (even if an IP can't end in a zero) and therefore you could create it. Nardog (talk) 00:04, 11 February 2022 (UTC)
- The only way we could know for sure if IP range talk pages are considered subpages would be to create one and see if it has a link at the top taking you to the main IP talk page. ― Blaze WolfTalkBlaze Wolf#6545 00:07, 11 February 2022 (UTC)
- The example was User talk:94.252.0.0/17. It's considered a subpage of User talk:94.252.0.0:
{{SUBPAGENAME:User talk:94.252.0.0/17}}
produces 17. For comparison, subpages are disabled in mainspace so{{SUBPAGENAME:94.252.0.0/17}}
produces 94.252.0.0/17. PrimeHunter (talk) 00:35, 11 February 2022 (UTC)- Ah ok. SO the solution might be to prevent subpages of IP addressed from being created since there's usually no need for an IP to have a subpage since there's the chance it can change. ― Blaze WolfTalkBlaze Wolf#6545 00:43, 11 February 2022 (UTC)
- The example was User talk:94.252.0.0/17. It's considered a subpage of User talk:94.252.0.0:
- The only way we could know for sure if IP range talk pages are considered subpages would be to create one and see if it has a link at the top taking you to the main IP talk page. ― Blaze WolfTalkBlaze Wolf#6545 00:07, 11 February 2022 (UTC)
- These are fundamentally just wiki pages with no other special meaning (and certainly not the meaning associated with a normal user talk page, IP or otherwise). Changes to these pages do not reach or notify anyone. Izno (talk) 01:12, 11 February 2022 (UTC)
- That's interesting. Does that mean that all the IPs in 94.252.0.0/17 got an orange bar of doom, or was the anon just stalking your contributions? Is it possible that we have finally stumbled upon a way to communicate with a whole IPv6/64? (added) Sadly, it looks as if Izno answered these questions while I was typing them. Certes (talk) 01:17, 11 February 2022 (UTC)
- @Izno: If they don't reach anyone else, was it just by chance that my UTP got spammed (here, @22:11) by a different IP (94.252.85.48) than the one I intended to welcome (94.252.4.105) and subsequently did end up welcoming (here), and which just happens to be within IP range of the spammer? Seems too coincidental. Mathglot (talk) 01:46, 11 February 2022 (UTC)
- In any case, I'd still like an edit notice (or do I mean, 'edit filter'?), because I'll trip myself up again someday when I'm not being careful enough, and that would help. Mathglot (talk) 01:48, 11 February 2022 (UTC)
- I suppose in some cases they could be useful; but software changes may be needed to support them. Likely planned changes in ip masking will mostly moot this idea though. — xaosflux Talk 15:00, 11 February 2022 (UTC)
Help
I have posted twice on [this talk page] and e-mailed <wikipedialibrary@wikimedia.org> twice, but gotten no response about this.
I signed up for Wikipedia library abount a month ago and have yet to get my login credentials for Newspaper Archive. What's the holdup? Ten Pound Hammer • (What did I screw up now?) 03:54, 11 February 2022 (UTC)
- @TenPoundHammer: seems to be a duplicate of Wikipedia:Village_pump_(technical)/Archive_195#Wikipedia_library_question. TWL is not managed or maintained by the English Wikipedia. You can try the form on this page: <https://wikipedialibrary.wmflabs.org/contact/> and also the mailing list linked from that page. If still no answer, you could try meta:User talk:Samwalton9 (WMF) who is listed as "Product Manager, The Wikipedia Library". — xaosflux Talk 15:07, 11 February 2022 (UTC)
- Pinging @Nikkimaria Whatamidoing (WMF) (talk) 23:41, 14 February 2022 (UTC)
Breaking priority templates
Hi everyone, I came across a certain table, which renders results something like this:
Wanted | Actual | |
---|---|---|
Wide screen | Lorem Ipsum of New York is a good man | Lorem Ipsum of New York is a good man |
Middle width | Lorem Ipsum of New York is a good man |
Lorem Ipsum of New York is a good man |
Low width | Lorem Ipsum of New York is a good man |
Lorem Ipsum of New York is a good man |
Here, the wanted and actual rendering is same in wide and low width screens, but in middle width screens they're not the same. I can use to prevent line break after every word, except between "York" & "is" but that will prevent additional line break between "Ipsum" & "of" even in low width screens.
Now, are there any "Breaking priority" (using brpr henceforth) templates on Wikipedia? Say for example, we use {{brpr|1}}
between "York" & "is", and {{brpr|2}}
between "Ipsum" & "of"? The one with higher breaking priority breaks first if needed, and the lower one breaks later. The required markup will become Lorem Ipsum {{brpr|2}}of New York {{brpr|1}}is a good man
. If it doesn't exist already, can they be made using modules? or a new project on mediawiki to create <bpx/> tags where x is the priority level has to be started? Thanks! ---CX Zoom(he/him) (let's talk|contribs) 16:15, 11 February 2022 (UTC)
-   is part of the HTML standard, and is interpreted by the web browser, not the mediawiki parser. --Ahecht (TALK
PAGE) 16:27, 11 February 2022 (UTC)- Actually, I wanted to know if mediawiki allows this kind of additional feature, whereby we can explicitly mention the level of Breaking priority. So that I can use it. ---CX Zoom(he/him) (let's talk|contribs) 16:36, 11 February 2022 (UTC)
- Stop trying to control wrapping, especially of long phrases. Rendering doesn't work like that. Izno (talk) 19:25, 11 February 2022 (UTC)
- Tbh, the place where I wish to use it is just 14 characters long without any special html characters. I just want to change the 'point of line break' in mid-width areas, and not when area is genuinely too small. As you can see above, the wanted & actual rendering are the same for low width, but different for mid-width. And hence, the need for multi-level brpr templates, so that it breaks at the correct places according to available width. ---CX Zoom(he/him) (let's talk|contribs) 23:32, 11 February 2022 (UTC)
- The point I'm making is that there is no one correct place. Even if we accept your sense of aesthetics as correct (which, I definitely do not), making a change will cause bad behavior for something else. Just accept that this is not LaTeX or even MS Word and that what you want to do is a negative in the general case. Izno (talk) 03:59, 12 February 2022 (UTC)
- What Izno said. Plus, given any phrase having two or more potential wrapping points, neither the HTML specs nor the CSS specs provide any means for prioritising one wrap point over any other. --Redrose64 🌹 (talk) 11:18, 12 February 2022 (UTC)
- Thanks Izno. Thanks Redrose. ---CX Zoom(he/him) (let's talk|contribs) 18:18, 16 February 2022 (UTC)
- Tbh, the place where I wish to use it is just 14 characters long without any special html characters. I just want to change the 'point of line break' in mid-width areas, and not when area is genuinely too small. As you can see above, the wanted & actual rendering are the same for low width, but different for mid-width. And hence, the need for multi-level brpr templates, so that it breaks at the correct places according to available width. ---CX Zoom(he/him) (let's talk|contribs) 23:32, 11 February 2022 (UTC)
Toolforge
Straightforward:
- I ssh into Toolforge from my Linux laptop;
- I'm in;
- I ssh into Toolforge from my Windows laptop;
- I'm asked for my passphrase;
- I'm in;
Any way I can make both laptops behave the same? - Klein Muçi (talk) 04:07, 13 February 2022 (UTC)
- These sound like features of your specific ssh clients; various clients have options to reuse the current OS credential, or to save your credentials for future sessions. — xaosflux Talk 05:58, 13 February 2022 (UTC)
- Just use an SSH key without a passphrase (assuming no else has access to your laptop). – SD0001 (talk) 06:45, 13 February 2022 (UTC)
- @SD0001, eh, I've thought of that but I felt uncomfortable nonetheless given that my bot is activated on more than just one wiki.
- @Xaosflux, any place where can I read more about ssh clients, what I'm currently using or if I can change them somehow? - Klein Muçi (talk) 09:57, 13 February 2022 (UTC)
- Well, your linux laptop does have an ssh key without passphrase – which is why it doesn't ask for it. – SD0001 (talk) 13:44, 13 February 2022 (UTC)
- @Klein Muçi: sure, Wikipedia ;) Comparison of SSH clients. In a pinch for Windows I've used PuTTY (it philosophically does NOT allow "saved passwords"). In general, you should never reuse the same password for multiple systems (which I have a feeling is how your linux one may be working). If you are going to store a password - you might has wells store a private ssh key, in effect it is just a long password. — xaosflux Talk 14:01, 13 February 2022 (UTC)
- @Xaosflux, nice! I'll take a look at it.
- @SD0001, oh, really? How can I be sure and add one if I really don't have a passphrase? - Klein Muçi (talk) 14:08, 13 February 2022 (UTC)
- You use the default built-in ssh client, right? If you don't enter a password, it simply means there's no password.
ssh-keygen -p
can be used to add one. – SD0001 (talk) 14:27, 13 February 2022 (UTC)- @SD0001, if I'm not wrong, yes. What happens if I already have one and add that command? Does it notify me? Or does it simply prompt me to add a new one anyway? Does it notify me if the new one is the same as the old one? - Klein Muçi (talk) 14:39, 13 February 2022 (UTC)
- You use the default built-in ssh client, right? If you don't enter a password, it simply means there's no password.
- @Klein Muçi I think I answered this question for you before, but if you're using PuTTY on Windows, you need to add your SSH key to Pageant (it should've been installed along with PuTTY). See this tutorial. Once you do that, PuTTY will not ask for your key's password when you log in to toolforge. You'll still have to enter your password into Pageant every time you reboot your computer, but you won't have to do it every time you connect. --Ahecht (TALK
PAGE) 15:11, 13 February 2022 (UTC)- @Ahecht, oh, yeah, it did seem familiar as a question. Sorry for my memory. I'm not using PuTTY though. :/ - Klein Muçi (talk) 15:20, 13 February 2022 (UTC)
- @Ahecht, so you're suggesting that I do have a passphrase even for my Linux PC but it's only Windows that asks me to authenticate continuously just because I don't use PuTTy while Linux has no need for that? Put in even more simple terms: "My Linux" is fine and secure while "my Windows" is "lacking" PuTTy? - Klein Muçi (talk) 15:41, 13 February 2022 (UTC)
- Update:
- Turns out my Linux also asked for the passphrase every time I shut it down and restarted. It was just that I had spent quite a long time without shutting it down that I had forgotten about that part. So the situation is basically what Ahecht mentions above. Both computers ask for the passphrase but the Windows one asks for it every time I connect while the Linux one asks only after it gets restarted. This would rephrase the question to "How can I make Windows also behave the same way; That is, only ask for the passphrase after it gets restarted. I'm using the default built-in SSH client (OpenSSH). Is there any way to achieve this with that or is there a must I must get another client? - Klein Muçi (talk) 03:12, 14 February 2022 (UTC)
- @Klein Muçi In Windows, press ⊞ Win+r, type
services.msc
and hit enter, scroll to "OpenSSH Authentication Agent", right click, click "Properties" set the "Startup type" to "Automatic", hit the "Start" button (if it's not greyed out), and hit "OK". Open your command prompt, typessh-agent
, hit enter (nothing should happen), then typessh-add <path-to-private-key-file>
and hit enter (it should prompt for your passphrase). You should now be able to SSH in without it asking for your passphrase each time. --Ahecht (TALK
PAGE) 05:17, 14 February 2022 (UTC)- @Ahecht, did everything you said. It worked. cmd now only asks for passphrase on restart. The only problem remaining is that I rarely use the command prompt. I use the Git bash as I find it more flexible. (I read out our past discussion and I see that I've mentioned it in the past as well.) How can I replicate the same result in it? - Klein Muçi (talk) 11:43, 14 February 2022 (UTC)
- If I type
ssh-agent
at the Git bash, I get: SSH_AUTH_SOCK=/tmp/ssh-q9s4HLjho1rD/agent.756; export SSH_AUTH_SOCK; SSH_AGENT_PID=757; export SSH_AGENT_PID; echo Agent pid 757;
- And if I type
ssh-add <path-to-private-key-file>
, I get: - Could not open a connection to your authentication agent. - Klein Muçi (talk) 13:20, 14 February 2022 (UTC)
- Git CMD, perhaps unsurprisingly, behaves exactly as cmd: You type
ssh-add <path-to-private-key-file>
, it asks for the passphrase and it allows you to SSH without asking for your passphrase each time. - It's only Git Bash that isn't allowing me to do that. Sadly, that's what I use. :/ - Klein Muçi (talk) 13:57, 14 February 2022 (UTC)
- @Klein Muçi So you're not using the default Windows OpenSSH, you're using the ssh that comes with Git Bash. If so, follow the instructions at https://docs.github.com/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#auto-launching-ssh-agent-on-git-for-windows --Ahecht (TALK
PAGE) 14:12, 14 February 2022 (UTC)- @Ahecht, literal examples of what I did:
vi ~/.bashrc
, copy-paste the mentioned lines, save. Nothing happens. :/ If I typessh-add ~/.ssh/id_rsa
, it again says that it couldn't open a connection to my auth agent. - I closed and reopened Git Bash, I get no passphrase or any new prompt. - Klein Muçi (talk) 14:28, 14 February 2022 (UTC)
- @Ahecht, literal examples of what I did:
- Git CMD, perhaps unsurprisingly, behaves exactly as cmd: You type
- If I type
- @Ahecht, did everything you said. It worked. cmd now only asks for passphrase on restart. The only problem remaining is that I rarely use the command prompt. I use the Git bash as I find it more flexible. (I read out our past discussion and I see that I've mentioned it in the past as well.) How can I replicate the same result in it? - Klein Muçi (talk) 11:43, 14 February 2022 (UTC)
- @Klein Muçi In Windows, press ⊞ Win+r, type
- @Ahecht, so you're suggesting that I do have a passphrase even for my Linux PC but it's only Windows that asks me to authenticate continuously just because I don't use PuTTy while Linux has no need for that? Put in even more simple terms: "My Linux" is fine and secure while "my Windows" is "lacking" PuTTy? - Klein Muçi (talk) 15:41, 13 February 2022 (UTC)
- @Ahecht, oh, yeah, it did seem familiar as a question. Sorry for my memory. I'm not using PuTTY though. :/ - Klein Muçi (talk) 15:20, 13 February 2022 (UTC)
User script problem
I have this user script:
var header = $("h1").text(); $("h1").text(header + " <span style=\"color:red\">[Wikipedia]</span>");
It is supposed to add a red [Wikipedia] to the right of the page title, but instead it displays
User:Anpang01/common.js <span style="color:red">[Wikipedia]</span>
(not User:Anpang01/common.js [Wikipedia]
)
It looks like the span tag and css got nowiki'd. How do I fix it? Anpang01 (talk) 01:29, 14 February 2022 (UTC)
- @Anpang01: no idea what you are trying to do, but you can just with this link. — xaosflux Talk 01:48, 14 February 2022 (UTC)
- Try e.g.
$("<span style=\"color:red\"> [Wikipedia]</span>").appendTo('#firstHeading');
. $().text() is a method for setting element text, so it escapes special characters. It can also be basically achieved in CSS btw:Nardog (talk) 02:00, 14 February 2022 (UTC)#firstHeading::after { content: " [Wikipedia]"; color: red; }
- Since you're modifying the underlying document object model directly, you're updating the text contents of the h1 element, so whatever you put in there is the text within the element. You can use the html() method to alter the corresponding HTML within the h1 element; just beware of what you insert (for example, if the original header, in this case, was some malicious Javascript, it would execute). isaacl (talk) 02:10, 14 February 2022 (UTC)
Negative counts on some category pages
In some random categories there are negative page and subcategory counts. for example, in Category:2022 disestablishments by continent i see:
2022 disestablishments in Africa (2 C, -1 P)
And the "-1 P" is shown for every subcategory.
It is possible for the problem to be automatically solved after some time, then you won't see the problem when you arrive at this report, but possibly negative counts can be seen on newly created categories (Just guessing, not sure). As there are some changes to the category recount process (noted in the upcoming Tech News), i guess this issue should be reported on Phabricator. Thank you. Jeeputer (talk) 05:38, 14 February 2022 (UTC)
- Is this related to Wikipedia:Village pump (technical)/Archive 195#Empty, but not empty? categories? ― Qwerfjkltalk 07:59, 14 February 2022 (UTC)
- @Qwerfjkl: Thank you for your response. Part of it (incorrect category count) is related. but the problem in that thread was one extra page in categories. The problem here is that categories have -1 page which is still incorrect, but in some different way. Jeeputer (talk) 19:44, 14 February 2022 (UTC)
- It's the same problem - just force a recount by purging the category, per phab:T85696. ― Qwerfjkltalk 19:57, 14 February 2022 (UTC)
- It is supposed to fix itself. MediaWiki has been coded to recount categories that have a minus number of category members. That logic was changed recently so it should kick in sooner than that, but I do not understand the specifics. See gerrit:c/mediawiki/core/+/506032.--Snævar (talk) 19:45, 19 February 2022 (UTC)
- It's the same problem - just force a recount by purging the category, per phab:T85696. ― Qwerfjkltalk 19:57, 14 February 2022 (UTC)
- @Qwerfjkl: Thank you for your response. Part of it (incorrect category count) is related. but the problem in that thread was one extra page in categories. The problem here is that categories have -1 page which is still incorrect, but in some different way. Jeeputer (talk) 19:44, 14 February 2022 (UTC)
Transclusion completeness tool
While reading the pages linked on Template:Brexit topics, I noticed that some of them didn't have the template. After digging around, I found {{Check completeness of transclusions}}, which adds a link to a tool that shows which articles are linked by the template but not transcluded, and vice versa (example). This template appears to currently be predominantly used on sports team templates to help ensure that all the players have their respective teams' templates transcluded, but it is actually useful for every single navbox and sidebar, particularly as so many have dozens or hundreds of links. I therefore think it should either be added to the Wikipedia sidebar in the tools section under "What links here" when you're on a template page, or added to the "External tools" section on the "What links here" pages for templates. Does anyone else agree? 60.242.222.90 (talk) 08:23, 14 February 2022 (UTC)
User scripts not working in Firefox
I suddenly find that my Gadgets and user scripts are not working correctly, or at all, on various projects, including this one, Wikidata and Commons.
For example, Navigation popups are visible, but clicking the links in them results in no action taking place. The upload Wizard on Commons has no scroll bars (I have to tab between fields), and if I enter a copyright template under "Another reason not mentioned above", I cannot preview it.
I'm using Firefox under Windows 10 (both fully up-to-date). I have disabled Ghostery, to no effect. [Update: If I use Edge, they seem OK.]
Anyone else seeing this? any clues? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:47, 14 February 2022 (UTC)
- Do you have enabled javascript in the firefox settings? It's like the css loads but the js...not exactly. Anpang01 (talk) 12:44, 14 February 2022 (UTC)
- Yes, it's enabled. Thanks, Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:30, 14 February 2022 (UTC)
- Do you have an ad blocker or privacy tool? I disabled mine for wikipedia.org so I can run scripts from related sites such as mediawiki.org. Certes (talk) 13:37, 14 February 2022 (UTC)
- Like you, I have mine disabled here. Thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:46, 14 February 2022 (UTC)
Most troublingly, the citation tool (Citoid) on RefToolbar is not working. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:46, 14 February 2022 (UTC)
Tech News: 2022-07
19:17, 14 February 2022 (UTC)
Pipe parameter without matching whitetext
When piping a parameter (like {{{1|}}}
), if the parameter is not provided, it will default to what is after the pipe (for {{{1|{{{2|}}}}}}
if 1 was not provided, it would default to the value of 2). The thing is, if there is whitespace, it will use the whitespace and not continue (for {{{1|{{{2|}}}}}}
, {{template|1= |2=value}}
, 1 would be matched because it was provided, even though it's whitespace). The part that makes this annoying is that if statements don't match the whitespace, and will result in false. For example:
(Template)
{{#if:{{{1|{{{2|}}}}}}|1 or 2 had a value|neither had a value}}
(Example)
{{template
|1=
|2=I have a value!
}}
This template will result in neither had a value
, because while |1=
had a whitespace, and provided it to the if statement, the if statement didn't accept it.
I know that I can manually check through every parameter to make sure that they aren't whitespace, but this adds a lot of redundancy and takes up a lot of space. For example:
{{#if:{{{1|}}}|1 or 2 has a value|{{#if:{{{2|}}}|1 or 2 has a value|neither had a value}}}}
will give the correct result.
Is there any way I can loop through multiple parameters that will continue down the line on a whitespace, without manually checking every parameter for whitespace before performing the if statement? Thanks, ― Levi_OPTalk 19:45, 14 February 2022 (UTC)
- {{if empty}} * Pppery * it has begun... 19:51, 14 February 2022 (UTC)
- @Pppery: How can I use {{if empty}} to solve my problem? ― Levi_OPTalk 20:31, 14 February 2022 (UTC)
{{if empty|{{{1|}}}|{{{2|}}}}}
behaves identically to{{{1|{{{2|}}}}}
, except that empty parameters will still pass through. The template can take any number of parameters ({{if empty|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}
, works to produce the first of four parameters with actual content). I thought that was what you are looking for, but I may have misread (and Jonesey95's idea is clearer when doing a basic "are any parameters set" anyway). * Pppery * it has begun... 21:53, 14 February 2022 (UTC)
- @Pppery: How can I use {{if empty}} to solve my problem? ― Levi_OPTalk 20:31, 14 February 2022 (UTC)
- Have you considered this? That might be what you are looking for. For a real-world example, look at the
{{#if:{{{1|}}}{{{2|}}}|1 or 2 has a value|neither had a value}}
data9
line at {{Infobox mountain}}. – Jonesey95 (talk) 20:51, 14 February 2022 (UTC)
Not seeing tools or notifications
I use Opera and recently had to reinstall it. Since reinstalling, I can't see the Tools tabs at the top of the page and when I click the Notifications icon the page is blank. I know that this is some setting about privacy or scripting but I can't remember or figure out which. Anyone have any ideas? Thanks in advance. Eggishorn (talk) (contrib) 20:43, 14 February 2022 (UTC)
- @Eggishorn, which skin are you using? You should be able to tell by looking at Special:Preferences#mw-prefsection-rendering. Whatamidoing (WMF) (talk) 23:59, 14 February 2022 (UTC)
- @Whatamidoing (WMF) and WhatamIdoing:, Apparently, whatever problem I'm having is also preventing me from seeing the "Appearance" tab of the Preferences page, so I can't tell for sure. to the best of my memory, I think it's Monobook. Eggishorn (talk) (contrib) 15:20, 15 February 2022 (UTC)
- Have a look at the images near the top of Wikipedia:Skin, see which is closest to what you have. The main details to consider are the items around the edges, rather than the main content. --Redrose64 🌹 (talk) 19:43, 15 February 2022 (UTC)
- @Redrose64:, I think it looks most like vector Legacy, if that's any help. Thanks again. Eggishorn (talk) (contrib) 20:09, 15 February 2022 (UTC)
- @Eggishorn, please click https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&safemode=1 and see if mw:safemode fixes anything. Whatamidoing (WMF) (talk) 17:21, 16 February 2022 (UTC)
- @Whatamidoing (WMF) and WhatamIdoing: Sorry for the delay in answering. The safe mode didn't change anything but everything started working correctly shortly before your last question. I didn't change any settings either on WP or my browser or restart the browser either, so I was at a loss as to why what didn't work before suddenly did. I was holding off on answering until it seemed like the changes "held" but the tools seem to be working now. I'm kind of stumped but the immediate problem seems solved. Thanks for your help. Eggishorn (talk) (contrib) 20:10, 18 February 2022 (UTC)
- Thanks for the update. I'm glad that the problem is solved, even if the solution is unknown. Whatamidoing (WMF) (talk) 22:22, 18 February 2022 (UTC)
- @Whatamidoing (WMF) and WhatamIdoing: Sorry for the delay in answering. The safe mode didn't change anything but everything started working correctly shortly before your last question. I didn't change any settings either on WP or my browser or restart the browser either, so I was at a loss as to why what didn't work before suddenly did. I was holding off on answering until it seemed like the changes "held" but the tools seem to be working now. I'm kind of stumped but the immediate problem seems solved. Thanks for your help. Eggishorn (talk) (contrib) 20:10, 18 February 2022 (UTC)
- @Eggishorn, please click https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&safemode=1 and see if mw:safemode fixes anything. Whatamidoing (WMF) (talk) 17:21, 16 February 2022 (UTC)
- @Redrose64:, I think it looks most like vector Legacy, if that's any help. Thanks again. Eggishorn (talk) (contrib) 20:09, 15 February 2022 (UTC)
- Have a look at the images near the top of Wikipedia:Skin, see which is closest to what you have. The main details to consider are the items around the edges, rather than the main content. --Redrose64 🌹 (talk) 19:43, 15 February 2022 (UTC)
- @Whatamidoing (WMF) and WhatamIdoing:, Apparently, whatever problem I'm having is also preventing me from seeing the "Appearance" tab of the Preferences page, so I can't tell for sure. to the best of my memory, I think it's Monobook. Eggishorn (talk) (contrib) 15:20, 15 February 2022 (UTC)
Are nowiki tags greedy now?
If you look at that revision, you can see that there are lots of non-rendered wikimarkup in a chunk of text at the end of the "Inexperienced editors answering questions" section. That looks like unclosed nowiki tags, but if you look at the source carefully, the tags are actually properly closed.
I thought about asking AssumeGoodWraith to fix their signature in the line of that edit, which fixed the thing. But I am not sure that the signature is actually to blame.
Looking at the symptoms, the only explanation I have is that nowiki tags are greedy matches (i.e. in a code sequence (nowiki)stuff1(/nowiki)stuff2(nowiki)stuff3(/nowiki)
, the first nowiki matches the last /nowiki, and the middle stuff is nowikied). I am not using the actual tags for obvious reasons. If that is so, surely that is new behaviour, and surely that is not intended.
Is there a (computer witch-)doctor in the room? TigraanClick here for my talk page ("private" contact) 10:05, 15 February 2022 (UTC)
- Let's just try it instead of guessing: [[stuff1]] not supposed to be nowiki [[stuff2]]. NguoiDungKhongDinhDanh 10:14, 15 February 2022 (UTC)
- After seeing this, I was thinking about replacing that with
{{pipe}}
, but it probably auto substs it and breaks templates again. – AssumeGoodWraith (talk | contribs) 10:16, 15 February 2022 (UTC)- @Tigraan: If you have your syntaxhighlighter feature enabled (when editing the whole page), you will probably see what happened. It was this non-nowikied nowiki tag that made up our mess. NguoiDungKhongDinhDanh 10:22, 15 February 2022 (UTC)
- @AssumeGoodWraith: And about your signature, consider using HTML entity
|
which will also gives a|
that can never be parsed. NguoiDungKhongDinhDanh 10:32, 15 February 2022 (UTC)- The effect of a
<nowiki>
tag varies depending upon the existence of a</nowiki>
tag at a later point in the page. If there is one, everything between those two tags is treated according to the description at H:NOWIKI. But if there isn't, the<nowiki>
tag is not processed and is displayed as plain text. So if a discussion page has a single unbalanced<nowiki>
tag in any section, that tag has no effect until somebody adds a<nowiki>...</nowiki>
pair later on - and then that closing</nowiki>
tag gets paired with the pre-existing<nowiki>
tag, and everything in between, including the newer<nowiki>
tag, is treated per H:NOWIKI. --Redrose64 🌹 (talk) 22:24, 15 February 2022 (UTC)
- The effect of a
"Daily pageviews of this article" displays oddly
At Talk:The story of the Rich man and Lazarus the pageviews template displays 1 week of views. However, the code is {{Annual readership|days=90|expanded=true}}, same as at Talk:Adam's Bridge, which looks right. Am I missing something? Gråbergs Gråa Sång (talk) 10:56, 15 February 2022 (UTC)
- It looks like it was moved a week ago, that probably has something to do with it. --rchard2scout (talk) 12:59, 15 February 2022 (UTC)
- Pageviews don't move with the page if it is moved, which means the move performed by now blocked user left the page views at the old title. Dreamy Jazz talk to me | my contributions 15:51, 15 February 2022 (UTC)
- Hmm, that wasn't an obviously good move. Gråbergs Gråa Sång (talk) 20:03, 15 February 2022 (UTC)
Neglected patterns in regex?
In regex you can neglect a pattern by putting it in brackets and putting a caret before the characters ([^pattern]
). I don't see anything in the documentation that shows how to do this using Scribunto patterns. Is this possible? ― Levi_OPTalk 17:22, 15 February 2022 (UTC)
- I think you can just use exactly the same syntax in Lua patterns as you do in Regex. * Pppery * it has begun... 17:57, 15 February 2022 (UTC)
- It's the final row in the table:
[^set]: Represents the complement of set, where set is interpreted as above.
Izno (talk) 18:59, 15 February 2022 (UTC)- I read that, but "the complement of set" is not very descriptive of the fact that it is negating everything in the set. I feel like this should be clarified. ― Levi_OPTalk 19:29, 15 February 2022 (UTC)
- Complement (set theory) is probably worth reading then. It is not negation. Izno (talk) 19:33, 15 February 2022 (UTC)
- @Izno: Ahh. I didn't realize that "complement" had such a literal meaning in the context of set theory. That's now how it's used in the normal english context. Also, how is that not negation? Do you mean that [^set] in scibunto patterns isn't the same as negation in regular regex? Because [^set] is commonly called a negated set in regex. ― Levi_OPTalk 20:14, 15 February 2022 (UTC)
- Yes, I realized that complement was equivalent to negation, though that article does make it obvious that it can also be called the logical complement. Kind of wondering why those are two separate articles now, or at least why they aren't linked in some see also fashion. Izno (talk) 20:28, 15 February 2022 (UTC)
- The negation of a proposition is different than the complement of a set, though, so while it might be something that could be under "see also", they're distinct. From a set theory point of view, the complement of a proposition would be all other propositions. isaacl (talk) 21:26, 15 February 2022 (UTC)
- Yes, I realized that complement was equivalent to negation, though that article does make it obvious that it can also be called the logical complement. Kind of wondering why those are two separate articles now, or at least why they aren't linked in some see also fashion. Izno (talk) 20:28, 15 February 2022 (UTC)
- @Izno: Ahh. I didn't realize that "complement" had such a literal meaning in the context of set theory. That's now how it's used in the normal english context. Also, how is that not negation? Do you mean that [^set] in scibunto patterns isn't the same as negation in regular regex? Because [^set] is commonly called a negated set in regex. ― Levi_OPTalk 20:14, 15 February 2022 (UTC)
- Complement (set theory) is probably worth reading then. It is not negation. Izno (talk) 19:33, 15 February 2022 (UTC)
- I read that, but "the complement of set" is not very descriptive of the fact that it is negating everything in the set. I feel like this should be clarified. ― Levi_OPTalk 19:29, 15 February 2022 (UTC)
- There is no negation. The pattern
[abc]
finds all characters in the set {'a', 'b', 'c'}. The pattern[^abc]
finds all characters not in that set. That is, it finds all characters in the complement of the set {'a', 'b', 'c'}. Johnuniq (talk) 22:11, 15 February 2022 (UTC)- Although the POSIX documentation for regular expressions doesn't seem to use the term, others such as Perl's documentation on character classes does (calling it a "negated" or "inverted" class, as well as referring to it as a "negation"). isaacl (talk) 23:16, 15 February 2022 (UTC)
Disappearing chunks of talkpage text
I tried searching around for an answer, but didn't find one; apologies in advanced if it's obvious.In short: for some reason, my addition of a comment on a talk page resulted in the disappearance of a large portion of text from that section for reasons that are entirely beyond me.
See the bottom section ("Inaccurate use of far-right label") in Special:Permalink/1071912592 and compare that with the underlying wikimarkup (displayed correctly in User:WhinyTheYounger/sandbox, "bug reproduction" — I copied the exact markup from the talkpage diff). The talk page doesn't display paragraphs of text that occur between my "first" ref (the third in the markup) and the additional portions of my comment even though it's in the underlying markup. It's like it got commented out. I tried toying around with the reflist-talk template and a few other things to fix the issue, to no avail. Any idea what's going on here? WhinyTheYounger (WtY)(talk, contribs) 18:57, 15 February 2022 (UTC)
- The big red Cite error: A <ref> tag is missing the closing </ref> (see the help page) is your clue. Can you see that giant error message in that permalink? Did you click on the link to the help page? The problem is that you tried to close
<ref>
with<ref>
instead of with</ref>
. One little slash can cause so much trouble. – Jonesey95 (talk) 19:25, 15 February 2022 (UTC)- @Jonesey95, about that big red error message. I looked at that version of the page and the error message flashed briefly (once but not again) before disappearing because I have the Discussion tools activated. I can only see those error messages when the tools are turned off! Not good since I spend time trying to fix reference errors. StarryGrandma (talk) 20:19, 15 February 2022 (UTC)
- The problem is only on talk pages. StarryGrandma (talk) 20:42, 15 February 2022 (UTC)
- Thank you @Jonesey95! But the ref error warning doesn't appear for me in the permalink either (or if it does, so briefly that I can't tell). I likewise have Discussion tools activated. WhinyTheYounger (WtY)(talk, contribs) 21:08, 15 February 2022 (UTC)
- It sounds like there's a Flash of unstyled content, before the warning message is hidden by sitewide CSS. It doesn't appear to be related to Discussion Tools.
- I thought, though, that the eat-the-rest-of-the-page thing for unclosed ref tags had been fixed some years ago. Is this new behavior? Whatamidoing (WMF) (talk) 17:27, 16 February 2022 (UTC)
- @Whatamidoing (WMF) If you just have an unclosed
<ref>
, then it won't eat the rest of the page. However, if you have an unclosed<ref>
followed by a valid<ref>…</ref>
tag (even in a different section), then it will eat everything between the unclosed<ref>
and the closing</ref>
of the second tag. :/ Matma Rex talk 18:56, 16 February 2022 (UTC)
- @Whatamidoing (WMF) If you just have an unclosed
- The problem is only on talk pages. StarryGrandma (talk) 20:42, 15 February 2022 (UTC)
- @Jonesey95, about that big red error message. I looked at that version of the page and the error message flashed briefly (once but not again) before disappearing because I have the Discussion tools activated. I can only see those error messages when the tools are turned off! Not good since I spend time trying to fix reference errors. StarryGrandma (talk) 20:19, 15 February 2022 (UTC)
- It's a really weird coincidence, but I also noticed this issue with discussion tools yesterday while working on an unrelated problem, and reported it here: T301845 (I'm one of the developers working on this). It's actually a bug in our software, and should be fixed soon. But the errors might still be hidden by sitewide CSS here, and I'd suggest that it should be changed to reveal them. Matma Rex talk 18:54, 16 February 2022 (UTC)
ADD publishersweekly.com to Wikipedia:Book sources
- en.wikipedia.org/wiki/Special:BookSources/<ISBN#>
- Wikipedia:Book sources
ADD :
- https://www.publishersweekly.com/<ISBN#>
OR:
- https://www.publishersweekly.com/pw/search/index.html?q=<ISBN#>
0mtwb9gd5wx (talk) 19:22, 15 February 2022 (UTC)
- Wikipedia talk:Book sources is the right place for this suggestion. – Jonesey95 (talk) 19:26, 15 February 2022 (UTC)
User not registered, but has contributions and is blocked
- সেক্সি রসিক সেক্সি (talk · contribs · deleted contribs · page moves · block user · block log)
Hi, User talk:সেক্সি রসিক সেক্সি was recently nominated for speedy deletion by Afeef per WP:CSD#U2 as talk page of a nonexistent user. Despite no user being registered under this name, this unregistered user has six contributions and is currently blocked. Is this a bug that is occurring due to the characters in the username, or something else? ✗plicit 14:04, 16 February 2022 (UTC)
- I would bet money that it's due to Unicode, or some weird character that might be in the username (e.g. a RTL override). However since the user quite evidently exists, it may be worth filing a bug report on phabricator. ―sportzpikachu my talkcontribs 14:10, 16 February 2022 (UTC)
- @Explicit and Sportzpikachu: that user does exist, but has a combination of blocks, locks, hides, and suppression settings so is likely not showing up on many queries. — xaosflux Talk 14:32, 16 February 2022 (UTC)
- One of these is unregistered yet has contribs. I forget which one. --Redrose64 🌹 (talk) 23:49, 16 February 2022 (UTC)
- Someone sure isn't afraid to express their political opinions― Blaze WolfTalkBlaze Wolf#6545 23:52, 16 February 2022 (UTC)
- I found it - Bonkrad (talk · contribs) has 25 contribs, but is not registered. The username doesn't have any characters outside the usual 26 letters, so we can probably rule out that theory. Their user log includes creation, block and a change to the block settings. --Redrose64 🌹 (talk) 19:37, 19 February 2022 (UTC)
- One of these is unregistered yet has contribs. I forget which one. --Redrose64 🌹 (talk) 23:49, 16 February 2022 (UTC)
Template:Unblock reviewed
Can someone with more HTML know-how than me take a look at this? —GMX(on the go!) 17:49, 16 February 2022 (UTC)
- It seems to be related to htmltidy. Ruslik_Zero 20:43, 16 February 2022 (UTC)
- @Ruslik0: We no longer have htmltidy, it was removed in July 2018 (and we couldn't have got TemplateStyles with Tidy still in place). See for example Wikipedia:Village pump (technical)/Archive 166#Tidy to RemexHtml, Wikipedia:Village pump (technical)/Archive 166#Tech News: 2018-25 and mw:Parsing/Replacing Tidy. --Redrose64 🌹 (talk) 13:16, 17 February 2022 (UTC)
Software version parsing and comparison Lua module
Hi, does a Lua module for Software version parsing and comparison exist somewhere, here, on Meta, MW, or somewhere else? Is there a library one could simply use built into MediaWiki? Would Apache-Licensed material be allowed? -- Rillke (talk) 21:34, 16 February 2022 (UTC)
N.b. I'm seeking for a solution for es:Módulo discusión:Ficha de software#Version sorting. -- Rillke (talk) 21:38, 16 February 2022 (UTC)
- @Rillke The following should work:
function paddedcompare(a, b) local y, z = "","" for i, v in ipairs(mw.text.split(a,'.',true)) do y = y .. string.format('%08d', tonumber(v)) .. '.' end for i, v in ipairs(mw.text.split(b,'.',true)) do z = z .. string.format('%08d', tonumber(v)) .. '.' end return y < z end table.sort(t, paddedcompare)
- --Ahecht (TALK
PAGE) 22:48, 16 February 2022 (UTC)- If the version numbers could contain anything other than digits and periods, you will need to use the following:
function paddedcompare(a, b) local function zeropad(s) local o = "" for v in string.gmatch(s, "(%d*%D*)") do if tonumber(string.match(v, "(%d*)")) then o=o..string.format('%08d', tonumber(string.match(v, "(%d*)")))..(string.match(v, "(%D+)") or '') else o=o..v end end return o end return zeropad(a) < zeropad(b) end table.sort(t, paddedcompare)
- --Ahecht (TALK
PAGE) 23:48, 16 February 2022 (UTC)
- If the version numbers could contain anything other than digits and periods, you will need to use the following:
The Teahouse's TOC is broken
The numbering is all over the place and some larger headers take up 2 or more numbers. Has anyone else seen this behavior before? NW1223(Howl at me/My hunts) 01:48, 17 February 2022 (UTC)
- Was
white-space: nowrap
removed accidentally from.tocnumber
? It does seem like a CSS issue to me. I'm using Vector-2022 btw. — Paper9oll (🔔 • 📝) 01:52, 17 February 2022 (UTC)- This was caused by this edit to the custom CSS styles for the page. I've reverted it as no explanation was given in the edit summary for why the CSS rule was used. Dreamy Jazz talk to me | my contributions 02:39, 17 February 2022 (UTC)
- I thought it was just my screen. ― Blaze WolfTalkBlaze Wolf#6545 03:05, 17 February 2022 (UTC)
- Thx, I have made the condition more specific and that should take care of it. —TheDJ (talk • contribs) 09:03, 17 February 2022 (UTC)
- This was caused by this edit to the custom CSS styles for the page. I've reverted it as no explanation was given in the edit summary for why the CSS rule was used. Dreamy Jazz talk to me | my contributions 02:39, 17 February 2022 (UTC)
"Review pending revisions" and monobook
In the Monobook skin, the "review pending revisions" thing overlaps the page title when the window is small enough (for example on my phone). Also, it looks like it is a dropdown menu, but it only seems to do mouseover. Can this be fixed and/or is there a way to turn this off? League of Nations is an example. —Kusma (talk) 12:27, 17 February 2022 (UTC)
- That's no longer a good example, so just pick any page in Special:PendingChanges and reduce the window size in Monobook skin to see the problem. —Kusma (talk) 22:53, 17 February 2022 (UTC)
- I assume you're using the responsive version of the skin. I do not see the issue you describe when I use the mobile emulator in Firefox. I do see that the pending changes box is not sized appropriately for responsiveness skins, but that's not that issue. Izno (talk) 05:07, 18 February 2022 (UTC)
- Yes, I use the responsive version and Chrome (and I never use the mobile version). The most annoying thing is that on my phone, I can't see article titles for pages that have pending revisions. On my laptop, it is only an issue if the page title is very long. —Kusma (talk) 22:29, 18 February 2022 (UTC)
Everything's gone tiny
Everything on Wikipedia has just gone into tiny text. Seems to affect all pages, except preferences. Other websites unaffected. Using Monobook on Edge on Win10. DuncanHill (talk) 16:07, 17 February 2022 (UTC)
- @DuncanHill: check if your browser "zoom" level is set to <100%? — xaosflux Talk 16:41, 17 February 2022 (UTC)
- If that doesn't do it, see if it your scripts by loading this page in safe mode. — xaosflux Talk 16:43, 17 February 2022 (UTC)
- @Xaosflux: I usually have everything at 125%, now if I have Wikipedia at 150% it looks like I expect it to. Safe mode looks the same as dangerous (?) mode. Other sites look normal at 125%. DuncanHill (talk) 20:03, 17 February 2022 (UTC)
- @DuncanHill: just to rule out "monobook" can you try this page in Vector with Safemode? — xaosflux Talk 21:51, 17 February 2022 (UTC)
- @Xaosflux: That looks huge at 150% and normal at 125%. DuncanHill (talk) 22:06, 17 February 2022 (UTC)
- @DuncanHill: just to rule out "monobook" can you try this page in Vector with Safemode? — xaosflux Talk 21:51, 17 February 2022 (UTC)
- @Xaosflux: I usually have everything at 125%, now if I have Wikipedia at 150% it looks like I expect it to. Safe mode looks the same as dangerous (?) mode. Other sites look normal at 125%. DuncanHill (talk) 20:03, 17 February 2022 (UTC)
- If that doesn't do it, see if it your scripts by loading this page in safe mode. — xaosflux Talk 16:43, 17 February 2022 (UTC)
Monobook seems to be setting body { font-size: x-small; }
. There's a big note in that context:
/* Font size: ** We take advantage of keyword scaling- browsers won't go below 9px ** See "Note 1" at https://www.w3.org/TR/CSS2/fonts.html#value-def-absolute-size ** More at http://www.w3.org/2003/07/30-font-size ** http://style.cleverchimp.com/font_size_intervals/altintervals.html ** https://web.archive.org/web/20180201141931/http://style.cleverchimp.com/font_size_intervals/altintervals.html ** This affects users whose browser font size setting is < 14.4px, ** making #globalWrapper's font-size 11.43px at minimum. ** Gadgets have their own monobook-specific css rule to set the font-size similar to #globalWrapper. */
There is a rule right after at #globalWrapper { font-size: 127%; }
also with the note /* scale back up to a sane default */
.
It may be your browser vendor's renderer (Edge is powered by "Google" Chromium) no longer does what that note says on the tin. It may be that you modified your personal settings (not your zoom) at some point to produce smaller text. (Less likely but not impossible.) Or it may be that x-small
is being interpreted a certain way now by Edge that it didn't before (for example, the <small> tag had inconsistent effects depending on the browser, which is why we set it to 85% in Common.css these days). Or it's possible that you changed the resolution on your desktop to a higher resolution (I have done so inadvertently before), which would appear to make the stuff displayed on your monitor smaller.
Either way, it is clear to me that "small" text is how Monobook is designed, more or less. Monobook text does look small to me as well (Firefox), but I can't say that it looks particularly smaller than how I remember it.
I don't know if this is worth filing a bug. I would guess that most stuff that would have been designed for Monobook exclusively went away when Vector became the norm, so a task "don't set these font sizes weird" might be accepted. I have no idea what the user fallout would be from that. --Izno (talk) 05:25, 18 February 2022 (UTC)
- @Izno: Thanks. It's only en-wiki that's affected - not other languages, not Commons, not Wikiquote, not Wikisource, and I have Monobook set as a global preference. DuncanHill (talk) 10:27, 18 February 2022 (UTC)
- Do you have the same problem in a different browser? How about if you open a private browsing window and don't log in? — xaosflux Talk 11:46, 18 February 2022 (UTC)
- (Use monobook parameter to see in mb when not logged in. — xaosflux Talk 11:46, 18 February 2022 (UTC)
- @Xaosflux: InPrivate+monobook looks normal, i.e. as it was before yesterday. I haven't got any other browsers installed. DuncanHill (talk) 13:55, 18 February 2022 (UTC)
- @DuncanHill: hmm, try Private, then login, is it OK then, or does it break when you log in? — xaosflux Talk 14:01, 18 February 2022 (UTC)
- @Xaosflux: When I log in it goes tiny. DuncanHill (talk) 14:05, 18 February 2022 (UTC)
- @DuncanHill: I tried loading all of your scripts, on Edge, with Monobook and couldn't replicate this - and you say it is still a problem when you are using safemode as well? Only other thing I can suggest you try now is to turn off Gadgets and/or Beta features in your preferences and see if that helps. — xaosflux Talk 14:26, 18 February 2022 (UTC)
- @Xaosflux: When I log in it goes tiny. DuncanHill (talk) 14:05, 18 February 2022 (UTC)
- @DuncanHill: hmm, try Private, then login, is it OK then, or does it break when you log in? — xaosflux Talk 14:01, 18 February 2022 (UTC)
- @Xaosflux: InPrivate+monobook looks normal, i.e. as it was before yesterday. I haven't got any other browsers installed. DuncanHill (talk) 13:55, 18 February 2022 (UTC)
- (Use monobook parameter to see in mb when not logged in. — xaosflux Talk 11:46, 18 February 2022 (UTC)
- Do you have the same problem in a different browser? How about if you open a private browsing window and don't log in? — xaosflux Talk 11:46, 18 February 2022 (UTC)
- Also check the value of "Enable responsive mode - adapt layout to screen size on mobile." In your preferences. Jdlrobson (talk) 23:51, 18 February 2022 (UTC)
Rollout of the new audio and video player
Please help translate to other languages.
Hello,
Over the next months we will gradually change the audio and video player of Wikis from Kultura to Video.js and with that, the old player won’t be accessible anymore. The new player has been active as a beta feature since May 2017.
The new player has many advantages, including better design, consistent look with the rest of our interface, better compatibility with browsers, ability to work on mobile which means our multimedia will be properly accessible on iPhone, better accessibility and many more.
The old player has been unmaintained for eight years now and is home-brewn (unlike the new player which is a widely used open source project) and uses deprecated and abandoned frameworks such as jQuery UI. Removing the old player’s code also improves performance of the Wikis for anyone visiting any page (by significantly reducing complexity of the dependency graph of our ResourceLoader modules. See this blog post.). The old player has many open bugs that we will be able to close as resolved after this migration.
The new player will solve a lot of old and outstanding issues but also it will have its own bugs. All important ones have been fixed but there will be some small ones to tackle in the future and after the rollout.
What we are asking now is to turn on the beta feature for the new player and let us know about any issues.
You can track the work in T100106
Thank you, Amir 17:59, 17 February 2022 (UTC)
Infobox showing unknown parameters
User:२ तकर पेप्सी/Sandbox check this a user thinks it's a bug and has suggested to say it here. — Preceding unsigned comment added by २ तकर पेप्सी (talk • contribs) 01:07, 18 February 2022 (UTC)
- I was the one who suggested they ask here. I don't necessarily think it's a bug since the unknown parameter errors only show up when previewing the edit. However something is causing the infobox to not work properly. ― Blaze WolfTalkBlaze Wolf#6545 01:16, 18 February 2022 (UTC)
- It's been fixed by PrimeHunter. Apparently the issue was there were invisible non-breaking spaces (as in ones that don't come from   or its template equivalent). ― Blaze WolfTalkBlaze Wolf#6545 01:21, 18 February 2022 (UTC)
An additional anti-vandalism step
I just came across this edit, which was clearly vandalism, and which stayed in the article for two years. The next edit by the same editor (to a different article) was reverted by User:ClueBot NG as vandalism, but there does not appear to be any mechanism for editors to be alerted that an editor reverted for vandalism on article X had also previously edited article Y. Something should be done to this effect. BD2412 T 01:25, 18 February 2022 (UTC)
- I can see some issues with this. An editor may have made a constructive edit on article Y and then on article X they make an edit that gets reverted by ClueBot NG (whether it be a false positive or not). Sending a notification to editors who have edited article Y or X may make them think that edit is also vandalism and, if they don't actually check it, will lead to a revert of a constructive edit. And there's also the issue with ClueBot NG having occasional false positives (doesn't happen often, but it does happen). ― Blaze WolfTalkBlaze Wolf#6545 01:31, 18 February 2022 (UTC)
- What are you picturing here? After ClueBot reverts someone, where would it send messages, specifically? Who would it alert and how? I could see some sort of centralized log of ClueBot vandalism reverts if that doesn't already exist (although of course we can already examine ClueBot's edit history), but the question would be whether editors would actually track it. I don't think ClueBot could reasonably ping individual editors or even drop notices on individual pages - that would get far too spammy, especially if ClueBot reverted someone with a non-trivial number of edits. Possibly ClueBot could determine possibly-related edits or possibly-related articles the user has edited and log them on that central page, but what algorithm would it use for this determination? If it just lists every single other page the user has ever edited, that's only really going to be viable if eg. the user has only edited a handful of pages. --Aquillion (talk) 06:18, 18 February 2022 (UTC)
- There are some limiting factors that could be applied. I think we can assume that editors with any substantial number of edits are not likely to be vandals. We can look at edits that introduced non-lexicalized character strings which ClueBot might not catch (for example, the first edit I noted above includes a change of "Attorney" to "Assorney", not a word), or edits that change blue links to red links, change dates, proper names, and the like. A centralized repository might include a snippet of the text changed, so it can easily be dismissed if obviously not vandalism. If there were a way to opt in to getting a ping about a vandal being reverted who had previously edited an article I have watchlisted, or an article in a particular category tree, I would certainly opt into that. BD2412 T 06:38, 18 February 2022 (UTC)
Captcha to edit
Before saving this edit and before posting this question here at VPT, I had to complete a captcha. Why was this requirement added? And did anyone tell all the bot operators? I don't see anything mentioning CAPTCHA here, or at Wikipedia:Village pump (proposals), or at Wikipedia:Bots/Noticeboard. 122.150.71.249 (talk) 07:36, 18 February 2022 (UTC)
- See Wikipedia:Administrators' noticeboard#Emergency captcha enable which mentions "ongoing severe botnet disruption". It's temporary, while needed (although I haven't seen the background). Johnuniq (talk) 08:06, 18 February 2022 (UTC)
- WP:ANI#"Delete P____" Doug Weller talk 08:44, 18 February 2022 (UTC)
Related OAuth breakage
If you run a tool that uses the python-social-auth module to do OAuth, the emergency fix described above probably breaks your authentication flow. Python-social-auth uses requests and doesn't override the default user agent. -- RoySmith (talk) 15:03, 18 February 2022 (UTC)
- I haven't heard any problems from logged in users, (including bots) - has any bot actually had a problem? — xaosflux Talk 15:06, 18 February 2022 (UTC)
- The issue is that the OAuth flow can't complete. As long as a user is already logged in, the token they got should continue to work. At least that's my understanding. I also see that T302047 was just opened to back this out, so it should become moot at some point in the not-too-distant future. -- RoySmith (talk) 15:12, 18 February 2022 (UTC)
- Heh. Apparently, "not-too-distant future" means a couple of minutes ago :-) -- RoySmith (talk) 15:15, 18 February 2022 (UTC)
- All afternoon I've needed to supply a Captcha just to preview my edits if they included a reference—a real pain—so I came here to find out what was going on. Glad to see it's in hand. Latest one, though, I didn't have to use one at all to save a new entry – result!--217.155.32.221 (talk) 17:02, 18 February 2022 (UTC)
- Heh. Apparently, "not-too-distant future" means a couple of minutes ago :-) -- RoySmith (talk) 15:15, 18 February 2022 (UTC)
- The issue is that the OAuth flow can't complete. As long as a user is already logged in, the token they got should continue to work. At least that's my understanding. I also see that T302047 was just opened to back this out, so it should become moot at some point in the not-too-distant future. -- RoySmith (talk) 15:12, 18 February 2022 (UTC)
- I haven't heard any problems from logged in users, (including bots) - has any bot actually had a problem? — xaosflux Talk 15:06, 18 February 2022 (UTC)
help regarding pywikibot
Hello. I am not familiar with python at all, but I want to perform only one task.
I am very good with C family. On mrwiki, I want to create an automated bot to do the task of "find and replace" in mainspace. On my computer, on command prompt, using replace.py I could do what I wanted to. I could change certain words from particular namespaces. The less than 10 contributions (all with english summary) of the bot can be seen at mr:special:contributions/KiranBOT_II.
Currently there is a list of words to be replaced in my user subpage at mrwiki. The current number is 42, but it expected to grow soon upto 200, and then slowly. The list/replace candidates are vetted on mr village pump before being added to that actual list.
From the idea of making a list of fixes in separate file (user-fixes.py), I created a separate file. Using that file, I was able to edit my userpage. But I still dont know the correct/working syntax of "find and replace" for pywikibot. I went through source code of replace.py, fixes.py and many other files, but still I could't find what I am looking for.
To be precise, how can I port following code to python/pywikibot, with addition to tell the pywikibot to edit in particular namespace(s).
{ Summary = "summary for bot"; Regex header = new Regex(@"\{\{{nobots", RegexOptions.IgnoreCase); Skip = (header.Match(ArticleText).Success); Match n = Regex.Match(ArticleText, @"\{\{PAGENAME", RegexOptions.IgnoreCase); if (n.Success) ArticleText = Regex.Replace(ArticleText, @"(\{\{PAGENAME\}\})", "{{subst:PAGENAME}}", RegexOptions.IgnoreCase); ArticleText = ArticleText.Replace("abc", "xyz"); ArticleText = ArticleText.Replace("foo", "bar"); return ArticleText; }
I use the above code for my AWB bot. I am trying to do the same thing with pywikibot. There is a similar discussion that has almost gone stale at Wikipedia:Bots/Noticeboard#help creating a bot. Any help/guidance will be appreciated very much. Thanks a lot, —usernamekiran • sign the guestbook • (talk) 08:43, 18 February 2022 (UTC)
- You can google find and replace in python. – SD0001 (talk) 15:33, 18 February 2022 (UTC)
- @SD0001: I already did that, long before asking help on wikipedia. I tried a lot of variations, they are not working. The first search result is geeksforgeeks, I added
string.replace(abcusernamekiran, xyz)
to my script, and then got the error "NameError: name 'string' is not defined". I tried few different variations from few different sources, all of them are giving similar/some or other error. —usernamekiran • sign the guestbook • (talk) 17:39, 18 February 2022 (UTC)
- @SD0001: I already did that, long before asking help on wikipedia. I tried a lot of variations, they are not working. The first search result is geeksforgeeks, I added
There was no direct/definitive answer on any of the websites. I finally managed to do it by comparing few other source codes, and lots of experiments. Now, I have only one question, how to tell the script to edit in particular namespace(s)? Regards, —usernamekiran • sign the guestbook • (talk) 18:31, 18 February 2022 (UTC)
- Do you mean you want to work on all pages in a particular namespace? That is done with a generator which iterates pages according to supplied parameters. I've never tried using the supplied scripts but pywikibot/pagegenerators.py seems to list options that might work with them. If writing your own program, I believe you would use pywikibot.pagegenerators.AllpagesPageGenerator with a namespace parameter. Johnuniq (talk) 23:05, 18 February 2022 (UTC)
New topic on talk pages
When did this change to a + sign? It's very confusing, and I almost end up clicking on history by mistake.— Vchimpanzee • talk • contributions • 23:38, 18 February 2022 (UTC)
- Still says "New Section" for me. ― Blaze WolfTalkBlaze Wolf#6545 01:54, 19 February 2022 (UTC)
- Do you have the
Replace the "new section" tab text with "+"
gadget enabled? That phab# above seems sus, wonder if we have to make a reverse gadget to change it back..... bleh. — xaosflux Talk 00:03, 19 February 2022 (UTC)- Historically, this has varied according to (a) skin and (b) the language selection made at Preferences. It still does:
Effect on the "New section" tab of varying skin/language setting useskin= uselang=en uselang=en-CA uselang=en-GB cologneblue New section + + minerva Add discussion Add discussion Add discussion modern new section + + monobook + + + timeless New topic New topic New topic vector New section Add topic Add topic vector-2022 New section + +
- Xaosflux I would certainly not do that.— Vchimpanzee • talk • contributions • 16:08, 19 February 2022 (UTC)
Using "1st" instead of "first" in a sentence, etc
I think WP:Ordinal used to have guidelines on when to use "first" and when to use "1st". I can't find it now. An editor is consistently using "1st" in a sentence when it should be "first". Where is the MOS guideline? Bubba73 You talkin' to me? 07:56, 19 February 2022 (UTC)
- This is the technical village pump, for discussion about technical items impacting Wikipedia; this thread is about content and style, and has been moved to: Wikipedia_talk:Manual_of_Style/Dates_and_numbers#Using_"1st"_instead_of_"first"_in_a_sentence,_etc; please feel free to follow up on this there. — xaosflux Talk 21:19, 19 February 2022 (UTC)
xtools oddity
If I go to my xtools page here [3], it has numbered links at the bottom so I can see article talkpages I've edited less. However, the page for articles [4] has no such links. Can this be fixed? Ping to @Mann Mann who asked first at the helpdesk. Gråbergs Gråa Sång (talk) 08:21, 19 February 2022 (UTC)
- Thanks for notifying me. Would someone please contact XTools developers for a solution/fix? OR any alternative way to view more entries in article namespace? Mann Mann (talk) 08:29, 19 February 2022 (UTC)
- @Gråbergs Gråa Sång and Mann Mann: "xtools" is not part of the English Wikipeida, you can report bugs with that tool by using this link. — xaosflux Talk 10:57, 19 February 2022 (UTC)
- Thanks! Gråbergs Gråa Sång (talk) 11:00, 19 February 2022 (UTC)
Changed behaviour for the thumb image option
Moonraker (talk · contribs) has made edits like this on a number of articles. I see no point to this, since it is merely doubling up the styles that are applied by the inbuilt CSS rule
div.tright,
div.floatright,
table.floatright {
clear: right;
float: right;
}
that is triggered by the use of |thumb
on the image. I brought it up on their talk page, and removed some such additions (example), but several of my edits have been reverted (example), reinstating the markup that is, to me, absolutely unnecessary.
So, has there been some change to the way that |thumb
behaves, either in the site's CSS or in the MediaWiki software? It seems strange that such a radical change in behaviour (floated images failing to float) would not be noticed by several other people and at least one thread started here. But if there has been a change, fixing this in one or two places would surely be easier than adding <div style="float:right;clear:right">...</div>
tag pairs around millions of images one by one. --Redrose64 🌹 (talk) 10:22, 19 February 2022 (UTC)
- I see on their talk page that the user claims that it only affects small-screen mobile devices, which is probably true as floats don't make much sense at low widths. But as far as I know the relevant CSS rules have existed for years. And I doubt wholesale forcing of floats on mobile devices is really going to be a good experience for such readers. Anomie⚔ 13:11, 19 February 2022 (UTC)
- This indeed has an effect on mobile devices, but it's a negative effect! Here's how the article you linked (Stewart Orr) looks like on my phone: https://phabricator.wikimedia.org/F34958172. Images are made to display at full width on mobile for a reason, please don't override that. Matma Rex talk 13:59, 19 February 2022 (UTC)
- Moonraker Please stop making this change. Izno (talk) 17:33, 19 February 2022 (UTC)
Strange curly brackets
There is }} }}
at the bottom of Bibb County, Alabama#Government and infrastructure, but I can't see what could be causing it. ― Qwerfjkltalk 13:34, 19 February 2022 (UTC)
- @Qwerfjkl: They're gone. --Redrose64 🌹 (talk) 13:43, 19 February 2022 (UTC)
- Personally I think it is easier to see uneven brackets with one of the highlighters.--Snævar (talk) 19:30, 19 February 2022 (UTC)
Edit Watchlist times out
I've got over 23,000 pages but I wouldn't think that's a problem. In theory I could also try editing my raw watchlist, but that loads, shows pages for a second, and goes blank. Doug Weller talk 17:49, 19 February 2022 (UTC)