Wikipedia:Village pump (technical)/Archive 207
This page contains discussions that have been archived from Village pump (technical). Please do not edit the contents of this page. If you wish to revive any of these discussions, either start a new thread or use the talk page associated with that topic.
< Older discussions · Archives: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN, AO, AP, AQ, AR, AS, AT, AU, AV, AW, AX · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216
Slow in saving edits
It has been incredibly slow in saving edits to an article. Going from page to page is fine though. Any idea why? Mcdynamite (talk) 01:29, 23 July 2023 (UTC)
- There has been a definite lag time for the last hour or so. - jc37 01:33, 23 July 2023 (UTC)
- Thanks for answering. Thought I might be the only one facing this issue... Mcdynamite (talk) 01:41, 23 July 2023 (UTC)
- Previewing changes & saving has been very slow since about 12:30 UTC. I thought that if I did something else for an hour it might have come right, but no. Nurg (talk) 01:50, 23 July 2023 (UTC)
- Thanks for answering. Thought I might be the only one facing this issue... Mcdynamite (talk) 01:41, 23 July 2023 (UTC)
- It's not just you, and it's not just edits. Pages have been slow to load. Twitter concurs that there's a problem on Wikipedia. schetm (talk) 01:53, 23 July 2023 (UTC)
- https://grafana.wikimedia.org/d/000000085/save-timing (look for graphs marked "frontend save timing"). And yes, me too. Also saving preferences. Suffusion of Yellow (talk) 01:55, 23 July 2023 (UTC)
- I have opened a ticket at Phab T342494 (not sure if I've done it very well. Nurg (talk) 02:10, 23 July 2023 (UTC)
- Thanks for opening the ticket. Same here as the others are experiencing. It's all the wikis - Commons, Wikisource, etc. etc. It was saving OK for me a couple of hours ago, but now it takes forever to save. — Maile (talk) 02:16, 23 July 2023 (UTC)
- Seems to have suddenly sped up. Nurg (talk) 02:18, 23 July 2023 (UTC)
- There was an outage, now fixed. https://www.wikimediastatus.net/ The Equalizer (talk) 02:30, 23 July 2023 (UTC)
- Seems to have suddenly sped up. Nurg (talk) 02:18, 23 July 2023 (UTC)
- Thanks for opening the ticket. Same here as the others are experiencing. It's all the wikis - Commons, Wikisource, etc. etc. It was saving OK for me a couple of hours ago, but now it takes forever to save. — Maile (talk) 02:16, 23 July 2023 (UTC)
- I have opened a ticket at Phab T342494 (not sure if I've done it very well. Nurg (talk) 02:10, 23 July 2023 (UTC)
Server loading issues on desktop side
I recently used Google Chrome to access Wikipedia and the result was "503 Service Unavailable No server is available to handle this request." Maybe the tool I used for bypassing censorship has an effect, but DownDetector reported that many people are experiencing the same issue. However it's fine when I used Tor browser and the Google Chrome version had just restored. IntegerSequences (talk | contribs) 02:19, 23 July 2023 (UTC)
- There was a brief outage, it appears to be fixed now. https://www.wikimediastatus.net/incidents/dkp64byz4xjm Lewcm (talk) 03:46, 23 July 2023 (UTC)
Severe slowdown for math-heavy pages
In the past week or two, but especially in the past couple of days, pages including lots of <math>
tags on them have been experiencing excessive latency (10s of seconds) for loading and making edits, and at some times of the day such requests time out entirely (after 60s the server gives up, returning: The maximum request time of 60 seconds was exceeded. [«ID number»] «date string»: Fatal exception of type "Wikimedia\RequestTimeout\RequestTimeoutException"
). There has been discussion about this on talk pages for golden ratio, prime number, and possibly other pages, and a slightly more general discussion at Wikipedia:Help desk#Golden ratio. During lower-traffic times of day everything works fine, and also pages seem to load okay for some readers from an Android app. Anyhow, the timeouts are making it very difficult to read / edit articles about technical topics. Some kind of fix would be appreciated! –jacobolus (t) 01:33, 22 July 2023 (UTC)
- I just viewed Golden ratio (pretty fast), clicked edit (fast), then preview (roughly 80 seconds by wall clock). The HTML source of the preview contained:
NewPP limit report Parsed by mw1455 Cached time: 20230722040649 Cache expiry: 600 Reduced expiry: true Complications: [vary‐revision‐sha1, vary‐revision‐exists, show‐toc] CPU time usage: 19.750 seconds Real time usage: 83.412 seconds Preprocessor visited node count: 14484/1000000 Post‐expand include size: 359791/2097152 bytes Template argument size: 19071/2097152 bytes Highest expansion depth: 19/100 Expensive parser function count: 34/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 435678/5000000 bytes Lua time usage: 0.918/10.000 seconds Lua memory usage: 15046222/52428800 bytes Number of Wikibase entities loaded: 1/400 Transclusion expansion time report (%,ms,calls,template) 100.00% 81338.394 1 -total 99.02% 80543.942 2 Template:Reflist 5.63% 4580.278 1 Template:Notelist 0.31% 255.475 63 Template:Cite_book 0.18% 146.923 36 Template:Cite_journal 0.16% 132.241 7 Template:Navbox 0.16% 130.244 25 Template:Sfn 0.15% 121.625 11 Template:Cite_web 0.11% 88.501 1 Template:Cite_OEIS 0.11% 87.729 5 Template:Efn
- Is that really saying {{reflist}} took 80 seconds? Johnuniq (talk) 04:20, 22 July 2023 (UTC)
- I just now tried to visit golden ratio and prime number, and both timed out (60s). When getting a preview of a golden ratio edit, it also took ~80 seconds for me. I tried replacing {{reflist}} with <references> ... </references> and getting another preview, and that didn't speed anything up. Now the relevant section of the source has:
NewPP limit report Parsed by mw1434 Cached time: 20230722043343 Cache expiry: 600 Reduced expiry: true Complications: [vary‐revision‐sha1, vary‐revision‐exists, show‐toc] CPU time usage: 19.028 seconds Real time usage: 90.114 seconds Preprocessor visited node count: 14219/1000000 Post‐expand include size: 359145/2097152 bytes Template argument size: 15800/2097152 bytes Highest expansion depth: 18/100 Expensive parser function count: 34/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 434817/5000000 bytes Lua time usage: 0.896/10.000 seconds Lua memory usage: 14909433/52428800 bytes Number of Wikibase entities loaded: 1/400 Transclusion expansion time report (%,ms,calls,template) 100.00% 89477.744 1 -total 4.22% 3772.995 1 Template:Notelist 4.21% 3770.875 1 Template:Reflist 0.28% 247.264 63 Template:Cite_book 0.16% 143.940 36 Template:Cite_journal 0.15% 131.096 7 Template:Navbox 0.14% 121.812 25 Template:Sfn 0.13% 120.113 11 Template:Cite_web 0.10% 88.810 1 Template:Cite_OEIS 0.09% 83.930 5 Template:Efn
- So perhaps reflist is a red herring. (Or maybe there's an issue with rendering the references whether or not it's wrapped in a reflist template.) –jacobolus (t) 04:38, 22 July 2023 (UTC)
- Hm. It does seems to have something to do with the references. If I remove all of the instances of <ref>...</ref> and {{sfn}} from the article it's much faster to preview. –jacobolus (t) 05:04, 22 July 2023 (UTC)
- So perhaps reflist is a red herring. (Or maybe there's an issue with rendering the references whether or not it's wrapped in a reflist template.) –jacobolus (t) 04:38, 22 July 2023 (UTC)
- This is probably phab:T341666. I hadn't gotten around to testing if we were experiencing the issue as well, but this section indicates we are. Izno (talk) 05:43, 22 July 2023 (UTC)
- I can't even undo an edit at Newton's laws of motion. It just times out with
Error: 503, Backend fetch failed
. XOR'easter (talk) 02:34, 23 July 2023 (UTC)- Well, the undo now appears in the page history, but not in the article. That is, the most recent revision in the page history is not the current page. Purging the page cache does not fix this. What is going on here? XOR'easter (talk) 02:56, 23 July 2023 (UTC)
- The change has finally percolated through. I don't think I've ever seen a discrepancy like that before. XOR'easter (talk) 04:23, 23 July 2023 (UTC)
- Well, the undo now appears in the page history, but not in the article. That is, the most recent revision in the page history is not the current page. Purging the page cache does not fix this. What is going on here? XOR'easter (talk) 02:56, 23 July 2023 (UTC)
- I can't even undo an edit at Newton's laws of motion. It just times out with
- Visited Golden ratio and clicked edit.
- Response:
- Server timed out
- The maximum request time of 60 seconds was exceeded.
- [2ff8530f-33e4-4d94-b609-98939a5728bc] 2023-07-23 02:41:04: Fatal exception of type "Wikimedia\RequestTimeout\RequestTimeoutException" IntegerSequences (talk | contribs) 02:43, 23 July 2023 (UTC)
- I have clicked edit and previewed in both my math article Hooley's delta function and a random new page Waikato_(rangatira).
- Waikato_(rangatira) took only 0.113 seconds in real time while Hooley's delta function took 4.557 seconds, almost 40 times longer. However, the 4103-byte article is less than 6 times as long as the 761-byte Waikato_(rangatira). This is definitely out of proportion.
- Therefore it's easy to imagine that the 116-thousand-byte Golden ratio times out while the 87-thousand-byte 2023 Pacific typhoon season takes only 2.488 sec to preview. IntegerSequences (talk | contribs) 03:15, 23 July 2023 (UTC)
- Long math pages sometimes load well on my computer but editing always fail. IntegerSequences (talk | contribs) 03:21, 23 July 2023 (UTC)
- Newton's laws of motion: An error occurred while attempting to preview your changes.
- Server returned error: HTTP 503. IntegerSequences (talk | contribs) 05:14, 23 July 2023 (UTC)
- An error occurred while attempting to preview your changes.
- The server did not respond within the expected time. IntegerSequences (talk | contribs) 05:16, 23 July 2023 (UTC)
- Long math pages sometimes load well on my computer but editing always fail. IntegerSequences (talk | contribs) 03:21, 23 July 2023 (UTC)
Math in section heading
Please look at WP:RD/Math as it appears currently (i.e. this) when using the default skin in a wide window so that the table of contents is a sidebar. Scroll to the bottom and you will see that the last section heading reads The meaning of . But look over at the sidebar and the table of contents shows The meaning of '"`UNIQ--postMath-00000049-QINU`"' . It ought to be possible to improve on that! --142.112.221.64 (talk) 06:01, 22 July 2023 (UTC)
- This is something in the direction of phab:T295091. Izno (talk) 06:06, 22 July 2023 (UTC)
- Fortunately, MOS:HEAD forbids this in article space, so there shouldn't be much of these. —David Eppstein (talk) 07:06, 22 July 2023 (UTC)
- There look to be about 30 cases that should be adjusted. Izno (talk) 07:35, 22 July 2023 (UTC)
- And another 70 from the other direction. IDK how best to get <math> internal to a heading. Izno (talk) 07:45, 22 July 2023 (UTC)
- Or just search for "UNIQ--postMath": [1] (127 hits). It would help if a discussion somewhere decided how to handle these with a link to the discussion in edit summaries fixing the problems. Johnuniq (talk) 09:56, 22 July 2023 (UTC)
- Hey! This is serious! It's affecting an article on steam locos! -- Verbarson talkedits 11:50, 22 July 2023 (UTC)
- For now, yes, I do suppose that works. Izno (talk) 16:13, 22 July 2023 (UTC)
- Also, how to handle them is already prescribed in MOS:HEAD, as David identified. Izno (talk) 16:14, 22 July 2023 (UTC)
- Or just search for "UNIQ--postMath": [1] (127 hits). It would help if a discussion somewhere decided how to handle these with a link to the discussion in edit summaries fixing the problems. Johnuniq (talk) 09:56, 22 July 2023 (UTC)
- And another 70 from the other direction. IDK how best to get <math> internal to a heading. Izno (talk) 07:45, 22 July 2023 (UTC)
- There look to be about 30 cases that should be adjusted. Izno (talk) 07:35, 22 July 2023 (UTC)
- Fortunately, MOS:HEAD forbids this in article space, so there shouldn't be much of these. —David Eppstein (talk) 07:06, 22 July 2023 (UTC)
I pointed out (fairly facetiously) that the article Victorian Railways Dd class has math markup, including using it in a section heading. I have just looked up that article in the app, and found that the infobox named "Victorian Railways class" (which displays acceptably in a browser), generates a hidden box with the visible title "Quick Facts D E D {\displaystyle \mathrm {D_{{E}^{D}} }" (which, when opened, includes the correctly-rendered name). The use of math markup in the name= parameter is not covered by MOS:HEAD or mentioned in Template:Infobox. I would guess that this is a related issue. -- Verbarson talkedits 16:55, 23 July 2023 (UTC)
CentralNotice won't stay dismissed
Over the last three or four weeks, I have been presented with several different WP:CENTRALNOTICE banners. I dismiss them using the "X-in-circle" icon at the top right of the box, yet they keep on returning, sometimes several times in one day. For example, the banner reading "Join the Wikipedia Pages Wanting Photos Campaign 2023 to help improve Wikipedia articles with photos and win a prize!" (the id for which is wikipedia_wanting_photos_2023
) has been shown to me three times today - twice in my session of 08:00-08:45 (UTC), and once in the session that I began at 16:45 (UTC). I can hide them all permanently by unsetting everything at Preferences → Banners, or by setting "Suppress display of all CentralNotices (To suppress only certain classes of notices use the Banners option in preferences)" at Preferences → Gadgets, but these methods then won't allow any banners to be displayed, not even new ones that I might be interested in. Short of doing this, which non-tech-savvy readers may not be happy doing, how can banners that are no longer of interest be dismissed permanently and yet still allow a completely-new banner to be displayed? --Redrose64 🌹 (talk) 17:34, 23 July 2023 (UTC)
Image rotates 90 degrees automatically with flipped aspect ratio
For whatever reasons the image on the right doesn't appear like it actually is. Click it to open in media viewer and it is okay. On the page, it is rotated 90 degrees anti-clockwise. Not just that, the height-to-width ratio is completely flipped so that the image now looks very squeezed. I saw this happen at Songkhla but the issue appears on every page, including here and at File:Naga Head.jpg#filehistory. But scrolling to the top of file page, and it is perfectly fine. What is happening here? —CX Zoom[he/him] (let's talk • {C•X}) 18:04, 23 July 2023 (UTC)
- It was, I think the technical term is, screwed up. Some parts of the system thought it was rotated, and some didn't. I re-uploaded it, and after a bunch of purging, it seems to be displaying correctly. – Jonesey95 (talk) 18:25, 23 July 2023 (UTC)
- Thank you very much, it is fine now. —CX Zoom[he/him] (let's talk • {C•X}) 19:11, 23 July 2023 (UTC)
- This generally happens if different metadata systems (images can have multiple) have it marked as differing rotation. The information is then conflicting and results become unpredictable. —TheDJ (talk • contribs) 19:11, 23 July 2023 (UTC)
More articles with misplaced infobox on mobile version
Just found a few more articles which appears to follow MOS:ORDER, yet the infobox is placed at the top instead of appearing after the first paragraph on mobile version. Examples inlcude Battle of Aizu, Battle of Ramillies & Falklands War. At first, I thought it is an issue with {{Infobox military conflict}}, but then I found that articles like Battle of Pharsalus don't face the same issue. What is wrong now? —CX Zoom[he/him] (let's talk • {C•X}) 19:02, 23 July 2023 (UTC)
- This is in continuation to Wikipedia:Village pump (technical)/Archive 206#Mobile lead image placement. —CX Zoom[he/him] (let's talk • {C•X}) 19:11, 23 July 2023 (UTC)
- This is because they use {{stack}} (which is a wrapper around the infobox). —TheDJ (talk • contribs) 19:12, 23 July 2023 (UTC)
- Which shouldn't cause an issue per the discussion in the archive, now that I've readded the relevant class to the container. Izno (talk) 19:14, 23 July 2023 (UTC)
- Is stack within the infobox code? —CX Zoom[he/him] (let's talk • {C•X}) 19:14, 23 July 2023 (UTC)
- Within that one's yes. Whenever you use a campaignbox. —TheDJ (talk • contribs) 19:16, 23 July 2023 (UTC)
- Makes sense now. But, considering that campaignbox is not visible on mobile anyway, is it possible to selectively apply stack only on desktop mode? Maybe by using a variant of stack template that uses the same class as infoboxes, so mobile view remains consistent? —CX Zoom[he/him] (let's talk • {C•X}) 19:20, 23 July 2023 (UTC)
- Within that one's yes. Whenever you use a campaignbox. —TheDJ (talk • contribs) 19:16, 23 July 2023 (UTC)
Unregistered users can not request changes that include external links. Where MediaWiki:Fancycaptcha-addurl is displayed after attempting to save a page in the editor, custom forms like Wikipedia:Requests_for_page_protection/Edit/Form break. The input is silently dropped. ~ ToBeFree (talk) 00:00, 24 July 2023 (UTC)
- If the JavaScript of the form can check the user's groups or privileges, it could simply drop back to the default editor whenever a lack of
skipcaptcha
is detected. ~ ToBeFree (talk) 00:06, 24 July 2023 (UTC) - The right fix here is to detect if the edit API response is asking for a captcha (if so, it also provides the URL to the captcha image), show the image on the UI and ask the user to solve it; and then retry the edit API with the captchaid and captchaword fields.
We already handle this in the WP:SUBMIT script (see MediaWiki:AFC-submit-wizard.js). Someone should implement it here as well – much of the logic can be copy-pasted. – SD0001 (talk) 08:04, 24 July 2023 (UTC)
Not digging the new mobile diffs
The most recent Thursday update has changed the highlighting on mobile diffs such that instead of highlighting the whole block of text including spacing between lines, now the highlighting only goes as high as the text, leaving dark grey bars in between each line.
For some reason, this makes it way harder for my brain to read. I find myself taking more than twice as long to read a block of text, and have to reread lines frequently, almost like I'm reading it upside down. I never knew I was so dumb.
Is there any CSS I can add somewhere to revert to the old highlighting? Or alternatively, to force standard diff view on mobile? I have to swap into it about a third of the time anyway, and maybe this highlighting change is the universe's way of telling me to stop using mobile diffs altogether. Folly Mox (talk) 11:46, 21 July 2023 (UTC)
- Do you have examples of diffs you find hard to read? If you can successfully illustrate the difficulty, that might help devs change their minds. Nardog (talk) 13:53, 21 July 2023 (UTC)
- I mean, I suppose I could link the most recent diff on my watchlist, Special:MobileDiff/1166429149, but my reading problem universal to all examples. It's like the dark grey bar is guiding my eye to the wrong line, and I end up reading the line I just read instead of continuing on to the next one. Folly Mox (talk) 14:00, 21 July 2023 (UTC)
- Maybe something like Nardog (talk) 14:22, 21 July 2023 (UTC)
.mw-diff-inline-added { background-color: #75c877; } .mw-diff-inline-deleted { background-color: #e07076; }
- Thank you! That worked. Folly Mox (talk) 15:20, 21 July 2023 (UTC) Folly Mox (talk) 15:20, 21 July 2023 (UTC)Resolved
- This might be related to phab:T330247 but I'm not sure. It doesn't look like anybody intentionally changed anything on mobile diffs this Thursday. Jdlrobson (talk) 19:09, 21 July 2023 (UTC)
- No changes to mobile diffs were intentional, however this change was intentional for the upcoming inline diffs for desktop. We were nervous folks wouldn't like this particular aspect, and I guess this is confirmation. Allow me to explain the logic, however; phab:T327645 is the relevant task. As you can see, the concern was that the background extending across to the other edge could be misinterpreted as added newlines, or at the very least, is indistinguishable from someone who added a bunch of spaces that happened to stretch across. I hope my explanation makes sense.
- I wasn't able to find a happy medium where we use inline elements (fixing the aforementioned issue) but also retaining the background color between each line of text. It might be possible, but assuming it's not, which do you think is better? cc @Folly Mox but inviting input from everyone.
- I should note that there will soon hopefully be less confusion on where newlines are, as we will clearly indicate those (phab:T330247).
- We'd love to hear any feedback you have, either about the issue brought up here or any of the Better Diffs project. In the meantime, we'll likely revert the recent change that effected mobile diffs. We can get that deployed as soon as Monday. Apologies for the inconvenience, MusikAnimal (WMF) (talk) 21:50, 21 July 2023 (UTC)
- User:MusikAnimal (WMF) please don't apologise to me or allow my personal experience to guide development. I'm just one data point, and my brain is super weird.[original research?] It may very well be the case that this is a total non-issue or even improvement for literally everyone else. I notice there are (carriage return symbol) newline elements in the inline diffs now, which seems like it might help solve the issue. I have unrelated suggestions I'll drop off at the meta page in a moment. Folly Mox (talk) 22:13, 21 July 2023 (UTC)
- Oops just kidding the meta page is just about paragraph breaks, and I don't really know how to interact with phabricator. My suggestion was to remove
-
and=
from the list of characters that are interpreted as word breaks, so inline diffs showing changes in templates look less garbled. Folly Mox (talk) 22:22, 21 July 2023 (UTC)
- Oops just kidding the meta page is just about paragraph breaks, and I don't really know how to interact with phabricator. My suggestion was to remove
- User:MusikAnimal (WMF) please don't apologise to me or allow my personal experience to guide development. I'm just one data point, and my brain is super weird.[original research?] It may very well be the case that this is a total non-issue or even improvement for literally everyone else. I notice there are (carriage return symbol) newline elements in the inline diffs now, which seems like it might help solve the issue. I have unrelated suggestions I'll drop off at the meta page in a moment. Folly Mox (talk) 22:13, 21 July 2023 (UTC)
- This might be related to phab:T330247 but I'm not sure. It doesn't look like anybody intentionally changed anything on mobile diffs this Thursday. Jdlrobson (talk) 19:09, 21 July 2023 (UTC)
- Thank you! That worked. Folly Mox (talk) 15:20, 21 July 2023 (UTC)
I'm not sure if I'm seeing the same, but I struggle reading the new diffs too to the point where I cannot finish reading a relatively small diff like Special:MobileDiff/1166705972. I don't see dark grey lines between the green highlighting, but white lines. As such, the contrast between green and text is less than the contrast between white and green. I think this can only work with quite a light green colour. User:MusikAnimal (WMF), thanks for considering rolling it back. —Femke 🐦 (talk) 07:49, 23 July 2023 (UTC)
- Thanks all for the feedback! I think we may have found that happy medium with gerrit:940995. If all goes as planned it will land here on English Wikipedia this Thursday. MusikAnimal (WMF) (talk) 22:18, 24 July 2023 (UTC)
- You can see a few screenshots of how the diffs will look afterwards at T327645#9039600. Matma Rex talk 22:38, 24 July 2023 (UTC)
Visual editing
Hello. I posted my question in Teahouse and they redirected me here since this place has many professionals regarding technical questions. I have question regarding visual editing. I specialize in filmography editing and I noticed a slight problem. Whenever I am adding info through source editing and I want to look how it looks through visual editing, It wont let me. I click visual editing button when I am in source editing domain and it doesnt work. I dont know whether this is bug or new update, but after Thursday, it doesnt work. I can look through "preview" but its annoying since I cant fix anything right on spot. So if you have any tips or info, I will be glad. Ps, Im editing on Android and mostly on Google Chrome. Kesseder (talk) 16:56, 24 July 2023 (UTC)
- Do you have an example of a section where this has happened? What exactly happens when you click "Visual editing"? (Any error message, does the progress bar show up, etc.) Is "Use the wikitext mode inside the visual editor, instead of a different wikitext editor" in Preferences on? Nardog (talk) 22:05, 24 July 2023 (UTC)
- Basically, nothing happens when i click visual editing. Source editing works normally. For example, I want to change something in source code and I want to see how it looks (through visual editing), it wont let me, the button is not working for me. I click it and nothing happens (no error, no message). I tried it even on my editor through my user page, I write something on source editing domain, i cant see how it looks visually, so I dont know whether this is something new (like update) or its bug, but its confusing and annoying for me. Thx in advance for any additional info Kesseder (talk) 22:49, 24 July 2023 (UTC)
- It's indeed a bug introduced last week, and affecting the mobile editor only: T342490. Sorry about that; hopefully it will be fixed soon. In the meantime, if you can bear it, try editing using the desktop editor (you can access it on mobile devices by the "Desktop" link in the page footer, and switch back using the "Mobile view" link in the footer). Matma Rex talk 22:50, 24 July 2023 (UTC)
Discussion at Talk:Opinion polling for the 2023 Spanish general election § What happened to the References?
You are invited to join the discussion at Talk:Opinion polling for the 2023 Spanish general election § What happened to the References?. -- Marchjuly (talk) 22:29, 23 July 2023 (UTC)
- Does anyone know of a work-around for this problem? I came across it via WP:THQ#Weirdly referenced article, but I have no real idea as to how to best fix it. -- Marchjuly (talk) 22:33, 23 July 2023 (UTC)
- You have run over the transclusion limit. The only fix is to transclude less content. I've used the bare reference tag as a start. Removing the use of {{font}} would be the next place to work on the problem. Izno (talk) 23:04, 23 July 2023 (UTC)
- You should also consider not having a 600k article. That would be the other issue. Use some editorial discretion to remove old or insignificant data. Having poll results from 2018 for an election not occurring until this year is somewhere in the realm of unnecessary, at best. Izno (talk) 23:26, 23 July 2023 (UTC)
- I appreciate the feedback Izno, and your fix has made things better but there's still an issue. FWIW, I only came across the problem via a Teahouse question. I haven't edited the article other than to add a {{Very long}} template to its top. Before asking about this here, I posted {{Please see}} messages on various Wikipedia Project talk pages and also a few times on the article's talk page, but that's been the extent of my involvement. So, the "you" in this case is not "me", but rather all of the others who've been expanding the article, and continue to expand the article even after your "fix". Would you mind if I copied-and-pasted your above comments onto the article's talk page? Is there a way to WP:PP the article to temporarily stop it from being further expanded until the issue can be resolved through discussion on the talk page? -- Marchjuly (talk) 03:14, 24 July 2023 (UTC)
- I have no problem with copy-pasting. Page-protection is not supported, however. Izno (talk) 04:25, 24 July 2023 (UTC)
- I see you did a WP:SPINOUT, which seems like a good technical solution. However, these articles may run afoul of WP:NOTSTATS. Articles should be mostly prose and references. Whenever we have a situation where an article is mostly stats, that is a red flag. –Novem Linguae (talk) 08:22, 24 July 2023 (UTC)
- @Novem Linguae: The SPINOUT was done by one of the main contributors to the article, not myself. That seems to have resolved the TLIMIT issue. Quite a lot of the {{font}} templates were removed by a different user and that too seem to resolve the problem, but that edit was reverted and the article was then spun off. I don't have much experience in the editing of these articles and perhaps the intention is to eventually add more prose; so, I guess any NOSTATS concerns and anything else probably should be raised on the article's talk page. Finally, thanks to you and everyone else who responded here or on the article's talk page, and helped sort this out. -- Marchjuly (talk) 00:19, 25 July 2023 (UTC)
- I appreciate the feedback Izno, and your fix has made things better but there's still an issue. FWIW, I only came across the problem via a Teahouse question. I haven't edited the article other than to add a {{Very long}} template to its top. Before asking about this here, I posted {{Please see}} messages on various Wikipedia Project talk pages and also a few times on the article's talk page, but that's been the extent of my involvement. So, the "you" in this case is not "me", but rather all of the others who've been expanding the article, and continue to expand the article even after your "fix". Would you mind if I copied-and-pasted your above comments onto the article's talk page? Is there a way to WP:PP the article to temporarily stop it from being further expanded until the issue can be resolved through discussion on the talk page? -- Marchjuly (talk) 03:14, 24 July 2023 (UTC)
- You should also consider not having a 600k article. That would be the other issue. Use some editorial discretion to remove old or insignificant data. Having poll results from 2018 for an election not occurring until this year is somewhere in the realm of unnecessary, at best. Izno (talk) 23:26, 23 July 2023 (UTC)
- You have run over the transclusion limit. The only fix is to transclude less content. I've used the bare reference tag as a start. Removing the use of {{font}} would be the next place to work on the problem. Izno (talk) 23:04, 23 July 2023 (UTC)
Tech News: 2023-30
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- On July 18, the Wikimedia Foundation launched a survey about the technical decision making process for people who do technical work that relies on software that is maintained by the Foundation or affiliates. If this applies to you, please take part in the survey. The survey will be open for three weeks, until August 7. You can find more information in the announcement e-mail on wikitech-l.
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 25 July. It will be on non-Wikipedia wikis and some Wikipedias from 26 July. It will be on all wikis from 27 July (calendar).
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 02:18, 25 July 2023 (UTC)
How can I use a fair use image in multiple related articles at the same time?
The image File:City of Yellowknife CoA.svg is the emblem of the City of Yellowknife and is protected by copyright until 2050 because it is protected by Canada's Crown Copyright Act (meaning the image cannot be exported to Wikimedia Commons until 2050). Currently the image is only used in the article introducing the city of Yellowknife, but another article Coat of arms of Yellowknife introduced the design of the logo in detail, so I need to use this fair use image in an article that is closer to its theme. Fumikas Sagisavas (talk) 04:09, 25 July 2023 (UTC)
- Hi Fumikas Sagisavas. For future reference, it's generally better to ask questions of this nature at Wikipedia:Media Copyright Questions since this noticeboard is more for asking technical related questions about things Wikipedia. I'm guessing your question is related to this edit made to Coat of arms of Yellowknife by JJMC89 bot, but please clarify if it's not. That particular bot has been tasked with looking for non-free files being used in a manner that doesn't comply with Wikipedia non-free content use criterion #10c. Each use of a non-free file is required to meet all ten of the non-free content use criteria listed here. One of these criteria (more specifically one part of one of these criteria) is #10c, which states that a separate, specific non-free content use rationale which clearly indicates where the file is being used and how its use satisfies the aforementioned 10 criteria be provided on the file's page for each use of the file. Since there is no rationale for the file's use in the COA article on the file's page, the bot removed the file and left an edit summary linking to WP:NFC#Implementation explaining why. If you feel the file's non-free use in the COA article complies with relevant Wikipedia policy, you should add a non-free use rationale for the file's use in the COA article to the file's page and then re-add the file to the article. This should stop the bot from removing the file. There are, however, a couple of things to consider before you do that. The first one is that adding a non-free use rationale for a particular use doesn't automatically mean the use is policy compliant as explained here; the use needs to clearly meet all 10 criteria for it to be considered valid. This can be tricky when it comes to COAs per WP:FREER because the written description of the COA (i.e. the blazon) is generally not considered to be eligible for copyright protection and it's only the graphic representations of that description (i.e. the emblazon) which tend to be protected by copyright. In other words, a free equivalent version of COA might be possible for someone to create by following the instructions given in the blazon. The next thing is that it's not clear why a stand-alone article is needed for that particular COA. At first glance, the COA doesn't seem to meet any of Wikipedia's notability guidelines to justify a stand-alone article. The content about the COA might encyclopedically relevant enough to include as a section in the article about the city, but it might not be enough to warrant its own separate article. So, you might be better off asking about such things at Wikipedia talk:WikiProject Heraldry and vexillology because that's where you're likely going to find Wikipedians interested in and more familiar with articles about COAs. One of the members of that WikiProject might be able to help answer both questions about the file's non-free use and about the Wikipedia notability of the COA. Once the COAs notability has been sorted out, figuring out how to best add the image can be discussed. -- Marchjuly (talk) 05:51, 25 July 2023 (UTC)
Massive wide-ranging IP block on Airtel India users
Monitoring incoming links
I get notified when a new incoming link is created to a disambiguation page I created. Is there a way to do the same for groups of dab pages? I. e., can I watch a list of pages for new incoming links? Paradoctor (talk) 21:02, 25 July 2023 (UTC)
- @Paradoctor: There is a daily(ish) Disambiguation pages with links report. For a more targetted list, you could run a regular SQL such as User:Certes/Reports/Ambiguous rail links. If the dab is at the base name – Mercury rather than Venus (disambiguation) – then you can probably list all incoming links rather than just new ones, as existing links should get diverted via a redirect per WP:INTDAB. Certes (talk) 21:31, 25 July 2023 (UTC)
- @Certes Not quite what I had in mind, but the Toolforge report will do. Thanks!
- Related Changes does not show new incoming links, only changes to the pages themselves.
- Is there a reason there is no bot task that reroutes direct links to dab pages without primary topic? Would seem a no-brainer, IYAM. Paradoctor (talk) 21:46, 25 July 2023 (UTC)
- Reroutes them how? How should the bot no where to reroute them to? * Pppery * it has begun... 21:50, 25 July 2023 (UTC)
- A few links to Mercury are deliberate and could be rerouted to Mercury (disambiguation), perhaps even by bot, but we can't tell them from the larger pool of accidental links such as Mercury orbits the Sun or Oxides of mercury which should go to Mercury (planet), Mercury (element), etc. Certes (talk) 22:01, 25 July 2023 (UTC)
- Right. Brain fart. Ironically, that is the very problem I wanted this for. 🤦
- Moving along. Paradoctor (talk) 22:46, 25 July 2023 (UTC)
- There's a whole WikiProject sorting these links out as they appear, not to mention another one sorting out links to the wrong article (The Romans worshipped Venus rather than Venus (mythology), etc.) Certes (talk) 00:02, 26 July 2023 (UTC)
How to cite a timestamp for video media like how we can use SFN to cite a specific page number?
Per title, thank you Darkwarriorblake (talk) 14:34, 26 July 2023 (UTC)
- {{cite av media}} Izno (talk) 15:24, 26 July 2023 (UTC)
- I tried that but as far as I can see if I want to cite one video with different timestamps I have to source it in full each time? Darkwarriorblake (talk) 15:59, 26 July 2023 (UTC)
- Use {{cite av media}} in the Works cited section, and link to it with {{sfn}} using "|loc=time stamp" rather than the "|p=" parameter. Templates like {{sfn}} or {{harv}} aren't valid references on their own, they need to link to a cite containing the full details. That's why you have to have the {{cite av media}} as well. If you have questions about specific examples feel free to ask on my talk page. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 18:44, 26 July 2023 (UTC)
- I tried that but as far as I can see if I want to cite one video with different timestamps I have to source it in full each time? Darkwarriorblake (talk) 15:59, 26 July 2023 (UTC)
Context-significant numbers in popups
If you've activated article-link popups, mouse over a link to Rail transport in Laos and you're informed that "Laos has of standard-gauge railways, primarily..." Visit the article, and you read that "Laos has 422 km (262 mi) of 1,435 mm (4 ft 8+1⁄2 in) standard gauge railways, primarily..."
I understand the importance of removing parenthetical details from popups, but is there a way to include numbers by default? Ideally, the popup would say "Laos has 422 km of 1,435 mm standard gauge railways, primarily..." Presumably, the point of popups is to get a brief preview of an article without visiting it, so when an omission makes the popup look like a mistake ("has of"), something ought to be modified. Nyttend (talk) 21:37, 24 July 2023 (UTC)
- A very old bug / feature: templates, or most templates, are excluded from rendering of the pop-up window. See T152639 for some discussion. I think, but I am not sure, that selecting "Enable page previews" from the Appearance preference tab and disabling the pop-ups gadget may work better for you. I don't use either of them, but I just turned on page previews, and the convert template renders fine. – Jonesey95 (talk) 22:20, 24 July 2023 (UTC)
- Navigation popups at Special:Preferences#mw-prefsection-gadgets works on the source wikitext and doesn't transclude templates. You can say
window.popupPreviewKillTemplates = false;
in your common JavaScript to show the wikitext of template calls but they cannot be transcluded and you will often get a lot of code. The default "Enable page previews" at Special:Preferences#mw-prefsection-rendering works on the rendered page and does show transclusions. PrimeHunter (talk) 01:08, 25 July 2023 (UTC) - When I mouse over your link above, I see: ""Laos has 422 km (262 mi) of 1,435 mm standard gauge railways, primarily...", i.e, it's doing the first one but not the second one, and given what's been said so far, I'm not sure why I'm seeing that, but I am. I checked the article, and no one has changed it since you wrote. Mathglot (talk) 01:47, 28 July 2023 (UTC)
- You're using the now-"standard" popups. There is a gadget which is basically ancient that does things much differently as a result of its age. We're talking about the second one. (See PrimeHunter's link.) Izno (talk) 01:57, 28 July 2023 (UTC)
- Oh, thanks for that explanation. Mathglot (talk) 02:05, 28 July 2023 (UTC)
- You're using the now-"standard" popups. There is a gadget which is basically ancient that does things much differently as a result of its age. We're talking about the second one. (See PrimeHunter's link.) Izno (talk) 01:57, 28 July 2023 (UTC)
Source for talk page comment parser?
Can somebody point me at the source repository (and, ideally, the source file) for the parser responsible for processing reply comments on Talk pages? I'd like to take a swing at convincing it to not automatically indent reply lines while inside <syntaxhighlight>...</syntaxhighlight>
tags, because man is having to fix that getting really old. FeRDNYC (talk) 02:34, 28 July 2023 (UTC)
- Repo is https://github.com/wikimedia/mediawiki-extensions-DiscussionTools. Most relevant file is probably https://github.com/wikimedia/mediawiki-extensions-DiscussionTools/blob/master/includes/CommentUtils.php. * Pppery * it has begun... 02:55, 28 July 2023 (UTC)
- Phab ticket is probably this one: https://phabricator.wikimedia.org/T251633 –Novem Linguae (talk) 05:24, 28 July 2023 (UTC)
Some pages are stuck in this category after move. They are obviously added there by some template, but I can not find which one. Could someone help please. Thanks. Ymblanter (talk) 15:32, 27 July 2023 (UTC)
- @Ymblanter: This should have been posted at WP:VPT, not here. I fixed a wrong category name in Template:Fandom content; if that doesn't work, see Wikipedia:Village_pump_(technical)/Archive_204#Pages_lingering_in_a_renamed_category_that_was_populated_by_a_template.. –LaundryPizza03 (dc̄) 18:08, 27 July 2023 (UTC)
- Thanks, this seems to work. Ymblanter (talk) 18:11, 27 July 2023 (UTC)
- Note: this post was moved from Wikipedia talk:Categories for discussion/Working and was cut-and-pasted to this page in this edit. Just clarifying what was meant by "not here". Graham87 07:08, 28 July 2023 (UTC)
- Thanks, this seems to work. Ymblanter (talk) 18:11, 27 July 2023 (UTC)
iCalendar generation for Wikimedia events
Have I misremembered it, or do we have a template for our event pages (for meeetups, editathons, etc.) that generates an iCalendar file which users can use to add the event to their calender?
If not, could someone make one?
Or was it perhaps a toolserver page? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:26, 26 July 2023 (UTC)
- @Pigsonthewing Meta has m:Template:Multi Calendar for Google and Outlook calendar links, but I don't recall seeing anything similar for iCalendar. the wub "?!" 21:36, 27 July 2023 (UTC)
- May have been thinking of https://events.toolforge.org ? — TheresNoTime (talk • they/them) 21:48, 27 July 2023 (UTC)
- @Pigsonthewing: I attempted to add icalendar to toolforge:mediawiki-feeds but it relies on h-event microformat markup on event pages, and doesn't do very well. Sam Wilson 00:39, 28 July 2023 (UTC)
Thank you, all. The template on Meta is what I was thinking of. It is good, but could be developed further such as the inclusion of timezones (now that we have so mny online events). The functionality is sorely eneed on this and other projects. Would anyone be inetrested in working with me to develop it? @WOSlinker and Jdforrester: who were invlved in the original template or its subtemplates. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:11, 28 July 2023 (UTC)
Watchlist bug?
My watchlist has started to behave oddly. Entries are no longer collapsed, with a blue triangle next to each title in order to expand it. Instead, there is a blue circle next to each title, and all changes appear with no possibility of collapsing items. This makes viewing the watchlist cumbersome, particularly if there are many changes to any one page.
This behaviour has only started today; previously the page worked as intended. And when I open the watchlist, it very briefly displays correctly, then automatically expands all entries. I have not made any changes to my settings or preferences. RolandR (talk) 20:57, 20 July 2023 (UTC)
- @RolandR: Works for me. Try this: at Preferences → Recent changes, unset "Group changes by page in recent changes and watchlist" and save; then set it again and save. --Redrose64 🌹 (talk) 21:21, 20 July 2023 (UTC)
- No, that doesn't make any difference. RolandR (talk) 21:26, 20 July 2023 (UTC)
- Mine's behaving strangely on my laptop. I have user:js/watchlist.js, which enables the sorting of watchlist. When I go on my watchlist, it first loads [2], then when the sorting arrows would appear, the box disappears entirely [3].
- If I'm on my desktop, things behave normally (actually, there's a different issue there, every collapsed list of changes is expanded Headbomb {t · c · p · b} 08:12, 21 July 2023 (UTC)). I can't find any differences in configuration on either of my computer, both use the same browser (Firefox, same version). Maybe it's related? Headbomb {t · c · p · b} 21:40, 20 July 2023 (UTC)
- No, that doesn't make any difference. RolandR (talk) 21:26, 20 July 2023 (UTC)
- broken for me; vector; win 10; chrome
- preferences:
- Special:Preferences § mw-prefsection-rc: Group changes by page in recent changes and watchlist → checked
- Special:Preferences § mw-prefsection-watchlist:
- Expand watchlist to show all changes, not just the most recent → checked
- Use non-JavaScript interface → checked
- Special:Preferences § mw-prefsection-gadgets: Watchlist: all default options checked except Geonotice
- watchlist displays gray collapse arrows even when new, unvisited changes are present in the collapsed list; this despite "Display green collapsible arrows and green bullets for changed pages in your watchlist, page history and recent changes (unavailable with the improved Watchlist user interface)" (quoted from gadgets:Watchlist; a system default; and I am not using the 'improved' watchlist interface).
- This smells like a someone deciding to fix something that was not broken.
- —Trappist the monk (talk) 21:46, 20 July 2023 (UTC)
- It's started earlier in the week for me. I want to say Monday ish, but it could have been +/- a few days before/after. Headbomb {t · c · p · b} 21:53, 20 July 2023 (UTC)
- Does the issue happen with mw:Manual:Safemode? Jdlrobson (talk) 02:02, 21 July 2023 (UTC)
- When not in safe mode (
https://en.wikipedia.org/wiki/Special:Watchlist
), at the top of the watchlist this: "Pages that have been changed since you last visited them are shown with a green marker." This is partially true; the expand/collapse arrow markers are always gray; never green as they should be when there are unvisited changes hidden inside the collapsed watchlist entry. Earlier on Thursday, the expand/collapse arrow markers were green when unvisited changes were hidden inside the collapsed watchlist entry. The markers for unvisited single-watchlist entries (only one edit so no need for a collapse) are green bullets; after visiting a green-marker-change, the marger goes gray (this is as it should be and has been for as long as I can remember). - When in safe mode (
https://en.wikipedia.org/wiki/Special:Watchlist?safemode=1
), at the top of the watchlist this: "Pages that have been changed since you last visited them are shown in bold with a green marker." Pages that have changed since my last visit are shown in bold. There are no the green bullet markers for unvisited single-watchlist-entries and no gray bullet markers for visited single-watchlist-entries. The expand/collapse arrow markers are always gray regardless of the bold (unvisited) or not-bold (visited) changes in the watch list. So, yes, a variant of the issue happens in safe mode. - —Trappist the monk (talk) 03:08, 21 July 2023 (UTC)
are shown with a green marker
is a customization specific to English Wikipedia and should not be expected in safe mode. Izno (talk) 04:37, 21 July 2023 (UTC)
- When not in safe mode (
- Does the issue happen with mw:Manual:Safemode? Jdlrobson (talk) 02:02, 21 July 2023 (UTC)
- It's started earlier in the week for me. I want to say Monday ish, but it could have been +/- a few days before/after. Headbomb {t · c · p · b} 21:53, 20 July 2023 (UTC)
- Yes, I've suddenly started seeing different behavior as well, within the last hour or two. Mathglot (talk) 08:36, 21 July 2023 (UTC)
- I'm seeing this problem in Timeless but not in any other skin. I have the following preferences enabled: expand watchlist to show all changes, use non-Javascript interface, group changes by page. I've tried unsetting and resetting these as suggested above, but it makes no difference; also makes no difference whether Javascript is on or off.Yesterday's WP:THURSDAY update includes the following:
Might this be relevant? Sojourner in the earth (talk) 09:30, 21 July 2023 (UTC)git #9bf98ab9 - EnhancedChangesList: Use HTML/CSS for collapsing (task T172618) by Fomafixgit
- Yes, that's probably it. It removes a few class names and changes some element types that were likely being used for some of the above customizations. Izno (talk) 16:11, 21 July 2023 (UTC)
- Is anyone doing anything about this? What's the next step? Dan Bloch (talk) 13:30, 22 July 2023 (UTC)
- I found this bug report. It's probably better to move discussion there (you can log in to Phabricator with your Wikimedia password). Sojourner in the earth (talk) 06:34, 23 July 2023 (UTC)
- Is anyone doing anything about this? What's the next step? Dan Bloch (talk) 13:30, 22 July 2023 (UTC)
- Yes, that's probably it. It removes a few class names and changes some element types that were likely being used for some of the above customizations. Izno (talk) 16:11, 21 July 2023 (UTC)
Is there a solution fot this yet? RolandR (talk) 10:29, 27 July 2023 (UTC)
- The latest update from Phabricator is that a fix will be rolled out next week (probably Thursday). Sojourner in the earth (talk) 05:01, 28 July 2023 (UTC)
- For me, the unwanted behaviour only occurs when refreshing; clicking the Watchlist link or navigating via a browser bookmark works normally. If you usually keep your watchlist open and refresh it occasionally, it's worth trying another way. Certes (talk) 17:50, 28 July 2023 (UTC)
What happens if there is an error in the title of a ref?
I intended to correct a typo that I found when I made a typo doing a search. But when I checked the ref, the typo was in the title. So I tried to add "sic" so it would be clear that this didn't need to be corrected. Didn't work. — Vchimpanzee • talk • contributions • 22:36, 19 July 2023 (UTC)
- Not a WP:VPT topic. Most typos like that should simply be silently corrected. See MOS:TYPOFIX.
- —Trappist the monk (talk) 23:09, 19 July 2023 (UTC)
- I am looking for a template solution, which is a WP:VPT topic. I was given one on my talk page which I will post here.— Vchimpanzee • talk • contributions • 17:59, 20 July 2023 (UTC)
- Copied from User talk:Vchimpanzee:
- It has been suggested that these be simply corrected however many editors don't like such corrections being made. The best argument I have seen not to make corrections is that someone may wish to use the original text as a search string. Consequently if there have been corrections to faulty spelling then this makes such searching problematic. What I do on ref titles is use an alias of 'notatypo' which is 'as written'. Personally I feel that when a misspelled word has this or say a 'sic' template applied then the word should be obfuscated, always. So, I would typically apply the template as follows {{as written|rec|ieve [sic]}}. This entry format does not cause issues with the CS1/2 template formats which is what the 'sic' template does. You will see here a warning requesting that the sic template not be used in CS1/2 formats (.....because it includes markup that will pollute the COinS metadata.). Regards, Neils51 (talk) 10:18, 20 July 2023 (UTC)
- If the typo is in the original, then the typo should be reproduced. You can add a comment like Ice craem<!-- typo in original --> is toxic, says researcher. Headbomb {t · c · p · b} 21:46, 20 July 2023 (UTC)
- You can use {{sic|nolink=y|reason=error in source|speling eror}} inside ref templates or references. Please don't obfuscate the spelling errors, as it causes extra time wasting, that would be avoided with a [sic] attached. Another thing to watch out is whether the digitised or index web page has the error, but the original does not. If a scan of the original is available then you can use that correct title, if it is correct. Graeme Bartlett (talk) 22:52, 20 July 2023 (UTC)
- Vchimpanzee, you can insert brackets in displayed text with the right character entity reference. Years ago, when I wrote List of Indiana state historical markers in Parke County, I used the state's "official names" of the markers in question, and one of them had brackets. The code [[Parke County Museum|[Parke County Museum]]] produces [Parke County Museum], so I suspect that inserting [sic] into your typo string will work in your template. Nyttend (talk) 21:44, 24 July 2023 (UTC)
- Yes, 'sic' with 'nolink=y' will work however some editors will point out that within the sic template documentation there is a warning not to use 'sic' in CS1/CS2 citation templates. Good luck with arguing that one. Time wasting? yes, when tools pickup non-obfuscated misspellings. Neils51 (talk) 13:08, 26 July 2023 (UTC)
- Vchimpanzee, you can insert brackets in displayed text with the right character entity reference. Years ago, when I wrote List of Indiana state historical markers in Parke County, I used the state's "official names" of the markers in question, and one of them had brackets. The code [[Parke County Museum|[Parke County Museum]]] produces [Parke County Museum], so I suspect that inserting [sic] into your typo string will work in your template. Nyttend (talk) 21:44, 24 July 2023 (UTC)
- I think it's really bad to fix typos in reference titles: the whole point of specifying a ref title instead of just a bare URL is that people can use it to find the ref in the event that the URL is inaccessible. jp×g 17:20, 29 July 2023 (UTC)
Text size issues on Edge
Sorry to be a double poster. Randomly today the text size of articles here and some other sites (but not many) has randomy changed, making the body text small and the references bigger. It seems to be primarily body text and references because it's not affecting media captions, bullet pointed cast lists, infoboxes, TOC, or External Links. I've tried resetting Edge to default and I've tried futzing with the options under Appearance but i can't make the text normal while simultaneously shrinking the references back down and because the refs are larger it creates extra line space between text. I don't have any custom CSS apart from additions to display error messages, does anyone have any idea how I can fix it? It's absolutely Edge because it looks normal under Firefox. Darkwarriorblake (talk) 21:15, 26 July 2023 (UTC)
- Are you in Mobile view by mistake? That's a strange one. – Jonesey95 (talk) 22:58, 26 July 2023 (UTC)
- No definitely not, it is on the original Vector 2010 skin as I'm not a fan of the new one. Darkwarriorblake (talk) 08:28, 27 July 2023 (UTC)
- Is the zoom level normal? Does changing it help? Which version of Edge are you running? Does logging out fix it? (if you want to test vector2010 while you're logged out click here) --Chris 08:46, 27 July 2023 (UTC)
- The zoom level is 100%, I tried logging out but it did the same thing. What I have noticed on this discussion is that my initial text is small, but the subsequent responses, being indented, are normal size. It's bizarre, like it has to be some form of CSS change, I can't think what else would specifically affect only certain text, but it's the same across other websites. Darkwarriorblake (talk) 09:56, 27 July 2023 (UTC)
- My guess. Its a browser extension. Try starting up your browser without extensions (safe mode). —TheDJ (talk • contribs) 17:44, 27 July 2023 (UTC)
- Nope not that either, removed everything, I only wish I could uninstall Edge and start from scratch. I don't want the hassle of switching browsers but it's bizarre why it's doing this. Darkwarriorblake (talk) 21:07, 27 July 2023 (UTC)
- Also for further info, if I refresh the page I can see for an instant that the text is normal before it's switched to small, it's some kind of setting actively changing it. Darkwarriorblake (talk) 21:10, 27 July 2023 (UTC)
- That's called a flash of unstyled content, and is the surest sign that it's some CSS somewhere that's to blame for all this. FeRDNYC (talk) 01:29, 28 July 2023 (UTC)
- Also for further info, if I refresh the page I can see for an instant that the text is normal before it's switched to small, it's some kind of setting actively changing it. Darkwarriorblake (talk) 21:10, 27 July 2023 (UTC)
- Nope not that either, removed everything, I only wish I could uninstall Edge and start from scratch. I don't want the hassle of switching browsers but it's bizarre why it's doing this. Darkwarriorblake (talk) 21:07, 27 July 2023 (UTC)
- My guess. Its a browser extension. Try starting up your browser without extensions (safe mode). —TheDJ (talk • contribs) 17:44, 27 July 2023 (UTC)
- The zoom level is 100%, I tried logging out but it did the same thing. What I have noticed on this discussion is that my initial text is small, but the subsequent responses, being indented, are normal size. It's bizarre, like it has to be some form of CSS change, I can't think what else would specifically affect only certain text, but it's the same across other websites. Darkwarriorblake (talk) 09:56, 27 July 2023 (UTC)
- @Darkwarriorblake: You don't have any custom CSS, but is any weird CSS being applied to the content? Hit F12 when you're on a page with weirdly-sized content and see what CSS rules the inspector is showing for that text, then chase those rules back to their source (wherever it may be). FeRDNYC (talk) 01:27, 28 July 2023 (UTC)
- Brill idea FeRDNYC, I looked (I'm not an expert), and this is what I get. The first is text in the bulleted lists which to me appears normal, the second is the text in < p > which is the one that appears small.
vector-bodyfont-size: 0.875em;font-size: calc(1em * 0.875); line-height: 1.6; vector-bodyfont-size: 0.875em;font-size: calc(1em * 0.875);line-height: 1.6; font-size: 12px;
- It says P is inherited from vector-body which has this:
font-size: 0.875em;font-size: calc(1em * 0.875); line-height: 1.6;
- I can't see what is cancelling out the font-size: calc in the 2nd example apart from the use of font-size: 12px. Darkwarriorblake (talk) 08:22, 28 July 2023 (UTC)
- The font-size: 12px may be the cuplrit. Can you see what file it is getting that styling from (there should be urls on the right hand side)? --Chris 09:50, 28 July 2023 (UTC)
- I realized I can untick the 12px and it does change the font size in < p > although it's not affecting the oversized references and I can't see any font-size related info attached to those elements. I've uploaded this PDF with some screenshots of what I can see (https://file.io/fNKU2XFgqLyK) but I cannot see anywhere to follow the 12px back to its source? Darkwarriorblake (talk) 10:23, 28 July 2023 (UTC)
- The link says file deleted. --Chris 11:54, 28 July 2023 (UTC)
- Weird, I've not used file.io before but it said it lasts for 2 weeks. https://filebin.net/e0293isw71zu6uy0 Darkwarriorblake (talk) 15:11, 28 July 2023 (UTC)
- Does the system where this is occurring have a HiDPI[a] screen, by any chance, Darkwarriorblake? Typically, on displays with more-than-HD resolution, screen elements get scaled so that any measure expressed in raw numbers of pixels will actually represent a greater number of true, physical pixels. (Because everything would be far too tiny to see, if length values were taken literally.) If Edge is on a scaled display, but its font rendering isn't being scaled for some reason, that might cause a greater-than-usual disparity between font sizes expressed in pixels (like
12px
) and ones expressed using other units (like0.875em
), and that disparity could be why you're seeing text rendered at unexpected sizes (in both directions). - But as far as other text, like references, goes... Actually, when you say "references" are larger than normal, what are you referring to? The references list at the end of the article? The small footnote markers[like this] within the body text? Or something else?
- ...Regardless, every piece of content has at least some minimal CSS associated with it; if nothing else the browser has a baseline set of default styles that will always be applied. (Though it's possible a setting in the inspector is hiding those by default.)
- Style rules are technically applied to HTML elements (tags, basically), rather than the text within those tags, so to find the CSS that governs some text you often have to examine whatever is the most immediate enclosing HTML element. (In Wikipedia content that will usually be a pair of
<p>...</p>
,<li>...</li>
,<span>...</span>
, or sometimes<div>...</div>
tags. Or, inside of a<table>...</table>
, the actual text content will be enclosed in, and styled by, the inner<th>...</th>
and<td>...</td>
tags.) FeRDNYC (talk) 02:28, 29 July 2023 (UTC)- It's only 1920 x 1980, not sure what the max resolution is but the monitor has been fine for a year. It's definitely something in the browser but I can't get rid of the bloody thing to start afresh. I think I will just have to switch browsers. In terms of references I mean the in-line ones, the numbers/letters. Darkwarriorblake (talk) 19:49, 29 July 2023 (UTC)
- The link says file deleted. --Chris 11:54, 28 July 2023 (UTC)
- I realized I can untick the 12px and it does change the font size in < p > although it's not affecting the oversized references and I can't see any font-size related info attached to those elements. I've uploaded this PDF with some screenshots of what I can see (https://file.io/fNKU2XFgqLyK) but I cannot see anywhere to follow the 12px back to its source? Darkwarriorblake (talk) 10:23, 28 July 2023 (UTC)
- The font-size: 12px may be the cuplrit. Can you see what file it is getting that styling from (there should be urls on the right hand side)? --Chris 09:50, 28 July 2023 (UTC)
- I can't see what is cancelling out the font-size: calc in the 2nd example apart from the use of font-size: 12px. Darkwarriorblake (talk) 08:22, 28 July 2023 (UTC)
- ^ HiDPI is any display with a native resolution greater than 1080p (full HD), like a 2.5k, 4k, 5k, or 8k screen. Just to be confusing, the display industry decided to switch from vertical to horizontal pixel dimensions when discussing screen resolution, post-HD. So, 1080p == 1920px wide, or "2k" in the newer parlance. You can usually find your screen dimensions and any scaling configuration in the Display section of the Settings app.
WikiProject banner is broken and I can't figure out why/how
{{WPBHUTAN}} is throwing up some malformed content on Talk:Bhutanese passport. The template itself hasn't been edited in years minus a single edit this year and it of course relies on a million modules and templates, so trying to suss out what is happening here is too difficult for ignorant me. Can someone figure out how to fix this? Thanks. ―Justin (koavf)❤T☮C☺M☯ 04:13, 30 July 2023 (UTC)
- @Koavf, I assume this is related to MSGJ's work. — Qwerfjkltalk 07:49, 30 July 2023 (UTC)
- Do you see it impacting anything else or just this one-off? ―Justin (koavf)❤T☮C☺M☯ 07:51, 30 July 2023 (UTC)
- The project's custom importance mask was emitting an extra space which was confusing the template. I've fixed it now — Martin (MSGJ · talk) 10:21, 30 July 2023 (UTC)
- Merci. ―Justin (koavf)❤T☮C☺M☯ 10:25, 30 July 2023 (UTC)
new fat: project conflicting with a couple English wiki article titles
My refresh-links bot has stumbled on a couple of titles that it can't refresh.
- fat:An Appreciation of a Misunderstood Ingredient, with Recipes (redirect page)
- This is one of the Pages that link to "Fat (cookbook)"
- There are problems with some of your input. fat:An Appreciation of a Misunderstood Ingredient, with Recipes is an interwiki title, should be local.
- Its talk page: Bad title. The requested page title refers to a talk page that cannot exist. — Preceding unsigned comment added by Wbm1058 (talk • contribs) 12:28, 30 July 2023 (UTC)
- fat:The Fight of My Life, which is probably an article about this 2013 TV series
Can anyone tell what this fat: project is for and when it was created?
How to recover the two English wiki pages, one of which is a redirect and the other appears to be an article?
I know I should probably make a Phabricator about this, but starting here since that's easier and less bureaucratic. wbm1058 (talk) 12:22, 30 July 2023 (UTC)
- The article looked like this on 30 November 2016 and was never scraped again by archive.org, so it may have been deleted (I wouldn't be surprised, looking at the state of it). Black Kite (talk) 12:57, 30 July 2023 (UTC)
- The language is Fante dialect, btw. Black Kite (talk) 13:04, 30 July 2023 (UTC)
- fat is listed at Special:Interwiki but not at m:Interwiki map, so was presumably created in the last four days. --Redrose64 🌹 (talk) 13:01, 30 July 2023 (UTC)
- Links to other language versions are automatically generated by the software, so those are not listed on m:Interwiki map. Taavi (talk!) 13:12, 30 July 2023 (UTC)
fat:
is now the interwiki prefix for the Fante language Wikipedia, which was created in April. Using the page move API and page IDs queried from the replicas I moved those pages to Fat – An Appreciation of a Misunderstood Ingredient, with Recipes and Fat – The Fight of My Life following the convention at Wikipedia:Naming_conventions_(technical_restrictions)#Colons. Taavi (talk!) 13:10, 30 July 2023 (UTC)- I was just about to create a new thread about this. The aforementioned page moves did not seem to include the talk pages, so [[Talk:Fat: An Appreciation of a Misunderstood Ingredient, with_Recipes]] and [[Talk:Fat: The Fight of My Life]] are also facing the same issue. Pinging Taavi. ✗plicit 13:51, 30 July 2023 (UTC)
- Done, thanks. Taavi (talk!) 14:04, 30 July 2023 (UTC)
- I was just about to create a new thread about this. The aforementioned page moves did not seem to include the talk pages, so [[Talk:Fat: An Appreciation of a Misunderstood Ingredient, with_Recipes]] and [[Talk:Fat: The Fight of My Life]] are also facing the same issue. Pinging Taavi. ✗plicit 13:51, 30 July 2023 (UTC)
- This made me curious - as of the most recent database dump, there are ~5300 mainspace pages on enwiki that match the pattern XYZ: Something or XYZ:Something, with ~650 different three-letter groups. Of those, 2059 are mos:, 558 cat:, 457 std:, 241 atp:, and 128 csi: - the rest are used under 50 times and more than half are only used once.
- There is an incubator wiki for Mooré (mos:) and it is plausible it will be assigned at some point in the future - it seems to be reasonably active. Might be worth thinking now about how we plan to address this, since I think our use of things like MOS:NUMBERS is pretty prolific.
- The other frequently used ones are less likely to become an issue - cat: is Catalan and for historic reasons we use ca:, while std: (Sentinelese) and atp: (Pudtol Atta) have very few speakers, and csi: (Coast Miwok) is now extinct. Andrew Gray (talk) 14:03, 30 July 2023 (UTC)
- One additional check: fat: seems to be the only prefix on Special:Interwiki that has colliding enwiki page titles, and it was only the two that have been fixed here, so we don't have any others out there waiting to trip us up. For the moment... Andrew Gray (talk) 14:20, 30 July 2023 (UTC)
- I did have to fix some incoming links which didn't show up on "what links here". Gonnym (talk) 14:26, 30 July 2023 (UTC)
- One additional check: fat: seems to be the only prefix on Special:Interwiki that has colliding enwiki page titles, and it was only the two that have been fixed here, so we don't have any others out there waiting to trip us up. For the moment... Andrew Gray (talk) 14:20, 30 July 2023 (UTC)
- There's also f:, which is about to become an interwiki prefix for Wikifunctions, and conflicts with three redirects. See phab:T325908 * Pppery * it has begun... 14:36, 30 July 2023 (UTC)
The renderings of File:Fat, An Appreciation of a Misunderstood Ingredient, with Recipes cover.jpg and Template:Did you know nominations/Fat: An Appreciation of a Misunderstood Ingredient, with Recipes are mildly broken. Certes (talk) 14:49, 30 July 2023 (UTC)
- I fixed them both. --Redrose64 🌹 (talk) 15:03, 30 July 2023 (UTC)
Need help with the modification of the userspace draft template
As a result of CfD discussion, the categories like Category:Userspace drafts from October 2006 are to be merged into the newly created Category:Userspace drafts from before 2007. The problem is that these categories are populated by {{userspace draft}}, which, in its turn, calls {{DMC}}. I tried to modify the code but I do not see an easy way for me to do this. Could somebody please help? Thanks a lot. Ymblanter (talk) 08:15, 30 July 2023 (UTC)
- I also posted a similar request at wikipedia:Requested_templates#Merging_monthly_maintenance_categories_for_early_dates. – Fayenatic London 09:33, 30 July 2023 (UTC)
- Done by Pppery, thanks. Ymblanter (talk) 17:32, 30 July 2023 (UTC)
Are all the graphs still busted or what?
Haven't heard anything about this for a while, but as far as I can tell, the little oopsie-woozie from a few months ago seems to still be in full force (graphs are not rendering properly anywhere). Does anyone know what the deal is on this, or what progress is being made? Or what issues need to be resolved to move forward? jp×g 17:18, 29 July 2023 (UTC)
- Yes, still broken. See mw:Extension:Graph/Plans * Pppery * it has begun... 17:25, 29 July 2023 (UTC)
- Do we have a timeline or any idea when they may be back up? We can't just keep saying "temporarily" forever. InfiniteNexus (talk) 17:57, 29 July 2023 (UTC)
- No. But feel free to change (or request an admin to change) MediaWiki:Graph-disabled to remove the "temporarily" if you think it doesn't belong. * Pppery * it has begun... 18:01, 29 July 2023 (UTC)
- Do we have a timeline or any idea when they may be back up? We can't just keep saying "temporarily" forever. InfiniteNexus (talk) 17:57, 29 July 2023 (UTC)
- @JPxG: Graphs are not broken, they are deliberately disabled because a security issue was found (there are several threads in Archive 205 and Archive 206 on the matter). At the time that they were disabled, thry were working as normsl. There is more at phab:T334940, to which you can comment or subscribe. --Redrose64 🌹 (talk) 10:43, 30 July 2023 (UTC)
- What I mean by "busted" is that previously a software package could be used for its intended purpose, and now it cannot. Similarly, I would call a drill press "busted" if it had a wiring fault that electrocuted the operator when turned on, regardless of whether the motor was still able to rotate the spindle. jp×g 20:49, 30 July 2023 (UTC)
- To provide an alternative, at Category:Orphaned articles, I added plain horizontal bar graphs for tracking to help with WP Orphan. You're welcome to use something like this elsewhere to visually show progress. Regards, JoeNMLC (talk) 21:12, 30 July 2023 (UTC)
- What I mean by "busted" is that previously a software package could be used for its intended purpose, and now it cannot. Similarly, I would call a drill press "busted" if it had a wiring fault that electrocuted the operator when turned on, regardless of whether the motor was still able to rotate the spindle. jp×g 20:49, 30 July 2023 (UTC)
different placing within a table's single cell
In this collapsed table, the currently ongoing World Championship in Women's football is at bottom. Because it is held in 2 countries 2 flags are shown. The 2 flags are placed horizontally thus widening the column. I would like to place them vertically to reduce the column width, but I don't want the text "2023 WC" to follow either of those flags. Is there any way I can get "2023 WC" to stay vertically aligned centrally next to the flags? Dutchy45 (talk) 05:52, 31 July 2023 (UTC)
- @Dutchy45: Columns might work but maybe read oddly in screen readers, and be a bit odd in general. I used
style="position: relative; top: -0.7em;"
.[4] It's centered in my browser but may not be exact in all circumstances. PrimeHunter (talk) 09:31, 31 July 2023 (UTC)
Overrides for MediaWiki:Action-delete, MediaWiki:Action-move, MediaWiki:Action-protect
Please delete the overrides for these three localisation messages. They were created a while ago as a workaround for the bug T301203, which has since been fixed, but global interface editors such as myself and Jon aren't able to delete pages. They result in incorrect formatting in some error messages: for example, when you can't move a page (try viewing Special:MovePage/Test while logged out), it says "You do not have permission to Move" instead of "You do not have permission to move this page". These three are the only inconsistent messages (see [5]). Matma Rex talk 10:50, 31 July 2023 (UTC)
- @Matma Rex: Done — TheresNoTime (talk • they/them) 11:17, 31 July 2023 (UTC)
how to determine the current protection level of a page
What's the quickest way to determine the current protection level of a page? An admin can click "change protection" and the resulting page shows the current protection level (at least on Wiktionary), but what is a non-admin to do? The best method I've found so far is the "View logs for this page" link on the "View history" tab, but for e.g. Fascism, determining the current level requires working out whether the latest entry in that log reflects the current state, which in this case it doesn't: the latest entry there was removing Pending Changes protection, but the page is not unprotected: if I look further down the history, past some visibility changes that don't affect the protection level, I see where years earlier in the log, autoconfirmed protection was applied and has not expired because it was indefinite — on other pages, where protection was for a definite period, I have to compare the expiry date to the current date and UTC time to check if it's still in effect. And for entries like Gamergate (harassment campaign), the log just says the protection was moved, without even saying what it was or is. Is there a page or magic word that just returns something like "the following protection level(s) currently apply to page X: 'autoconfirmed', 'pending changes'
"? -sche (talk) 22:55, 29 July 2023 (UTC)
- Click "Page information" on the sidebar. Nardog (talk) 22:59, 29 July 2023 (UTC)
- User:Bradv/Scripts/Superlinks is a nice user script for this. It adds some links to the top right of all pages. One of them is "Log" so you can see who did the protection, what level, and when, and also the protection history. –Novem Linguae (talk) 23:07, 29 July 2023 (UTC)
- Aha! Thank you both! -sche (talk) 23:54, 29 July 2023 (UTC)
- @-sche: See also WP:PF - for example,
{{PROTECTIONLEVEL:edit|Fascism}}
→ autoconfirmed{{PROTECTIONEXPIRY:edit|Fascism}}
→ infinity{{PROTECTIONLEVEL:move|Fascism}}
→ autoconfirmed{{PROTECTIONEXPIRY:move|Fascism}}
→ infinity
- Mind, if a page name is supplied (as above), these count as "expensive" per mw:Help:Magic words#Parser functions. --Redrose64 🌹 (talk) 10:32, 30 July 2023 (UTC)
- @-sche: See also WP:PF - for example,
- Aha! Thank you both! -sche (talk) 23:54, 29 July 2023 (UTC)
- Also note that non-admins can still view the admin page, which can sometimes be a relatively easy option. For example: Special:Protect/Fascism. -- zzuuzz (talk) 21:49, 30 July 2023 (UTC)
- Oh, that's very useful, thank you! I had considered suggesting that in the same way a user has the option to "view source" even when the normal "edit" button is gone due to page protection, it might be useful to have a "view protection" button even when the user is not an admin and so cannot "change protection"; it's great to know that such a functionality already exists! Since there wasn't a button, I didn't think to try navigating to it manually. -sche (talk) 00:31, 31 July 2023 (UTC)
- This method has another advantage, which is that it also shows the Pending Changes (PC) level which might not appear elsewhere. Compare Special:Protect/1984 with Special:PageInfo/1984 (including the logs). I think it should head for the type of functionality you see at Special:UserRights, which differs far more depending on whether you're an admin. We link that in the side bar. For some wikis it may be appropriate (and easy) to link protection there, but I don't think it's worthwhile here. Still, it's a handy link to know. -- zzuuzz (talk) 12:51, 31 July 2023 (UTC)
- Oh, that's very useful, thank you! I had considered suggesting that in the same way a user has the option to "view source" even when the normal "edit" button is gone due to page protection, it might be useful to have a "view protection" button even when the user is not an admin and so cannot "change protection"; it's great to know that such a functionality already exists! Since there wasn't a button, I didn't think to try navigating to it manually. -sche (talk) 00:31, 31 July 2023 (UTC)
MS Word to wikitext?
I was helping a new editor yesterday at an edit-a-thon. It was really an eye-opening experience as to just how steep the learning curve is.
The immediate problem was that she had written a first draft in MS Word, then copy-pasted it into her sandbox. Not surprisingly, it made a total mess of the formatting. This seems like a common enough scenario that we really should be able to do better. Is there a tool to take a MS Word file and import it, converting the formatting into some reasonable wiki markup? RoySmith (talk) 15:18, 30 July 2023 (UTC)
- VE does a good job at it. I made a quick test to make sure: User:Nux/test_office.
- One problem is doing proper formatting in Word or other office software. In my experience as an IT guy, with quite a lot of documents passing through my hands back in the days, people don't do formatting. They do bold instead of proper headers. They do all kinds of marks instead of proper enumeration and they do double enter instead of proper paragraphs. With proper, structural/semantic formatting in office you should mostly be fine. Just use VE and paste. Nux (talk) 15:50, 30 July 2023 (UTC)
- I'm curious how one does a "proper paragraph" in a Word type program? Mike Richardson (talk) 09:18, 31 July 2023 (UTC)
- Increase paragraph spacing to be greater than line spacing, so that you don't need to type an empty line between paragraphs. I don't have Word installed right now, but the last time I used it, this was actually how it behaved by default. In Google Docs, you'd use the toolbar item "Line & paragraph spacing → Add space after paragraph", and then "Normal text → Update 'Normal text' to match". In LibreOffice Writer, you'd right-click some text, then use "Paragraph → Edit Style… → Indents & Spacing → Spacing → Below paragraph". Matma Rex talk 10:30, 31 July 2023 (UTC)
- Yeah, people often use space for indent and enter to increase spacing. I guess it's easier that way as you don't need to setup paragraphs in windows with lots of options. I know that a few people I asked about it didn't even know that there is a better way to do documents. Nux (talk) 19:53, 31 July 2023 (UTC)
- Increase paragraph spacing to be greater than line spacing, so that you don't need to type an empty line between paragraphs. I don't have Word installed right now, but the last time I used it, this was actually how it behaved by default. In Google Docs, you'd use the toolbar item "Line & paragraph spacing → Add space after paragraph", and then "Normal text → Update 'Normal text' to match". In LibreOffice Writer, you'd right-click some text, then use "Paragraph → Edit Style… → Indents & Spacing → Spacing → Below paragraph". Matma Rex talk 10:30, 31 July 2023 (UTC)
- I'm curious how one does a "proper paragraph" in a Word type program? Mike Richardson (talk) 09:18, 31 July 2023 (UTC)
Article previews are broken when the article has coords in it
Articles that have coordinate templates, such as Mercedes AMG High Performance Powertrains, have broken preview popups when you hover over the link – there won't appear any text / the text is blank. Sometimes the image will render but the text won't. See the first screenshot.
Articles that don't have coordinate templates on the other hand, like for example 2023 Australian Grand Prix, will have preview popups render correctly. See the second screenshot.
I am using Google Chrome 114.0.5735.248 official build 64-bit, on Windows 10 Pro 22H2 64-bit 19045.3208. The screenshots were taken in incognito mode (to isolate extensions, scripts etc as a possible cause), using Vector 2022 skin with full content width enabled. This issue also occurs when viewing in my normal browser window, where I have the Vector 2010 legacy skin applied. I have also tested this in Firefox (version 115.0.2), and the same issue happens there as well. It even happens with the vector 2022 skin set to limited width mode.
My main display does have 125% scaling enabled, but if I drag the browser window to my secondary display which is set to 100% scale, the issue remains there also. — AP 499D25 (talk) 13:09, 30 July 2023 (UTC)
- @AP 499D25: This is Wikipedia:Village pump (technical)/Archive 206#Page previews (popups) broken. Quick fix: move the coords somewhere else - to the infobox (if it has a coordinates parameter) otherwise to the bottom of the page, like this. --Redrose64 🌹 (talk) 14:24, 30 July 2023 (UTC)
- I continue to have no technical feedback at Module talk:Coordinates#Protected edit request on 29 May 2023. I've also gotten no comment at phab:T338204#9017689 on the maintainer side, the suggestion of which would also probably fix things. Izno (talk) 17:55, 30 July 2023 (UTC)
- I don't know what exactly happens in the background, but MediaWiki considers {{coord}} to be part of the prose. Since page preview is supposed to show the first paragraph, it thinks that coord is that first paragraph, and shows it, but as it produces no text output, all you see is a blank. Similarly, in mobile view the first para should always be visible on top, then infobox, then everything else. So, coords above the infobox causes the software to think that coord is the first para, and the actual first para to be the second para, leading to the infobox at the top.
But at the same time, please see MOS:ORDER which asks coords to be in the infobox or to be put near the end above categories. Putting coords above infobox is a popular but unsupported practice. —CX Zoom[he/him] (let's talk • {C•X}) 20:09, 31 July 2023 (UTC)
Global Lua modules and Synchronizer tool
Hi! I figured some Lua developers may appreciate to know about this guide on how to develop a global Lua module (a module that can be used unchanged in all wikis) as well as the Synchronizer tool to automatically copy the master version of a module to all other wikis (and other neat features to make life easier).
I find both resources invaluable to maintain the modules I develop (Module:Excerpt and Module:Transcluder). After some initial hard work, I'm now able to update all wikis with a single click every time I push a new version live, as well as monitor any "forks" and fix them. Hopefully you'll find some of this useful! Sophivorus (talk) 23:24, 31 July 2023 (UTC)
Tech News: 2023-31
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- The Synchronizer tool is now available to keep Lua modules synced across Wikimedia wikis, along with updated documentation to develop global Lua modules and templates.
- The tag filter on Special:NewPages and revision history pages can now be inverted. For example, you can hide edits that were made using an automated tool. [6][7]
- The Wikipedia ChatGPT plugin experiment can now be used by ChatGPT users who can use plugins. You can participate in a video call if you want to talk about this experiment or similar work. [8]
Problems
- It was not possible to generate a PDF for pages with non-Latin characters in the title, for the last two weeks. This has now been fixed. [9]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 1 August. It will be on non-Wikipedia wikis and some Wikipedias from 2 August. It will be on all wikis from 3 August (calendar).
- Starting on Tuesday, a new set of Wikipedias will get "Add a link" (Georgian Wikipedia, Kara-Kalpak Wikipedia, Kabyle Wikipedia, Kabardian Wikipedia, Kabiyè Wikipedia, Kikuyu Wikipedia, Kazakh Wikipedia, Khmer Wikipedia, Kannada Wikipedia, Kashmiri Wikipedia, Colognian Wikipedia, Kurdish Wikipedia, Cornish Wikipedia). This is part of the progressive deployment of this tool to more Wikipedias. The communities can configure how this feature works locally. [10]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:52, 31 July 2023 (UTC)
Modify a module
Hello, can anyone help us to modify our module? In ru:Module:Ballot#L-259 module should proceed not only template {{ВАРБ:строка| , but also template {{ВАРБ:старая строка| . MBH (talk) 21:15, 19 July 2023 (UTC)
- @MBH, modifying
"%{%{%ВАРБ:строка|
at the beginning of the pattern to"%{%{%ВАРБ:(старая )?строка|
, and changing line 262 fromfor candidate,
tofor _, candidate,
should work. Please test! Izno (talk) 23:52, 25 July 2023 (UTC)- Izno Unfortunately, it doesn't work and even broke module: its old version works correctly on ru:Википедия:Выборы арбитров/Лето 2022/Голосование/Предытоги, but your version doesn't, the table becomes empty. MBH (talk) 16:36, 26 July 2023 (UTC)
- I don't understand OP's actual question, but I gotta wonder: Why does the pattern begin with
%{%{%В
and end with%}%}
? If I put this in the debug console:=mw.ustring.match ("%{%{%ВАРБ:строка", "{{ВАРБ:строка")
- it returns
nil
- If I change that test to:
=mw.ustring.match ("{{ВАРБ:строка", "{{ВАРБ:строка")
- it returns
{{ВАРБ:строка
- I get similar results if I change
mw.ustring.match()
tostring.match()
. - So, I guess that the first thing that Editor MBH must do is make sure that the pattern in ru:Module:Ballot#L-259 is a valid pattern. Remember that Lua patterns are not regex.
- For further pattern consideration: what about whitespace around the template pipes and the '=' signs?
- —Trappist the monk (talk) 21:52, 26 July 2023 (UTC)
- Trappist the monk, the module works correctly now just because it generates a correct table on ru:Википедия:Выборы арбитров/Лето 2022/Голосование/Предытоги. I'm not an author of the module, it's user:Carn. Several technically experienced ruwiki editors edit this module and no one had any complaints about the piece of code you drew attention to. MBH (talk) 23:55, 26 July 2023 (UTC)
- Ok. Don't believe everything that the debug console says. I hacked a test in my sandbox: Module:Sandbox/trappist the monk/ru test which shows that the pattern, even though flawed, works. Edit my sandbox and in the debug console type:
=p.main()
and press enter. - Surely, the author or any of the
[several] technically experienced ruwiki editors
can/should fix the ru.wiki module. Have you asked them? - —Trappist the monk (talk) 01:04, 27 July 2023 (UTC)
- I have asked them, they can't (they say, Lua doesn't support traditional regexes and they doesn't know Lua patterns) or doesn't have time for that. MBH (talk) 11:08, 27 July 2023 (UTC)
- Aren't your debug-console inputs backwards? I tested with this:
input="{{ВАРБ:строка" =mw.ustring.match (input, "%{%{ВАРБ:строка")
- ...and got correct results in the debug console. The use of
%В
seems to be born of the confusion that, because%b
is an actual lua pattern-matching escape,%В
has to be escaped. Which of course is backwards logic anyway, but especially unnecessary because 'В' (the Cyrillic letter) isn't even the same as 'B', never mind 'b'. Still, the third %, while unnecessary, doesn't seem to harm anything. - Anyway, MBH, as far as I can tell
mw.ustring.match
doesn't support making entire parenthesized expressions optional (i.e."%{%{ВАРБ:(старая) строка"
will match "{{ВАРБ:старая строка", but"%{%{ВАРБ:(старая)? строка"
will NOT), and it doesn't support alternation ("%{%{ВАРБ:(старая строка|строка)"
) so your only recourse is to have two different matches:FeRDNYC (talk) 13:51, 27 July 2023 (UTC)match1 = mw.ustring.match(input, "%{%{ВАРБ:старая строка|") match2 = mw.ustring.match(input, "%{%{ВАРБ:строка|") if match1 or match2 then: ...
- Yeah, backwards... must be getting dyslexic in my dotage.
- A (possibly simpler) thing to try is to this pattern:
{{ВАРБ:[^|]*строка|кандидат=([^\n]*)\n|номинатор=([^\n]*)\n|согласие=([^\n]*)\n|отказ=([^\n]*)\n|бюрократ=([^\n]*)\n|отказ бюрократа=([^\n]*)\n}}
- It isn't perfect because it is possible to write
{{ВАРБ:some sort of nonsense строка|...}}
which may not be desirable. If there can only be{{ВАРБ:строка|...}}
and{{ВАРБ:старая строка|...}}
then it should be safe... - Fixing the problem by rewriting the code to allow for whitespace, non-vertical format, parameters in any order should be done. To restrict ru.wiki editors in this way is poor programming practice.
- —Trappist the monk (talk) 16:48, 27 July 2023 (UTC)
- ^ Have to agree with this, too. Using matching expressions to essentially parse template arguments is... well, just icky, TBH. I don't know what this is for, but there's gotta be a better way. Even true regular expressions do not a parser make. Remember the immortal words of bobince at stackoverflow:
You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-regexp will liquify the nerves of the sentient whilst you observe, your psyche withering in the onslaught of horror. Rege̿̔̉x-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the transgression of a chi͡ld ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of regex parsers for HTML will instantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent slithy regex-infection will devour your HTML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fight he com̡e̶s, ̕h̵is un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo͟ur eye͢s̸ ̛l̕ik͏e liquid pain, the song of re̸gular expression parsing will extinguish the voices of mortal man from the sphere I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful the final snuffing of the lies of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL IS LOST the pon̷y he comes he c̶̮omes he comes the ichor permeates all MY FACE MY FACE ᵒh god no NO NOO̼OO NΘ stop the an*̶͑̾̾̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e not rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
Have you tried using an XML parser instead? - (Heh. The
Russian hackers pwn your webapp.
line is either irony or offensive, in this particular context.) - ...Template arguments may not be [X]HTML, but the point stands. FeRDNYC (talk) 00:58, 28 July 2023 (UTC)
- This module is for parsing pages with regular structure, consisting of substituted templates, these pages are created only twice per year and their contents are closely monitored (these are pages for the ArbCom elections). It is possible and even simple to parse templates or HTML with regexes if you know document structure beforehand. It's impossible only if you doesn't know document structure beforehand (for example, if you don't know how many nested elements there will be). MBH (talk) 20:12, 28 July 2023 (UTC)
- Mmmm, that's true to a point, though it's kind of the whole point of {{subst:}} is that it dumps a template's output into an editable content page — creating a starting point, rather than an immutable end result, IOW. "Nobody should ever touch these pages because hand-editing their contents risks breaking the incredibly fragile module that extracts data from the template transclusions they hold" is the sort of onerous restriction Trappist was talking about. But I'll concede that it's far less bad when we're talking about purely behind-the-scenes administrative housekeeping stuff, rather than mainspace article content (or anything involved in creating article content), absolutely. FeRDNYC (talk) 23:06, 28 July 2023 (UTC)
- This module is for parsing pages with regular structure, consisting of substituted templates, these pages are created only twice per year and their contents are closely monitored (these are pages for the ArbCom elections). It is possible and even simple to parse templates or HTML with regexes if you know document structure beforehand. It's impossible only if you doesn't know document structure beforehand (for example, if you don't know how many nested elements there will be). MBH (talk) 20:12, 28 July 2023 (UTC)
- ^ Have to agree with this, too. Using matching expressions to essentially parse template arguments is... well, just icky, TBH. I don't know what this is for, but there's gotta be a better way. Even true regular expressions do not a parser make. Remember the immortal words of bobince at stackoverflow:
- Ok. Don't believe everything that the debug console says. I hacked a test in my sandbox: Module:Sandbox/trappist the monk/ru test which shows that the pattern, even though flawed, works. Edit my sandbox and in the debug console type:
- Trappist the monk, the module works correctly now just because it generates a correct table on ru:Википедия:Выборы арбитров/Лето 2022/Голосование/Предытоги. I'm not an author of the module, it's user:Carn. Several technically experienced ruwiki editors edit this module and no one had any complaints about the piece of code you drew attention to. MBH (talk) 23:55, 26 July 2023 (UTC)
- FeRDNYC, I tried to implement your solution. It doesn't broke pages, on that the module was work, but it still doesn't work for "старая строка" elections, see ru:Википедия:Выборы арбитров/Осень 2014/Голосование/Предытоги, [11]. MBH (talk) 15:32, 27 July 2023 (UTC)
- Yeah, I'm looking at the code now... the problem, I think, is that you can't use an
or
conditional on the match execution itself, especially in afor
loop like that. IOW, theif / or
logic I suggested, incorporated into the module code, would look something more like this:local block_pattern = "%{%{ВАРБ:строка|кандидат=([^\n]*)\n|номинатор=([^\n]*)\n|согласие=([^\n]*)\n|отказ=([^\n]*)\n|бюрократ=([^\n]*)\n|отказ бюрократа=([^\n]*)\n%}%}" local old_block_pattern = "%{%{ВАРБ:старая строка|кандидат=([^\n]*)\n|номинатор=([^\n]*)\n|согласие=([^\n]*)\n|отказ=([^\n]*)\n|бюрократ=([^\n]*)\n|отказ бюрократа=([^\n]*)\n%}%}" local match_pattern = "" if nomination_page_text:gmatch(block_pattern) then match_pattern = block_pattern elseif nomination_page_text:gmatch(old_block_pattern) then match_pattern = old_block_pattern else return {} end local candidates, candidatrue = {}, {} setmetatable(candidatrue,vlist) for candidate, submitter, consent, refusal, admission, non_admission in nomination_page_text:gmatch(match_pattern) do ... end
- The truth tests on whether various patterns match anything at all (if they don't, they'll return
nil
which is a falsey value) have to be performed and a pattern chosen before using thefor
loop to extract the various subpattern matches. (Thereturn {}
in theelse
condition may or may not make sense, it's meant as a short-circuit to bail on the function if neither pattern matches the input string at all, since there are no values you can extract in those cases.) FeRDNYC (talk) 00:48, 28 July 2023 (UTC)- Oh, and BTW this code doesn't make any allowances for situations where both patterns can match the input string. If that's a possibility, then... well, then things get a lot messier. You may be better off rewriting the function so that it takes a pattern string as an additional argument. Then you can run it twice from the call site, once with each pattern. FeRDNYC (talk) 01:51, 28 July 2023 (UTC)
- (Or, use Trappist the Monk's suggestions for building a single pattern that will work for both templates, even if it's not perfectly restricted to only those exact two strings.) FeRDNYC (talk) 02:28, 28 July 2023 (UTC)
- Yeah, I'm looking at the code now... the problem, I think, is that you can't use an
- Oh, the true reason why it doesn't work is because "старая строка" template has another parameter names, sorry for carelessness. I will try to integrate a different structure of second template into existing module. MBH (talk) 19:45, 28 July 2023 (UTC)
- Ah! Well, then it might be simplest to just copy the function, and make a second version that processes transclusions of ru:ВАРБ:старая строка with its argument structure. If the arguments are different between the two, there's no longer any real advantage to processing them both inside the same function.
- The other thing I'm noticing, even with the existing function, is: The code is extracting parameters it doesn't even use. Why? It's be more flexible to deal only with the parameters it actually needs, and ignore the others. For example, the code to find transclusions, and then to extract data from a given one, could perform those steps in separate stages. First, identify a transclusion and extract its parameter text as one big string. Then, parse each parameter out of that string, separately, so it's no longer critical where in the string each pattern is located. For instance:
local transclusion_pat = "%{%{ВАРБ:строка([^%}]*)%}%}" local candidate_pat= "|%s*кандидат%s*=([^|%}]*)" local consent_pat = "|%s*согласие%s*=([^|%}]*)" local admission_pat = "|%s*бюрократ%s*=([^|%}]*)" local candidate, consent, admission for transclusion in nomination_page_text:gmatch(transclusion_pat) do candidate = transclusion:gmatch(candidate_pat)() consent = transclusion:gmatch(consent_pat)() admission = transclusion:gmatch(admission_pat)() if candidate and consent:find("(UTC)") and admission:find("(UTC)") then candidate = trim(candidate) table.insert(candidates, candidate) end end
- Now your parameters can be in any order, they can contain arbitrary whitespace, it doesn't matter if they're newline- or space-separated, etc, etc. FeRDNYC (talk) 23:43, 28 July 2023 (UTC)
- (Actually, if you use e.g.
candidate = transclusion:match(candidate_pat)
, then you don't have to explicitly execute the function returned from:gmatch
in order to get string results from it.) FeRDNYC (talk) 00:19, 29 July 2023 (UTC) - @FeRDNYC Yeah, I agree, it's unnecessary complicated to get list of candidates by parsing candidates page in different formats. I have two another ideas: post a newline separated list of approved candidates to separate page or, better, gather list of candidates using https://ru.wikipedia.org/wiki/Special:Prefixindex?prefix=Выборы+арбитров%2FЛето+2023%2FГолосование%2F%2B%2F&namespace=4. Can you propose a code that will extract the last part of the page title as a candidate username and transmit a list of these usernames to the rest of the module? MBH (talk) 07:46, 29 July 2023 (UTC)
- I'll take a look, sure. I would not be surprised if there's a function in the
mw.
package for performing the equivalent of all-pages-starting-with-prefix searches directly in Lua. (Or, barring that, we can probably make an API call and get the results back as JSON data.) FeRDNYC (talk) 06:03, 30 July 2023 (UTC)- Neither are possible in Lua. One would be phab:T78171 and the other would be phab:T49137. Izno (talk) 06:17, 30 July 2023 (UTC)
- Thanks, Izno, was returning here to report the same findings. So it doesn't look like that's a viable option, MBH, since there are requests to add such functionality, but they're still unfulfilled currently.
- I had actually thought of a third possibility, having the two templates in question add the pages they're called on to a certain category. But that hits the exact same problem: the ability to retrieve a list of category members from Lua is T199126, also still unresolved.
- In order to get the data to Lua in an importable form, I think you'd need to have a bot task that regularly re-scanned the subpages list and dump the results into a data file, which could then be imported with
mw.ext.data.get
. But it sounds like you've sorted things out, so that's good to hear. FeRDNYC (talk) 13:19, 1 August 2023 (UTC)
- Neither are possible in Lua. One would be phab:T78171 and the other would be phab:T49137. Izno (talk) 06:17, 30 July 2023 (UTC)
- I'll take a look, sure. I would not be surprised if there's a function in the
- (Actually, if you use e.g.
- Looks like I've done what I want to do: [12], ru:Википедия:Выборы арбитров/Осень 2014/Голосование/Предытоги. Thanks for everyone who helped me. MBH (talk) 21:49, 31 July 2023 (UTC)
What does Wikipedia have against curly quotes?
Not sure if this is the right place to ask, but I’ve noticed that when curly quotes and apostrophes (‘’ “”) appear in article space, bots like AutoWikiBrowser and Citation bot will more often than not “clean them up” and replace them with straight quotes, even when they are curly in things like citation titles. As far as I know curly quotes and straight quotes have the same exact purpose, so why exactly is more than one bot programmed to make every quote straight? 2001:4453:546:D000:C5F5:E244:E9A6:C47A (talk) 02:45, 2 August 2023 (UTC)
- MOS:CURLY. Izno (talk) 02:50, 2 August 2023 (UTC)
- There is a FAQ at the top of WT:Manual of Style which has a short statement. There is also a "Search archives" box on that same page where entering "curly" will show a hundred arguments about the issue. Johnuniq (talk) 03:01, 2 August 2023 (UTC)
Cleanup after move bot
It's been a long time since I've seen it, but isn't there a bot that comes around and fixes redirects after moves? Is it still operating? Abductive (reasoning) 03:39, 31 July 2023 (UTC)
- Yes, that's EmausBot Headbomb {t · c · p · b} 06:20, 31 July 2023 (UTC)
- Thanks, I guess I misremembered that it fixed redirects after a move, but it only fixes double redirects. Abductive (reasoning) 07:24, 31 July 2023 (UTC)
- Well for the others, there's WP:NOTBROKEN. Headbomb {t · c · p · b} 08:00, 31 July 2023 (UTC)
- I'm thinking re-targeting redirects, not changing pipes within articles. Abductive (reasoning) 09:03, 31 July 2023 (UTC)
- Well then, what non-double redirect should get updated after a page move? Headbomb {t · c · p · b} 03:18, 2 August 2023 (UTC)
- Somebody (correctly) moved Echinopsis arachnacantha, a stub I created, to Lobivia arachnacantha. A couple of days later I happened upon it, and had to manually retarget a handful of synonyms. As far as my limited understanding of "double redirect" goes, these were double redirects. So I thought I'd ask here if the bot was still operating. Abductive (reasoning) 08:02, 2 August 2023 (UTC)
- The bot runs every 3 days across all Special:DoubleRedirects. The move was on 29 July, your redirect cleanup on 31 July. 2 days apart. Likely it happened in that window. Headbomb {t · c · p · b} 08:09, 2 August 2023 (UTC)
- Jebus. Abductive (reasoning) 08:31, 2 August 2023 (UTC)
- The bot runs every 3 days across all Special:DoubleRedirects. The move was on 29 July, your redirect cleanup on 31 July. 2 days apart. Likely it happened in that window. Headbomb {t · c · p · b} 08:09, 2 August 2023 (UTC)
- Somebody (correctly) moved Echinopsis arachnacantha, a stub I created, to Lobivia arachnacantha. A couple of days later I happened upon it, and had to manually retarget a handful of synonyms. As far as my limited understanding of "double redirect" goes, these were double redirects. So I thought I'd ask here if the bot was still operating. Abductive (reasoning) 08:02, 2 August 2023 (UTC)
- Well then, what non-double redirect should get updated after a page move? Headbomb {t · c · p · b} 03:18, 2 August 2023 (UTC)
- I'm thinking re-targeting redirects, not changing pipes within articles. Abductive (reasoning) 09:03, 31 July 2023 (UTC)
- Well for the others, there's WP:NOTBROKEN. Headbomb {t · c · p · b} 08:00, 31 July 2023 (UTC)
- Thanks, I guess I misremembered that it fixed redirects after a move, but it only fixes double redirects. Abductive (reasoning) 07:24, 31 July 2023 (UTC)
Pages that should have additional TOC entries
There are some pages that should have TOC entries so that navigation could be easier.
- First comes the module namespace. I often find it frustrating that there is no TOC entry to jump directly to the module code, the closest to it is the last entry of module documentation TOC, which unfortunately lands you 6-7 lines above your intended destination which is not good. Further, with the new sticky TOC in V-22, the last TOC entry remains bolded for the entire duration you look at the module code, which again is not good.
- Secondly, Diff pages should have a TOC entry to separate the diff from the rest of the article, which is absolutely necessary when dealing with diffs with large-scale changes. Currently, the (Top) button of TOC will take you to the extreme top the page, and the next entry on TOC is the first header of the article. There is no navigational support to go directly to the beginning of the article prose (lead section), which again is not good for navigation because either you have scroll down a huge distance from the top, or scroll up some 3-4 paragraphs from the first header in order to reach the lead.
I would extremely appreciate if these can be taken care of on the software end. Thanks! —CX Zoom[he/him] (let's talk • {C•X}) 19:54, 31 July 2023 (UTC)
- I actually don't hate either of these suggestions. Izno (talk) 19:56, 31 July 2023 (UTC)
- Next step is to get tickets created on Phabricator. Feature request form on Phab. –Novem Linguae (talk) 08:53, 2 August 2023 (UTC)
Usink MediaWiki API to get images from articles
I am currently building a tool to check articles without images or with low resolution images (VCAT). I am currently using MediaWiki Action API action raw to get images avoiding images from templates and other non relevant images (example here). But I am having some issues with the Template:Infobox river, the image comes directly from Wikidata and does not appear in the raw of the article, like in the article the article Pur (Russia). (example of the tool not detecting images at: VCAT - Wikiproject Rivers).
Is there a way to get only relevant images of an article using MediaWiki Action API? MingoBerlingo (talk) 15:31, 2 August 2023 (UTC)
- mw:API:Images. Nardog (talk) 23:07, 2 August 2023 (UTC)
- Thanks, but I am still having issues, I am trying to identify articles without images, but in this way also non relevant images are included (eg. images in templates). For example in the article computational neuroscience there is no image, but using mw:API:Images it shows five images (example here) which are images used in templates. MingoBerlingo (talk) 08:05, 3 August 2023 (UTC)
- Images from Wikidata in {{Infobox river}} are also images loaded through templates. You're basically saying you want images loaded through templates except the ones you don't want, and expecting the server to divinely know which ones are which. You could of course use prop=wbentityusage and detect images coming from Wikidata, but at that point I assume Quarry would be faster. Nardog (talk) 08:58, 3 August 2023 (UTC)
- Thanks, but I am still having issues, I am trying to identify articles without images, but in this way also non relevant images are included (eg. images in templates). For example in the article computational neuroscience there is no image, but using mw:API:Images it shows five images (example here) which are images used in templates. MingoBerlingo (talk) 08:05, 3 August 2023 (UTC)
- FYI, something like https://en.wikipedia.org/wiki/water?action=raw is no using the Action API. The equivalent via the Action API would be something like https://en.wikipedia.org/w/api.php?action=query&titles=water&prop=revisions&rvprop=content&rvslots=*. You can fetch images used in a page using mw:API:Images as pointed out above, but as you noted that gives all images while you only want certain ones. There's no way to directly get "just some images but not ones via some templates". If that's the sort of thing you want, you'd probably do best to process the HTML (either scraped or from mw:API:Parse) while excluding images inside elements with class
metadata
and the like. Another option would be to take the wikitext, strip out templates you don't like, and use mw:API:Parse withprop=images
to get the list of images in what remains. Anomie⚔ 11:46, 3 August 2023 (UTC)- Thanks a lot! I think I will try the last of your suggestions. It seems a little tricky but could work fine. MingoBerlingo (talk) 12:52, 3 August 2023 (UTC)
Aggregate timecard
Would it be possible to generate an aggregate timecard for the UnderArmourKid LTA sockpuppets? I'd like to see what their pattern of behavior is over the last 90-180 days. I'm not sure if aggregating multiple users' edits into one timecard is already supported. ☆ Bri (talk) 17:51, 31 July 2023 (UTC)
- If existing tools don't support it, Quarry could be programmed to do that sort of thing. Certes (talk) 20:14, 31 July 2023 (UTC)
- True, but Quarry would not produce the graphical timecard I was hoping for. ☆ Bri (talk) 21:33, 31 July 2023 (UTC)
- @Certes: thanks for the suggestion, I coded up a Quarry query that's good enough. I'd still like those sweet graphics, though. ☆ Bri (talk) 19:41, 1 August 2023 (UTC)
- If you can make do with sour graphics, there's a fork in quarry:query/75587. Certes (talk) 23:05, 1 August 2023 (UTC)
- Thanks, I'll probably steal that back! ☆ Bri (talk) 17:06, 3 August 2023 (UTC)
- If you can make do with sour graphics, there's a fork in quarry:query/75587. Certes (talk) 23:05, 1 August 2023 (UTC)
Move protection templates not showing
Lately I've noticed that the move protection templates (e.g. pp-move) – and their small versions – are not rendering, at all. Example article being Jurassic Park. I recall these templates clearly working a few years back (at least back in 2017). I scoured through the talk pages for the templates (ahhh – something which I should've done for the article preview thread I created above beforehand), and I didn't find/see any recent threads talking about the lock not showing or rendering. The most recent thread I could find is from 2017 – this one – which just talks about it placing pages in the incorrect category, so it isn't relevant here.
I've tested the pages on both a normal browser window (where I have Vector 2010 skin selected) and in an incognito window, as well as in a different web browser, and it's the same result everywhere. Lock / banner not showing at all.
Has anyone else noticed this bug? — AP 499D25 (talk) 08:24, 1 August 2023 (UTC)
- This appears to be intentional rather than a bug. Looking at Module:Protection banner/config (specifically line 860 onwards), it appears {{pp-move}} and similar have
catonly
set to yes by default. If you explicitly set|catonly=no
, the templates will generate a banner/padlock about move protection. Aidan9382 (talk) 08:38, 1 August 2023 (UTC)- The template documentation states
only appears for autoconfirmed users
for when using the small version of the template. But I am autoconfirmed, yet it's still not showing at all. Furthermore, it only states that for the small version, it doesn't say it for the banner. I have personally never seen the full banner version of the template work before, in fact with pretty much every protection template I've seen, the full banner version only works less than half of the time. Btw I just came across a note on the top of the template talk page stating that it was nominated for deletion in October 2020, and also providing this link: Wikipedia:Templates for discussion/Log/2020 October 25#Template:Pp-move. So maybe looks like they did modify it to not show up for non-registered users, which makes a bit of sense anyways since anonymous users will never be able to move pages. Now, I just don't understand why it's not showing up for confirmed / autoconfirmed registered users like me. — AP 499D25 (talk) 08:52, 1 August 2023 (UTC)The template documentation states only appears for autoconfirmed users for when using the small version of the template
- {{pp-move}} has stopped producing a banner/padlock at all by default since july 2021, and the template documentation was just never updated to mention this behaviour.in fact with pretty much every protection template I've seen, the full banner version only works less than half of the time
- What do you mean? Looking at my own sandbox, the banners appear to work fine. They aren't often seen on articles since the standard appears to be to use|small=yes
which makes them display as a padlock instead of a banner. Aidan9382 (talk) 09:06, 1 August 2023 (UTC)- So the template has been modified to simply not display a banner / lock / a visual indicator of any sort at all? If so, then that's pretty annoying that we have to click on a button and scan through a bit of the page source code to find out if a page is move-protected or not. I think the best way to handle it would be to have the template not show up for IP/unregistered editors, only registered users (maybe at the autoconfirmed and all above levels?).
- As for the full banner protection templates not working half of the time, it's just something I swear I've seen a lot. Thinking more about it, one page that came up in my mind where it has a non-small protection template (
pp-pc
instead ofpp-pc|small=yes
), is Pop-Tarts. It does not display the full banner, just a small padlock like you would expect/get withsmall=yes
. — AP 499D25 (talk) 09:23, 1 August 2023 (UTC)- The presence (or absence) of
{{pp-move}}
in the page source is not a guarantee that the page is move protected (or not). There are various methods of finding out the protection status, but the one that is both guaranteed and also requires no special privileges, no change to user preferences, no knowledge of coding and also the fewest clicks is to use the "Page information" link in the sidebar. Scroll down that to the "Page protection" heading, and it's all in the table. --Redrose64 🌹 (talk) 12:48, 1 August 2023 (UTC)- That makes sense, I'm aware of that. Though I didn't know about the protection status in the "Page information" view, so thanks for telling me about that!
- Still though, the move protection would be an instant and easy indicator as to whether a page is move protected or not (i.e. no need to click a link to find out). Like I said above, I think it should be visible to registered users only. Don't we have bots that automatically add or remove protection templates when a page is protected or unprotected?
- I'm going to guess the use of move-protection templates as a "visual indicator" have been deprecated and they are just purely used for page categorisation purposes now. — AP 499D25 (talk) 02:15, 4 August 2023 (UTC)
- The presence (or absence) of
- The template documentation states
Can't move text on userpage
I'm not sure if there is another place to ask, but this seems to be some kind of bug.
I was on my user page when using Chrome and saw that a quote I put there looked very strange, so I tried multiple times to fix it. It is almost fixed now but no matter what I do, the words "The file is deceased" end up on the wrong line. If the quote isn't there, there's just this big empty space.— Vchimpanzee • talk • contributions • 22:48, 2 August 2023 (UTC)
- How about now? A line break in wikitext converts to space, so you have to use
<br>
or<poem>...</poem>
if you want to realize a line break in output. Nardog (talk) 23:16, 2 August 2023 (UTC)- That looks good. Thanks.— Vchimpanzee • talk • contributions • 15:43, 3 August 2023 (UTC)
- Nardog Now it doesn't look right at home with Microsoft Edge. Once again there's a big empty space below the top line.— Vchimpanzee • talk • contributions • 20:41, 3 August 2023 (UTC)
- Screenshot? Nardog (talk) 20:46, 3 August 2023 (UTC)
- I could (if someone would explain how) but it wouldn't be helpful to anything important. I don't think that quote is of any value on my userpage anyway. I liked it when I saw it but I know things looked right when I took it out.— Vchimpanzee • talk • contributions • 15:39, 4 August 2023 (UTC)
- Screenshot? Nardog (talk) 20:46, 3 August 2023 (UTC)
Can't remove single sortkey with HotCat
I have often found that HotCat randomly fails when making single quick changes. However, I have just found that it consistently fails to commit a change that involves removing a blank sortkey. –LaundryPizza03 (dc̄) 16:38, 4 August 2023 (UTC)
- @LaundryPizza03: Hi. Sorry I didn't read you post on the other talk page very closely. That might not be a bug. See Wikipedia talk:HotCat/Archive 4#Why do I need to include a pipe character to remove an existing sort key? and Wikipedia:HotCat#Sort keys. If you want to remove a sortkey, you need to leave the pipe character there, with no space or any character behind it. Or if you replace one cat with another and want to remove the existing sortkey, you need to add the pipe. In other words, if you remove the pipe and everything behind it, HotCat restores the existing sortkey. Does this sound like what's going on? --DB1729talk 16:53, 4 August 2023 (UTC)
CAPTCHA required for preview
I assume CAPTCHA has been turned on for all IP editors for all edits, or something happened recently needing CAPTCHAs. I was wondering why a CAPTCHA is required for previews? Shouldn't that not require CAPTCHA, as repeatedly entering it for the same edit, might end up dissuading people from contributing at all. Or are the servers overloaded, so that every preview would need a CAPTCHA? -- 67.70.25.80 (talk) 06:42, 2 August 2023 (UTC)
- Regarding why the "edit" captcha is being required for previews too, that's just how they programmed mw:Extension:ConfirmEdit I guess. Regarding why the captcha feature has been turned on, it was as a response to some severe vandalism. More details at Wikipedia:Administrators' noticeboard/Incidents#EmergencyCaptcha mode in effect. –Novem Linguae (talk) 08:45, 2 August 2023 (UTC)
- An emergency measure to require extra CAPTCHAs has successfully prevented disruption and has just been reverted, according to the ANI thread. Certes (talk) 10:51, 2 August 2023 (UTC)
- I was about to start my own thread about this. I've been having to enter in CAPTCHA for every single edit I've made now. Before, I believe CAPTCHA was only required for edits that add new external links to pages. Is this a new policy? 2601:1C0:4401:F60:E07A:CA49:686C:2E64 (talk) 19:25, 2 August 2023 (UTC)
- Edit: Nevermind I just saw the ANI thread: this. Apparently it's in response to a massive spam-like attack of IPs adding nazi flags to lots of Wikipedia articles. Hopefully this is just temporary. 2601:1C0:4401:F60:E07A:CA49:686C:2E64 (talk) 19:35, 2 August 2023 (UTC)
- Agree that it makes no sense to fill in a CAPTCHA for a preview. And it appears that this is only enforced on the client side. When I enter random text in the captcha field, it does show the preview without any hiccups. 93.72.49.123 (talk) 21:36, 2 August 2023 (UTC)
- For me, random text works on my Mac running High Sierra, but my iPad running iPadOS16 requires the correct captcha. Strange. 2001:4453:504:9600:2D9F:33B1:F325:6684 (talk) 01:57, 5 August 2023 (UTC)
wait, so every edit (including ones without external links) requires a CAPTCHA now? 79.185.127.251 (talk) 19:27, 2 August 2023 (UTC)
- Unless something changed in the last few hours, I don't think so. I made a slight spelling correction while logged out and didn't need to enter a captcha. WPscatter t/c 19:31, 2 August 2023 (UTC)
- Yes, it's in response to this WP:ANI thread. There was a massive amounts of IPs adding nazi flags to Wikipedia articles. Hopefully this will just be temporary. 2601:1C0:4401:F60:E07A:CA49:686C:2E64 (talk) 19:33, 2 August 2023 (UTC)
- Oh wow, something did change in the last few hours. How about that. Oddly enough I was logged out by complete accident when I made the edit this morning, and I think it's my only logged-out edit since I created an account. Here I thought how serendipitous that I could answer this question with recent personal experience! Thanks for the info! WPscatter t/c 19:42, 2 August 2023 (UTC)
- Yes, it's in response to this WP:ANI thread. There was a massive amounts of IPs adding nazi flags to Wikipedia articles. Hopefully this will just be temporary. 2601:1C0:4401:F60:E07A:CA49:686C:2E64 (talk) 19:33, 2 August 2023 (UTC)
- For more details, see #CAPTCHA required for preview above. Certes (talk) 19:38, 2 August 2023 (UTC)
- Are there any plans to remove the CAPTCHA? It's still in place, two days after it was added. 123.51.107.94 (talk) 00:09, 4 August 2023 (UTC)
- It seems like the problem is being worked on privately. Any updates will probably be posted at Wikipedia:Administrators' noticeboard/Incidents#EmergencyCaptcha mode in effect.
- In the meantime, I filed task T343585 about the fact that filling out the field is required when previewing. It should only be required when publishing your changes. Matma Rex talk 18:26, 4 August 2023 (UTC)
- Are there any plans to remove the CAPTCHA? It's still in place, two days after it was added. 123.51.107.94 (talk) 00:09, 4 August 2023 (UTC)
The "Page preview" feature shows gibberish with no clear origin for links to one particular page
With the Page previews feature enabled, hovering the word and hyperlink to Entente Cordiale, the snippet reads: "{{sidemianonn dominga michele daniel cosma enea" (curly braces included, open only; quotation marks not included).
Observed in In [[Concorde#naming] but it also appears in the preview to this very post.
I can't find occurrences of any of those words in either the link target nor (of the phrase) anywhere online. 86.3.149.95 (talk) 09:43, 5 August 2023 (UTC)
- The template {{Events leading to World War I}} was scribbled over on 27 July and very quickly corrected. It's odd that the scribble is still showing up in your preview. I've purged the article, which may help. -- John of Reading (talk) 09:59, 5 August 2023 (UTC)
- That appears to have solved it. Thanks 86.3.149.95 (talk) 10:01, 5 August 2023 (UTC)
Vector Legacy and Vector 2022 CSS cross-contamination
I am trying to use different custom css for Vector Legacy and Vector 2022, for the purposes of testing dark mode features, and am finding that the css specified for vector Legacy (vector.css) is loading even when using vector 2022 setting in preferences and the vector-2022.css. Is this intended behavior? is there any way to specify css that will only load when using vector legacy and not load when using vector 2022? Dialectric (talk) 17:08, 4 August 2023 (UTC)
- It was intended behavior, and sometime toward the end of the year that intended behavior will no longer be intended and will be turned off. (On the list of things to RFC is to do it earlier than everyone else and be done with it.)
- You may target specific skins, the classes for which are set on the body element. I think one is skin-vector-legacy and the other skin-vector-2022 off the cuff. Izno (talk) 17:43, 4 August 2023 (UTC)
- Thanks for the reply. I did target some css with .skin-vector-2022; looks like .skin-vector-legacy will do for limiting some css to the legacy view.Dialectric (talk) 18:09, 4 August 2023 (UTC)
- The
<body>
tag has several classes in itsclass=
attribute. As I write this, those for Vector (legacy) includeskin-vector
andskin-vector-legacy
, those for Vector-2022 includeskin-vector
andskin-vector-2022
. --Redrose64 🌹 (talk) 20:30, 4 August 2023 (UTC)
- The
- Thanks for the reply. I did target some css with .skin-vector-2022; looks like .skin-vector-legacy will do for limiting some css to the legacy view.Dialectric (talk) 18:09, 4 August 2023 (UTC)
- Note that you can use CSS nesting which is now available in most browsers (also in Firefox behind a `layout.css.nesting.enabled` flag). You will get some warnings from MW linter, but it seems to work fine. Nux (talk) 13:56, 5 August 2023 (UTC)
- The latest spec (14 February 2023) is at CSS Nesting Module, which is a W3C Working Draft, and therefore not to be relied on. --Redrose64 🌹 (talk) 15:51, 5 August 2023 (UTC)
- If you do something weird with & or do many, many levels of nesting, then sure, it might stop working. But it is already implemented in Safari and Chrome and will not go away [13]. Just adding `.skin-vector-2022` around other CSS rules will definitely work in the future. Nux (talk) 19:56, 5 August 2023 (UTC)
- Rules that apply only to Vector 2022 should be placed only in your Vector 2022 CSS page, which means that CSS needs no wrapping. It is solely CSS in Vector.css that needs clarification as to application. Izno (talk) 20:10, 5 August 2023 (UTC)
- If you do something weird with & or do many, many levels of nesting, then sure, it might stop working. But it is already implemented in Safari and Chrome and will not go away [13]. Just adding `.skin-vector-2022` around other CSS rules will definitely work in the future. Nux (talk) 19:56, 5 August 2023 (UTC)
- The latest spec (14 February 2023) is at CSS Nesting Module, which is a W3C Working Draft, and therefore not to be relied on. --Redrose64 🌹 (talk) 15:51, 5 August 2023 (UTC)
"failed to parse" errors
At the moment the search function finds 38 cases of the following error:
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikipedia.org/v1/":): f
The error disappers sometimes when using Wikipedia:Purge, but something seems to be wrong. I discovered this problem in de.Wikipedia as well. Is there need to do anything? Kallichore (talk) 00:25, 5 August 2023 (UTC)
- I've searched on Phabricator and I don't see any tickets with that error message. Next step would be to file a bug report on Phabricator at https://phabricator.wikimedia.org/maniphest/task/edit/form/43/. –Novem Linguae (talk) 02:18, 6 August 2023 (UTC)
- I filed a report here now. --Kallichore (talk) 08:15, 6 August 2023 (UTC)
"Re-review this revision" – footer box about very old edit
Viewing the page Communication and scrolling to the bottom of the page, I see a bordered box asking me to re-review a two-year old edit, and linking to a Feb. 2021 log item by Samsara, inviting me to "Accept" or "Unaccept" it:
Footer content from html page source.
|
---|
<div id='mw-data-after-content'> <form method="post" action="/w/index.php?title=Special:RevisionReview&action=submit" id="mw-fr-reviewform"> <fieldset class="flaggedrevs_reviewform noprint cdx-card" style="font-size: 90%;"> <span id="mw-fr-reviewformlegend"><span class="cdx-card__text__title">Re-review this revision</span><p class="fr-rating-controls" id="fr-rating-controls"> <span id="mw-fr-ratingselects" class="fr-rating-options"></span><div class="cdx-text-input" style="padding-bottom: 5px;"><label for="mw-fr-commentbox">Comment:</label><input name="wpReason" size="40" value="" maxlength="500" class="fr-comment-box cdx-text-input__input" id="mw-fr-commentbox" /></div><input name="wpApprove" id="mw-fr-submit-accept" class="cdx-button cdx-button--action-progressive" accesskey="s" title="Mark this revision as accepted [s]" disabled="" type="submit" value="Accept revision"> <input name="wpUnapprove" id="mw-fr-submit-unaccept" class="cdx-button cdx-button--action-destructive" title="Revoke acceptance of this revision by marking it as unaccepted" style="" type="submit" value="Unaccept revision"> <span id="mw-fr-logtoggle" class="fr-logtoggle-excerpt" style="display:none;">(<a class="fr-toggle-text" title="Toggle display of the latest entry in the pending changes protection log">hide pending changes protection log</a>)</span><div id="mw-fr-logexcerpt"><ul class='mw-logevent-loglines'> <li data-mw-logid="115621124" data-mw-logaction="stable/config" class="mw-logline-stable"> <a href="/w/index.php?title=Special:Log&logid=115621124" title="Special:Log">13:37, 22 February 2021</a> <a href="/wiki/User:Samsara" class="mw-userlink" title="User:Samsara"><bdi>Samsara</bdi></a> configured pending changes settings for <a href="/wiki/Communication" title="Communication">Communication</a> [Auto-accept: require "autoconfirmed" permission] <span class="comment">(Persistent <a href="/wiki/Wikipedia:Disruptive_editing" title="Wikipedia:Disruptive editing">disruptive editing</a>: slow, long term pattern; via RfPP)</span> <span class="mw-logevent-actionlink">(<a href="/w/index.php?title=Communication&action=history&offset=20210222133744" title="Communication">hist</a>)</span> </li> </ul></ul> </div></p> <input type="hidden" value="Special:RevisionReview" name="title"> <input type="hidden" value="Communication" name="target"> <input id="mw-fr-input-refid" type="hidden" value="0" name="refid"> <input id="mw-fr-input-oldid" type="hidden" value="1167651378" name="oldid"> <input type="hidden" value="e5a2867c54ce4f1c6c146da0951eb9ce64cd4c44+\" name="wpEditToken"> <input id="mw-fr-input-changetime" type="hidden" value="20230729020856" name="changetime"> <input type="hidden" name="templateParams"> <input type="hidden" value="e132e91d9ad1e9b3684ae7ab69aaf836" name="validatedParams"> </fieldset> </form> </div> |
This log action occurred more than 500 edits ago at the article, and I don't know why that box is appearing now (or at all). Mathglot (talk) 19:18, 4 August 2023 (UTC)
- I have seen recent traffic about this phenomenon and I cannot remember where. Izno (talk) 20:03, 4 August 2023 (UTC)
- Do any of these 5 open bug reports cover this issue? If not, consider filing a bug report here, and tag it MediaWiki-extension-FlaggedRevs. –Novem Linguae (talk) 02:21, 6 August 2023 (UTC)
- It's not asking you to re-review a two-year old edit, it's just showing the log entry of when the page was pending-changes protected so you can see the context or rationale for the protection. The pasted source shows the revision being reviewed is 1167651378, which was the last revision when you created this thread. Nardog (talk) 17:18, 6 August 2023 (UTC)
I cannot translate page from polish to english
Hello! I wanted to translate page about Nastazja Staniszewska from polish to english, but wikipedia says that it could be done only by experienced users. What can i do about it? MadAurochs (talk) 15:12, 7 August 2023 (UTC)
- If this is the Polish-language Wikipedia biography you are referring to, [14] I suspect a direct translation wouldn't be accepted, since by English-language Wikipedia rules, more coverage in independent sources would probably be needed to meet our notability criteria. You'd need to find such sources, and incorporate them into the article.
- Article creation can be difficult, and we generally advise contributors to gain some experience in editing existing articles first, but if you are set on doing this see Help:Your first article, and Wikipedia:Translation, and then read Wikipedia:Notability (people) and WP:ARTIST in particular. AndyTheGrump (talk) 15:27, 7 August 2023 (UTC)n
- You cannot use WP:CX if you are not WP:Extended confirmed, meaning you need to have been on English Wikipedia for 500 edits and 30 days. If you still believe the biography is suitable, 1) you will need to do the translation by hand, and 2) I would recommend using WP:AFC for additional review. Izno (talk) 17:20, 7 August 2023 (UTC)
Tech News: 2023-32
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- Mobile Web editors can now edit a whole page at once. To use this feature, turn on "⧼Mobile-frontend-mobile-option-amc⧽" in your settings and use the "Edit full page" button in the "More" menu. [15]
Changes later this week
- There is no new MediaWiki version this week.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 21:18, 7 August 2023 (UTC)
Edit window drop down templates auto fill
The drop-down templates in the Edit Window have always had a feature that if you click on one of the templates, input an URL, and clicked on the little autofill symbol next to it, it would automatically fill out the template. As of today, that's not working. I have three different browsers, and it's not working on any of them. It was working fine recently. Maybe it's because I'm trying to do that with a PDF? Feedback? — Maile (talk) 23:10, 7 August 2023 (UTC)
- I don't think the feature can extract any information for PDF files. See phab:T136722 and meta:Community Wishlist Survey 2022/Citations/Enable Citoid to generate citation from a PDF link. PrimeHunter (talk) 00:20, 8 August 2023 (UTC)
- Thanks for finding for me. — Maile (talk) 01:17, 8 August 2023 (UTC)
Category "User talk pages with conflict of interest notices" found added to JS scripts
Is there a way that we can prevent .js files from being automatically added to Category:User talk pages with conflict of interest notices? I have an example here from @AfroThundr3007730:: User:AfroThundr3007730/twinkleoptions.js TheSandDoctor Talk 17:49, 5 August 2023 (UTC)
- Template:Welcome-COI-acc already has logic (near the end) to suppress the category if the template was added to the page years ago. Perhaps it could also check that the page title doesn't end in ".js". Certes (talk) 19:00, 5 August 2023 (UTC)
- The typical way to deal with this is simply to wrap the JS page in <nowiki>s. Since these are automatically changed, that could be fixed on the script side.
- On the software side, while I have observed no actual consensus on the matter, my belief is that we want to continue to allow wikitext parsing in such content model pages. You could of course file a task to turn it off for JS content models (just as it is off for Scribunto). Izno (talk) 19:30, 5 August 2023 (UTC)
- @Izno: Do you mean on Phabricator? TheSandDoctor Talk 23:41, 5 August 2023 (UTC)
- For the latter item, yes. For the former, that would be at WT:TW. I have observed some people say it is a good thing, not a bad thing, because that it is what allows such pages to be categorized, among other qualities. Izno (talk) 00:22, 6 August 2023 (UTC)
- Before you request it be turned off, you might want to review T43155 where the parsing was explicitly re-added after it was
accidentallyremoved back in 2012. It's one of those things that wouldn't be done if this were new code, but may need to be kept for hysterical raisins since it already exists. Anomie⚔ 01:42, 6 August 2023 (UTC)- Indeed, there are times when it is desirable, for instance if a user no longer requires their /chick.css user subpage (because that skin was removed ten years ago), they can tag it
{{db-user}}
, and it will show in Category:Candidates for speedy deletion by user. --Redrose64 🌹 (talk) 07:32, 6 August 2023 (UTC)- Another benefit of parsing is that many .js comments include wikilinks to imported scripts, enabling toolsmiths to notify their customers of changes. Certes (talk) 17:56, 6 August 2023 (UTC)
- Special:Search is sufficient for this case today (c.f. WP:TOPSCRIPTS). Tagging a script for deletion could be done at WP:ANI, though I think there's a db tags allow for "tagging" other pages. Or such could be devised. Or we could make a WP:Requests for speedy deletion a la WP:Requests for history merge or WP:CFDS.
- What would probably be most lost is categorization. en.wp doesn't tend to categorize their scripts but I think other wikis might. Izno (talk) 21:43, 6 August 2023 (UTC)
- Another benefit of parsing is that many .js comments include wikilinks to imported scripts, enabling toolsmiths to notify their customers of changes. Certes (talk) 17:56, 6 August 2023 (UTC)
- Indeed, there are times when it is desirable, for instance if a user no longer requires their /chick.css user subpage (because that skin was removed ten years ago), they can tag it
- Before you request it be turned off, you might want to review T43155 where the parsing was explicitly re-added after it was
- For the latter item, yes. For the former, that would be at WT:TW. I have observed some people say it is a good thing, not a bad thing, because that it is what allows such pages to be categorized, among other qualities. Izno (talk) 00:22, 6 August 2023 (UTC)
- @Izno: Do you mean on Phabricator? TheSandDoctor Talk 23:41, 5 August 2023 (UTC)
- @Novem Linguae: Should Twinkle wrap twinkleoptions.js in
<nowiki>...</nowiki>
? Nardog (talk) 17:21, 6 August 2023 (UTC)- One thing to potentially experiment with is whether JSON content model pages do the same as JS pages in parsing stored wikitext. That could be a viable alternative for storing the config. Izno (talk) 17:24, 6 August 2023 (UTC)
- Looks like twinkleoptions.js is already wrapped in nowiki. Example. The diff in the original post, User:AfroThundr3007730/twinkleoptions.js, is from 2018, so perhaps that is from before the nowiki patch was deployed to Twinkle. Looks like User:AfroThundr3007730/twinkleoptions.js is the only twinkleoptions page in that particular category. Search. I'll go ahead and use my interface administrator permissions to fix the original page. If there's a low number of other pages discovered, let me know and I can do some manual editing. –Novem Linguae (talk) 08:41, 8 August 2023 (UTC)
Open quotation marks at sr.wikipedia.org
Why I see open quotation marks different than closed quotation marks at sr.wikipedia.org pre-tagged documentation output for mobile? I expected same output as with desktop view. The problem encountered at, is present at, sr:Шаблон:Инфокутија Сакрални објекат/док (https://web.archive.org/web/20230808173952/https://sr.m.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%98%D0%BD%D1%84%D0%BE%D0%BA%D1%83%D1%82%D0%B8%D1%98%D0%B0_%D0%A1%D0%B0%D0%BA%D1%80%D0%B0%D0%BB%D0%BD%D0%B8_%D0%BE%D0%B1%D1%98%D0%B5%D0%BA%D0%B0%D1%82). /+ screenshot: http... (screenshot service outputs some expected version with correct format of both open and closed quotation marks: ) https://archive.is/d0u6N https://www.screenshotmachine.com/serve.php?file=result&1691518546448 +/ I use mobile view unapped. Browser was Samsung Internet v.22.0.3.1. The problem can be seen at Internet app yet it is standard unapped view because app is part of factory match (preinstalled or installed). --77.221.2.19 (talk); 18:21, 8 August 2023 (UTC)
- This is the Village Pump for technical issues on the English Wikipedia. It looks like sr:Википедија:Трг/Техника is the corresponding page on sr.WP. – Jonesey95 (talk) 22:36, 8 August 2023 (UTC)
Provide option to block font substitution on an SVG image
Note that the logo overlaps part of the date. Also the 2nd line of text extends off the image:
At the source it does not overlap:
Our World in Data (OWID) already fixed this once. See OWID's March 2023 Github thread:
It would be nice if there were boxes to check on the file description page:
- Block font substitution (except for 'serif' and 'sans-serif')
- Substitute narrow fonts only.
People outside Wikimedia create great SVG images. But they are often messed up by Wikimedia's weird font substitutions at times.
The SVG image creators create font family lists with a choice of fonts that meet the demands of Windows, Macs, Linux, and even Wikimedia.
So if Wikimedia just left it alone it would work fine. As long as there was a free font at the end of the font family list that was metric-compatible to the other fonts. See :
As OWID did for their sans-serif font family:
- style="font-family:Lato, 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif"
Wikimedia has the narrow free font Liberation Sans. But it is not being used. A wider font is being substituted for one of the other fonts in the list. Possibly DejaVu Sans:
--Timeshifter (talk) 20:55, 8 August 2023 (UTC)
- I decided to make a test: It appears that it either isn't processing fallback fonts anymore (just jumping right to the default Deja Vu Sans) or every unknown font is being "defined" as Deja Vu Sans so fallback never happens. Either way that sounds like a bug that should be reported in Phabricator. Anomie⚔ 22:06, 8 August 2023 (UTC)
- At a wild guess, perhaps the upgrade from librsvg 2.40 to 2.44.10 managed to break this, and hopefully the fix will come with phab:T265549? Anomie⚔ 22:34, 8 August 2023 (UTC)
- Thanks, Anomie. Maybe you can post this at Phabricator. I am almost always baffled by aspects of it when I post there. You sound like you are more familiar with it.
- From your image it looks like DejaVu Sans is being substituted for Lato and 'Helvetica Neue' and bogus font names. It looks like Liberation Sans is being substituted for Helvetica and Arial.
- I think your image test would be better if "This is a test:" was in front of them all. Then comparisons would be longer and clearer. Right now I am just comparing "This is" for each one.
- It looks like the narrower Liberation Sans should be the default fallback font instead of the wider DejaVu Sans characters and character spacing. --Timeshifter (talk) 22:52, 8 August 2023 (UTC)
- At a wild guess, perhaps the upgrade from librsvg 2.40 to 2.44.10 managed to break this, and hopefully the fix will come with phab:T265549? Anomie⚔ 22:34, 8 August 2023 (UTC)
Vector 2022 table of contents: bolded heading differing from current scroll position
Usually the bolded heading in the table of contents on the side with the Vector 2022 skin matches the current scroll position in the primary page content area. However at present, when viewing the incidents' noticeboard, this behaviour only persists when the current heading or sub-heading is near the top of the page. Once it scrolls away, the bolded heading reverts to a heading of a different section. This behaviour seems to have started with this edit to the section in question. The preceding version behaves as usual, while the following version does not. Can anyone figure out how the wikitext included (via transclusion) to collapse some headings has caused the change in behaviour, and how it may be fixed? (Pinging SGrabarczuk (WMF) and OVasileva (WMF).) isaacl (talk) 18:44, 5 August 2023 (UTC)
- Hey @Isaacl. Thanks for raising this issue. We'll look into it. SGrabarczuk (WMF) (talk) 01:47, 9 August 2023 (UTC)
Abuse filter for continuous disruptive behavior
Hello everyone. I come from Vietnamese Wikipedia.
I have a question about the abuse filter: How can I write a filter to block users who continuously add spam content like the example in the image on the right-hand side?
Contributions of these sockpuppet accounts: Huỳnh Trần Ý Nhi Hoa Hậu, TrieuTSon.
Thank you. Plantaest (talk) 06:34, 6 August 2023 (UTC)
- Would need to target something. Got any ideas? Are the accounts all new editors? Do they put the same thing in each of their edits? Do they put the same thing in each of their edit summaries? Do they only target certain pages? etc. –Novem Linguae (talk) 06:48, 6 August 2023 (UTC)
- Both accounts that I mentioned above are new accounts. Shortly after their creation, they started engaging in disruptive behavior. As for other factors, I will investigate further. Thank you. Plantaest (talk) 06:52, 6 August 2023 (UTC)
- For an simple filter you could do 'contains_any(added_lines, "target line")' where 'target line' is whatever words he is adding. When you find one, I would use the search to see whether other people are using that same phrase. You can use vi:Special:AbuseFilter/test within 30 days of the edits to test what your filter is matching. Snævar (talk) 19:31, 8 August 2023 (UTC)
- Both accounts that I mentioned above are new accounts. Shortly after their creation, they started engaging in disruptive behavior. As for other factors, I will investigate further. Thank you. Plantaest (talk) 06:52, 6 August 2023 (UTC)
- @Plantaest You're going to need to find "common patterns" on your own but something like below?In any case it's neccesary to debug your code over and over to eliminate false positives before enabling the filter, especially when you choose block as the action to take. Dragoniez (talk) 03:26, 9 August 2023 (UTC)
action === "edit" & !"autoconfirmed" in user_groups & ( kw := rmwhitespace(" (dummydummydummydummydummy) |<\/?bigg> "); rmwhitespace(added_lines) rlike kw & !rmwhitespace(removed_lines) rlike kw )
New pages in my userspace
Is there any way to get notified when someone else creates a new page in my userspace? DuncanHill (talk) 10:23, 6 August 2023 (UTC)
- No. User:PrimeHunter/My subpages.js adds a "Subpages" link to the interface on all pages. That would make it a little easier to check for new pages, but such a link is already at the bottom of Special:MyContributions. PrimeHunter (talk) 11:01, 6 August 2023 (UTC)
- A very inelegant solution is to write a SQL query to list your subpages, run it regularly using {{Database report}} and watchlist its output. Certes (talk) 18:04, 6 August 2023 (UTC)
- Another inefficient option is to use a web monitor such as Distill on Special:Prefixindex/User:Whoever. Certes (talk) 18:08, 6 August 2023 (UTC)
- If you have a page in your userspace that you regularly check, you could transclude Special:PrefixIndex/User:DuncanHill/ to it. But you would still have to check manually because changes to the original page do not show up as changes to the target page. -- Random person no 362478479 (talk) 20:47, 6 August 2023 (UTC)
- In addition to phab:T166924 mentioned above, phab:T3876#7723340 also mentions this. –Novem Linguae (talk) 11:02, 8 August 2023 (UTC)
- Try putting {{user subpages}} (add your username as a parameter) somewhere you will see it frequently. -- Verbarson talkedits 14:18, 9 August 2023 (UTC)
Detect multiple transclusions of a template within a page
I'm looking for a way to detect multiple transclusions of a template within a page using a module, to add a maintenance category. Let's say we have {{A}} {{A}}
in a single page, in which case I want to add e.g. Category:Multiple transclusions
, but none when we only have {{A}}
(single transclusion). Does anyone have any ideas? Dragoniez (talk) 02:57, 9 August 2023 (UTC)
- This is not information that is tracked at a database level. Why do you want this ? Generally multiple transclusions shouldn't really be too much of a problem. —TheDJ (talk • contribs) 10:05, 9 August 2023 (UTC)
- Many clever people have tried to answer similar questions here, and I don't think it is possible. Would the module which adds the category be called from template A or in some other way, or is either ok? If you tell us more about the problem, we may be able to think more laterally and find an indirect solution. Certes (talk) 11:08, 9 August 2023 (UTC)
- Say,
A
is a template like {{Old XfD multi}}, which can have a bunch of "data rows". These rows don't need to be separated into multiple occurrences of the template and can be merged. I'm wondering if a bot can do this merging task. But if you develop such a bot, you'll need a way to get a list of the relevant pages, and I thought it'd be one option to have a tracking category so that we can collect page titles using list=categorymembers. I can think of other ways to do this, like using list=search, but the category solution seems to me to be most efficient, although I don't know if it's fundamentally possible to get a lua module to add such a category. This is why I thought I'd ask this. Dragoniez (talk) 12:04, 9 August 2023 (UTC)- If you're using a bot then a search like this should do the job. You may want to change the list of namespaces, perhaps to just Talk:; the only hit outside the one I listed is Template:Old XfD multi/doc. Certes (talk) 12:21, 9 August 2023 (UTC)
insource:
doesn't discover redirects [16] with a non-matching name. PrimeHunter (talk) 14:58, 9 August 2023 (UTC)
- If you're using a bot then a search like this should do the job. You may want to change the list of namespaces, perhaps to just Talk:; the only hit outside the one I listed is Template:Old XfD multi/doc. Certes (talk) 12:21, 9 August 2023 (UTC)
- Say,
- In a module can't you just use
string.gmatch
for the template name (or{{[Tt]emplate name
) on the page content and iterate the result to get the count? — Jts1882 | talk 16:53, 9 August 2023 (UTC)
Broken interwiki links
Yesterday I was just browsing Special:Interwiki just because I was bored, and I noticed that one of the wikis in there, schoolswp (Interwiki example, External example) is broken.
So I did the only logical thing: Make a JavaScript program to get all the base domains from the table, and then (through a CORS proxy) see which ones are broken.
After some manual sifting to see which ones false positives, I have results. Note that https://www.socialtext.net and https://www.wikimediachile.cl do work, but they give an SSL error and I don't know the former is in the interwiki table in the first place. --QuickQuokka [talk • contribs] 19:49, 9 August 2023 (UTC)
- @QuickQuokka I'm not sure if you're looking for an answer to a question, or a pat on the back (LOL), but this sounds far too technical a point to raise at the Teahouse. I wonder if you might be better off making whatever point it is that you're making over at WP:VPT? I'm really not trying to be rude, but the folks over there understand much the same sort of stuff that you seem to. Me on the other hand: nah! Best wishes, Nick Moyes (talk) 20:30, 9 August 2023 (UTC)
- Yeah I was basically just looking for answers as to why they're there. Are they supposed to be there? I don't know. QuickQuokka [talk • contribs] 20:33, 9 August 2023 (UTC)
- The interwiki table is maintained on-wiki at m:Interwiki map. I've posted a pointer to this discussion over at m:Talk:Interwiki map * Pppery * it has begun... 20:43, 9 August 2023 (UTC)
- Yeah I was basically just looking for answers as to why they're there. Are they supposed to be there? I don't know. QuickQuokka [talk • contribs] 20:33, 9 August 2023 (UTC)
Sorting function not working
At Gambling_age#Countries, a table, sorting Age column gives second Illegal then None then Illegal so sorting is not working. I do not know why. --109.175.38.25 (talk); 11:21, 10 August 2023 (UTC)
- That column has data-sort-type="number", so the entries are sorted numerically. Entries with no numeric value remain sorted by country name, regardless of what non-numeric value (Illegal, None, etc.) they contain. Certes (talk) 11:47, 10 August 2023 (UTC)
- See more at Help:Sortable tables#Configuring the sorting. I have added
data-sort-value
to non-numeric values.[17] PrimeHunter (talk) 11:55, 10 August 2023 (UTC)
- See more at Help:Sortable tables#Configuring the sorting. I have added
The page for Rod Adkins is not appearing on the mobile web browser version.
Hi,
The page for Rod Adkins - is not appearing on the mobile web browser version like Safari and Google Chrome.
Link to page: Rod Adkins#:~:text=Rodney C. "Rod" Adkins,Grainger and Avnet. Alanajhill (talk) 15:33, 10 August 2023 (UTC)
- @Alanajhill, try this link? https://en.m.wikipedia.org/wiki/Rod_Adkins WhatamIdoing (talk) 16:17, 10 August 2023 (UTC)
Fire Diamond Alignment in Chembox Template
Hi,
It seems like the fire diamond in Chembox Template for all chemical compounds is misaligned on mobile devices. The background image is moved completely to the right and some of the numbers / letters overlap the diamond's boundaries. I've checked on multiple devices - all with latest version of Chrome Browser. The alignment is alright on PC. Check example : Benzene. I can't fix it (as I have no idea how it works). Can anyone having knowledge about it help? Thanks in advance!! Ray Frost (talk) 18:18, 10 August 2023 (UTC)
- I have so far tracked this down to {{NFPA 704 diamond}}. See that template's testcases page in mobile view for an example. – Jonesey95 (talk) 18:53, 10 August 2023 (UTC)
- All the diamonds are misaligned to the down-left. Is there a way to edit it? As I said, I have no idea how that code works and I really don't want make it worse. Ray Frost (talk) 09:07, 11 August 2023 (UTC)
- This is because the <figure> around the image has large margins on mobile, while it has no margins on desktop. This might be an oversight in the mobile styling for images, but I'm not 100% sure. It can be corrected by making use of TemplateStyles to style this element. —TheDJ (talk • contribs) 11:04, 11 August 2023 (UTC)
- I have created {{NFPA 704 diamond/styles.css}} and tried to add it to the sandbox, but it hasn't fixed anything. I have almost no idea how to do TemplateStyles, though. Izno is usually good at them. – Jonesey95 (talk) 13:30, 11 August 2023 (UTC)
- I'll reach out to him then and ask if he can help. Thanks Jonesey95!! Ray Frost (talk) 13:34, 11 August 2023 (UTC)
- TheDJ fixed the CSS for me, and now Benzene looks fine in mobile view. I was so close! Someday I may understand how CSS works. Good job, team! – Jonesey95 (talk) 16:01, 11 August 2023 (UTC)
- Wow, it looks PERFECT now. Thanks a lot for helping!! (Besides I don't even know what CSS is XD) Thanks Again!! Ray Frost (talk) 16:04, 11 August 2023 (UTC)
- @Jonesey95,
.content
is "outside the reach" of TemplateStyles. All TemplateStyles selectors are "hoisted" to.mw-parser-output
. This means that when you wrote.content
, what you really wrote was.mw-parser-output .content
. Now, the.content
element exists outside the.mw-parser-output
element, so in reality you were targeting nothing, as when you have multiple selectors they must be in the order of the HTML containers. This is something specific to TemplateStyles and that selector would have otherwise worked if it were in, say, Common.css, since that does not hoist CSS. The hoisting is one of the reasons that TemplateStyles is "safe". (There is one exception to how this hoisting works: you may target classes onbody
andhtml
if you write them asbody.class
orhtml.class
so long as you pick another child element, say,body.class .infobox
. The corresponding output will bebody.class .mw-parser-output .infobox
and similar.) - As for
imagemap
, the name of the HTML element ismap
. Izno (talk) 18:58, 11 August 2023 (UTC)
- TheDJ fixed the CSS for me, and now Benzene looks fine in mobile view. I was so close! Someday I may understand how CSS works. Good job, team! – Jonesey95 (talk) 16:01, 11 August 2023 (UTC)
- I'll reach out to him then and ask if he can help. Thanks Jonesey95!! Ray Frost (talk) 13:34, 11 August 2023 (UTC)
- I have created {{NFPA 704 diamond/styles.css}} and tried to add it to the sandbox, but it hasn't fixed anything. I have almost no idea how to do TemplateStyles, though. Izno is usually good at them. – Jonesey95 (talk) 13:30, 11 August 2023 (UTC)
- Very well might be unrelated, but the infobox image for Himba people is misaligned on my mobile Chrome browser as well (this time to the left). 2603:8001:4542:28FB:9D1D:B71C:F4B9:8B91 (talk) 08:52, 11 August 2023 (UTC)
- Only the image seems to be moved to the left. Ray Frost (talk) 09:01, 11 August 2023 (UTC)
Replag
Hey, during a Quarry query today, I saw that there was a replag on the English Wikipedia. Then, coming here, I remember that when this happened last time, it was suggest that a link to the replag page be put in the VPT FAQs page but that doesn't seem to ever been done. Anyone want to take on that small task? Liz Read! Talk! 02:06, 12 August 2023 (UTC)
AutoEd and templates
It would be possible with AutoEd to create a configuration with a template and a list of parameters and have it remove the parameters in that template that are not in the list. --GryffindorD (talk) 10:47, 12 August 2023 (UTC)
- Probably. I have an example at User:Jonesey95/AutoEd/unnamed.js. It fixes misnamed parameters, but the logic is similar. You may have to list the invalid parameters individually, which is probably a good idea for most templates, because people often misspell valid parameters, so those should be fixed instead of removed. – Jonesey95 (talk) 13:05, 12 August 2023 (UTC)
- It is sometimes difficult to figure out which parameter creates the error, though, particularly with templates I know little about. If it were possible to get AutoEd to remove them, in previewing you would immediately understand the problem and possibly fix it. GryffindorD (talk) 13:17, 12 August 2023 (UTC)
Can't use MOS scripts
I'm using a few MOS scripts for copy-editing, the list is at User:Lallint/common.js. However, the scripts, for example the EngvarB scripts, only seem to work on my common.js page, and not in article namespaces. Going into source editor with the scripts in article namespace does show some of the scripts, but some are missing, and the ones that show do nothing when clicked. When I go into source editor on my common.js page, all of the scripts show, and I can use the scripts as intended. I'm using the latest version of Firefox, and I've tried chrome but it does the same thing. I've had this problem for a year, but its still happened. Lallint 01:05, 12 August 2023 (UTC)
- Those scripts are not compatible with the 2017 editor. Turn off "Use the wikitext mode inside the visual editor" in Preferences. Nardog (talk) 05:38, 12 August 2023 (UTC)
- Okay, thanks. That worked Lallint 18:55, 12 August 2023 (UTC)
- There is an list over compatible gadgets with the 2017 editor at mw:User:Deskana (WMF)/Gadgets/enwiki. Snævar (talk) 11:21, 12 August 2023 (UTC)
Wikipedia says possible malicious content
Could someone help out? I added colors to my signature and Wikipedia provided a notice saying "Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page."
It is on my User:Ktkvtsh/common.css page. Could someone please confirm for me it is okay to use this code for my signature? Ktkvtsh (talk) 12:59, 13 August 2023 (UTC)
- @Ktkvtsh: That is the standard notice that appears on everyone's .js and .css pages. It's just telling you to be careful what you add, not that there's anything wrong with what you have now. gnu57 13:11, 13 August 2023 (UTC)
- Perfect. Better safe than sorry. Really appreciate you! Ktkvtsh (talk) 13:12, 13 August 2023 (UTC)
- As gnu said, the warning is generic; it just says that your computer will run anything written there, so if you copy and paste text from an untrusted source then it can do bad things. What you've added looks good, but beware that it will only affect how you see your signature when you are logged in. If you want your signature to appear differently to everyone, you need to change your preference in the Signature section of Special:Preferences#mw-prefsection-personal. Certes (talk) 13:14, 13 August 2023 (UTC)
- Thanks! Glad to know now. Ktkvtsh (talk) 13:20, 13 August 2023 (UTC)
Issues with spacing around columns
Copying this from Template talk:Col-float since I couldn't get a reply there: For some reason, when this template is placed next to images along the side of the page, the columns do not start until the top of the last picture. This means a gap can form when there are lots of images; for examples, see the multiple wins and nominations sections at 95th Academy Awards#Films with multiple nominations and awards and 74th Primetime Emmy Awards#Nominations and wins by program. Is there a reason for this issue? RunningTiger123 (talk) 15:23, 13 August 2023 (UTC)
- @RunningTiger123: This is behaving as expected, see WP:MFOP. I suggest that you reduce the number of images. --Redrose64 🌹 (talk) 16:38, 13 August 2023 (UTC)
Visiting an old revision marks the page as read
Right now, if you visit an old revision or diff of a page you're watching, it marks the latest revision as read, i.e. removes all "updated since your last visit" labels on the page history. Has this always been the case? It should only mark as read the revisions up to that point. And I feel like it did until weeks or months ago, or am I misremembering? Nardog (talk) 11:09, 13 August 2023 (UTC)
- I noticed this too. I filed a bug report for it in May. It's at phab:T335832. I suspect it's a regression. Hope this helps. –Novem Linguae (talk) 23:59, 13 August 2023 (UTC)
Weno
Weno has a broken infobox displaying a giant redlink. I can't figure out how to fix it as it's somehow procedurally generated. Anyone know what to do? Ten Pound Hammer • (What did I screw up now?) 17:40, 9 August 2023 (UTC)
- The template documentation is no help; it just says it "should not be used from article namespace pages". (Didn't we have a whole bunch of giant rfcs all saying not to do the sort of things that template does? Or did they suddenly start going the other way over the last year while I've been mostly inactive?) —Cryptic 17:49, 9 August 2023 (UTC)
- I believe the most recent discussion on Wikidata in infoboxes is Wikipedia:Wikidata/2018 Infobox RfC, which came to no consensus. Unfortunately there's been a frozen conflict here, with regular "no consensus" results, for about as long as I've been editing. * Pppery * it has begun... 17:56, 9 August 2023 (UTC)
- And I also removed the clearly wrong "This template is rated as pre-alpha" from the documentation, since it has 520 mainspace uses. * Pppery * it has begun... 18:01, 9 August 2023 (UTC)
- Fixed (by abandoning that particular template entirely and switching to ordinary {{infobox settlement}}) * Pppery * it has begun... 17:56, 9 August 2023 (UTC)
- It looks like the problem is that Template:Infobox settlement/Wikidata says
{{#if: {{#property:P31}} | [[{{#property:P31}}]] }}
which then strings the two P31 parameters of wikidata:Q1009384 together and turns them into a link. I am not sure that P31 can always be interpreted as "settlement type", certainly not as something that can be turned into a piped link. Jo-Jo Eumerus (talk) 18:16, 9 August 2023 (UTC)- Per the RFC, that Wikidata property call is invalid, since it does not check to see if the value is sourced. I have expanded the documentation for the template to explain that it should not be used in article space until it is modified to conform to the RFC's sourcing requirement. – Jonesey95 (talk) 18:25, 9 August 2023 (UTC)
- I'm honestly inclined to just nominate it for deletion - the chance of the warning you added becoming anything other than dead letter otherwise is negligible and it seems like nobody wants to do the necessary work. * Pppery * it has begun... 18:52, 9 August 2023 (UTC)
- No objections from me. The doc has had a note about the template needing to be fixed for three years, and the template has mostly gotten worse since then. It seems to be abandoned. – Jonesey95 (talk) 19:34, 9 August 2023 (UTC)
- Does anyone know whether
{{#invoke:WikidataIB|getValue|rank=best|qid={{{qid|}}}|Pxxx|fetchwikidata=ALL|onlysourced=yes}}
is the right replacement for{{#if: {{#property:Pxxx}} | [[{{#property:Pxxx}}]] }}
code? To solve the source thing. Jo-Jo Eumerus (talk) 20:01, 9 August 2023 (UTC)- Yes, in theory. But the fact that nobody has responded to that comment until now strengthens my and Jonesey95's point. * Pppery * it has begun... 11:34, 14 August 2023 (UTC)
- Does anyone know whether
- No objections from me. The doc has had a note about the template needing to be fixed for three years, and the template has mostly gotten worse since then. It seems to be abandoned. – Jonesey95 (talk) 19:34, 9 August 2023 (UTC)
- I'm honestly inclined to just nominate it for deletion - the chance of the warning you added becoming anything other than dead letter otherwise is negligible and it seems like nobody wants to do the necessary work. * Pppery * it has begun... 18:52, 9 August 2023 (UTC)
- Per the RFC, that Wikidata property call is invalid, since it does not check to see if the value is sourced. I have expanded the documentation for the template to explain that it should not be used in article space until it is modified to conform to the RFC's sourcing requirement. – Jonesey95 (talk) 18:25, 9 August 2023 (UTC)
Google shows page in WP space
It was my understanding that Google only lists Wikipedia articles that are in article space, also known as mainspace. I also thought that Google only listed articles that have been reviewed by New Page Patrol, but that is not my concern in this post. However, I have seen that a Google search for Zepotha shows Wikipedia:Zepotha. For background, Zepotha is a fictitious movie, apparently originating on TikTok. Multiple pages about it were recently deleted from draft space as a hoax. I tried to search Google for non-Wikipedia mentions of this name or meme. As my screen shot shows, Google displays Wikipedia:Zepotha, which is a red link showing that it has been deleted three times by administrators. So my question is whether anyone is aware of a way that Google lists pages in Wikipedia project (WP) spaceRobert McClenon (talk) 05:16, 14 August 2023 (UTC)
- Robert McClenon, Google can display anything that its algorithms decide to display. Wikipedia:Controlling search engine indexing says
Respecting the tag, especially in terms of removing already indexed content, is up to the individual search engine, and in theory the tag may be ignored entirely.
Cullen328 (talk) 05:31, 14 August 2023 (UTC)- User:Cullen328 - Thank you, sort of. In this case Google was stupid. Articles in spaces other than article space will seldom be of interest to a reader who is using a search engine to search the World Wide Web. Pages in project space are seldom of interest to someone who is not a Wikipedia volunteer. In this case it will just confuse the searcher. Duh. Robert McClenon (talk) 06:07, 14 August 2023 (UTC)
- Robert McClenon, the only website that Wikipedia editors have any direct influence on is Wikipedia. As for Google, they are useful 98% of the time, but occasionally, they screw up. For example, their navigation instructions to my neighborhood tell people to drive through a locked gate to get to my house, and when a driver passes by the locked gate, the directions turn into complete nonsense. I have to warn guests. Cullen328 (talk) 06:16, 14 August 2023 (UTC)
- It looks like most namespaces are allowed to be indexed by search engines by default, the exceptions being unpatrolled mainspace pages, user pages, and draft pages. (There are also a few more specific exceptions - e.g. AfD, AN, SPI, LTA, RSN, RfA, etc.). I suppose WP: space is hard in that there are a number of pages there that could be legitimately useful, especially to editors. LittlePuppers (talk) 06:27, 14 August 2023 (UTC)
- I'm not sure why ppl think that only main space is of interest to Google or people trying to find information on Wikipedia for that matter. They might prioritise main space higher internally in their algorightme of course, but information is information. If you put it on the web, Google will index it and probably should index it. While we exclude some pages that might be used to game the system, or that are more likely to include personal information etc. In general, every single page is indexed. —TheDJ (talk • contribs) 13:36, 14 August 2023 (UTC)
- Robert McClenon, the only website that Wikipedia editors have any direct influence on is Wikipedia. As for Google, they are useful 98% of the time, but occasionally, they screw up. For example, their navigation instructions to my neighborhood tell people to drive through a locked gate to get to my house, and when a driver passes by the locked gate, the directions turn into complete nonsense. I have to warn guests. Cullen328 (talk) 06:16, 14 August 2023 (UTC)
- User:Cullen328 - Thank you, sort of. In this case Google was stupid. Articles in spaces other than article space will seldom be of interest to a reader who is using a search engine to search the World Wide Web. Pages in project space are seldom of interest to someone who is not a Wikipedia volunteer. In this case it will just confuse the searcher. Duh. Robert McClenon (talk) 06:07, 14 August 2023 (UTC)
How to Find??
Identify political leader pages lacking the Infobox officeholder template, along with a user-friendly filter for sorting them by election or state. I have work on Tamil Nadu state & 2021 Assembly Election. Thanks in advance. - IJohnKennady (talk) 03:36, 6 August 2023 (UTC)
- Maybe try Petscan, with a category selected, a high depth of subcategories (e.g. 10), and a "doesn't have template" {{Infobox officeholder}} selected. Example. Perhaps choose more specific categories and templates to reduce the # of results to a manageable level. Hope this helps. –Novem Linguae (talk) 04:39, 6 August 2023 (UTC)
- Thank you very much i'll explore this. --IJohnKennady (talk) 13:55, 6 August 2023 (UTC)
- And i have one more doubt, how to find, How many pages didnt have Electoral performance heading. _IJohnKennady (talk) 11:52, 9 August 2023 (UTC)
- @IJohnKennady, you can combine "doesn't have" (
-"your text"
) withincategory:
orhastemplate:
searches to find articles like that, e.g., https://en.wikipedia.org/w/index.php?search=hastemplate%3AInfobox_officeholder+-%22electoral+performance%22&title=Special%3ASearch&ns0=1 It won't be perfect, but it should find you a lot of articles. Whatamidoing (WMF) (talk) 16:20, 14 August 2023 (UTC)
- @IJohnKennady, you can combine "doesn't have" (
- And i have one more doubt, how to find, How many pages didnt have Electoral performance heading. _IJohnKennady (talk) 11:52, 9 August 2023 (UTC)
Template:Infobox scientist/Wikidata: thesis parameter causes links in links lint error
See discussion at Template talk:Infobox scientist/Wikidata#Thesis causes links in links lint error. Please continue the discussion there. There are actually two issues. One is with the template and one is I can't figure out how to add an academic thesis in Wikidata. —Anomalocaris (talk) 17:29, 14 August 2023 (UTC)
Search length
Help:Searching says the maximum search string is 300 characters
, which matches my experience. However, it now seems to be accepting only 255 characters. Has it changed? This breaks some existing searches. (Per phab:T107947, the restriction seems to be an arbitrary one to discourage slow searches, but I'm having to remove optimisations to fit within the lower limit. Has someone scored an own goal?) Certes (talk) 09:38, 14 August 2023 (UTC)
- That phab to reduce the max search characters to 255 was closed as resolved in 2015. Are you saying that 300 characters worked from 2015-2023 and recently stopped working? Can you give an example query that recently worked but stopped working? Maybe that info will help someone investigate. –Novem Linguae (talk) 00:00, 15 August 2023 (UTC)
Ajax rollback
Is it just a conflict with some script also loaded, or is it non-existent here? ~Lofty abyss 08:38, 13 August 2023 (UTC)
- Please be more specific. Generic Ajax rollback is now in core ("Show a confirmation prompt when clicking on a rollback link") so you don't have to import any script, and if you use a more elaborate script you most likely have to turn the option off. Nardog (talk) 09:06, 13 August 2023 (UTC)
- I mean the functionality that used to be able to rollback on special:contribs, without redirecting to another page... ~Lofty abyss 09:27, 13 August 2023 (UTC)
- What about it? Nardog (talk) 10:15, 13 August 2023 (UTC)
- @Lofty abyss, have you tried mw:safemode to find out whether you have a conflicting script? Whatamidoing (WMF) (talk) 16:43, 14 August 2023 (UTC)
- I still only get the default rollback links.
- @Nardog, I haven't seen it in quite some time... ~Lofty abyss 17:07, 14 August 2023 (UTC)
- Blank your global.js, common.js, and the .js for whichever skin you're using, and turn on "Show a confirmation prompt when clicking on a rollback link". Nardog (talk) 18:21, 14 August 2023 (UTC)
- But confirmations isn't what I'm seeking? There were these [ajax] links which did it with no confirmation or page redirections, once... ~Lofty abyss 19:35, 14 August 2023 (UTC)
- On what wiki have you seen it? Whatever it is, it's a user script or gadget, not something from the MediaWiki software or an extension. Nardog (talk) 02:52, 15 August 2023 (UTC)
- But confirmations isn't what I'm seeking? There were these [ajax] links which did it with no confirmation or page redirections, once... ~Lofty abyss 19:35, 14 August 2023 (UTC)
- Blank your global.js, common.js, and the .js for whichever skin you're using, and turn on "Show a confirmation prompt when clicking on a rollback link". Nardog (talk) 18:21, 14 August 2023 (UTC)
- I mean the functionality that used to be able to rollback on special:contribs, without redirecting to another page... ~Lofty abyss 09:27, 13 August 2023 (UTC)
Tech News: 2023-33
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- The Content translation system is no longer using Youdao's machine translation service. The service was in place for several years, but due to no usage, and availability of alternatives, it was deprecated to reduce maintenance overheads. Other services which cover the same languages are still available. [18]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 15 August. It will be on non-Wikipedia wikis and some Wikipedias from 16 August. It will be on all wikis from 17 August (calendar).
- Starting on Wednesday, a new set of Wikipedias will get "Add a link" (Latin Wikipedia, Ladino Wikipedia, Luxembourgish Wikipedia, Lak Wikipedia, Lezghian Wikipedia, Lingua Franca Nova Wikipedia, Ganda Wikipedia, Limburgish Wikipedia, Ligurian Wikipedia, Lombard Wikipedia, Lingala Wikipedia, Latgalian Wikipedia, Latvian Wikipedia, Maithili Wikipedia, Basa Banyumasan Wikipedia, Moksha Wikipedia, Malagasy Wikipedia, Armenian Wikipedia, Kyrgyz Wikipedia). This is part of the progressive deployment of this tool to more Wikipedias. The communities can configure how this feature works locally. [19]
Future changes
- A few gadgets/user scripts which add icons to the Minerva skin need to have their CSS updated. There are more details available including a search for all existing instances and how to update them.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 05:57, 15 August 2023 (UTC)
Styles.css
Hi, y'all! I just created a stripe, but when adding it to one of my pages, User:Tails Wx/genderfluid strip, it stated "Page User:Tails Wx/genderfluid stripe/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "CSS").
" The link to the code is User:Tails Wx/genderfluid stripe/styles.css. Can anyone assist and help as to why it isn't working? Thanks! Tails Wx (they/them) ⚧ 03:04, 15 August 2023 (UTC)
- Should work now. When you create a .css page in the user space, it is treated as a CSS content model. The reasons for that are somewhere in the "security" basket. An interface admin (such as myself) can change the content model to sanitized CSS. Izno (talk) 07:18, 15 August 2023 (UTC)
- Alright. Thanks! Tails Wx (they/them) ⚧ 07:19, 15 August 2023 (UTC)
Bizarre template behaviour
Take a look near the bottom of Berliner FC Dynamo, in the sections "References", "Further reading", and "External links". {{reflist}} and {{cite news}} templates are not displaying as intended, but rather as links to the template pages. I cannot see what is causing this. Your help would be appreciated. DuncanHill (talk) 10:45, 14 August 2023 (UTC)
- Oh! I just saw aa notice about a template size limit at the top. Never seen one of those before! DuncanHill (talk) 10:47, 14 August 2023 (UTC)
- The notice is made with {{Citations broken from PEIS limit}}. The page is in the hidden category Category:Pages where post-expand include size is exceeded. Preview shows a warning at top with a link to Help:Template#Template limits. The category and preview warning are automatic and don't rely on the template. PrimeHunter (talk) 10:55, 14 August 2023 (UTC)
- Its got over 1100 references. Many sentences have multiple, so perhaps some can be cut down. The flags could also be cut, but that is only a small amount all up. Graeme Bartlett (talk) 11:55, 14 August 2023 (UTC)
- The history section is far too long. I've commented on the talk page. i only went to it to try to fix a Category:Harv and Sfn no-target errors. DuncanHill (talk) 12:04, 14 August 2023 (UTC)
- Should probably do WP:SPINOUTs until each article is down to less than 500 references. –Novem Linguae (talk) 00:04, 15 August 2023 (UTC)
- There are already four large spinouts with 950 kB total:
- The problem is that a user also added a 328 kB history section [20] to the main article. It should be drastically cut. PrimeHunter (talk) 11:05, 15 August 2023 (UTC)
- Its got over 1100 references. Many sentences have multiple, so perhaps some can be cut down. The flags could also be cut, but that is only a small amount all up. Graeme Bartlett (talk) 11:55, 14 August 2023 (UTC)
- The notice is made with {{Citations broken from PEIS limit}}. The page is in the hidden category Category:Pages where post-expand include size is exceeded. Preview shows a warning at top with a link to Help:Template#Template limits. The category and preview warning are automatic and don't rely on the template. PrimeHunter (talk) 10:55, 14 August 2023 (UTC)
Who Wrote That?
I don't know where to lodge this information about Wikipedia:WhoWroteThat, since the page is a redirect to mediawiki; perhaps someone here is also active there or knows who to ask on en.wiki about this.
Until Bocaranda, I've found WhoWroteThat to be reliable. Lately, it is glitching at Nelson Bocaranda, and I'm wondering if the interlanguage links are somehow throwing it off (since I started noticing it about the time I added them, but I can't be certain that was it). Today, it is attributing a ton of text that I wrote to WMrapids; as examples, look at the sentence using "knee pain", and the sentence starting with "Contrary to Article 143". And then halfway through the "Responses" section, it stops working entirely. SandyGeorgia (Talk) 15:18, 10 August 2023 (UTC)
- @WhatamIdoing: who first told me about WWT, and may know where to put this; I don't do mediawiki. SandyGeorgia (Talk) 15:21, 10 August 2023 (UTC)
- Community Tech handles that, so the best person to reach out to is probably MusikAnimal (WMF). WhatamIdoing (talk) 16:16, 10 August 2023 (UTC)
- Hmm, I'm not sure what's going wrong here! I have filed phab:T344011 so we can investigate further. Thanks for the bug report, MusikAnimal (WMF) (talk) 18:26, 10 August 2023 (UTC)
- Thanks to both, SandyGeorgia (Talk) 23:26, 10 August 2023 (UTC)
- Hmm, I'm not sure what's going wrong here! I have filed phab:T344011 so we can investigate further. Thanks for the bug report, MusikAnimal (WMF) (talk) 18:26, 10 August 2023 (UTC)
- Community Tech handles that, so the best person to reach out to is probably MusikAnimal (WMF). WhatamIdoing (talk) 16:16, 10 August 2023 (UTC)
- In the future, for WhoWroteThat, bugs can be filed directly on Phabricator using this link. Just make sure to put "Who-Wrote-That" in the tags section. This will skip a couple of middlemen and pings. Creating a ticket with the correct tag emails the developers of that tool, such as MusikAnimal. Hope this helps. –Novem Linguae (talk) 12:30, 11 August 2023 (UTC)
- I appreciate that info Novem Linguae but I'm unlikely to file a report directly-- not familiar enough to know if something is truly a bug or just me. Instead, I am more likely to ping you directly :) :) SandyGeorgia (Talk) 15:48, 15 August 2023 (UTC)
Question about talk page blocks and protection
Hypothetical question I can't figure out: if an IP editor is blocked but has not had talk access revoked, and their user talk page is semiprotected, can they edit the page? It would be an unusual situation but I'm wondering what the actual answer is. Ivanvector (Talk/Edits) 16:26, 15 August 2023 (UTC)
- They can't. The benefit to this is it will allow a longer term block without removing their talk page access for the whole time. ScottishFinnishRadish (talk) 16:30, 15 August 2023 (UTC)
- Indeed. See User talk:47.22.21.38 for a non-hypothetical example. -- zzuuzz (talk) 16:38, 15 August 2023 (UTC)
- If a page is semiprotected, why would an IP ever be able to edit it, regardless of whether it's theirs or they're blocked? (all non-hypothetical examples.) —Cryptic 16:41, 15 August 2023 (UTC)
Edit error
For the past fortnight the text on the edit source page has frequently randomly shrunk so that only three lines are visible and can be edited. I have tried using a diferent browser and a different computer and neither solved the problem.
I have a screenshot but it is in Word and the instructions say it has to be png, so I would have to find out how to convert it if uploading it would be helpful. Thanks if anyone can help. Dudley Miles (talk) 18:44, 14 August 2023 (UTC)
- first thing i'd suggest is to try "safemode" (add safemode=1 to browser address line, preceded with ? Or if it already contains ?, then with & ). If the issue goes away in safemode, it means most probably some script or gadget you have installed or activated is the culprit. If it doesn't go away, and presuming windows operating system, use snipping tool (windows key, type snipping tool, and click on the app when you see it), which lets you save as png to capture the screenshot.
- Peace. קיפודנחש (aka kipod) (talk) 19:40, 14 August 2023 (UTC)
- A screenshot would be very helpful for visualizing the problem, since there was no steps to reproduce provided. To convert a screenshot from Word to PNG, try the following.
- 1) Open an image editing program such as MS Paint
- 2) Open your word Document
- 3) Right click on the image -> copy
- 4) Switch focus to Paint
- 5) Paste
- 6) Save as -> something.png
- 7) Upload to Wikimedia Commons or your preferred third party image host
- 8) Link to it here –Novem Linguae (talk) 00:08, 15 August 2023 (UTC)
- @Dudley Miles: Or see the box displayed when editing this page, which says
- Would a screenshot help you to describe the problem? If so, please follow the directions at Wikipedia:Screenshots of Wikipedia.
- which is a more direct method, not involving Word. --Redrose64 🌹 (talk) 07:39, 15 August 2023 (UTC)
- Thanks for the advice. I have uploaded c:File:Edit problem.png. Dudley Miles (talk) 10:53, 15 August 2023 (UTC)
- So the edit box has its normal dimensions, but only three lines inside it can be used (as shown by the scrollbar on the right). I've not come across that before. --Redrose64 🌹 (talk) 13:18, 15 August 2023 (UTC)
- Something is definitely wrong because you have syntax highlighting enabled but it is not actually highlighting anything. As others have pointed out, you'll want to try safe mode first, i.e. this link. If things look okay there, that means it is very likely a script or gadget that you're using that is causing the problem. Try removing things one by one at Special:MyPage/common.js and/or Special:MyPage/vector.js. — MusikAnimal talk 18:06, 15 August 2023 (UTC)
- I have followed MusikAnimal's instructions and the problem code appears to be "importScript('User:Lingzhi2/reviewsourcecheck-sb.js'); // Ling's source review script". It is curious that I installed the code in September 2021 and I have not had a problem until now, but I deleted it and trust this will solve the problem. Thanks for all the help. Dudley Miles (talk) 20:04, 15 August 2023 (UTC)
- Thanks for the advice. I have uploaded c:File:Edit problem.png. Dudley Miles (talk) 10:53, 15 August 2023 (UTC)
How to add an academic thesis in Wikidata
I stumbled upon Peter Osborne (philosopher), whose infobox provides his thesis title and URL. I went to his Wikidata page and attempted to add the academic thesis there. Compared to Wikipedia, this page has a strange interface. I found "add statement" at the bottom of the page. I clicked on that, then entered "academic thesis" in the first field, then I entered "The carnival of philosophy : philosophy, politics and science in Hegel and Marx" (with and without a trailing period) and "publish" is grayed out. Then I added 1 Reference with reference URL "https://ethos.bl.uk/OrderDetails.do?uin=uk.bl.ethos.253269". "publish" is still grayed out. How do I get "publish" to be clickable? Do I have to first create the thesis in Wikidata as a separate entry before I can add it to this entry? —Anomalocaris (talk) 17:58, 15 August 2023 (UTC)
- @Anomalocaris for a person in wikidata you can add that property academic thesis, but you have to link it to a thesis. For example here is one: wikidata:Q15212501, you can't just type in a name. — xaosflux Talk 18:09, 15 August 2023 (UTC)
- So "yes" to your second question; the definition of that property is here: wikidata:Property:P1026. — xaosflux Talk 18:10, 15 August 2023 (UTC)
- Xaosflux: In Wikidaata, I created a new item, The carnival of philosophy : philosophy, politics and science in Hegel and Marx. I tried to add properties, but I kept getting ! in a circle, and the root of the problem is that Wikidata thinks this item is in the wrong class, but there's no obvious way to change an item's class. Anomalocaris (talk) 18:37, 15 August 2023 (UTC)
- @Anomalocaris Works for me, go to Q7176244, add statement academic thesis, and put Q121477887 in there, publish. — xaosflux Talk 19:06, 15 August 2023 (UTC)
- For more help on this, you may want to try wikidata:Wikidata:Report a technical problem. — xaosflux Talk 19:06, 15 August 2023 (UTC)
- Xaosflux: Following those directions, after "put Q121477887 in there", there's ! in a circle next to the thesis name, and clicking on it shows "Values of academic thesis statements should be instances of one of the following classes (or of one of their subclasses), but The carnival of philosophy : philosophy, politics and science in Hegel and Marx currently isn't:" followed by a bulleted list that is variations on "thesis". Which is exactly what I said in my previous comment, the thesis entry is miscategorized as something other than a thesis and there's apparent way to to reclass it. —Anomalocaris (talk) 20:06, 15 August 2023 (UTC)
- @Anomalocaris it looks like someone on wikidata fixed that. — xaosflux Talk 22:29, 15 August 2023 (UTC)
- @Anomalocaris Works for me, go to Q7176244, add statement academic thesis, and put Q121477887 in there, publish. — xaosflux Talk 19:06, 15 August 2023 (UTC)
Graphs are temporarily unavailable due to technical issues
Any progress on this? Moxy- 02:08, 16 August 2023 (UTC)
f:unctions broke three redirects
This is a followup to my recently reported (July 30) new fat: project conflicting with a couple English wiki article titles (one was a redirect and the other an article). In that discussion Pppery pointed to another new project which was going to cause trouble: "There's also f:, which is about to become an interwiki prefix for Wikifunctions, and conflicts with three redirects.
" See phab:T325908.
Unfortunately JD Forrester dismissed these with his "won't fix" comment "Eurgh, yeah, I don't think namespaceDupes will fix those. There are only three, low-value redirects on enwiki, but across the cluster there are likely a few that we'll be sad to lose.
" and Denny functions closed the task as Resolved.
So once again I find that if you really want to get something done, it's better to ask at the village pump rather than Phabricator (where you're most often dismissed or ignored).
@Taavi: can you work the same magic with f: you did with fat: using the page move API and page IDs queried from the replicas for "F:NV", "F: NV", and "F:F:F"? Thanks, wbm1058 (talk) 14:55, 15 August 2023 (UTC)
- Contrary to your claim, I did not dismiss this concern, I complained that we didn't have a way of fixing it automatically, and expressed sadness that we can't fix it automatically, unlike when namespaces are added (because interwikis work in a different way).
- You (or someone) will need to make a series of action=edit API calls to manually fix each of them; unlike pages hidden by namespace changes, they're still available via their page ID in the API.
- Sorry for the confusion! Jdforrester (WMF) (talk) 03:16, 16 August 2023 (UTC)
- Oh, I understood you perfectly. Your team of paid employees had no intention of (manually) fixing the problem they created. You expect volunteers to fix it for you. The first step is to query the page IDs from the replicas. – wbm1058 (talk) 16:20, 16 August 2023 (UTC)
page_id | page_title |
---|---|
17983100 | F:F:F |
65565106 | F:NV |
32454679 | F:_NV |
- Then the second step is to use the Special:ApiSandbox to move the pages, filling in the necessary fields in the forms.
- Done – pages moved to F – F – F, F – NV and F - NV.
- (and no, I did not need to
make a series of action=edit API calls
!) – wbm1058 (talk) 17:08, 16 August 2023 (UTC)
Could someone report a bug for me?
Could someone report a bug for me? As an IP I don't have access to phabricator.
The issue is that the __NONEWSECTIONLINK__
does not properly supress the "new section" tab on certain "action" pages, and that it is still possible to add new sections to the page using discussion tools.
Steps to reproduce:
- Go to a page containing the
__NONEWSECTIONLINK__
magic word, e.g. Talk:Hillary Clinton/April 2015 move request - Note that the "Add Topic" tab is correctly hidden in the top ribbon menu.
- Click on one of the actions in the top ribbon, e.g. "edit", "history", "related changes", "page information"...
- Note that the "Add Topic" button is incorrectly displayed in the top ribbon menu.
- Clicking on the button starts the discussion tools new section dialogue
Thank you, 192.76.8.66 (talk) 16:27, 16 August 2023 (UTC)
"AfDs closing today" bug?
Hi everyone! The link Wikipedia:List_of_AfDs_closing_today goes to the log page for AfDs that are a day older than they should be, i.e. from 8 days ago (as opposed to 7). For example, today (11/08), it should open Wikipedia:Articles for deletion/Log/2023 August 4, but it instead opens Wikipedia:Articles for deletion/Log/2023 August 3. Actualcpscm scrutinize, talk 14:40, 11 August 2023 (UTC)
- It's an easy fix, but I wanted to make sure it isn't intentional first. Actualcpscm scrutinize, talk 14:45, 11 August 2023 (UTC)
- Strange one that. It's easy to make it display the list from 7 days ago instead of 8, but it looks like it's always been like that. Is it actually being used anywhere? Black Kite (talk) 15:05, 11 August 2023 (UTC)
- Lourdes' AfDs Closing script uses it, which seems to be the primary use case. If there are no objections here, I'll just fix it and see if anyone complains. Actualcpscm scrutinize, talk 15:13, 11 August 2023 (UTC)
- Pinging Lourdes, since the page was apparently created for this script. Actualcpscm scrutinize, talk 15:16, 11 August 2023 (UTC)
- Please go ahead. Thank you for the ping. Lourdes 05:24, 12 August 2023 (UTC)
- I think the reason I made it 8 days was because the AfD should be deleted or kept after seven days of discussion (it would be the eighth day when the AfDs would be closed). Just double check and make the change if you think that is prudent. Thanks, Lourdes 05:29, 12 August 2023 (UTC)
- Changed it, I think it works better now; it shows the AfDs which are either closeable or will become closeable by the end of the day. Actualcpscm scrutinize, talk 09:40, 12 August 2023 (UTC)
- IIRC it was set at today minus 8 days (instead of today minus 7 days) to ensure that all AFDs listed were those actually eligible for closure. We did have a big problem with people closing non-snowy XfDs early, assuming that the 7 days was counted from midnight. I see that this has happebned today - for example Wikipedia:Articles for deletion/Alternative versions of Robin was raised at 02:56, 5 August 2023 (UTC) and was closed at 02:34, 12 August 2023 (UTC) - that is, 6 days 23 hours 38 minutes later. Whilst 22 minutes can be seen as a technical quibble, it did not run the full 7 days. --Redrose64 🌹 (talk) 16:50, 12 August 2023 (UTC)
- That makes sense, but I think -7 days is more useful; the vast majority of AfDs at -8 will already be closed. Maybe a reminder of the 7 day duration on the AfDs closing today page would be warranted? Actualcpscm scrutinize, talk 17:08, 12 August 2023 (UTC)
- I remember when AFDs were only open for 5 days, and we had disputes over people closing them early back then, too.
- Expecting people to pay attention to tiny little details, like the exact number of hours/minutes the AFD has been open, is unrealistic. If you want them to not close discussions early, you have to make it difficult for them to make the mistake.
- I suggest that you consider whether rushing to close an AFD at the earliest possible moment is something we should be doing. We know that it's actively harmful to close a discussion at half a day early, because that causes disputes between editors. The dispute is unpleasant, and the discouragement to AFD closers is damaging. Is it actually harmful to close a discussion half a day after the first possible minute? Who gets hurt in such a situation, and how? WhatamIdoing (talk) 16:40, 14 August 2023 (UTC)
- The primary tool for closing discussions, used by the vast majority of closers, is WP:XFDC. This does in fact prompt closers if the discussion hasn‘t been open for the full seven days, so it‘s very hard for me to imagine how it could happen accidentally.
- I don‘t think we should be „rushing to close“ as soon as it‘s been exactly seven days. But the script is more useful if it links to a list of AfDs that are actually „closing today“, i.e. where the seven day period has elapsed or will elapse within a few hours. Actualcpscm scrutinize, talk 16:50, 14 August 2023 (UTC)
- What is more useful about it?
- I can understand someone being irritated that the name says "closing today", if they thought that it meant "these AFDs are close later today, so you still have a chance to participate" instead of "these are the AFDs that admins are currently/already in the process of closing today", but that sounds like a reason to change the page title, not to change the contents of the page. WhatamIdoing (talk) 17:16, 14 August 2023 (UTC)
- But both apply to the current version. The primary use of this page is, as far as I‘m aware, for closers to see discussions that have recently reached a duration of 7 days. If you go to the deletion log for 8 days ago, most of the time, the vast majority of discussions will already be closed or relisted. I really don‘t see the problem with the 7 day version; if I‘m missing something, please do point it out. Actualcpscm scrutinize, talk 18:47, 14 August 2023 (UTC)
- It sounds like the 7-day version isn't precisely 7 days 0:00 hours through 7 days 23:59 hours. It sounds like the 7-day version includes discussions that are (at the time they first appear on that page) less than seven days old.
- "The vast majority of discussions get closed or relisted as soon as they are eligible" is not what I would call a problem. Are you trying to optimize this for the sake of users who want to close more AFDs personally and are feeling disappointed that there are (apparently) plenty of other people already doing this work? WhatamIdoing (talk) 03:18, 16 August 2023 (UTC)
- Neither the previous version nor this one are „precisely 7 days 0:00 hours through 7 days 23:59 hours“, the page just transcludes the deletion log for a specific calendar day. I’m not trying to optimize this for users who are disappointed they can’t close more AfDs, I’m trying to optimize it for users who close AfDs in general, because they’re the ones who use this. Actualcpscm scrutinize, talk 07:15, 16 August 2023 (UTC)
- But both apply to the current version. The primary use of this page is, as far as I‘m aware, for closers to see discussions that have recently reached a duration of 7 days. If you go to the deletion log for 8 days ago, most of the time, the vast majority of discussions will already be closed or relisted. I really don‘t see the problem with the 7 day version; if I‘m missing something, please do point it out. Actualcpscm scrutinize, talk 18:47, 14 August 2023 (UTC)
- That makes sense, but I think -7 days is more useful; the vast majority of AfDs at -8 will already be closed. Maybe a reminder of the 7 day duration on the AfDs closing today page would be warranted? Actualcpscm scrutinize, talk 17:08, 12 August 2023 (UTC)
- IIRC it was set at today minus 8 days (instead of today minus 7 days) to ensure that all AFDs listed were those actually eligible for closure. We did have a big problem with people closing non-snowy XfDs early, assuming that the 7 days was counted from midnight. I see that this has happebned today - for example Wikipedia:Articles for deletion/Alternative versions of Robin was raised at 02:56, 5 August 2023 (UTC) and was closed at 02:34, 12 August 2023 (UTC) - that is, 6 days 23 hours 38 minutes later. Whilst 22 minutes can be seen as a technical quibble, it did not run the full 7 days. --Redrose64 🌹 (talk) 16:50, 12 August 2023 (UTC)
- Changed it, I think it works better now; it shows the AfDs which are either closeable or will become closeable by the end of the day. Actualcpscm scrutinize, talk 09:40, 12 August 2023 (UTC)
- I think the reason I made it 8 days was because the AfD should be deleted or kept after seven days of discussion (it would be the eighth day when the AfDs would be closed). Just double check and make the change if you think that is prudent. Thanks, Lourdes 05:29, 12 August 2023 (UTC)
- Please go ahead. Thank you for the ping. Lourdes 05:24, 12 August 2023 (UTC)
- Pinging Lourdes, since the page was apparently created for this script. Actualcpscm scrutinize, talk 15:16, 11 August 2023 (UTC)
- Lourdes' AfDs Closing script uses it, which seems to be the primary use case. If there are no objections here, I'll just fix it and see if anyone complains. Actualcpscm scrutinize, talk 15:13, 11 August 2023 (UTC)
- Strange one that. It's easy to make it display the list from 7 days ago instead of 8, but it looks like it's always been like that. Is it actually being used anywhere? Black Kite (talk) 15:05, 11 August 2023 (UTC)
- Note: Now the page is broken (see Wikipedia:List_of_AfDs_closing_today) due to WP:PEIS being exceeded. Maybe it could redirect to the appropriate log entry instead of transcluding it? Actualcpscm scrutinize, talk 18:27, 17 August 2023 (UTC)
- Redirects to dynamically-calculated pages don't work, so that would require a bot to edit it every day, which is more effort than value. Perhaps tomorrow there will be fewer AfDs so the page will work again. * Pppery * it has begun... 18:29, 17 August 2023 (UTC)
Redirects to dynamically-calculated pages don't work
: Well, that's a disappointing limitation. I presumed that if it can be transcluded, it can be targeted with a redirect. Thanks for pointing this out. Actualcpscm scrutinize, talk 18:37, 17 August 2023 (UTC)
- Redirects to dynamically-calculated pages don't work, so that would require a bot to edit it every day, which is more effort than value. Perhaps tomorrow there will be fewer AfDs so the page will work again. * Pppery * it has begun... 18:29, 17 August 2023 (UTC)
Template problem
What could be the reason for the sudden display of "|work= ignored" in the "{{cite book}}" parameters? –MinisterOfReligion (Talk) 01:15, 17 August 2023 (UTC)
- The instructions at Category:CS1 errors: unsupported parameter should help (follow the "help" link). See Help Talk:CS1 for discussion about Citation Style 1 templates. In this specific case, there is a good discussion at Trappist the monk's talk page, semi-unfortunately. – Jonesey95 (talk) 03:35, 17 August 2023 (UTC)
- |url-status=unfit causes:
- Script warning: One or more {{cite web}} templates have maintenance messages; messages may be hidden (help).
- <ref>{{cite web|url=http://www.metrolyrics.com/1984-grammy-awards.html|archive-url=https://web.archive.org/web/20080613164619/http://www.metrolyrics.com/1984-grammy-awards.html|archive-date=2008-06-13|url-status=unfit |title=Grammy Awards |publisher=Metrolyrics |date=February 28, 1984 |access-date=April 29, 2009}}</ref>
- .... 0mtwb9gd5wx (talk) 07:05, 17 August 2023 (UTC)
- The Metrolyrics link isn't unfit, it's dead. Unfit is used when the original source has been taken over by a inappropriate site. There's very few uses where it's appropriate, the common one I see that is appropriate is atimes.com that used to be a news sources but now sells steriods. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 11:16, 17 August 2023 (UTC)
- |url-status=unfit causes:
- @Owais Al Qarni Why does your signature have to be bigger than anyone else's ? —TheDJ (talk • contribs) 19:44, 17 August 2023 (UTC)
Hello all.
For approximately 16 years (ever since 2007) Hebrew Wikipedia uses a Gadget calls "my links" (look here). It is quite a simple method which let every user to save their own custom side bar links (on the left side of the screen) and makes life much easier.
I ask you, if you approve, to translate this super-easy "pseudo-English" code into WP, as so it would be available for us.
I am here for any further questions.
Thanks in advance, Niles. Anderssøn79 🦔 (talk) 🦔 💛💙 11:55, 18 August 2023 (UTC)
- here you may read the code, fully-translated, ready to move if it fits you. Anderssøn79 🦔 (talk) 🦔 💛💙 12:02, 18 August 2023 (UTC)
- @Anderssøn79 a good start would be to translate w:he:שיחת מדיה ויקי:Gadget-CustomSideBarLinks, so that our users could read the directions. — xaosflux Talk 12:29, 18 August 2023 (UTC)
w:he:שיחת מדיה ויקי:Gadget-CustomSideBarLinks (translated)
|
---|
The Gadget adds user custom links to a new section above the Community Section (on the left side of the screen). how to use itAfter one approves “adding user custom links” in the Gadget section inside the Settings, one needs to create “User:<user name> /My links” (i.e. User:Anderssøn79/My links). In order to add a link, one needs to add a new line starting with a “dot/star” (*) and then write down the ref (just as regular [[Page|Alias]] or [URL Alias]). i.e |
- Thank you, merged to Wikipedia:CustomSideBarLinks. — xaosflux Talk 14:01, 18 August 2023 (UTC)
- @xaosflux I think it should be moved to the Talk section, and does it mean I may copy the code to the main page (and make it work)? Anderssøn79 🦔 (talk) 🦔 💛💙 15:34, 18 August 2023 (UTC)
- @Anderssøn79 we generally document our gadgets in the project namespace here. The mediawiki talk:x.js pages are primarily redirected to the project talk, or only really used for edit requests. — xaosflux Talk 15:57, 18 August 2023 (UTC)
- Okay, thanks. So where do we put the actual code and make it available for users? Anderssøn79 🦔 (talk) 🦔 💛💙 16:11, 18 August 2023 (UTC)
- @Anderssøn79 we generally document our gadgets in the project namespace here. The mediawiki talk:x.js pages are primarily redirected to the project talk, or only really used for edit requests. — xaosflux Talk 15:57, 18 August 2023 (UTC)
- @xaosflux I think it should be moved to the Talk section, and does it mean I may copy the code to the main page (and make it work)? Anderssøn79 🦔 (talk) 🦔 💛💙 15:34, 18 August 2023 (UTC)
CSS styles for discussion threads
After reading a comment about French Wikipedia's style rules for discussion threads, I created my own user stylesheet to experiment with styling discussion threads. It has CSS style rules to define alternating background colours for each nested reply (up to 18 levels), and to add a vertical line to the left of each list (that is, corresponding to one level of nesting).
If you use a recent version of Safari or a Chromium-based browser such as Chrome or Edge, and are interested in trying it out, see User:Isaacl/style/discussion-threads. It's subject to change as I try different things. It works for any page where the reply tool or topic subscription is enabled. (The stylesheet checks for an HTML attribute that the discussion tool features add to mark comments.) A caveat: the styling is awkward with comments made using bulleted list items. All the same, so far I find it helpful to track threads. isaacl (talk) 01:08, 15 August 2023 (UTC)
- For a mockup of the resulting appearance, see User:Isaacl/style/discussion-threads § Example. isaacl (talk) 17:29, 18 August 2023 (UTC)
Fixing date formats?
Is there some tool which can find all instances of dates in an article and convert them all to a uniform format? For example 2023-08-18 > August 18, 2023? RoySmith (talk) 18:17, 18 August 2023 (UTC)
- User:Ohconfucius/script/MOSNUM dates. Izno (talk) 19:34, 18 August 2023 (UTC)
- An excellent tool, but beware that it likes to insert {{Use mdy dates}} above {{short description}} so they need to be swapped manually. Certes (talk) 19:51, 18 August 2023 (UTC)
- I'm confused by this note in the docs: "Functions converting dates within citation templates has been withdrawn now that WM software engine renders date formats automatically". Fixing the dates in citation templates is exactly what I need this for. So what am I doing wrong that the "WM software engine" isn't rendering things correctly for me? This came up in Talk:Bronx County Bird Club/GA1, and I just went and fixed all the dates manually. Was that not the right thing to do? RoySmith (talk) 19:56, 18 August 2023 (UTC)
WM software engine
no such thing. The citation templates will format publication, archive, and access dates according to the presence of{{use dmy dates}}
or{{use mdy dates}}
neither of which were in Bronx County Bird Club when I looked. That functionality in the cs1|2 templates is there so that no one has to fuss with date style in the template wiki text. See the template documentation for the{{use xxx dates}}
for more detail.- —Trappist the monk (talk) 20:05, 18 August 2023 (UTC)
- When I've used dates.js, it's formatted all dates, including those within citation templates. I don't recall what combination of existing "use...dates" tags and CS1/2 formats those articles used. I even had to undo the formatting on a couple of dates within URLs to avoid breaking them. Certes (talk) 20:09, 18 August 2023 (UTC)
- Oh, my, so I've really made a hash of this then? What I really wanted to do was leave the dates in yyyy-mm-dd format (as the citation tool generated them) in the citation and add {{use dmy dates}} to the top to get them to render the way I wanted them? RoySmith (talk) 20:16, 18 August 2023 (UTC)
- From memory there is a function that will leave dates in citations alone. Izno (talk) 20:29, 18 August 2023 (UTC)
- RoySmith, that is usually the easiest way to fix the rendering a bunch of dates within citation templates. It works only when editing the entire page. Definitely proofread the output for outliers and errors. – Jonesey95 (talk) 20:38, 18 August 2023 (UTC)
- From memory there is a function that will leave dates in citations alone. Izno (talk) 20:29, 18 August 2023 (UTC)
- Oh, my, so I've really made a hash of this then? What I really wanted to do was leave the dates in yyyy-mm-dd format (as the citation tool generated them) in the citation and add {{use dmy dates}} to the top to get them to render the way I wanted them? RoySmith (talk) 20:16, 18 August 2023 (UTC)
- I'm confused by this note in the docs: "Functions converting dates within citation templates has been withdrawn now that WM software engine renders date formats automatically". Fixing the dates in citation templates is exactly what I need this for. So what am I doing wrong that the "WM software engine" isn't rendering things correctly for me? This came up in Talk:Bronx County Bird Club/GA1, and I just went and fixed all the dates manually. Was that not the right thing to do? RoySmith (talk) 19:56, 18 August 2023 (UTC)
- An excellent tool, but beware that it likes to insert {{Use mdy dates}} above {{short description}} so they need to be swapped manually. Certes (talk) 19:51, 18 August 2023 (UTC)
Option to exclude drafts and templates from tracking categories?
I've been fixing citations in articles listed in Category:CS1 maint: numeric names: authors list. It would be nice to be able to exclude drafts and templates from that list. I won't go fixing citation issues in drafts, and it seems that no one else is doing that, either, as for many initial letters there are only drafts left. Templates have numerical parameters on purpose, so they don't belong in that list, either. It would be both more satisfying and easier to find articles in need of fixing if the drafts and templates could be excluded, either from the category entirely or from my view of its article list. Is that possible? Joriki (talk) 12:44, 16 August 2023 (UTC)
- Help Talk:CS1 is the right venue for this discussion. You should be able to use petscan to limit your search of the category to article space. – Jonesey95 (talk) 13:50, 16 August 2023 (UTC)
- You can also use User:PrimeHunter/Articles in category.js. On Category:CS1 maint: numeric names: authors list it produces Search articles and Not articles. PrimeHunter (talk) 15:12, 16 August 2023 (UTC)
- I always wonder the same about Category:Pages with reference errors that has Wikipedia space and draft articles all mixed in, and Category:Pages with broken reference names (which is a subsection of the other category) that has all drafts etc separated out at the end. There's a lot of inconsistencies between different tracking categories. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 21:11, 16 August 2023 (UTC)
- Category:Pages with reference errors and other categories at Special:TrackingCategories are added automatically by MediaWiki with no option to sort by namespace. Most of our tracking categories are template-added and this makes it possible to sort by namespace, or omit pages in some namespaces, although we don't always do it. PrimeHunter (talk) 23:18, 16 August 2023 (UTC)
- Back in 2018 a change was made to the first category to exclude talk page, see Category talk:Pages with reference errors#Exclusion of user pages, but looking at that I did get the impression it involved changes to MediaWiki. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 11:11, 17 August 2023 (UTC)
- Oh, I thought MediaWiki messages with category names like MediaWiki:Cite-tracking-category-cite-error had to be pure text but it allows wikitext. It's undocumented whether a message allows wikitext. That makes it a change local administrators can easily make. We could make subcategories for drafts, templates, project pages, a miscellaneous category, or whatever we want. I doubt sortkeys would be possible but I don't know how MediaWiki processes the message. It's possible that
name|sortkey
orname{{!}}sortkey
would work. I see you have a suggestion at Category talk:Pages with reference errors#Draft, Wikipedia, Template, and Help. If you really want sortkeys to group other namespaces at the end like [21] instead of subcategories then I could make a test at testwiki: without interrupting Wikipedia. PrimeHunter (talk) 13:04, 17 August 2023 (UTC)- I think I followed that, yeah go ahead and let's see how it works on testwiki. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 23:34, 18 August 2023 (UTC)
- Oh, I thought MediaWiki messages with category names like MediaWiki:Cite-tracking-category-cite-error had to be pure text but it allows wikitext. It's undocumented whether a message allows wikitext. That makes it a change local administrators can easily make. We could make subcategories for drafts, templates, project pages, a miscellaneous category, or whatever we want. I doubt sortkeys would be possible but I don't know how MediaWiki processes the message. It's possible that
- Back in 2018 a change was made to the first category to exclude talk page, see Category talk:Pages with reference errors#Exclusion of user pages, but looking at that I did get the impression it involved changes to MediaWiki. -- LCU ActivelyDisinterested ∆transmissions∆ °co-ords° 11:11, 17 August 2023 (UTC)
- Category:Pages with reference errors and other categories at Special:TrackingCategories are added automatically by MediaWiki with no option to sort by namespace. Most of our tracking categories are template-added and this makes it possible to sort by namespace, or omit pages in some namespaces, although we don't always do it. PrimeHunter (talk) 23:18, 16 August 2023 (UTC)
How to avoid collapse template getting indented on t/p
During discussion pages usually I reply by clicking on reply link since that automatically selects requisite indenting. Problem comes when I use Collapse template {{collapse top|Reply with details 1}} .. {{collapse bottom}} in my own comment to keep discussion concise and easy navigable for other users. Indenting is automatically applied before collapse template too and there after subsequent text below {{collapse bottom}} also gets hidden / invisible until remove that extra indenting manually with another edit.
Many times my internet speed slows down or Wikipedia gives error of being busy for maintenance and it takes some time before I succeed in removing such unrequited indenting. (And I am experiencing internet speed problem just now too) And I am always worried some later users may misunderstand me.
Is there any way to update that collapse template so as later text will not become invisible even if indenting is there or any way around for me to avoid such difficult situation?
Bookku (talk) 06:53, 18 August 2023 (UTC)
- There is no way to avoid the issues described today. Izno (talk) 19:38, 18 August 2023 (UTC)
- Hamm okay shall live with that. Thanks for taking note and reply. Bookku (talk) 05:45, 19 August 2023 (UTC)
Where can I write the original pronunciation of a surname?
I noticed some pages (Lionel Messi, Javier Mascherano) do not sport the original Italian pronunciation of the persons' surnames anymore. Is there a guideline about where to write the original surname pronunciation? On Wikidata perhaps? In Elias Lönnrot I wrote it in a footnote.-- Carnby (talk) 19:33, 18 August 2023 (UTC)
- @Carnby: does anything here in Wikipedia:Manual of Style/Pronunciation help you? As far as wikidata goes, you can store multiple P898 and P443 properites for an item. — xaosflux Talk 20:29, 18 August 2023 (UTC)
- @Xaosflux Honestly, I can't find anything about non-English names originating in a different country, such as Messi, Mascherano, Di María, Bergoglio, Milei (Argentine people of Italian descent), Antetokounmpo (Greek person of Yoruba descent), Lönnrot (Finnish person of Swedish descent)...-- Carnby (talk) 21:07, 18 August 2023 (UTC)
- That's not a technical question. I tend to find it unnecessary unless the subject has strong ties to the "original" language (they're fluent in it, they're a first-gen immigrant, etc.). Nardog (talk) 01:43, 19 August 2023 (UTC)
- I decided to store the original pronunciation(s) on Wikidata.-- Carnby (talk) 08:59, 19 August 2023 (UTC)
Recurrent memory leak
Something keeps leaking memory. It might be one of the scripts I'm using, but I'm not sure. Wikipedia tabs (to the exclusion of all others) inevitably glitch out when left sitting for a while and start using upwards of 1.5G of RAM. How can I find out what exactly is causing this? I'm on Vivaldi 6.1.3035.257, but this has been going on for months. 〜 Festucalex • talk 09:52, 18 August 2023 (UTC)
- Does phab:T205127 describe your problem? Unfortunately it doesn't seem like there's been any success figuring out what's causing that. the wub "?!" 10:28, 18 August 2023 (UTC)
- @The wub: Oh yes, that looks like it. Shame it's been open since 2018 (!) 〜 Festucalex • talk 11:19, 18 August 2023 (UTC)
- Unless there's an endless loop in a user script or something, a script itself shouldn't cause a memory leak, in my opinion. It's my understanding that memory leaks are usually a problem with the browser's code. –Novem Linguae (talk) 01:03, 19 August 2023 (UTC)
- Although they're not the same as a traditional memory leak, store gobblers can still occur with Javascript. (I do not know, though, if this is the case in this situation.) For example, a script could continually register new event listeners, thus consuming memory and hampering performance. isaacl (talk) 01:45, 19 August 2023 (UTC)
- Not a webdev, but my understanding is that this became untenable after browser makers and web devs came to see the web as a "platform" which be as powerful as, and eventually supplant, a full desktop OS's native runtime environment (e.g. wasm, and recently WebGPU). When Apple changed Safari to auto-crash tabs that used too much memory, people complained that it broke mission-critical sites like Zoom, and even mundane stuff like Disney+, so Apple relented. DFlhb (talk) 10:08, 19 August 2023 (UTC)
- Not sure what you are referring to by "this"? Memory leaks for long-running programs have always been seen as a problem to be solved (although the rate of increase will affect how the work gets prioritized). Store gobblers from a Javascript file served by a website can't be fixed by the browser vendor, so the browser can only balance protecting other tabs from being affected by interfering with the resources allocated to the problem-causing tab. isaacl (talk) 13:23, 19 August 2023 (UTC)
- "This" = website memory leaks being automatically prevented by browsers. Browsers can't do that without preventing high resource use for legitimate, non-bug purposes. DFlhb (talk) 14:10, 19 August 2023 (UTC)
- Thanks for the clarification. (I don't think Novem Linguae was referring to this scenario.) isaacl (talk) 14:15, 19 August 2023 (UTC)
- "This" = website memory leaks being automatically prevented by browsers. Browsers can't do that without preventing high resource use for legitimate, non-bug purposes. DFlhb (talk) 14:10, 19 August 2023 (UTC)
- Not sure what you are referring to by "this"? Memory leaks for long-running programs have always been seen as a problem to be solved (although the rate of increase will affect how the work gets prioritized). Store gobblers from a Javascript file served by a website can't be fixed by the browser vendor, so the browser can only balance protecting other tabs from being affected by interfering with the resources allocated to the problem-causing tab. isaacl (talk) 13:23, 19 August 2023 (UTC)
Row moving over one cell. Table bug using Flagg template (and others)
- Note: See screenshot farther down. See: T344562.
I am using Firefox on Windows 10 Pro PC. Latest standard versions on both. This does not happen to me on the Edge browser. Whether I am logged in or not. I logged out of Wikipedia and I still have the problem with Firefox. So it is not my JS and CSS files. I also disabled all my Firefox addons and then closed all my Firefox windows. I launched Firefox and I still have the problem with Firefox. No addons and not logged in.
The problem tables all use templates within the table. But it is not a problem with tables using {{flaglist}}.
See List of countries by total health expenditure per capita. Both tables there use {{flagg}}.
Open visual editor. Click to the right of the either of the 2 tables. Note the bizarre result of the row moving over one cell. Click to the right of a different row and note that row moving over one cell. If you click above or below the table the problem goes away.
I opened visual editor for Help:Table and tried clicking to the right of many tables. Closer and farther away. I have noted the problem there with only one table so far. Have to go there to use visual editor on this table:
Template usage | {{Yes}}
|
{{No}}
|
{{Dunno}}
|
{{N/A}}
|
{{N/A|N/A}}
|
{{n/a|n/a}}
|
---|---|---|---|---|---|---|
Using template | Yes | No | ? | — | N/A | n/a |
Without template | Yes | No | ? | — | N/A | n/a |
I see the problem only with the middle row there. Click to the right of it, and click closer until the row moves over one cell. It doesn't happen all the time.
I removed the templates from a few rows of one of the tables in the list article. This solved the problem. And the small table above only has the bug in the middle row using templates. --Timeshifter (talk) 15:00, 14 August 2023 (UTC)
- If you don't get a good reply here, try posting this as a concise bug report on Phab, tagging it as Visual Editor, and maybe with some screenshots to help visualize the problem. Link to make a Phab bug report. –Novem Linguae (talk) 00:01, 15 August 2023 (UTC)
Keyboard Shortcuts
Is there a way to change one's personal keyboard shortcuts? -Proxima Centari (talk) 00:19, 20 August 2023 (UTC)
- @Proxima Centari: This page is as close as I can find. LittlePuppers (talk) 00:41, 20 August 2023 (UTC)
- Thanks! -Proxima Centari (talk) 00:43, 20 August 2023 (UTC)
#:~:text= in Links from Google search results
- #:~:text= on en.wikipedia.org
- the text that follows is not part of the URL and identifies the User
- this occurs in google books citations also, but different NAME=VALUE pairs
- .... 0mtwb9gd5wx (talk) 00:13, 19 August 2023 (UTC)
- automated cleanup ? .... 0mtwb9gd5wx (talk) 00:15, 19 August 2023 (UTC)
- That search query has some false positives. The first entry I found with #:~: is here, but that one seems fine. It doesn't seem to identify the user. Got any other examples? Are you requesting help to clean these up? –Novem Linguae (talk) 01:15, 19 August 2023 (UTC)
- The purpose of this is not to identify users (although I suppose that may be possible?) - rather, it's to link to a specific piece of text on a page. (That said, it is one of those things that Google kind of unilaterally decided to add to Chrome, with varying lack of support across other browsers.) LittlePuppers (talk) 01:30, 19 August 2023 (UTC)
- Template:Citation Style documentation#url says to omit tracking parameters but I wouldn't call this a tracking parameter, and it also says "the link may point to the specific page(s) referenced". I think that mainly refers to PDF files where it's possible to give a page number in the link. Do we have a guideline saying to omit Google's
text=
in cases where supported browsers will jump directly to the part of the page being used in a reference? I guess nearly all cases wheretext=
was left is just users who clicked a Google link and copied the full url without knowing the meaning, but a guideline could lead to more cleanup where it's removed. PrimeHunter (talk) 08:59, 19 August 2023 (UTC) - Noticeably this is not supported by Firefox but is supported by Safari. Aaron Liu (talk) 16:05, 19 August 2023 (UTC)
- Template:Citation Style documentation#url says to omit tracking parameters but I wouldn't call this a tracking parameter, and it also says "the link may point to the specific page(s) referenced". I think that mainly refers to PDF files where it's possible to give a page number in the link. Do we have a guideline saying to omit Google's
- @Novem Linguae, I suspect you meant to do a search like this, the normal search doesn't match special characters. — Qwerfjkltalk 14:18, 20 August 2023 (UTC)
- That new query timed out on me, but thank you for showing me the correct way to do it. –Novem Linguae (talk) 15:05, 20 August 2023 (UTC)
- (edit conflict)
- That search doesn't work for me but if I escape the octothorpe it does. This search (
insource:/\#:~:text=/)
returns about 23k results. - —Trappist the monk (talk) 15:06, 20 August 2023 (UTC)
- The octothorpe isn't a special regex character so I'm not sure how that works, but then the search regex works strangely. — Qwerfjkltalk 21:00, 20 August 2023 (UTC)
- Search doesn't use the same flavor of regular expressions as the posix/pcre-like ones most people are used to, and # is indeed a metacharacter here. Documentation, grammar. —Cryptic 21:05, 20 August 2023 (UTC)
- So is ~, but I think we got away with it. Certes (talk) 22:22, 20 August 2023 (UTC)
- Search doesn't use the same flavor of regular expressions as the posix/pcre-like ones most people are used to, and # is indeed a metacharacter here. Documentation, grammar. —Cryptic 21:05, 20 August 2023 (UTC)
- The octothorpe isn't a special regex character so I'm not sure how that works, but then the search regex works strangely. — Qwerfjkltalk 21:00, 20 August 2023 (UTC)
- The purpose of this is not to identify users (although I suppose that may be possible?) - rather, it's to link to a specific piece of text on a page. (That said, it is one of those things that Google kind of unilaterally decided to add to Chrome, with varying lack of support across other browsers.) LittlePuppers (talk) 01:30, 19 August 2023 (UTC)
- That search query has some false positives. The first entry I found with #:~: is here, but that one seems fine. It doesn't seem to identify the user. Got any other examples? Are you requesting help to clean these up? –Novem Linguae (talk) 01:15, 19 August 2023 (UTC)
- automated cleanup ? .... 0mtwb9gd5wx (talk) 00:15, 19 August 2023 (UTC)
Global account information
Not a Wikipedia issue, exactly, but I suppose people here would know the answer.
meta:Special:CentralAuth/Nyttend gives my account registration date as 30 March 2008, apparently because that's when I linked my 2-year-old en:wp, commons, and de:wp accounts. For us old-timers, who remember when you had to register accounts separately at the different projects, is there anywhere that provides each account's creation date? Or if I'm curious, do I have to look at each wiki's log page? Nyttend (talk) 11:37, 21 August 2023 (UTC)
- You'd have to look at each wiki's log page. This doesn't affect you but account creation only began to be logged in September 2005. Graham87 12:01, 21 August 2023 (UTC)
Tech News: 2023-34
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- The GDrive to Commons Uploader tool is now available. It enables securely selecting and uploading files from your Google Drive directly to Wikimedia Commons. [22]
- From now on, we will announce new Wikimedia wikis in Tech News, so you can update any tools or pages.
- Since the last edition, two new wikis have been created:
- To catch up, the next most recent six wikis are:
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 22 August. It will be on non-Wikipedia wikis and some Wikipedias from 23 August. It will be on all wikis from 24 August (calendar).
Future changes
- There is an existing stable interface policy for MediaWiki backend code. There is a proposed stable interface policy for frontend code. This is relevant for anyone who works on gadgets or Wikimedia frontend code. You can read it, discuss it, and let the proposer know if there are any problems. [31]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
15:23, 21 August 2023 (UTC)
Script space
Is there any technical reason that we don't have a namespace devoted to scripts? It occurred to me that we have spaces which encourage collaboration among editors for coding Modules, and Templates, and we even have Draft space for collaborating on articles-to-be, we don't have a space devoted to scripts, and so they are developed in User space, typically as a subpage. A negative consequence of this, imho, is that for better or worse, editors are "respectful" (not quite the right word) of user pages "belonging" to other users, and might shy from editing other users' pages more than they might a Draft, a Module, or a Template. I've been around long enough to know that no page belongs to anybody, but it's kind of an emotional thing, almost; I'm much less likely to jump onto your User subpage and start improving "your" draft, "your" template, or "your" module. But in all of those cases, the user has the option to move them to Draft:, or to Template:, or to Module: space. Not so with scripts, and I fear that this has negative consequences for collaboration on scripts. Maybe I'm all wet, and if script writers out there tell me that they happily jump in to scripts regardless what user subpage they happen to live on, then I'll be happy to hear it, and we can close this. But it almost feels like people have to ask permission or something before messing with a user script.
There might be some statistics we could look at to try to assess whether this is, or isn't a problem, and I've asked the nice folks over at WP:QUERY to see if they can enlighten us, and will link this discussion and report back. Thanks, Mathglot (talk) 02:04, 21 August 2023 (UTC)
- For me, it's not about being respectful by choice. When I go to User:Mathglot/ShowRevisionID.js, I see "View source" instead of "Edit". I can't edit that page, even if I am 100% confident in my proposed change. I have Template Editor rights but I am not an admin. If only admins can edit other editors' .js pages, it seems highly unlikely that a collaborative culture of script editing would develop in User space. If that makes sense. – Jonesey95 (talk) 02:15, 21 August 2023 (UTC)
- Admins cannot edit .js pages, only the owner or interface admins. That's a security issue because js runs on the user's browser and is an uncontrollable language able to do a lot of damage. By comparison, templates and modules use a well-defined and locked down language that runs on monitored servers. Johnuniq (talk) 02:22, 21 August 2023 (UTC)
- That page says that there are only 12 current interface admins. I think that reinforces my point above. – Jonesey95 (talk) 02:29, 21 August 2023 (UTC)
- Yes, it reinforces your point but it also reinforces mine, namely that js pages are a security problem and opening them up to more than a dozen or so people will not and should not happen. Johnuniq (talk) 02:37, 21 August 2023 (UTC)
- Whoa, I'm surprised! That would seem to argue strongly in favor of a new namespace, and a new privilege. Why shouldn't trusted editors be able to collaborate on scripts as they do on modules and templates? I don't really see that the security issue is a problem, because we all get to import or otherwise install somebody else's script on our common.js, and the same thing would apply, even if we imported it out of Script space, instead of user space. The only difference would be that we'd have more trusted eyeballs and hands on the scripts in script space; that seems like a win-win. (edit conflict)
- Putting it another way: what's better: limiting controlling potential damage to one editor-owner (plus 12 IA's), or allowing a coterie of trusted js editors to monitor and look over all the js files, regardless where they live? And additional protection could always be applied to any given page, as is the case now. Mathglot (talk) 02:48, 21 August 2023 (UTC)
- A permission model allowing user-defined groups, for example, doesn't need a new namespace. Without some ability to set editing restrictions, the security issue is indeed a significant problem: I don't want anyone changing my personal user scripts without my authorization as that would allow them to trigger the execution of arbitrary Javascript code in my browser with my credentials. isaacl (talk) 03:01, 21 August 2023 (UTC)
- This collaberative space could live in the MediaWiki namespace. An script living there does not make it a gadget, it is both it's location there and that it is specified in MediaWiki:Gadgets-definition that does. An distinction between an collaberative script and an gadget could be made with an prefix, Gadgets allready have one, or at least the first script in a row (like with MediaWiki:Gadget-refToolbar.js and MediaWiki:RefToolbar.js).
- It is really unlikely that an new user-right would happen. Interface admins where added by the WMF and they are not interested in slacking the requirements on it. 2FA is a known deterrant for people to get IA rights and will continue being so.
- It would be nice to have an database query on scripts by inactive users (that metric is well defined nowadays), so that those scripts could be moved from Inactive_user/script.js to new_maintainer/script.js, where a new maintainer is interested. Snævar (talk) 11:15, 21 August 2023 (UTC)
- There are use cases where user-defined access groups are helpful to allow greater flexibility in managing who can update a specific page, though possibly more so with non-WMF deployments of MediaWiki. (For an example of how this works with a different Wiki platform, see Foswiki's documentation on access control.) isaacl (talk) 16:43, 21 August 2023 (UTC)
- Isaacl, Re: "...as that would allow them to trigger the execution of arbitrary Javascript code in my browser": Don't we already have that situation now, in the case of imported scripts in
common.js
? Sure, it's "my" js, but I'm importing a bunch of useful scripts, and I'm trusting that the changes they make to the scripts behind my back are beneficial. I import them because I trust them, even with changes I don't see, but even a well-intentioned script change might be destructive. How is it better to have that under the control of one person, rather than a community of trusted script editors, who might jump in from any time zone when they noticed something awry? Seems to me the supposed security of having only 12 IA's isn't really there, it's a mirage, unless you don't import any scripts at all, and then you're safe. - But, your objection is still a fair one, so let's see what can be done. What if imported scripts were disabled automatically every time they were modified, and then either you could reënable it yourself (just for you, redeclaring your trust, either after looking at the script, or just trusting its author), or it would be globally reënabled maybe after an Rfc-like script Talk page discussion where the script author would explain/defend their change, and the community would respond approve, decline, needs-work? I know that bots have to go through an initial approval and beta-test period, before being allowed to run. What about afterward: is initial approval carte blanche to do whatever modification you want to the code as long as you don't call it a "new task"? Who decides what kind of bot-code change is too big to allow without approval? How is importing a script which runs in your browser and is only editable by one user, safer than one that is editable by a community of trusted users?
- If we had a community of privileged script writers and automatic disabling of scripts every time they were changed, along with some mechanism to reënable them, would that satisfy your objection regarding scripts written by others running in your browser with your credentials? If we're halfway-there, and there's just a missing piece, what is it? Mathglot (talk) 01:18, 22 August 2023 (UTC)
- Currently, I control when I modify my common.js file, and make an explicit decision to trust one specific user. Any change to allow users to modify other people's user scripts will be different than the current situation. I think having user-defined access groups would provide a framework for defining circles of trust, both regarding who can alter a user script, and what circle someone needs to trust before making use of the script. isaacl (talk) 02:01, 22 August 2023 (UTC)
- You can already import a specific revision of a script if you don't want to risk the author going rogue or being compromised, although you then have to review each update or miss bugfixes and improvements. Everything about user scripts is a tradeoff between convenience/innovation and security. The fact we let users execute arbitrary code and that code is out in the open is unthinkable to most engineers. Reviewing each script and each change would be a tremendous undertaking neither WMF nor the community can dream to afford. But they make your life on wiki a lot easier, don't they? Nardog (talk) 02:05, 22 August 2023 (UTC)
- A permission model allowing user-defined groups, for example, doesn't need a new namespace. Without some ability to set editing restrictions, the security issue is indeed a significant problem: I don't want anyone changing my personal user scripts without my authorization as that would allow them to trigger the execution of arbitrary Javascript code in my browser with my credentials. isaacl (talk) 03:01, 21 August 2023 (UTC)
- That page says that there are only 12 current interface admins. I think that reinforces my point above. – Jonesey95 (talk) 02:29, 21 August 2023 (UTC)
- Admins cannot edit .js pages, only the owner or interface admins. That's a security issue because js runs on the user's browser and is an uncontrollable language able to do a lot of damage. By comparison, templates and modules use a well-defined and locked down language that runs on monitored servers. Johnuniq (talk) 02:22, 21 August 2023 (UTC)
Extra space in between namespace and talk page name
In phab:T315893, for folks that have enabled Special:Preferences -> Editing -> Show discussion activity, the editing team has decided to add a space after the colon to every talk page title. It sounds like they have plans to roll this out to non-talk pages and possibly for non-"Special:Preferences -> Editing -> Show discussion activity" users eventually. An example of this space can be seen by clicking here. The editing team has stated that this needs to be overridden on a per-wiki basis if we don't like it, I assume using MediaWiki:Common.css.
Thoughts on this change? Should we consider overriding it? I'd like to override it, personally. As a programmer it bugs me that the software is suggesting a title that isn't the "correct" title. This isn't a change we asked for. It seems confusing. Happy to hear other thoughts though. If there is consensus to change it in this discussion, I will put in an {{IAER}} to MediaWiki talk:Common.css after a couple days. Thanks. –Novem Linguae (talk) 12:44, 22 August 2023 (UTC)
- It's not a space character. It's a CSS-generated gap. Copying and pasting works fine. There was a bunch of hand-wringing by a couple of editors on the phab ticket, but I haven't noticed anyone freaking out about it here. It's been deployed for a while. The weird part about it is its inconsistency: it is present in Talk pages but not here at VPT, even though the function of the colon separator is the same in both places. It should either be present everywhere or nowhere. – Jonesey95 (talk) 14:01, 22 August 2023 (UTC)
- The inconsistency is exactly why we should hide it. If you were serious about making our NS-prefixed page names conform to orthography, you wouldn't do it in just a few namespaces or tweak just the heading. You would consult experts like the language committee, assess the breath and risks of the change, allocate resources, and publicize it to the communities. The fact they aren't doing that says this is an ill-conceived idea. Nardog (talk) 15:50, 22 August 2023 (UTC)
- Or you could just add the CSS spacing to all namespaces and see what happens. It does not seem to have caused any harm in its beta deployment. I am frustrated by a lot of beta stuff that the WMF deploys and then leaves 80% done (cf Visual Editor, Vector 2022), but this seems like a small thing. If it causes trouble, we can remove the spacing locally, it appears. – Jonesey95 (talk) 16:01, 22 August 2023 (UTC)
- Add
.mw-page-title-separator { margin-right: 0.25em; }
to your CSS and see how long before you have urge to write page names with the extra space or to see the rest of the interface the same way. Nardog (talk) 16:27, 22 August 2023 (UTC)- Many other editors and I have seen the spacing on talk pages for a while now. I have no such urge and have seen no evidence of such an urge. Claims that the sky is falling require evidence. – Jonesey95 (talk) 17:38, 22 August 2023 (UTC)
- Add
- Or you could just add the CSS spacing to all namespaces and see what happens. It does not seem to have caused any harm in its beta deployment. I am frustrated by a lot of beta stuff that the WMF deploys and then leaves 80% done (cf Visual Editor, Vector 2022), but this seems like a small thing. If it causes trouble, we can remove the spacing locally, it appears. – Jonesey95 (talk) 16:01, 22 August 2023 (UTC)
- The inconsistency is exactly why we should hide it. If you were serious about making our NS-prefixed page names conform to orthography, you wouldn't do it in just a few namespaces or tweak just the heading. You would consult experts like the language committee, assess the breath and risks of the change, allocate resources, and publicize it to the communities. The fact they aren't doing that says this is an ill-conceived idea. Nardog (talk) 15:50, 22 August 2023 (UTC)
- Agreed with @Jonesey95 that the consistency should be fixed, but otherwise it doesn't bother me. The whole concept of namespaces is one of the most confusing things about MediaWiki. This sort of helps grasp the concept because it clearly differentiates the namespace from the title. Yes, the visual spacing is jarring if you already understand namespaces, as you wouldn't type it out like that, but as it happens, it doesn't actually matter! Talk: Polar Bear still works :) That said, I do share the same concerns with @Nardog at phab:T315893#9059239 that the sake of consistency might over time might lead editors to always use spaces after colons. Before you know it, we've got yet another section added to WP:MOS, followed by tons of WP:AWB edits to make it all consistent. I don't think any of us want that, but I also think it's too early on to really say how problematic it will be. Thus far it seems to have caused few to no problems, so I'm led to believe it's one of those changes that we'll all simply get used to over time. The extra spacing bothered me when it was first deployed, but I quickly got over it, and now I even sort of like it. It's just easier on the eyes.
- At any rate, we can very easily override it with sitewide CSS if needed, so I'm not really worried. I say let them upstream it to MediaWiki Core if they want – and by doing so fixing the consistency issue Jonesey95 mentioned – then we'll see how folks react. Once it effects all namespaces and all MediaWiki installations, we'll surely know if it's a problem or not. I'm aware of the issues with orthography in other languages, but here we're only debating it for English, where it doesn't seem to be that big of an issue. — MusikAnimal talk 15:54, 22 August 2023 (UTC)
- I submit that "tons of WP:AWB edits to make it all consistent" are exactly what's going to happen, and what if the community says no and we have to revert the edits again? Or worse, a drawn-out RfC? I certainly don't want to see editor hours wasted like that. NL's proposed edit to the site-wide CSS is a great way to be proactive and prevent it. Nardog (talk) 16:25, 22 August 2023 (UTC)
Will the gallery tag support the upright parameter?
Currently the <gallery> tag and Template:gallery which implements it, can be sized using pixel values in the |height=
or |heights=
parameters. The help page says that Images displayed by the
. Is there any plan to support user preferences and the <Gallery>...</Gallery>
tag do not obey user viewing preferences|upright=
parameter as image thumbnails currently do? Or is there a reason why this will not happen? Rjjiii (talk) 03:17, 22 August 2023 (UTC)
- It appears that for some reason, galleries are rendered only using px values. mw:Manual:$wgGalleryOptions sets the default pixel size of each image (more or less, apparently). Also see mw:Help:Images#Rendering a gallery of images. – Jonesey95 (talk) 04:37, 22 August 2023 (UTC)
- No one has touched its code in years. The last thing that as added to it was the slideshow mode, but its core fundamentals are ancient. As such it has not kept up with other parts of the code. —TheDJ (talk • contribs) 11:25, 22 August 2023 (UTC)
- Well dang. I was thinking that galleries might be a cleaner way to juxtapose images, compared to Template:Multiple image or a single image created for comparison. Thanks for all of the explanation though. Rjjiii (talk) 02:43, 23 August 2023 (UTC)
How to add Infobox constituency quickly?
Hi Techie, Check this link i want to add Infobox with details like name, cons No, Map, electors, current MLA etc., i have some knowledge about auto wiki browser. I cant use easily this tool. Kindly suggest any alternate tool/method available. Thanks in advance IJohnKennady (talk) 18:58, 23 August 2023 (UTC)
Teahouse
The "skip to bottom" link in the teahouse header (temporarily removed) doesn't work for me, as the anchor it links to doesn't exist. However, Esolo5002 says it works fine. Edward-Woodrow :) [talk] 21:23, 23 August 2023 (UTC)
- @Edward-Woodrow: MDN states
Note: You can use
What browser are you using? It works fine for me in Firefox.href="#top"
or the empty fragment (href="#"
) to link to the top of the current page, as defined in the HTML specification. - (Also: apparantly you can paste something with formatting and this'll convert it to wikitext. That's cool.) LittlePuppers (talk) 21:33, 23 August 2023 (UTC)
- Firefox, and a pretty recent version thereof. Edward-Woodrow :) [talk] 21:38, 23 August 2023 (UTC)
- Bah. I was looking at the link to the top. Let me look at the right one. LittlePuppers (talk) 21:39, 23 August 2023 (UTC)
- I've reverted to a version with the link. Edward-Woodrow :) [talk] 21:40, 23 August 2023 (UTC)
- Nope. Doesn't work.
#footer-info
doesn't exist. Edward-Woodrow :) [talk] 21:41, 23 August 2023 (UTC)- I see a link to
#footer
, which works for me; it appears that something (probably MediaWiki) adds<footer id="footer" class="mw-footer" role="contentinfo" >
at the bottom of the page. What skin are you using? LittlePuppers (talk) 21:42, 23 August 2023 (UTC)- ...ah, and now I was looking at the other link to the bottom. LittlePuppers (talk) 21:43, 23 August 2023 (UTC)
- MonoBook. Edward-Woodrow :) [talk] 21:44, 23 August 2023 (UTC)
- I switched to the tolerable version of Vector and the issue miraculously resolved itself. Edward-Woodrow :) [talk] 21:46, 23 August 2023 (UTC)
- Okay... it works in every skin except Monobook. Edward-Woodrow :) [talk] 21:47, 23 August 2023 (UTC)
- Okay, so I see links to the bottom using
#footer
,#footer-info
, and#skip-to-bottom-anchor
. Those appear to be in all skins, Vector (at least the tolerable version, which I also use), and {{Skip to top and bottom}}, respectively. I'd change it to#footer
. LittlePuppers (talk) 21:49, 23 August 2023 (UTC)- ...and
#footer
doesn't work in Minerva. LittlePuppers (talk) 21:52, 23 August 2023 (UTC) - The {{Skip to top and bottom}} template itself adds a
<div>
element with askip-to-bottom-anchor
ID. isaacl (talk) 21:55, 23 August 2023 (UTC)- Yep, and the teahouse {{skip to top and bottom}}. So I guess the best course is remove the link, unless some interface editor wants to mess around. Edward-Woodrow :) [talk] 22:09, 23 August 2023 (UTC)
- ...and
- Okay, so I see links to the bottom using
- Okay... it works in every skin except Monobook. Edward-Woodrow :) [talk] 21:47, 23 August 2023 (UTC)
- I switched to the tolerable version of Vector and the issue miraculously resolved itself. Edward-Woodrow :) [talk] 21:46, 23 August 2023 (UTC)
- I see a link to
- Nope. Doesn't work.
- I've reverted to a version with the link. Edward-Woodrow :) [talk] 21:40, 23 August 2023 (UTC)
- Bah. I was looking at the link to the top. Let me look at the right one. LittlePuppers (talk) 21:39, 23 August 2023 (UTC)
- Firefox, and a pretty recent version thereof. Edward-Woodrow :) [talk] 21:38, 23 August 2023 (UTC)
Skin | footer-info | footer |
---|---|---|
Monobook | ||
Vector 2010 | ||
Vector 2022 | ||
Minerva | ||
Timeless |
(edit conflict) Seriously? Edward-Woodrow :) [talk] 22:07, 23 August 2023 (UTC)
Wikipedia:Teahouse transcludes {{skip to top and bottom}}. Is Wikipedia:Teahouse/Header used anywhere else other than being transcluded in Wikipedia:Teahouse? isaacl (talk) 22:13, 23 August 2023 (UTC)
- Teahouse-related subpages and some user sandboxes. Edward-Woodrow :) [talk] 22:14, 23 August 2023 (UTC)
- I imagine "To read the newest questions, skip to bottom" isn't an appropriate message for those other locations. Perhaps add a parameter to Wikipedia:Teahouse/Header that triggers the message to be displayed, and only add the parameter setting to Wikipedia:Teahouse. isaacl (talk) 22:19, 23 August 2023 (UTC)
- To make the header independent of the context in which it is transcluded, it can also position a
<div>
element at the bottom of the page with a specific ID and use it. But either way, the message ought to only be shown when there are questions to be read and skipping to the bottom makes sense. isaacl (talk) 22:31, 23 August 2023 (UTC)- How would the ID be positioned at the bottom of the page? Wouldn't it be easier to just insert that into the teahouse page? Edward-Woodrow :) [talk] Edward-Woodrow :) [talk] 22:33, 23 August 2023 (UTC)
- The same way the {{skip to top and bottom}} template does it: use CSS style properties to position it. Yes, the Teahouse page already inserts a
<div>
with a specific ID that can be used, but this makes the header dependent on the Teahouse page always transcluding {{skip to top and bottom}}. I think, though, controlling the message's display is more important than making the header manage its own target ID. isaacl (talk) 22:46, 23 August 2023 (UTC)
- The same way the {{skip to top and bottom}} template does it: use CSS style properties to position it. Yes, the Teahouse page already inserts a
- How would the ID be positioned at the bottom of the page? Wouldn't it be easier to just insert that into the teahouse page? Edward-Woodrow :) [talk] Edward-Woodrow :) [talk] 22:33, 23 August 2023 (UTC)
Searching for exotic whitespace
I'd like to search for articles containing strings like "=<whitespace>http" .. where "<whitespace>" are characters listed at whitespace character (except for the normal space). For example to find "thin space", what would the search string be? I tried insource:/[=](\u2009){1,}http/
.. because the codepoint is U+2009 and according to this tutorial it might work, but does not. CirrusSearch docs has some info but nothing I can see helps. -- GreenC 01:10, 24 August 2023 (UTC)
- Did you try using the actual Unicode character rather than \u2009 per the docs there? Izno (talk) 01:36, 24 August 2023 (UTC)
- \u... isn't going to work. Googling "regular expression" my problem is of very limited help for Elasticsearch (which is what CirrusSearch uses as its backend); you're going to get results for the PCRE variety of regular expressions that are the de-facto standard, and the flavor Elasticsearch implements is much more limited and uses somewhat different syntax. (Upstream documentation.) Searching for the literal character, like this, gets me correct-looking results. Or, at least there was a literal thinspace in the source of the articles I spot-checked. (I was surprised that there isn't in either whitespace character nor thin space). —Cryptic 02:06, 24 August 2023 (UTC)
Switcher gadget: please take a quick look
In response to MediaWiki talk:Gadget-switcher.js#Interface-protected edit request on 27 July 2023: Add space between the button and text I've made a new version of gadget-switcher that uses OOUI instead. This will make the radio buttons appear more uniformly across skins.
As this is a default gadget and the changes aren't quite trivial it should be tested by more people than just myself. Demo at https://commons.wikimedia.beta.wmflabs.org/wiki/Template:Switcher, source: https://commons.wikimedia.beta.wmflabs.org/wiki/MediaWiki:Gadget-switcher.js.
Pinging @Cmglee, Number 57, Jackmcbarn, PrimeHunter (participants in previous discussions) — Alexis Jazz (talk or ping me) 17:49, 21 August 2023 (UTC)
- OOUI is not only a big library but one WMF is moving away from. Doesn't strike me as something worth making every reader of some of the most visited articles on the wiki download just so the radio buttons look slightly prettier. Nardog (talk) 01:48, 22 August 2023 (UTC)
- Nardog, WMF moving away from OOUI? I was unaware, where can I read more about that? What is the replacement? — Alexis Jazz (talk or ping me) 09:57, 22 August 2023 (UTC)
- Long term, OOUI will be replaced with mediawikiwiki:Codex, which is built on Vue. This was announced about 2 years ago. But OOUI is going to be around for a long while still. Transitions like this generally take 7+ years. —TheDJ (talk • contribs) 11:21, 22 August 2023 (UTC)
- TheDJ, I wish someone had told me this before I invested too much time figuring out OOUI.
And now Codex. It just doesn't seem to work. "Uncaught ReferenceError: require is not defined" is all it can throw and none of these code examples has any context on how to actually use any of it. :-/ I just don't get it. The only example I could find here is User:Jdlrobson/rl.js but I don't understand what that code is doing. — Alexis Jazz (talk or ping me) 17:44, 22 August 2023 (UTC)- @Alexis Jazz I doubt OOUI will ever be removed, and I'm certain it won't happen in the foreseeable future (not until someone rewrites VisualEditor and a bunch of other things), so if you've grown to like OOUI, you can keep using it. (But if you always hated it, now you're vindicated!)
- I'm not sure what's the context for your
require
question, but you can get that function frommw.loader.using
like so: [32] mw.loader.using( '@wikimedia/codex' ).then( function ( require ) { require( '@wikimedia/codex' ) ... } );
- (or you can use
mw.loader.require
instead, but that is "publicly exposed for debugging purposes only and must not be used in production code" [33]). - Codex is more complicated than OOUI, unless you've already used Vue.js, in which case it's more intuitive. It's also quite annoying to use from gadgets, since ideally it depends on a bunch of server-side processing. I haven't tried doing that myself yet, and I hope someone will document how to do it at some point (or make it easier).
- If you're just trying to get things done, in a way that will be stable for years, I recommend the "CSS-only version" of Codex (e.g. [34]), which is way easier to understand than everything else, as long as you don't mind writing out a bunch of CSS classes in your JS code. Matma Rex talk 20:13, 22 August 2023 (UTC)
- Matma Rex, I just wanted to create a "hello world" dialog. I've added your line so it no longer errors, but I still get no dialog: Wikipedia:Sandbox (revision 1171734233) Even if that worked, it's a ludicrous amount of code to produce a "hello world" popup.
As for OOUI, I have a kind of love-hate relationship with it. In some ways it's too limiting and I end up applying CSS hacks which can end up harmful, and some stuff is just really confusing. (IIRC reading/writing the options from comboboxes was confusing but it's been some time) The icons OOUI provides I don't use at all, they add considerable loading time and have a more restrictive license than my scripts, so I just designed my own icons. But these proved more difficult to apply to OOUI elements. From what I read, with Codex you can load only the icons you actually need which would seem nice. Some parts of OOUI (long names of stuff) add considerably to the size of scripts.
But in general I like OOUI. I don't have to think as much about various skins and styling. And once you get the hang of it it's okay to work with. — Alexis Jazz (talk or ping me) 23:33, 22 August 2023 (UTC)- @Alexis Jazz I got your example working with three changes: [35] (just for educational purposes)
- You don't need to create a HTML
<template>
element. The example code uses that, because the server-side processing I mentioned detects this syntax and puts it elsewhere. If you don't have that (like in a gadget), you need to use a normal string, and pass it to the component. - You don't need to (and can't) do anything with
module.exports
. That's used when you have a ResourceLoader module consisting of multiple files. mw:ResourceLoader/Package files - You were defining a reusable component, but you were not using it anywhere. In theory, once you had your
DialogBasic
component, you could use it as<dialog-basic>
inside other components, same as you're usingCdxButton
/<cdx-button>
(I'm not sure if that requires some other boilerplate) – e.g., in the context of MediaWiki, imagine a reusable namespace selector dropdown defined that way, or something. But if you want to display it, you need to do it yourself. Luckily this is just one line.
- You don't need to create a HTML
- Matma Rex talk 15:27, 23 August 2023 (UTC)
- Matma Rex, I confirm it works, thanks! As also stated by egardner on phab:T344680 it's not really streamlined enough ATM to recommend for use in gadgets or userscripts. However, it's nice to at least know how to make it work, even if it's not particularly practical ATM. — Alexis Jazz (talk or ping me) 02:19, 24 August 2023 (UTC)
- @Alexis Jazz I got your example working with three changes: [35] (just for educational purposes)
- Matma Rex, I just wanted to create a "hello world" dialog. I've added your line so it no longer errors, but I still get no dialog: Wikipedia:Sandbox (revision 1171734233) Even if that worked, it's a ludicrous amount of code to produce a "hello world" popup.
- The Codex story in gadgets/scripts is not well supported yet. You're looking for phab:T313945. Izno (talk) 20:54, 22 August 2023 (UTC)
- TheDJ, I wish someone had told me this before I invested too much time figuring out OOUI.
- Long term, OOUI will be replaced with mediawikiwiki:Codex, which is built on Vue. This was announced about 2 years ago. But OOUI is going to be around for a long while still. Transitions like this generally take 7+ years. —TheDJ (talk • contribs) 11:21, 22 August 2023 (UTC)
- Nardog, WMF moving away from OOUI? I was unaware, where can I read more about that? What is the replacement? — Alexis Jazz (talk or ping me) 09:57, 22 August 2023 (UTC)
- @Alexis Jazz: Thank you very much for looking into this. I'm unfamiliar with Mediawiki software so cannot comment on what the correct approach is but am happy to beta-test it. https://commons.wikimedia.beta.wmflabs.org/wiki/Template:Switcher has adequate space between each radio button and its label, though there is much larger vertical separation between rows than on Template:Switcher/doc#Example: Firefox's Inspector shows that the wmflabs version has each label in a separate div where the original template has just label elements. Cheers, cmɢʟee⎆τaʟκ 16:05, 22 August 2023 (UTC)
Math parsing error
Hi, At article D-arabinitol 2-dehydrogenase, all I did was remove the Orphan tag at the article top, and now it shows in red:
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikipedia.org/v1/":): \rightleftharpoon</ref>
Hoping a technical expert here is able to update/fix. btw, I've never seen this before. Regards, JoeNMLC (talk) 14:47, 22 August 2023 (UTC)
- Now is does not have the error, so please skip this. JoeNMLC (talk) 14:48, 22 August 2023 (UTC)
- Probably relevant phab:T343648. Izno (talk) 17:10, 22 August 2023 (UTC)
- For this specific case, math seems like overkill for just a single symbol that is available in plain-text (or the {{eqm}} char template if you prefer). DMacks (talk) 17:23, 22 August 2023 (UTC)
- I took it (math) out as not needed. Graeme Bartlett (talk) 10:21, 24 August 2023 (UTC)
Odd character in cquote block
In the Sentinel program article there are a couple of quote blocks, using cquote. The second of these has an odd character at the start. This character does not seem to be in the source text. Look for "Which weapons", I see a rectangle in front of the "W". Does anyone else? Maury Markowitz (talk) 16:54, 24 August 2023 (UTC)
- I have removed a stray control character.[36] It's browser-dependant what, if anything, is shown. You can copy-paste something to the "Characters" field at https://r12a.github.io/app-conversion/ (not Wikimedia affiliated) and click "View in UniView" if you want info about special characters. PrimeHunter (talk) 17:23, 24 August 2023 (UTC)
Hyphens gadget
I'd like to have a gadget to break words with hyphens. This feature is available in CSS and it looks nice with paragraph text justification turned on. The CSS code for the gadget would look as following:
#article, #bodyContent, #mw_content {
hyphens: auto;
hyphenate-limit-chars: 8 4 4;
}
The hyphenate-limit-chars
option is a bit opinionated, but I've found it's a good middle-ground. Astra3 wiki (talk) 22:27, 25 August 2023 (UTC)
- You may customize in your common.css user page. Izno (talk) 02:10, 26 August 2023 (UTC)
Quick way to move user pages in one category to another?
example: c:Category:User BG-3. i cant figure out why cat-a-lot doesnt move user pages. is there a tool to move them? RZuo (talk) 05:37, 24 August 2023 (UTC)
- @RZuo, cat-a-lot doesn't work on non-mainspace pages. AFAIK, there is no replacement. — Qwerfjkltalk 15:57, 24 August 2023 (UTC)
- i wanna know why. in other words, how i could tweak the code to make it move user pages too. RZuo (talk) 12:49, 25 August 2023 (UTC)
- You should probably ask tech questions about Commons on Commons. They have enough savvy users there to answer. Izno (talk) 02:12, 26 August 2023 (UTC)
Is importScript asynchronous?
I use AutoEd with a custom set of functions in my common.js. Rather frequently AutoEd fails to run, with a warning left in my browser console along the lines of jQuery.Deferred exception: autoEdISBN is not defined ReferenceError: autoEdISBN is not defined
. My suspicion is that importScript('Wikipedia:AutoEd/isbn.js')
is importing the autoEdISBN
function asynchronously, which creates a race condition where AutoEd might try to invoke it before it has finished importing. Is that right? And if so, is there some way to wait until importScript
is finished? rblv (talk) 01:51, 26 August 2023 (UTC)
- importScript is indeed async, since around a year ago I think. I think what you want is mw:ResourceLoader/Core modules#mw.loader.getScript. Izno (talk) 02:08, 26 August 2023 (UTC)
- importScript has always been async. – SD0001 (talk) 08:47, 26 August 2023 (UTC)
- No. It was not made async until Krinkle's adjustments last year to "undeprecate" it. This was one of the reasons it was not made a shim for mw.loader.load originally. Izno (talk) 15:42, 26 August 2023 (UTC)
- That is not true, or rather – it is a myth. ImportScript was always async. It shared mostly the same code as the mw.loader family – the approach being to insert a
<script>
element into the page, which causes deferred loads in all browsers. But unfortunately a few users took to describing importScript as synchronous and "bad" without looking into its source code. – SD0001 (talk) 16:39, 26 August 2023 (UTC)
- That is not true, or rather – it is a myth. ImportScript was always async. It shared mostly the same code as the mw.loader family – the approach being to insert a
- No. It was not made async until Krinkle's adjustments last year to "undeprecate" it. This was one of the reasons it was not made a shim for mw.loader.load originally. Izno (talk) 15:42, 26 August 2023 (UTC)
- Thank you,
mw.loader.getScript
looks like what I need. Unfortunately I think there is an inherent race condition in how AutoEd handles user-defined plugins. I attempted to fix User:Rublov/common.js by usinggetScript
to asynchronously load the AutoEd plugins, and then attaching a callback to the Promise object inside ofautoEdFunctions
to ensure that the code doesn't run until the scripts are loaded. AutoEd however treatsautoEdFunctions
as synchronous and reloads the page as soon as it returns, which is often (always?) before the async callback inautoEdFunctions
has had a chance to run. - Maybe someone else has figured this out. rblv (talk) 21:23, 26 August 2023 (UTC)
Unfortunately I think there is an inherent race condition in how AutoEd handles user-defined plugins.
AutoEd is ancient and I'm surprised it's maintained much less functional. I would not be surprised if there was one. Izno (talk) 21:31, 26 August 2023 (UTC)- Any suggested alternatives that are better maintained? rblv (talk) 21:41, 26 August 2023 (UTC)
- Although Wikipedia:AutoEd/Customization implies the core script should be imported first, the preset files actually defer loading the core script until after the page DOM model is "ready" (however jQuery determines this). Thus I suggest structuring your common.js file to match the preset files, copying how it loads the core script (such as the code from complete.js, line 39 to line 41). I'm not sure if that's still too soon; if so, then instead of loading the core file as in line 40, you can invoke a promise like the one you have in your current common.js file, and in its callback, load the core file. This will result in a clear sequence: document ready → helper files are loaded in some order → core file is loaded. isaacl (talk) 22:06, 26 August 2023 (UTC)
- Ah, I had assumed it was necessary for the core script to be loaded first. If not, then it's possible to do everything in the right sequence. Thank you! rblv (talk) 23:15, 26 August 2023 (UTC)
- I looked at some of the helper files—they define standalone functions that don't use anything from the core script and don't execute any code, and I saw the preset files loaded them first which confirmed it would work in that order. You're welcome! isaacl (talk) 23:38, 26 August 2023 (UTC)
- Ah, I had assumed it was necessary for the core script to be loaded first. If not, then it's possible to do everything in the right sequence. Thank you! rblv (talk) 23:15, 26 August 2023 (UTC)
- importScript has always been async. – SD0001 (talk) 08:47, 26 August 2023 (UTC)
Dated maintenance categories
Wanted to ask about an issue that I've noticed with dated maintenance categories. This isn't the only time this has happened, and instead there have been a lot of examples of this of late, but I'll raise Category:CS1 maint: DOI inactive as of December 2022 as an example since that's the most recent case I've located.
What happened is that it was deleted as empty on August 1, but then sometime in the next week it somehow became repopulated, with the result that I had to undelete it on August 7 to get it off Special:WantedCategories, but then sometime in the week after that it was emptied again and thus had to be deleted a second time.
Now, obviously, there's no value in tagging dated maintenance categories for the "keep even if empty, because a possibility of future reuse exists" option that general undated maintenance categories sometimes get — but I don't see any great value in Wikipedians going through a looping delete-undelete-redelete cycle on them either. So is there any alternative way that could have avoided this, such as having the maintenance template only generate dated categories if they actually exist, and substituting a generic undated "crapcatcher" category if they don't, so that such situations are prevented from showing up as "wanted" redlinks? Bearcat (talk) 13:03, 20 August 2023 (UTC)
- I guess a page reappeared in the category because it was reverted to a revision with that dated tag. A template would have to use
#ifexist
to omit red categories but it's an expensive parser function with 500 total allowed per page. That could cause problems on pages with many such templates. It would also delay creation of new maintenance categories. I would like a MediaWiki feature like regexes in a MediaWiki message to say that certain category names should be treated as hidden categories if they don't exist. Then normal readers and registered users with default settings wouldn't see an ugly red link in the category list. It wouldn't solve your problem but I think this is a more important problem with red maintenance categories. PrimeHunter (talk) 14:41, 20 August 2023 (UTC)- Many of the actual maintenance templates do use
#ifexist
(mostly via Template:Dated maintenance category or Template:Fix/category or Module:Message box) to populate Category:Articles with invalid date parameter in template. Then AnomieBOT's DatedCategoryCreator task looks through that category every 2 hours to find articles that have redlinked dated subcats of categories in Category:Wikipedia maintenance categories sorted by month and Category:Wikipedia categories sorted by month to automatically create them. Whether it would be appropriate to have the CS1 templates do something similar I don't know. Anomie⚔ 18:11, 20 August 2023 (UTC)- Given the number of uses on our largest pages, not likely. Izno (talk) 18:20, 20 August 2023 (UTC)
- Umm, are you sure? The only dated maint cats that cs1|2 populates are subcats of Category:CS1 maint: DOI inactive. Presently, there are ~2k articles that have
|doi-broken-date=
(all of them in Category:CS1 maint: DOI inactive as of August 2023). Since the dated maint cat is dependent on|doi-broken-date=
, the cs1|2 module would only have to call the expensive functionmw.title.new ('Category:CS1 maint: DOI inactive as of <month> <year>').exists
when|doi-broken-date=
is found. I doubt that there will be more than 500 of those parameters in a single page. When|doi-broken-date=
is found without a matching extant category, the module can emit the red-linked cat plus a blue-linked cat for AnomieBOT which can then somehow create a blue-linked cat from the red-linked cat. Does AnomieBOT add all of the wikitext presently in the category page itself or is that an exercise left to editors? - —Trappist the monk (talk) 18:48, 20 August 2023 (UTC)
- AnomieBOT creates the dated categories with either {{Monthly clean-up category}} or {{Monthly maintenance category}}. See Category:Articles with unsourced statements from August 2023 or Category:Uncategorized from August 2023 for some examples. If we want to we could do a different template for CS1 maint cats, of course, but I'd still recommend the category page transclude a single template (whether that's like
{{CS1 maintenance category}}
or{{CS1 maintenance category/DOI inactive}}
or maybe even{{CS1 maintenance category|DOI inactive}}
) so it's easy for people to adjust the contents without needing changes to the bot. Anomie⚔ 19:44, 20 August 2023 (UTC)- I thought the bot would recreate a deleted category if it were repopulated? I assume this wouldn't require a lot of work, just a periodic check of "TOPIC as of MONTH YEAR"; there are a lot of possibilities of course (272 months have passed since Wikipedia was set up, and that's for each topic category: 272 "unsourced articles as of", 272 "NPOV issues as of", etc), but it shouldn't be hard for a bot. Nyttend (talk) 11:42, 21 August 2023 (UTC)
- Not hard to program, but time and resource consuming. Which is why the bot currently relies on Category:Articles with invalid date parameter in template to flag the articles having problematic categories instead of querying 54000 category names every few hours. Anomie⚔ 12:14, 21 August 2023 (UTC)
- I'm beginning to think that an automated solution utilizing AnomieBOT doesn't fit here. The example category, Category:CS1 maint: DOI inactive as of December 2022, is not named properly for AnomieBOT (it wants ... from <month> <YYYY>). It isn't clear to me how to apply either of
{{Monthly clean-up category}}
or{{Monthly maintenance category}}
where the desired category title uses a date that isn't current-month and current-year. - I'll think some more about this and continue the discussion at Help talk:Citation Style 1.
- —Trappist the monk (talk) 17:49, 21 August 2023 (UTC)
- Neither of those are insurmountable if people at Help talk:Citation Style 1 decide they'd want AnomieBOT's help. If they decide they want it, let me know on User talk:AnomieBOT. Anomie⚔ 19:41, 21 August 2023 (UTC)
- I thought the bot would recreate a deleted category if it were repopulated? I assume this wouldn't require a lot of work, just a periodic check of "TOPIC as of MONTH YEAR"; there are a lot of possibilities of course (272 months have passed since Wikipedia was set up, and that's for each topic category: 272 "unsourced articles as of", 272 "NPOV issues as of", etc), but it shouldn't be hard for a bot. Nyttend (talk) 11:42, 21 August 2023 (UTC)
- AnomieBOT creates the dated categories with either {{Monthly clean-up category}} or {{Monthly maintenance category}}. See Category:Articles with unsourced statements from August 2023 or Category:Uncategorized from August 2023 for some examples. If we want to we could do a different template for CS1 maint cats, of course, but I'd still recommend the category page transclude a single template (whether that's like
- Umm, are you sure? The only dated maint cats that cs1|2 populates are subcats of Category:CS1 maint: DOI inactive. Presently, there are ~2k articles that have
- Given the number of uses on our largest pages, not likely. Izno (talk) 18:20, 20 August 2023 (UTC)
- Many of the actual maintenance templates do use
- Update: As of the latest run of Special:WantedCategories, Category:CS1 maint: DOI inactive as of December 2022 was repopulated again by a new page that was not even the same page as the last time it repopulated, meaning I had to recreate it a third time. Bearcat (talk) 12:42, 25 August 2023 (UTC)
- The relevant pages are Native American use of fire in ecosystems today, and Schizoid personality disorder before. In both cases a citation that was populating the category was caught up in an unrelated edit war. I ran Citation bot to remove today's page from the report, and I suspect neither of those pages are going to show up again in the report, but obviously there's nothing I can do about other pages. * Pppery * it has begun... 14:31, 25 August 2023 (UTC)
- I have to ask, is there any value in the template actually generating dated monthly categories at all? Given that as of right now the dated monthly for August is the only one left, is there a reason why it can't just throw everything into one undated category and stuff anything that would cause problems like this to even occur in the first place? Bearcat (talk) 20:33, 26 August 2023 (UTC)
- My understanding is that Headbomb keeps the dates up to date. He can give voice on the point. Izno (talk) 21:05, 26 August 2023 (UTC)
- I have to ask, is there any value in the template actually generating dated monthly categories at all? Given that as of right now the dated monthly for August is the only one left, is there a reason why it can't just throw everything into one undated category and stuff anything that would cause problems like this to even occur in the first place? Bearcat (talk) 20:33, 26 August 2023 (UTC)
- The relevant pages are Native American use of fire in ecosystems today, and Schizoid personality disorder before. In both cases a citation that was populating the category was caught up in an unrelated edit war. I ran Citation bot to remove today's page from the report, and I suspect neither of those pages are going to show up again in the report, but obviously there's nothing I can do about other pages. * Pppery * it has begun... 14:31, 25 August 2023 (UTC)
Module:Math rounding function
Is the discrepancy between round function in Module:Math and expr round intentional?
More details:
Module_talk:Math#Rounding_in_the_module_and_rounding_in_the_expr MarMi wiki (talk) 20:34, 27 August 2023 (UTC)
Visual editor confusion when combining lang template with a wikilink
I used the Visual editor to add a wikilink to a lang template and vice versa, and it looked fine in the visual editor, but bad in the rendered article. See references to "Du Dingyou (杜定友; 1898–1967)" in Ligature (writing)#Chinese ligatures and Guangzhou Library#History
How can that be fixed? Thanks! ★NealMcB★ (talk) 21:23, 27 August 2023 (UTC)
- This is why templates have documentation... See Template:Lang § Links.
- You wrote this:
[[Du Dingyou|{{lang|zh-Latn|Du Dingyou|italic=no}} ({{lang|zh|杜定友}}; 1898–1967)]]
- In mainspace, that translates to:
[[Du Dingyou|<span title="Chinese-language text"><span lang="zh-Latn" style="font-style: normal;">Du Dingyou</span></span>[[Category:Articles containing Chinese-language text]] (<span title="Chinese-language text"><span lang="zh">杜定友</span></span>[[Category:Articles containing Chinese-language text]]; 1898–1967)]]
- notice the category wikilinks within the Du Dingyou wikilink which MediaWiki rejects. Here in Wikipedia namespace, what you wrote works because categories are suppressed by the template:
- To do it right:
{{lang|zh-Latn|[[Du Dingyou]]|italic=no}} ({{lang|zh|杜定友}}; 1898–1967)
- which in mainspace translates to:
<span title="Chinese-language text"><span lang="zh-Latn" style="font-style: normal;">[[Du Dingyou]]</span></span>[[Category:Articles containing Chinese-language text]] (<span title="Chinese-language text"><span lang="zh">杜定友</span></span>[[Category:Articles containing Chinese-language text]]; 1898–1967)
- No wikilink conflict.
- —Trappist the monk (talk) 21:53, 27 August 2023 (UTC)
Mobile redirect when on desktop
Currently there are two modes the english wikipedia can be in.
Desktop site:
https://en.wikipedia.org/wiki/Main_Page
Mobile site:
https://en.m.wikipedia.org/wiki/Main_Page
The mobile site has a different layout, narrower content and does not use the full width like the desktop site does.
Here's my problem:
If someone copies a link on mobile and posts it online somewhere, and someone on desktop clicks it, they'll get sent to the mobile site. Even though they are on desktop.
There should be a redirect from the mobile site to the desktop site if the site detects you are using a desktop browser.
BTW: You already do it the other way around (redirect to mobile if desktop site is linked) avalean (talk) 12:13, 28 August 2023 (UTC)
- There's a batch of tasks linked around phab:T214998, one of which should fit this bill. Izno (talk) 17:55, 28 August 2023 (UTC)
Template:Pp-move seemingly broken
Hi. Joe the Plumber is move-protected and tagged with {{pp-move}}
, but I don't see a notice or a lock icon on it. Peja Bistrica is also move-protected and tagged with {{pp-move}}
, but I don't see a notice or a lock icon on it. jlwoodwa tagged the documentation as inaccurate in this edit. Maybe this is why? Can someone please investigate? --MZMcBride (talk) 23:00, 29 August 2023 (UTC)
- This is by design. See Wikipedia:Templates for discussion/Log/2020 October 25#Template:Pp-move and the page history of the template/underlying module. Izno (talk) 23:03, 29 August 2023 (UTC)
- How confusing. Thanks. --MZMcBride (talk) 23:13, 29 August 2023 (UTC)
Question: Is there a tool for seeing "most-pageviews days" for an article?
We have a great tool for looking at pageviews over a given stretch of time, for example three-year pageviews of Sean Connery, but I am curious as to whether there is a way to see, for example, the top twenty individual days for pageviews for an article. BD2412 T 01:30, 23 August 2023 (UTC)
- I'm not sure of such a tool but, as a workaround, it can be done by using Download > CSV on that page and then sort by the pageviews column in Excel, OpenOffice Calc or other software. Simeon (talk) 13:12, 26 August 2023 (UTC)
- @Simeon: Thanks, I'll try that. BD2412 T 04:05, 30 August 2023 (UTC)
- Update: Yes, that worked like a charm. BD2412 T 04:51, 30 August 2023 (UTC)
Tech News: 2023-35
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- As part of the changes for the better diff handling of paragraph splits, improved detection of splits is being rolled out. Over the last two weeks, we deployed this support to group0 and group1 wikis. This week it will be deployed to group2 wikis. [37]
- All Special:Contributions pages now show the user's local edit count and the account's creation date. [38]
- Wikisource users can now use the
prpbengalicurrency
label to denote Bengali currency characters as page numbers inside the<pagelist>
tag. [39] - Two preferences have been relocated. The preference "Enable the visual editor" is now shown on the "Editing" tab at all wikis. Previously it was shown on the "Beta features" tab at some wikis. The preference "Use the wikitext mode inside the visual editor, instead of a different wikitext editor" is now also shown on the "Editing" tab at all wikis, instead of the "Beta features" tab. [40][41]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 29 August. It will be on non-Wikipedia wikis and some Wikipedias from 30 August. It will be on all wikis from 31 August (calendar).
- New signups for a Wikimedia developer account will start being pushed towards idm.wikimedia.org, rather than going via Wikitech. Further information about the new system is available.
- All right-to-left language wikis, plus Korean, Armenian, Ukrainian, Russian, and Bulgarian Wikipedias, will have a link in the sidebar that provides a short URL of that page, using the Wikimedia URL Shortener. This feature will come to more wikis in future weeks. [42]
Future changes
- The removal of the DoubleWiki extension is being discussed. This extension currently allows Wikisource users to view articles from multiple language versions side by side when the
<=>
symbol next to a specific language edition is selected. Comments on this are welcomed at the phabricator task. - A proposal has been made to merge the second hidden-categories list (which appears below the wikitext editing form) with the main list of categories (which is further down the page). More information is available on Phabricator; feedback is welcome!
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 13:58, 28 August 2023 (UTC)
- I'm curious if anyone knows of a discussion or a checklist that led to the decision to declare that the visual editor is no longer in the beta stage of software development. Until one of these recent updates, the Editing tab said something like "Disable the visual editor while it is still in beta". Was there a big set of bug fixes? Is VE still inserting nowiki tags where it should not (that diff is from four weeks ago), a long-standing bug? – Jonesey95 (talk) 15:53, 28 August 2023 (UTC)
- The software is stable and has been for the better part of a decade at this point. It should have been "out of beta" long ago. Izno (talk) 17:37, 28 August 2023 (UTC)
- Thanks. I agree with the latter part of your statement. I will keep my eyes out for new instances of still-open bugs that I filed half a decade ago. Maybe they have quietly been resolved but not closed in Phabricator. That would be nice. – Jonesey95 (talk) 18:21, 28 August 2023 (UTC)
- Just a reminder that ALL parts of the software have decade long bugs that are open. —TheDJ (talk • contribs) 05:46, 30 August 2023 (UTC)
- Thanks. I agree with the latter part of your statement. I will keep my eyes out for new instances of still-open bugs that I filed half a decade ago. Maybe they have quietly been resolved but not closed in Phabricator. That would be nice. – Jonesey95 (talk) 18:21, 28 August 2023 (UTC)
- The software is stable and has been for the better part of a decade at this point. It should have been "out of beta" long ago. Izno (talk) 17:37, 28 August 2023 (UTC)
Edit count and account age
I just noticed that Special:Contributions now displays one's edit count and account age. While this change is long overdue and I'm sure welcomed by many, this unfortunately clashes with the various User info scripts that many editors (myself included) have due to this functionality not being natively supported until now. These scripts are: User:Amorymeltzer/scripts#User Info, User:PleaseStand/User info, User:Enterprisey/userinfo, m:User:SMcCandlish/userinfo, m:User:Perhelion/userstatus, and possibly others. How do I disable the native version (i.e. I want to keep using the script version, as it has more features)? InfiniteNexus (talk) 15:56, 28 August 2023 (UTC)
- You can hide it in your CSS: Nardog (talk) 16:05, 28 August 2023 (UTC)
.mw-contributions-editor-info { display: none; }
- Thank you. InfiniteNexus (talk) 16:06, 28 August 2023 (UTC)
- Tangentially related: the edit count shown is the number of edits actually made by yourself, and excludes transwikid edits. As an example, see de:Spezial:Beiträge/Redrose64 - this says "A user with 15 edits", but plenty more than 15 are listed - in fact there are 803 edits credited to Redrose64 on German Wikipedia, due to their love of importing our templates, modules and indeed articles. --Redrose64 🌹 (talk) 11:29, 29 August 2023 (UTC)
- That's also the count currently used by the scripts I linked above, and the number shown at Special:CentralAuth for en-wiki. Curiously, XTools shows a different number. InfiniteNexus (talk) 16:01, 29 August 2023 (UTC)
That's not how pie charts are supposed to look...
Hello! I recently read this fascinating edition of the Signpost's Special Report on mobile, (shoutout to WereSpielChequers, the author of the atricle) and I noticed the pie chart was looking strange.
My user agent is Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/115.0 Firefox/115.0
, using the Fennec browser on a OnePlus Nord 2 5G, if that is in any way relevant. --QuickQuokka [talk • contribs] 22:27, 16 August 2023 (UTC)
- Works for me at Wikipedia:Wikipedia Signpost/2023-08-15/Special report. Firefox 116.0.2, Windows 10. --Redrose64 🌹 (talk) 22:33, 16 August 2023 (UTC)
- @Redrose64: I didn't ask if it works for anybody else, I wanted to inform the devs of an error. QuickQuokka [talk • contribs] 22:37, 16 August 2023 (UTC)
- @QuickQuokka, Redrose is saying that this bug does not appear for everyone, which can help find its cause. — Qwerfjkltalk 13:14, 17 August 2023 (UTC)
- @Redrose64: I didn't ask if it works for anybody else, I wanted to inform the devs of an error. QuickQuokka [talk • contribs] 22:37, 16 August 2023 (UTC)
- This is a {{Pie chart}}, so that means the developers are your cohorts :). I am somewhat skeptical it can be fixed in a way which works for you and everyone else given what it's doing (Firefox for mobile is not a high-pageview browser). Izno (talk) 23:14, 16 August 2023 (UTC)
- Call me a traditionalist, but nowadays I use a Chromebook, and I also have an antideluvian android mobile (now on Android version 10) that I bought second hand several years ago. Both show the pie chart with properly pie shaped slices. So it may just be the fennec browser? ϢereSpielChequers 07:08, 17 August 2023 (UTC)
- Looking at the rendered html of that graph makes me want to cry. It's impressive as a hack, sure, but even if it is valid css, it's fragile and opaque; surely the Proper Way To Do This is an svg. —Cryptic 08:53, 17 August 2023 (UTC)
- That would be good but then the chart would quickly become obsolete as it's much harder to update a diagram than some fairly clear wikitext. I know svg can be "easily" updated but a comparatively tiny number of editors would feel comfortable doing that and then going through the image upload procedure. Johnuniq (talk) 09:30, 17 August 2023 (UTC)
- Today the colors would probably be done with conic-gradient. That's fairly new but should degrade more gracefully than this absolute mess of absolutes. About 0.5% of English Wikipedia page views would not support it (0.13% Chrome/Edge, 0.14% IE, 0.21% Safari). That's probably a reasonable percentage to try and improve things. Izno (talk) 17:34, 17 August 2023 (UTC)
- Looking at the rendered html of that graph makes me want to cry. It's impressive as a hack, sure, but even if it is valid css, it's fragile and opaque; surely the Proper Way To Do This is an svg. —Cryptic 08:53, 17 August 2023 (UTC)
- Comment: I am unarchiving this stale discussion, due to finding another person who experienced a similar bug, @2NumForIce
- I found this screenshot on the Discord channel for Wikimedia, and I am not satisfied with the results of the discussion so far. --QuickQuokka [talk • contribs] 23:14, 29 August 2023 (UTC)
- I started working on a replacement Module:Sandbox/Izno/Pie chart which uses conic-gradient as I noted above. Just been a bit tired of Wikipedia things lately. Izno (talk) 01:22, 30 August 2023 (UTC)
- I tested the page linked above on Firefox for Android 68 (last version supporting some old Android versions; at least I think I did, that was several days ago) and just now version 117, and neither displayed this issue. (I did notice some seams running through the middle horizontally and vertically, but presumably that's a consequence of aforementioned
looking at the rendered html of that graph makes me want to cry
.) - QuickQuokka, if you type
about:support
in your browser that has this issue, can you post what it lists under the "graphics" section for (1) "Compositing" and (2) "GPU #1" -> "Description"? LittlePuppers (talk) 04:05, 30 August 2023 (UTC)- @LittlePuppers: Certainly:
Graphics Features Compositing WebRender GPU #1 Description Model: DN2103, Product: DN2103EEA, Manufacturer: OnePlus, Hardware: mt6893, OpenGL: ARM -- Mali-G77 MC9 -- OpenGL ES 3.2 v1.r32p1-01eac0.efd03ef21f136842c0935bd4f493fe81
- Hope this clarifies my problem. QuickQuokka [talk • contribs] 08:27, 30 August 2023 (UTC)
Wikidata problem ?
I don't speak Wikidata, but suspect it may be involved in this mixup.
- Brian D. Berger is this guy.
- Dan Berger, writer, is this guy.
In trying to link the writer Dan Berger at Ruchell Magee, I found that a google search on Dan Berger shows google has an image of Dan Berger the writer, linking to the Wikipedia article of Brian D. Berger. Is that a Wikidata mixup and does someone know how to fix it ? (I just moved Dan Berger to Brian D. Berger to make way for Dan Berger.) SandyGeorgia (Talk) 12:05, 30 August 2023 (UTC)
- Also, I may have moved the lobbyist to the wrong title; one of the sources refers to him as Brian Daniel Berger (Dan), while the other four refer to him as B. Dan Berger. The problem seems to date to 2018, but I may not have fixed it correctly. Just trying to avoid the problem of google mixing up Dan Berger the writer on black activism with B. Dan Berger the lobbyist. SandyGeorgia (Talk) 12:30, 30 August 2023 (UTC)
- Google's knowledge panel has a confusing layout. The image is added by Google and selected by their own algorithm. It doesn't link to the Wikipedia article. They got it from https://jsis.washington.edu/humanrights/people/dan-berger/. The Wikipedia link is at the end of a text paragraph from Wikipedia. All other parts may be completely unrelated to Wikipedia. See Template:HD/GKG for a stock answer to complaints about Google errors. You can give feedback to Google that the image is wrong. You can try to upload an image to Brian D. Berger and maybe Google will use it. Most complaints about wrong images in Google panels have been for cases where the Wikipedia article had no image. PrimeHunter (talk) 13:10, 30 August 2023 (UTC)
- Thx, PrimeHunter-- didn't know where to go with this, and I don't do images. Regards, SandyGeorgia (Talk) 14:47, 30 August 2023 (UTC)
- Google's knowledge panel has a confusing layout. The image is added by Google and selected by their own algorithm. It doesn't link to the Wikipedia article. They got it from https://jsis.washington.edu/humanrights/people/dan-berger/. The Wikipedia link is at the end of a text paragraph from Wikipedia. All other parts may be completely unrelated to Wikipedia. See Template:HD/GKG for a stock answer to complaints about Google errors. You can give feedback to Google that the image is wrong. You can try to upload an image to Brian D. Berger and maybe Google will use it. Most complaints about wrong images in Google panels have been for cases where the Wikipedia article had no image. PrimeHunter (talk) 13:10, 30 August 2023 (UTC)
- FWIW I've checked on the Wikidata side - I think you're right that it was involved, as the item for B. Dan Berger was tagged with the Freebase internal ID https://www.google.com/search?kgmid=/m/02vlxwx but Google seems to associate that ID with the historian - everything except the WP article (which it will have picked up from Wikidata) is for Dan Berger the historian.
- I've moved that ID across to a new item for the historian, linked to your new page, and I think Google will then pick that up in the near future. Fingers crossed, anyway... Andrew Gray (talk) 18:35, 30 August 2023 (UTC)
- Andrew Gray thanks so much-- all greek to me, but I suspected a foulup there! SandyGeorgia (Talk) 19:12, 30 August 2023 (UTC)
The documentation for Wikipedia:AutoEd mentions (in a few places) wikimagic for ISBNs. Should these be removed as wikimagic has been deprecated? 76.14.122.5 (talk) 18:57, 30 August 2023 (UTC)
- I have removed the relevant text. Thanks for the note. – Jonesey95 (talk) 21:32, 30 August 2023 (UTC)
- I assume they were suggesting the functionality be removed, not just the documentation. The entire code appears to be just this so it'll probably be enough to remove
mw.loader.load(AutoEd_baseurl + 'isbn.js');
andtxt = autoEdISBN(txt);
from /basic.js, /complete.js, and /wikichecker.js. Nardog (talk) 21:45, 30 August 2023 (UTC)- That ISBN-fixing code is still useful. On Wikipedia, we write ISBNs as "ISBN ##########", not "ISBN-13 etc." or "ISBN: etc.", so removing that extraneous text is useful. Writing ISBNs in the latter fashions will cause ISBNs to appear on error reports. – Jonesey95 (talk) 06:51, 31 August 2023 (UTC)
- I assume they were suggesting the functionality be removed, not just the documentation. The entire code appears to be just this so it'll probably be enough to remove
Adding images to articles on 'Mobile Edit'
Hello,
This might be a small thing, but is there no way to add images to articles in VISUAL EDIT in mobile editting. As I have checked, the only option is through SOURCE EDITTING. The same is available on PC though, i.e. adding Images or Templates through visual edit.
It is just a question as it becomes easier to edit in visual edit... Ray Frost (talk) 16:29, 31 August 2023 (UTC)
Moving images off commons to be fair use.
A bunch of logos for entities of the Indian government are about to be deleted. See https://commons.wikimedia.org/wiki/Commons:Deletion_requests/Files_found_with_intitle:emblem_intitle:INS_incategory:GODL-India and https://commons.wikimedia.org/wiki/Commons:Deletion_requests/Files_found_with_intitle:insignia_incategory:GODL-India If I change the license to fair use, does it automatically get migrated to the Wikipedia.en server, or does each one have to be re-uploaded? Richard-of-Earth (talk) 22:11, 27 August 2023 (UTC)
- No it won't be an automatic transfer. You should re-upload. Graeme Bartlett (talk) 00:35, 28 August 2023 (UTC)
Okay, follow up question. I see no notification on the talk pages of the articles that use these logos. Is there a way to notify them all? Richard-of-Earth (talk) 14:45, 31 August 2023 (UTC)
- Notifying about commons deletions is Commons deletion notification bot, although it is implemented differently than you are mentioning: Wikipedia:Bots/Requests for approval/Community Tech bot 5. Snævar (talk) 16:35, 31 August 2023 (UTC)
Untraceable (by me, at least) ParserFunction errors
Today, two Australian railroad articles, Alamein line and Glen Waverley line, have popped up in Category:ParserFunction errors. I can't find any error messages in the articles (even after expanding the collapsed templates) and so have been unable to attempt to fix the problems. Can anyone identify what the errors are? Deor (talk) 17:20, 31 August 2023 (UTC)
- In both articles, it looks like the row for Botanic Gardens in the (collapsed) "Station histories" table. I'm not familiar with the template used to populate that row, though. —Cryptic 17:26, 31 August 2023 (UTC)
- A similar error is being displayed at {{Table Age Calculator}}, in the documentation. I wonder if something has changed in the MediaWiki code, it being Thursday. – Jonesey95 (talk) 17:41, 31 August 2023 (UTC)
- Dang, I didn't notice that collapsed table hiding in the articles. I believe I've fixed the problem by tweaking the syntax of Template:Table Age Calculator in those Botanic Gardens entries. Deor (talk) 17:51, 31 August 2023 (UTC)
- A few more will appear in the category over the next couple of minutes as the template transclusions are processed by the job queue. – Jonesey95 (talk) 17:52, 31 August 2023 (UTC)
- Dang, I didn't notice that collapsed table hiding in the articles. I believe I've fixed the problem by tweaking the syntax of Template:Table Age Calculator in those Botanic Gardens entries. Deor (talk) 17:51, 31 August 2023 (UTC)
- A similar error is being displayed at {{Table Age Calculator}}, in the documentation. I wonder if something has changed in the MediaWiki code, it being Thursday. – Jonesey95 (talk) 17:41, 31 August 2023 (UTC)
Formatting question
What would be the CSS code for blacking out one's User page? I want to do that to mine for a week or two for a private, personal reason. (Well, once I'm told how to do it, I will leave an explanation why. I'm just not interested in broadcasting the reason to the general, disinterested public.) -- llywrch (talk) 22:07, 28 August 2023 (UTC)
- I'm not sure what you mean but if you want your own user page to only display the interface for you but display normally for others then you can add this to your CSS:
.page-User_Llywrch .mw-body {display:none;}
- Omit
.mw-body
to blank the entire page. PrimeHunter (talk) 08:42, 29 August 2023 (UTC)- (Sorry to take so long to respond, been busy with non-Wiki stuff) No, what I'm looking for is a black background -- to the edge of the browser window -- for all to see, & perhaps white type. From your answer, I suspect
.mw-body
is somehow involved. -- llywrch (talk) 17:38, 31 August 2023 (UTC)- You can only affect the appearance of content within the main content area, by adding style attributes to HTML elements. Thus you could enclose your user page content within a
<div style="...">...</div>
. To change how someone sees the other parts of the page, you'd have to get them to load a custom CSS file. isaacl (talk) 17:52, 31 August 2023 (UTC)- You could use absolute positioning to cover the whole page, including the interface. But you really, really shouldn't. —Cryptic 18:18, 31 August 2023 (UTC)
- It sounds disruptive to hide the interface even if it's your own userspace. You can make white text on black background in the main content area with code like:
<div style="background:black; color:white; height:100em;">White text</div>
. PrimeHunter (talk) 19:44, 31 August 2023 (UTC)
- It sounds disruptive to hide the interface even if it's your own userspace. You can make white text on black background in the main content area with code like:
- You could use absolute positioning to cover the whole page, including the interface. But you really, really shouldn't. —Cryptic 18:18, 31 August 2023 (UTC)
- You can only affect the appearance of content within the main content area, by adding style attributes to HTML elements. Thus you could enclose your user page content within a
- (Sorry to take so long to respond, been busy with non-Wiki stuff) No, what I'm looking for is a black background -- to the edge of the browser window -- for all to see, & perhaps white type. From your answer, I suspect
Question - two Page view counts
On Timeless skin sidebar, when I choose Analysis, then Basic statistics. In section "Basic information", "Page views in the past 30 days" - that number is larger than if I page down to bottom and click on "Page view statistics" (External tools section). For example here for Wikiproject Football. Page views in the past 30 days is 1,636; vs Page view statistics is 1,104. Question: which of these is correct/more accurate? Regards, JoeNMLC (talk) 21:48, 30 August 2023 (UTC)
- You need to set Page view statistics to 30 days. By default it is 20 days. (I don't know why 20 was picked and it's kind of weird.) Izno (talk) 22:13, 30 August 2023 (UTC)
- Thanks - Is there any way to save that 30 day perference? I've tried several things and not able to. (Settings wrench, then tick "Remember chart preference", Save) It always comes up with the 20 days instead. JoeNMLC (talk) 23:22, 30 August 2023 (UTC)
- @MusikAnimal might know. Izno (talk) 02:27, 31 August 2023 (UTC)
- User:PrimeHunter/Pageviews.js adds a "Page views" link under Tools. You could make a modified version with
&range=latest-30
inserted in the url. https://pageviews.wmcloud.org actually shows one more day than requested so use&range=latest-29
if you really want 30. I don't know whether it's intentional but latest n in the tool has n days between start and end with both included. The average is computed correctly by dividing with n+1. Your "Analysis" options are added by MoreMenu at Special:Preferences#mw-prefsection-gadgets. The default is to have a "Page information" link to what MoreMenu calls "Basic statistics" in the "Analysis" options. PrimeHunter (talk) 08:22, 31 August 2023 (UTC)- I can change the default range to 30 days. It has been 20 since the demo Mforns (WMF) created many years ago that inspired Pageviews Analysis. There's otherwise no basis to defaulting to 20 days, and I agree going with roughly a month is more sensible. I'll get that deployed soon-ish.
- In addition, as PrimeHunter points out, Pageviews Analysis has some logic around date ranges that is admittedly less than ideal. The idea is the past N days should not include today, because it takes up to 24 hours for the pageviews pipeline to populate. The tool incorrectly goes off of your timezone, even though I made efforts to force UTC. So in addition to perhaps confusingly being an inclusive range (the last N days including start and end, where the numerical difference equals N), what you see may not even be the same as another user due to timezones. I'll make another effort to fix that. No one was complaining about that bug here, but this conversation reminded me that it still exists.
- I don't know if date ranges inclusive is really a problem or not, but since it was brought up I'll change that as well so that you get exactly N days. Depending on how users react, if at all, this might be changed back to the old behaviour.
- Thanks for the feedback, — MusikAnimal talk 19:44, 31 August 2023 (UTC)
- User:PrimeHunter/Pageviews.js adds a "Page views" link under Tools. You could make a modified version with
- @MusikAnimal might know. Izno (talk) 02:27, 31 August 2023 (UTC)
- Thanks - Is there any way to save that 30 day perference? I've tried several things and not able to. (Settings wrench, then tick "Remember chart preference", Save) It always comes up with the 20 days instead. JoeNMLC (talk) 23:22, 30 August 2023 (UTC)
HBC AIV helperbot5 down again
The bot that "clerks" WP:UAA and WP:AIV hasn't been clerking for a couple of hours and appears to be broken. Lavalizard101 (talk) 14:11, 31 August 2023 (UTC)
- Seems that it's working again (<bot's contribs>). – 2804:F14:80D6:E401:C54F:5C2B:78F9:E214 (talk) 00:50, 1 September 2023 (UTC)
Orange bar of doom seems to be broken
Hello, The big orange "You have new messages" bar for logged out users seems to be broken - I can't get it to disappear. I tried editing my talk page by adding a space, but all that did is change the message to "You have new messages from 2 users", even though one of the "messages" was placed by myself. 86.23.109.101 (talk) 19:25, 26 August 2023 (UTC)
- @Matma Rex You asked on phabricator if the notifications clear on editing - I've edited my talk page twice and the notification is still there - in fact the notification has updated to say I have messages from 2 users, even though one of them was myself. 86.23.109.101 (talk) 13:07, 29 August 2023 (UTC)
- Thanks for the reply, I will look into it. Matma Rex talk 15:12, 29 August 2023 (UTC)
i got a message on my talk page, and saw it thanks to the new notification method. however the notification can not be dismissed, liek the old orange one. this may or not be a big deal but it is something you should know about here at this noticeboard. :^) 173.87.169.10 (talk) 00:16, 27 August 2023 (UTC)
- i am not able to reply to matmarex at Phabricator who said
Are you sure that this worked previously? There are bug reports like this going back to 2013 (T59840), and as far as I know, due to the way caching for logged-out users work on Wikimedia wikis, the only reliable way of getting rid of the bar is making an edit.
i can only say here that yes, the orange one used to clear when checking new messages, and making an edit doesn't clear it. it is still there. 173.87.169.10 (talk) 23:51, 28 August 2023 (UTC)- I have made edits and the bar remains 2601:5CC:8300:A7F0:BCA0:9CD1:8F91:5F53 (talk) 16:01, 29 August 2023 (UTC)
- Thanks you all for comments, I found the cause of the problem (see Phabricator for details) and I hope we'll get it fixed later this week. Matma Rex talk 00:01, 30 August 2023 (UTC)
- great success. the notification was cleared once i visited my talk page. thank you. :) 173.87.169.10 (talk) 03:09, 1 September 2023 (UTC)
- Thanks you all for comments, I found the cause of the problem (see Phabricator for details) and I hope we'll get it fixed later this week. Matma Rex talk 00:01, 30 August 2023 (UTC)
- I have made edits and the bar remains 2601:5CC:8300:A7F0:BCA0:9CD1:8F91:5F53 (talk) 16:01, 29 August 2023 (UTC)
Trouble with the orange bar
(moved from my original ANI report)
A couple days ago, I was notified on my phone that someone had posted a message on my talk page with the standard "new message" template. I looked at it and pressed the links given, but the bar wouldn't go away. Two days passed, and it's still there. Today, I checked another phone (one that hasn't been used to edit Wikipedia in over a month), and it has the same template which also will not go away. I then looked at my computer (which technically doesn't even use the same IP address as me), and it has the exact same problem. I am posting here to figure out if this is just me, or a bigger issue, since the notification bar is really annoying and distracting when I am editing or reading the edit history of something. 47.227.95.73 (talk) 02:05, 30 August 2023 (UTC)
- See the section above Wikipedia:Village_pump_(technical)#Orange_bar_of_doom_seems_to_be_broken RudolfRed (talk) 02:21, 30 August 2023 (UTC)
Fixed
We deployed a fix for the problem. The orange bar should clear the next time you visit your talk page. Matma Rex talk 20:47, 31 August 2023 (UTC)
- @Matma Rex Thank you very much, it just cleared properly! 86.23.109.101 (talk) 20:58, 31 August 2023 (UTC)
- @Matma Rex: Can confirm also. Thank you, it was very distracting on my previous IP. – 2804:F14:80D6:E401:940E:7D0B:8B52:EAB1 (talk) 21:08, 31 August 2023 (UTC)
Mobile blocked
I have used my phone, Android v11, for editing for many months without problems. Today, 8/31/23, while logged in on the Android, using Chrome browser v92, when I attempted to edit an article, I got a message that I was blocked by "ST47ProxyBot". The block message said, "The IP address you are currently using has been blocked because it is believed to be used by a peer-to-peer proxy service." The block applies to everything except my own Talk page. The mobile is blocked from editing articles, other Talk pages and my own user page. My connection from my desktop machine, Win10, Firefox v117, is not blocked for editing and I am able to edit normally. The phone and desktop machine both use the same wifi signal, and presumably the same ip address, which is provided by T-Mobile home internet. The block apparently is scheduled to end after only two days. Can anyone explain this state of affairs, and whether I may encounter the problem again? Is this a situation in which my ip address can receive "block exemption"? DonFB (talk) 06:35, 1 September 2023 (UTC)
- @DonFB: The short answer is that your mobile and desktop are not using the same IP addresses. Yes this is the type of situation we can use IPBE for your account. I'd consider this a temporary situation and relatively rare. Your phone and the proxy are both likely to change addresses often, making another meeting of the two unlikely. I'll grant IPBE for a month anyway. If you encounter this again feel free to ping me directly. -- zzuuzz (talk) 08:12, 1 September 2023 (UTC)
- Thanks very much. DonFB (talk) 09:15, 1 September 2023 (UTC)
archive.today keeps reCAPTCHAing me
Is it just me or is something wrong with archive.ph? It keeps serving me endless reCaptchas through Cloudflare; I'm stuck beyond it. After a recaptcha it refreshes and has me redo yet another recaptcha. Aaron Liu (talk) 01:20, 2 September 2023 (UTC)
- VPT is for Wikipedia-related technical issues, so I think this is is off-topic - I will also note that it works fine on my end. Remagoxer (talk) 01:49, 2 September 2023 (UTC)
- Oops. I'll try Misc and Help Desk then. Aaron Liu (talk) 02:23, 2 September 2023 (UTC)
Labeled section transclusion doesn't work on templates
I've tried to transclude portions of templates within other templates using labeled section transclusion, but this never seems to work. Is this a bug that can be fixed? Jarble (talk) 17:22, 31 August 2023 (UTC)
- ... don't do that? Templates are literally made to be reused. LST is a mechanism that you should employ almost exclusively in the mainspace, and I can think of no reason to use it in template space. Izno (talk) 19:16, 31 August 2023 (UTC)
- @Jarble: It shouldn't affect the behaviour whether pages are in template space but it's unclear what you tried to do. If you give a saved example and say what you wanted then we can probably say how to do it or give another way to get a similar result. PrimeHunter (talk) 19:26, 31 August 2023 (UTC)
- @PrimeHunter: I found several templates that include labeled sections. I tried to transclude one of these sections here, but nothing is transcluded:
{{#section:Template:Campaignbox Congo Crisis|CongoCrisis}}
- @PrimeHunter: I found several templates that include labeled sections. I tried to transclude one of these sections here, but nothing is transcluded:
- @Jarble: It shouldn't affect the behaviour whether pages are in template space but it's unclear what you tried to do. If you give a saved example and say what you wanted then we can probably say how to do it or give another way to get a similar result. PrimeHunter (talk) 19:26, 31 August 2023 (UTC)
- But I found another template where this transclusion appears to work as intended. I don't know why it works there but not here. Jarble (talk) 20:03, 31 August 2023 (UTC)
- It's the last point at mw:Extension:Labeled Section Transclusion#Limitations: "section tags don't have any effect when used inside a template parameter". The section tags are inside a parameter in {{Campaignbox Congo Crisis}} but not in {{GAList/check/doc}}. PrimeHunter (talk) 20:15, 31 August 2023 (UTC)
- {{Congo Crisis footer}} avoids labeled section transclusion but instead uses Module:Transcluder with
{{#invoke:Transcluder|main|Template:Campaignbox Congo Crisis#CongoCrisis}}
. This does work. PrimeHunter (talk) 20:49, 31 August 2023 (UTC)- @PrimeHunter: Module:Transcluder isn't mentioned in Help:Transclusion or Help:Labeled section transclusion. Do those pages need to be updated? Jarble (talk) 23:48, 31 August 2023 (UTC)
- They should probably mention it. PrimeHunter (talk) 09:44, 2 September 2023 (UTC)
- @PrimeHunter: Module:Transcluder isn't mentioned in Help:Transclusion or Help:Labeled section transclusion. Do those pages need to be updated? Jarble (talk) 23:48, 31 August 2023 (UTC)
- {{Congo Crisis footer}} avoids labeled section transclusion but instead uses Module:Transcluder with
- It's the last point at mw:Extension:Labeled Section Transclusion#Limitations: "section tags don't have any effect when used inside a template parameter". The section tags are inside a parameter in {{Campaignbox Congo Crisis}} but not in {{GAList/check/doc}}. PrimeHunter (talk) 20:15, 31 August 2023 (UTC)
- But I found another template where this transclusion appears to work as intended. I don't know why it works there but not here. Jarble (talk) 20:03, 31 August 2023 (UTC)
What to do about URLs that are correct but can't be accessed by clicking?
Discussion here.
I get an error message when I click on the URL in the ref but if I follow the directions given in the discussion above (directions were first given here), I get to the same place, and copying the URL doesn't change it from what it was before.
If directions can somehow be inserted into the ref, that would require a bot which could look for all uses of the first part of the URL.— Vchimpanzee • talk • contributions • 21:49, 1 September 2023 (UTC)
- Seems probably easier just to update the URLs to ones that work? Elli (talk | contribs) 22:20, 1 September 2023 (UTC)
- No, to get to the URL you have to follow a very specific process, and only then do you see the exact same URL at the top of the screen. Merely clicking on the URL gets you an error message.— Vchimpanzee • talk • contributions • 23:04, 1 September 2023 (UTC)
- Can you give an example of one of those URLs? Elli (talk | contribs) 23:30, 1 September 2023 (UTC)
- No, to get to the URL you have to follow a very specific process, and only then do you see the exact same URL at the top of the screen. Merely clicking on the URL gets you an error message.— Vchimpanzee • talk • contributions • 23:04, 1 September 2023 (UTC)
- When I click on the link provided by LuckyLouie, which is like the one you provided except with https, it works for me. Are you having difficulty accessing it directly? isaacl (talk) 00:07, 2 September 2023 (UTC)
- Access Denied
- You don't have permission to access "http://licensing.fcc.gov/cgi-bin/ws.exe/prod/cdbs/pubacc/prod/call_hist.pl?" on this server.
- Reference #18.88386368.1693668113.21427d5f
- — Vchimpanzee • talk • contributions • 15:23, 2 September 2023 (UTC)
- Wait, I see the problem now. It's not https. I didn't notice that before,— Vchimpanzee • talk • contributions • 15:24, 2 September 2023 (UTC)
- — Vchimpanzee • talk • contributions • 15:23, 2 September 2023 (UTC)
Nocat parameter
Up front, I hope this doesn't come off as crass. When I see a new entry at WP:Deceased Wikipedians, since full protection is SOP and I can edit fully protected pages I try to help straighten out any loose ends. Today I saw the news about Nosebagbear, and as per the guidelines (and yes, I'm the one who added this bit) I added the nocat=yes
parameter to a couple userboxes in these edits, but it doesn't seem to have removed the account from the relevant categories. The only other solution I know of is to subst those userboxes and manually remove the category parameter, which seems way too complicated to be the only alternative. Is there an issue with the userboxes, the parameter, or something taking up space between the chair and the screen? The Blade of the Northern Lights (話して下さい) 02:58, 2 September 2023 (UTC)
- It looks like the only userbox that wasn't working was {{User VRT}}, which I've now fixed. There are still a bunch of categories added manually or by userboxes that you didn't add nocat to. * Pppery * it has begun... 03:03, 2 September 2023 (UTC)
- Thanks. When I saw adding that parameter didn't have the desired effect, I thought it best to stop messing around with anything else until it was clear what was going on. I'm happy to take care of the rest. The Blade of the Northern Lights (話して下さい) 03:08, 2 September 2023 (UTC)
- Anyway, I added
|nocat=yes
to two more templates, and fixed {{User global renamer}}, which had the same problem. I've left them in Category:Wikipedia AfC reviewers, which you may want to remove in the same way. * Pppery * it has begun... 03:10, 2 September 2023 (UTC)- I think I've gotten all the rest (I'm not worried about the inclusionist Wikipedians one). Thank you. And as long as I'm here, I raised a glass to his memory and encourage anyone else here to do the same. The Blade of the Northern Lights (話して下さい) 03:13, 2 September 2023 (UTC)
- You can use {{Suppress categories}} if a template doesn't support
nocat
. PrimeHunter (talk) 09:50, 2 September 2023 (UTC)- Good to know. Noted for the future. The Blade of the Northern Lights (話して下さい) 17:23, 2 September 2023 (UTC)
- You can use {{Suppress categories}} if a template doesn't support
- I think I've gotten all the rest (I'm not worried about the inclusionist Wikipedians one). Thank you. And as long as I'm here, I raised a glass to his memory and encourage anyone else here to do the same. The Blade of the Northern Lights (話して下さい) 03:13, 2 September 2023 (UTC)
- Anyway, I added
- Thanks. When I saw adding that parameter didn't have the desired effect, I thought it best to stop messing around with anything else until it was clear what was going on. I'm happy to take care of the rest. The Blade of the Northern Lights (話して下さい) 03:08, 2 September 2023 (UTC)
amazon kindle access
to keep this short, i am currently writing this from an amazon kindle (reading device) and attempting to access Wikipedia from it is slow, buggy,and prone to crashes, it would be awesome if this could be dealt with as soon as possible — Preceding unsigned comment added by 86.10.35.182 (talk) 21:35, 25 August 2023 (UTC)
- You'll have to get Amazon to fix that. Doug Weller talk 16:59, 28 August 2023 (UTC)
- 86.10.35.182, I am also using an Amazon Kindle and have experienced no major problems in the several years I have been using it. — Qwerfjkltalk 21:17, 2 September 2023 (UTC)
Deprecating minor edits?
There's a growing feeling (not sure I could actually call it a consensus yet) at WP:VPP#Proposal to remove "rearrangement of text" from definition of minor edit. that we should deprecate the whole minor edit feature. Let's assume for the sake of argument that we were going to do that. What would it look like from the technical point of view?
There's a rev_minor_edit field in the database. We certainly wouldn't remove that field; enwiki would just stop using it. There's a "This is a minor edit" checkbox on the edit form. Would would it take to make those go away? I'm assuming that could be done by an interface admin, at least for the web-based edit surfaces. And I assume the mobile apps would need to be modified at the source code level to delete those?
The various APIs all support setting that bit on edits. So I assume we'd need some kind of per-wiki configuration flag to say if rev_minor_edit is supported, and then figure out what to do if you try to set it on a project that doesn't support it. The two obvious choices are "silently ignore it" and "return an API error". I'm not sure which of those would be worse.
Special:Contributions and page histories (and maybe other places?) display an "m" on minor edits. I'm again assuming that's something that can be deleted by just editing the interface? I assume there's various search and filter forms which allow you to only look for minor edits? And of course, gazillions of tools and libraries would need to be modified to be aware of this. What else? I'm sure I've only scratched the surface. RoySmith (talk) 14:10, 29 August 2023 (UTC)
- In theory, there's a simple config option:
$wgGroupPermissions['user']['minoredit'] = false;
would deny the right to mark edits as minor to logged-in users, just like it is currently denied to logged-out users. You'd still have to test various editing interfaces to make sure that they support this option – they probably do if they support logged-out editing, but someone might have assumed that logged-in editors always get this option instead of checking the user rights. Matma Rex talk 15:03, 29 August 2023 (UTC)- Would probably want to add it back (if it's not in the default set) for bots.
- I wonder if rollback would still be marked as minor if that was set like that. Izno (talk) 15:46, 29 August 2023 (UTC)
- Looks like rollback checks for the
minoredit
user right. So if that right were removed from users and given to bots, only bot rollbacks would be marked as minor. Anomie⚔ 23:39, 2 September 2023 (UTC)
- Looks like rollback checks for the
- I'm sorry, you guys want to do what?! InfiniteNexus (talk) 16:01, 29 August 2023 (UTC)
- @RoySmith: The m is displayed on contribs, diffs, histories and watchlist. It may be hidden for everybody with the CSS rule placed in MediaWiki:Common.css. It's not a deletion, but a suppression; and a user may still override that with personal CSS. --Redrose64 🌹 (talk) 17:26, 29 August 2023 (UTC)
abbr.minoredit { display: none; }
- We probably shouldn't do that, if nothing else to avoid confusion for all the old revisions in the database that are marked as minor. Removing the ability to flag new edits as minor (as Matma Rex described above) should be sufficient. Anomie⚔ 23:39, 2 September 2023 (UTC)
- Why is there any need for this? Marking edits as minor is a great system. Edward-Woodrow :) [talk] 20:35, 29 August 2023 (UTC)
- Alright, you have my curiosity - Why is it a great system? - jc37 20:57, 29 August 2023 (UTC)
- Might I suggest going over to the VPP thread to discuss if this is a good idea. This thread is for discussing how it might be implemented. RoySmith (talk) 21:07, 29 August 2023 (UTC)
- My apologies. I did not intend on stepping on any toes. I just noticed an assertion, and was curious about their perspective. Thank you for the link, I'll go check it out : ) - jc37 08:39, 30 August 2023 (UTC)
- Might I suggest going over to the VPP thread to discuss if this is a good idea. This thread is for discussing how it might be implemented. RoySmith (talk) 21:07, 29 August 2023 (UTC)
- Alright, you have my curiosity - Why is it a great system? - jc37 20:57, 29 August 2023 (UTC)
- "And I assume the mobile apps would need to be modified at the source code level to delete those?" I think the mobile apps don't have the minor edit option. -- Random person no 362478479 (talk) 00:24, 1 September 2023 (UTC)
Username or IP removed
The vandal edit has neither an edit summary nor an editor, but you can still see the vandal's username in the (automatically generated) edit summary of the revert. --Hob Gadling (talk) 05:14, 3 September 2023 (UTC)
- I fixed that. It is an easily made mistake to miss one of the edits that needs visibility adjusted. Johnuniq (talk) 05:29, 3 September 2023 (UTC)
hyphen-minus adjacent to opening curly brace problem?
What is is about -{
in a template that causes MediaWiki to return the wikitext instead of the rendered template? Examples:
{{cite book |title=sommat-{and sommat else} and more}}
– does not work- {{cite book |title=sommat-{and sommat else} and more}}
{{cite book |title=sommat-{and sommat else} and more}}
– works- sommat-{and sommat else} and more.
{{lang|es|sommat-{and sommat else} and more}}
– does not work- {{lang|es|sommat-{and sommat else} and more}}
{{lang|es|sommat-{and sommat else} and more}}
– works- sommat-{and sommat else} and more
Just playing around I discovered that this works:
{{cite book |title=sommat-{and sommat else}- and more}}
– does work- sommat-{and sommat else}- and more.
That suggests that -{...}-
means something to MediaWiki. What does MediaWiki think that markup means?
In all of these examples the dash character is U+002D hyphen-minus. I discovered this issue in this reference where the editor got 'round the problem with <nowiki>...</nowiki>
tags.
—Trappist the monk (talk) 16:47, 3 September 2023 (UTC)
- They're markers for automatic language conversion (such as between traditional and simplified Chinese). See mw:Writing systems/Syntax. I expect when the parser sees the opening hyphen-brace without the closing pair, it just gives up (which isn't unreasonable). —Cryptic 17:09, 3 September 2023 (UTC)
- Thanks. But should that functionality be enabled at en.wiki? I can see it being useful at sr.wiki and sh.wiki where, apparently, the languages have both Cyrillic and Latin forms – the markup is mentioned at Serbian Wikipedia. That does not hold for en.wiki for which there is only one alphabet so it seems inappropriate to enable that markup here. Am I missing something?
- —Trappist the monk (talk) 17:44, 3 September 2023 (UTC)
-{{
with double brace seems to work.-{
with neither a following{
nor matching}-
does occur in the wild, especially in drug articles, and seems to be a known problem which editors have worked around in various ways. For example, Pesampator uses-{{(}}
and AZD-1940 uses nowiki. Certes (talk) 18:27, 3 September 2023 (UTC)- @SSastry (WMF), I think we have the right answer for why this is occurring but could use some thought on whether it should here. Izno (talk) 19:19, 3 September 2023 (UTC)
- Are there any cases where
-{whatever}-
actually needs to be processed in some way other than producing literal text with hyphens and braces (as in some IUPAC names like RAD140: click [show] in infobox)? Certes (talk) 19:48, 3 September 2023 (UTC)
- Are there any cases where
Mobile landing page logo issue?
On the iOS (Safari and Firefox) mobile website version of the landing page of wikipedia.org, it does not display the Wikipedia logo but looks like this in portrait mode, showing a cropped version of the WMF logo. However, rotating to landscape mode displays the correct logo. I'm not sure if this is related but it happens on both an iPhone 15 and SE running iOS 16.6 as well as an iPhone running the 17.0 beta. Apologizes if this is already known or being addressed but I've had a couple of people I know reach out to me about it. - Aoidh (talk) 22:33, 3 September 2023 (UTC)
- I can reproduce this on Firefox for Android (and on desktop, if I make the window very narrow). LittlePuppers (talk) 22:44, 3 September 2023 (UTC)
Dates in cite templates
Greetings, keepers of the eternal flame!
I recently came across a Javascript-type green message in the refs of this article referring to Category:CS1 maint: date format, which I hope I fixed.
But is it not the case that 'the software' (treading carefully around things I know less than nothing about) already copes with 'incorrectly-formatted' page numbers eg |pp=
containing eg hyphens rather than n-dashes? If this is so, is it not possible to silently correct "anything other than n-dash" in |date=
in the same manner?
Best wishes to all on this sunny Sunday afternoon, MinorProphet (talk) 16:26, 3 September 2023 (UTC)
- The message CS1 maint: date format (link) is not javascript but is emitted by Module:Citation/CS1 when it renders dates that use hyphen-minus (-) when they should be using an en dash (–). You enabled that message display in your common.css.
- MOS:DATES, particularly MOS:DATERANGE, does not allow hyphen separators in any date format except the year initial numeric YYYY-MM-DD format. cs1|2 complies with MOS:DATES. When cs1|2 renders a date that has a hyphen separator, the date is rendered with an en dash. Because the date was 'modified', cs1|2 emits a maintenance message and a category link so that editors can fix the date to bring it into compliance with MOS:DATERANGE.
- Because page numbers may legitimately use hyphens (page 21-5 for the fifth page in section 21, for example), cs1|2 accepts hyphens in
|page=
as hyphenated page numbers and attempts to get it right when hyphens appear in|pages=
. Examples:{{cite book |title=Title |page=1-2}}
- Title. p. 1-2. – looks like a hyphenated page number but could be a page range misusing the hyphen separator; cs1|2 can't know
{{cite book |title=Title |pages=1-2}}
- Title. pp. 1–2. – looks like a page range but because of the hyphen, could be a hyphenated page number; cs1|2 can't know
{{cite book |title=Title |pages=1-2-1-4}}
- Title. pp. 1-2–1-4. – a hyphenated range of hyphenated page numbers?
- Because of the complexity of pagination, cs1|2 doesn't emit maintenance messages for
|page=
and|pages=
- I'm pretty sure that Editor GoingBatty has a bot that periodically cleans up articles listed in Category:CS1 maint: date format.
- —Trappist the monk (talk) 18:11, 3 September 2023 (UTC)
- @Trappist the monk: My bot cleans up articles in Category:CS1 errors: dates, but let's see what happens by running it against Category:CS1 maint: date format. GoingBatty (talk) 18:23, 3 September 2023 (UTC)
- If it doesn't, I have an awb script that does.
- —Trappist the monk (talk) 19:07, 3 September 2023 (UTC)
- @Trappist the monk: I manually fixed the templates that aren't DYK nominations and the Wikipedia pages that aren't Articles for Deletion. I ran a streamlined version of the bot, and the category went from 803 pages to 45 pages). GoingBatty (talk) 21:38, 3 September 2023 (UTC)
- @Trappist the monk: My bot cleans up articles in Category:CS1 errors: dates, but let's see what happens by running it against Category:CS1 maint: date format. GoingBatty (talk) 18:23, 3 September 2023 (UTC)
- Many thanks for the low-down explanation, much appreciated since I have hundreds of pages like 7-2-43 to deal with in sfns. Looks like something worked, anyway. MinorProphet (talk) 22:15, 3 September 2023 (UTC)
- @MinorProphet: All the articles have now been fixed. The category now just has a few old DYK nominations and Articles for Deletion discussions. GoingBatty (talk) 23:34, 3 September 2023 (UTC)
Notifications hard to see on mobile
Hello fellow editors!
I noticed a few days ago that the notification button looks different.
Before it had a red background, making it pop out and be the first thing I notice. Now it's white text on a light grey background (Literally like this).
I don't have any visual impairments, and I can't see it almost at all. I can't imagine how this accesibility monstrosity feels for visually impaired and people with other such disabilities.
This happens both when I try this on my phone and on my computer (through https://en.m.wikipedia.org) QuickQuokka [talk • contribs] 14:58, 1 September 2023 (UTC)
- There are more people with technical knowledge at WP:VPT, I think you would get better answers there. Ca talk to me! 15:00, 1 September 2023 (UTC)
i ate the button yum yum- it seems that was a glitch. i got the same result on my phone on all 2.5 layouts (but not my pc), but on dark mode. switching to light mode and back fixed it
- whatever that was didn't happen again, but to balance that out, the dark and light mode buttons decided they should both appear in the same time and place, and that the one that didn't work should go over the other cogsan • (give me attention) • (see my deeds) 17:44, 1 September 2023 (UTC)
- @Cog-san:
was the button very tasty? - Hmm... Interesting.
- I tested this hypothesis before on my phone, by switching to light mode, but it still came up like this, even after refreshing.
- Maybe it was a cache issue on my side? QuickQuokka [talk • contribs] 21:27, 1 September 2023 (UTC)
- don't eat the button >:( SWinxy (talk) 01:39, 4 September 2023 (UTC)
- @Cog-san:
- It's not just you. I see the same problem, in Firefox 115.0.2 on desktop Linux, in a new private window. Suffusion of Yellow (talk) 23:07, 1 September 2023 (UTC)
@QuickQuokka: (or anyone else experiencing this problem): Can you put this in your minerva.css and see if it's fixed.
#pt-notifications-alert.mw-echo-unseen-notifications::after {
background-color: #d73333 !important;
}
If this doesn't cause other problems we should add the same to MediaWiki:minerva.css (or MediaWiki:mobile.css?) until the problem is fixed. And before anyone yells at me for using !important
, it's another use of !important
that's causing the problem: See this diff... Suffusion of Yellow (talk) 00:31, 2 September 2023 (UTC)
- @Suffusion of Yellow: Added, now please ping me to see if it works.
- However, this is only a temporary bandaid solution, correct? QuickQuokka [talk • contribs] 02:00, 2 September 2023 (UTC)
- @QuickQuokka: Correct, this is just a quick fix until the devs get around to fixing this properly. Also, see WP:VALIDALT. Creating a second account to ping yourself is definitely not sockpuppetry (I have about a dozen such accounts!) and is quicker than waiting for someone to ping you. Suffusion of Yellow (talk) 03:45, 2 September 2023 (UTC)
- I'm taking bets on whether this is related to #Orange bar of doom seems to be broken (above). EEng 02:12, 2 September 2023 (UTC)
- @EEng: I don't know if it's related, but it did happen to me on a public computer.
- Even though I blanked the talk page, it still gave me the notification, and apparently users can't delete their own talk pages per WP:U1. QuickQuokka [talk • contribs] 02:50, 2 September 2023 (UTC)
Display user gender without Navigation popups
Is there a way to display a user's gender terms ("Gender used in messages" on Special:Preferences) without enabling Wikipedia:Tools/Navigation popups? I want to use the appropriate pronoun to refer to a user, but I don't like Navigation Popups in general, and turning it on/off just for the purpose of getting someone's gender seems overkill. Mitch Ames (talk) 00:47, 2 September 2023 (UTC)
- See Template:They and the others linked from its documentation. {{they|Mitch Ames}} → he. They subst cleanly, or can be used in preview mode if you don't want the templates hanging around. —Cryptic 00:55, 2 September 2023 (UTC)
- @Mitch Ames: User:PleaseStand/User info might be useful. It shows arrow, and + symbols for gender. Kindly let me know if that's what you are looking for/how it goes. —usernamekiran (talk) 07:27, 4 September 2023 (UTC)
- That looks like it could be a useful option to add to Special:Preferences#mw-prefsection-gadgets Mitch Ames (talk) 09:13, 4 September 2023 (UTC)
- @Mitch Ames: User:PleaseStand/User info might be useful. It shows arrow, and + symbols for gender. Kindly let me know if that's what you are looking for/how it goes. —usernamekiran (talk) 07:27, 4 September 2023 (UTC)
Can’t thank the bots
I noticed the other day that we can’t ‘thank’ the bots that make our lives as editors easier. It made me wonder how often the bots would appear in the thanks log if that was not the case. (To be clear, I’m not starting a formal proposal here, just a light-hearted comment )
A smart kitten (talk) 17:42, 4 September 2023 (UTC)
- @A smart kitten: I seem to remember there was an actual RfC on meta about this; I'll see if I can find it again. Edward-Woodrow :) [talk] 17:48, 4 September 2023 (UTC)
- That was quick: Courtesy link: meta:Requests for comment/Allow thanking bots Edward-Woodrow :) [talk] 17:50, 4 September 2023 (UTC)
- @Edward-Woodrow: Thanks for the quick reply! Comment duly made. A smart kitten (talk) 18:03, 4 September 2023 (UTC)
- That was quick: Courtesy link: meta:Requests for comment/Allow thanking bots Edward-Woodrow :) [talk] 17:50, 4 September 2023 (UTC)
Search box has retained old search terms
On desktop, when I put the cursor into the Search box, it immediately opens a dropdown, with the name of a band I looked up, several weeks ago. Sometime over the last few days, this has changed, and now offers me the choice of three bands I've looked up in the last while. How do I turn off this autocomplete feature? I can't find anything in Preferences > Search, or Gadgets. Using Chrome, 116.0.5845.141, 64-bit. TIA, BastunĖġáḍβáś₮ŭŃ! 14:25, 4 September 2023 (UTC)
- @Bastun: It's probably remembered by your browser and not by Wikipedia. See https://support.google.com/chrome/answer/2392709 or ask at Wikipedia:Reference desk/Computing. PrimeHunter (talk) 18:55, 4 September 2023 (UTC)
Tech News: 2023-36
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- EditInSequence, a feature that allows users to edit pages faster on Wikisource has been moved to a Beta Feature based on community feedback. To enable it, you can navigate to the beta features tab in Preferences. [44]
- As part of the changes for the Generate Audio for IPA and Audio links that play on click wishlist proposals, the inline audio player mode of Phonos has been deployed to all projects. [45]
- There is a new option for Administrators when they are changing the usergroups for a user, to add the user’s user page to their watchlist. This works both via Special:UserRights and via the API. [46]
- One new wiki has been created:
Problems
- The LoginNotify extension was not sending notifications since January. It has now been fixed, so going forward, you may see notifications for failed login attempts, and successful login attempts from a new device. [48]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 5 September. It will be on non-Wikipedia wikis and some Wikipedias from 6 September. It will be on all wikis from 7 September (calendar).
- Starting on Wednesday, a new set of Wikipedias will get "Add a link" (Eastern Mari Wikipedia, Maori Wikipedia, Minangkabau Wikipedia, Macedonian Wikipedia, Malayalam Wikipedia, Mongolian Wikipedia, Marathi Wikipedia, Western Mari Wikipedia, Malay Wikipedia, Maltese Wikipedia, Mirandese Wikipedia, Erzya Wikipedia, Mazanderani Wikipedia, Nāhuatl Wikipedia, Neapolitan Wikipedia, Low German Wikipedia, Low Saxon Wikipedia, Nepali Wikipedia, Newari Wikipedia, Norwegian Nynorsk Wikipedia, Novial Wikipedia, N'Ko Wikipedia, Nouormand Wikipedia, Northern Sotho Wikipedia, Navajo Wikipedia, Nyanja Wikipedia, Occitan Wikipedia, Livvi-Karelian Wikipedia, Oromo Wikipedia, Oriya Wikipedia, Ossetic Wikipedia, Punjabi Wikipedia, Pangasinan Wikipedia, Pampanga Wikipedia, Papiamento Wikipedia, Picard Wikipedia, Pennsylvania German Wikipedia, Palatine German Wikipedia, Norfuk / Pitkern Wikipedia, Piedmontese Wikipedia, Western Punjabi Wikipedia, Pontic Wikipedia, Pashto Wikipedia). This is part of the progressive deployment of this tool to more Wikipedias. The communities can configure how this feature works locally. [49][50]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:31, 4 September 2023 (UTC)
Template won't transclude
Hello.
I edited 2020 United States House of Representatives elections in New York, and, among many other changes, added a navbox template at the end. Instead of transcluding, the name of the template itself appears, followed by some "invoke navbox" text.
Can someone help out? I have counted double left-brackets and double right-brackets as well as the curly brackets, but all match. HandsomeFella (talk) 13:49, 5 September 2023 (UTC)
- The page is triggering Category:Pages where post-expand include size is exceeded which basically means there are too many template calls on the page — Martin (MSGJ · talk) 14:04, 5 September 2023 (UTC)
- You could perhaps try getting rid of 72 calls of Temlate:Party shading/* and 190 calls of Template:USRaceRating. — xaosflux Talk 14:10, 5 September 2023 (UTC)
- Thanks. I'll fix that. HandsomeFella (talk) 17:50, 5 September 2023 (UTC)
Error on Special:TopicSubscriptions
In the past few weeks, I've been getting the following error message whenever trying to visit Special:TopicSubscriptions (also see screenshot):
Fatal exception of type "Wikimedia\Assert\ParameterTypeException"
I've checked my browser's console, and the following error shows up (it doesn't show on any other wiki page besides Special:TopicSubscriptions):
Failed to load resource: the server responded with a status of 500 ()
This bug doesn't occur on other projects (e.g. Wiktionary), nor does it occur when I use my sock puppet. I therefore suspect that it has something to do with the fact that I'm subscribed to a relatively big number of topics, probably more than 200.
Did anyone else encounter this when trying to visit Special:TopicSubscriptions (in particular, editors who are subscribed to many discussions)? What could cause it? What can I try to do to fix it? Thanks in advance, Guycn2 (talk) 22:07, 5 September 2023 (UTC)
- You should file a report on Phabricator. If you do, it's important to include the random string of hex digits in the error message (starting with "d22f8..." in your picture, but will be different every time), as that allows to developers to determine the exact cause of the error. * Pppery * it has begun... 22:22, 5 September 2023 (UTC)
- Thank you. I actually looked for something similar on Phabricator, and was pretty surprised that no one appears to have reported anything like this. I will be filing a report tomorrow, but if anyone recalls seeing this error message on that specific special page, I'd like to hear about that just to know I'm not alone ;-) Guycn2 (talk) 22:26, 5 September 2023 (UTC)
- The bug has been reported earlier today as T345648. Matma Rex talk 23:07, 5 September 2023 (UTC)
- Thanks for letting me know! I've added a comment there. Guycn2 (talk) 17:09, 6 September 2023 (UTC)
- The bug has been reported earlier today as T345648. Matma Rex talk 23:07, 5 September 2023 (UTC)
- Thank you. I actually looked for something similar on Phabricator, and was pretty surprised that no one appears to have reported anything like this. I will be filing a report tomorrow, but if anyone recalls seeing this error message on that specific special page, I'd like to hear about that just to know I'm not alone ;-) Guycn2 (talk) 22:26, 5 September 2023 (UTC)
Talk page notice tells people they are not signed in, but I am
See this talk page. I'm not sure how the problem should be solved.— Vchimpanzee • talk • contributions • 21:58, 4 September 2023 (UTC)
- @Vchimpanzee: At {{If IP}}(the template used in that talk page) do you see both messages?
- The template uses -show classes, so both the logged out and the logged in messages are there in the page, it's just that either one or the other is hidden(using CSS) if you aren't part of that user group - so technically if you are seeing both messages you could work around this by adding to your common.css the line
.anonymous-show { display: none !important; }
(to mirror what should have been set automatically at MediaWiki:Group-user.css). - That said, it's probably not happening only to you - so I don't think workarounds are the way to go here. – 2804:F14:80D6:E401:8446:A38:963E:E7ED (talk) 03:36, 5 September 2023 (UTC)
- I don't see any messages when I go where you sent me.
- I'm not likely to see the message. So it's not important.— Vchimpanzee • talk • contributions • 16:19, 5 September 2023 (UTC)
- Do you remember if you ever made any personal CSS or Javascript changes to enable seeing messages for anonymous users? I didn't see anything in your common.css or common.js file that seems to affect this, but perhaps you have a different customization file somewhere, or you set up globally-used files on mediawiki.org? isaacl (talk) 16:29, 5 September 2023 (UTC)
- I don't know how to do anything complicated.— Vchimpanzee • talk • contributions • 19:41, 5 September 2023 (UTC)
- @Vchimpanzee: What do you see on this line:
- You are not logged in.You are currently logged in.
- I only see "You are currently logged in", as intended. If you also or only see "You are not logged in" then which device or browser are you using to view this page? If it's a Windows browser then does it make a difference to press Ctrl+F5? PrimeHunter (talk) 20:01, 5 September 2023 (UTC)
- You are not logged in.
- I only see "You are currently logged in", as intended. If you also or only see "You are not logged in" then which device or browser are you using to view this page? If it's a Windows browser then does it make a difference to press Ctrl+F5? PrimeHunter (talk) 20:01, 5 September 2023 (UTC)
- I don't know where F5 is on my keyboard (and I'm wearing my NEW bifocals). It is a Windows computer and I have Edge.— Vchimpanzee • talk • contributions • 21:50, 5 September 2023 (UTC)
- @Vchimpanzee: Keyboards usually have a row at top with F1 to F12 like {{Keyboard}}. If you don't have such a row then I guess you have a weird keyboard with no F5. Try instead to hold ⇧ Shift and click the refresh button like at https://www.whatismybrowser.com/guides/how-to-refresh-page/edge. If you still see "You are not logged in" on the second line of my 20:01 post then what is your skin at Special:Preferences#mw-prefsection-rendering? PrimeHunter (talk) 23:20, 5 September 2023 (UTC)
- My keyboard has bunch of symbols up there and even with my new bifocals the only one I can see clearly enough to recognize is a magnifying glass. It's the ninth key to the right of ESC.
- @Vchimpanzee: Keyboards usually have a row at top with F1 to F12 like {{Keyboard}}. If you don't have such a row then I guess you have a weird keyboard with no F5. Try instead to hold ⇧ Shift and click the refresh button like at https://www.whatismybrowser.com/guides/how-to-refresh-page/edge. If you still see "You are not logged in" on the second line of my 20:01 post then what is your skin at Special:Preferences#mw-prefsection-rendering? PrimeHunter (talk) 23:20, 5 September 2023 (UTC)
- I don't know how to do anything complicated.— Vchimpanzee • talk • contributions • 19:41, 5 September 2023 (UTC)
- Do you remember if you ever made any personal CSS or Javascript changes to enable seeing messages for anonymous users? I didn't see anything in your common.css or common.js file that seems to affect this, but perhaps you have a different customization file somewhere, or you set up globally-used files on mediawiki.org? isaacl (talk) 16:29, 5 September 2023 (UTC)
- Also, nothing changed.— Vchimpanzee • talk • contributions • 23:38, 5 September 2023 (UTC)
- If it's a laptop, you might need to press the Fn key (like a shift key) at the same time, to get the F5 function (in which case "F5" might be written very small on the key - see top of File:Partial keyboard.jpg for example with F7, F8 ). It depends on your specific machine's configuration. Mitch Ames (talk) 23:59, 5 September 2023 (UTC)
- Not a laptop. Anyway, we're trying to solve an unrelated problem, and the original problem is one I don't even care that much about, but we have possible solutions here for that.— Vchimpanzee • talk • contributions • 19:57, 6 September 2023 (UTC)
- If it's a laptop, you might need to press the Fn key (like a shift key) at the same time, to get the F5 function (in which case "F5" might be written very small on the key - see top of File:Partial keyboard.jpg for example with F7, F8 ). It depends on your specific machine's configuration. Mitch Ames (talk) 23:59, 5 September 2023 (UTC)
- Also, nothing changed.— Vchimpanzee • talk • contributions • 23:38, 5 September 2023 (UTC)
I missed one of the questions. I have MonoBook.— Vchimpanzee • talk • contributions • 16:37, 7 September 2023 (UTC)
- I see you have a meta:User:Vchimpanzee/global.css file, but I don't believe anything in it would cause messages for non-logged in users to display. The only other thing I can think of is somehow MediaWiki:Group-user.css never gets loaded for you, but I don't know what might be causing that for your case (it should be loaded for all logged-in users). Have you tried logging out and logging back in again? Maybe there's some server state that's out of synch. isaacl (talk) 17:54, 7 September 2023 (UTC)
Images in link hover-over popups
Per a discussion at Wikipedia:Neutral point of view/Noticeboard#Move request at Jewish religious terrorism:
When one hovers over certain links, a popup shows some initial text and an image. Here are some examples: religious terrorism, religious violence and terrorism. The religious terrorism image is File:Lipoma 04.jpg, which documents a surgical procedure and has nothing to do with the topic except perhaps to suggest dismemberment. The image selection seems to be part of the hovering mechanism, but I haven't been able to figure out where that mechanism gets images. I could only find the image on Commons by asking my browser to copy the image link. The ability to include images in hover-over popups without any review has obvious NPOV issues. How does this mechanism work, who decides which images are appropriate and how can choices be challenged?--agr (talk) 16:48, 7 September 2023 (UTC)
- Most puzzling, especially puzzling as the images for religious violence and terrorism make sense while the one for religious terrorism does not. Horse Eye's Back (talk) 17:49, 7 September 2023 (UTC)
- It seems to be less targeted than that. I came across this while looking at Category:Numeral systems. I thought it was targeting South Asian languages at first but Etruscan numerals and Georgian numerals are also affected. The documentation for popups states that images are sourced through the PageImage Extension, which claims the associated image can be seen in the page information, but all the pages I've checked dont have an image listed there at all. I suspect someone may have hidden it in a common template but I don't know if that's even possible. It's definitely a serious exploit though. krytton (a) 17:59, 7 September 2023 (UTC)
- {{numeral systems}} was another target of the now indeffed vandal. Nthep (talk) 18:01, 7 September 2023 (UTC)
- There was some vandalism to {{terrorism}} which is why you are seeing the lipoma image. The cache should clear soon enough. Nthep (talk) 17:59, 7 September 2023 (UTC)
- The image is chosen by mw:Extension:PageImages#Image choice. A vandalised template in the lead can cause a bad page image. The preview is made by mw:Page Previews which uses caching, so a former page image may be displayed in previews for a while. "Page information" shows the current page image which may be different from one still used in previews. PrimeHunter (talk) 18:56, 7 September 2023 (UTC)
Watchlist bug with wikidata
I feel sure this is a known bug but I couldn't find it on Phabricator. The entry above appears on my watchlist. The problem is that the link to en:Starý most actually points to wikidata:Starý most which does not exist. Similar with the link to en:Starý most (Bratislava) — Martin (MSGJ · talk) 17:16, 6 September 2023 (UTC)
- I can reproduce it by watching Starý most (Bratislava) (watch the redirect, not the target) and enabling "Show Wikidata edits in your watchlist" at Special:Preferences#mw-prefsection-watchlist. This is phab:T186629 from 2018, the first search result on "Language link changed from". The original edit was the local move [51]. It triggered a Wikidata edit [52] which created the watchlist entry with wrong links. The HTML for the links:
<span class="comment">(Language link changed from <a class="external" href="https://www.wikidata.org/wiki/Star%C3%BD_most_(Bratislava)">en:Starý most (Bratislava)</a> to <a class="external" href="https://www.wikidata.org/wiki/Star%C3%BD_most">en:Starý most</a>)</span>
- The same error happens for other watchlist entries about Wikidata edits caused by moves at the English Wikipedia. If a move was at another Wikipedia language then the links go correctly to that wiki.
- For me the watchlist entry at least gives the correct name "Starý most (Bratislava) (Q435423)" for wikidata:Q435423. Your screenshot says "List of crossings of the Danube (Q435423)" which appears to be a separate error. "List of crossings of the Danube" is wikidata:Q911165 which hasn't been edited since June. PrimeHunter (talk) 19:52, 6 September 2023 (UTC)
- Yes, List of crossings of the Danube is correct because I am watching that article and it uses many entities including Starý most (Q435423). T186629 looks like the right bug, well done for finding it. So the only question is why it takes 5 years to fix something apparently so simple. — Martin (MSGJ · talk) 21:24, 6 September 2023 (UTC)
- I have mentioned there that the bug is still present and given steps to reproduce. PrimeHunter (talk) 00:07, 8 September 2023 (UTC)
- Yes, List of crossings of the Danube is correct because I am watching that article and it uses many entities including Starý most (Q435423). T186629 looks like the right bug, well done for finding it. So the only question is why it takes 5 years to fix something apparently so simple. — Martin (MSGJ · talk) 21:24, 6 September 2023 (UTC)
A bug with OpenStreetMap maps in Wikipedia Infoboxes
Hi, in the case that coordinate of a place is entered inside the Infobox of an article, then incorrectly red colored area indicator of that place is not shown in the map of that Infobox. For example, if we place coordinates of National Zoo of Malaysia inside its Infobox, the rendered map would be:
Code | Rendered Infobox |
---|---|
While if we place that coordinates outside of the Infobox (at the top), then the red colored area indicator would appear in the map, correctly. Like this:
Code | Rendered Infobox |
---|---|
You can test this coding scenario in the article National Zoo of Malaysia to clarify this bug. So please debug this problem. Thanks, Hooman Mallahzadeh (talk) 15:53, 8 September 2023 (UTC)
- This does not appear to be a bug. Adding
|mapframe-wikidata=
, as described in the template's documentation, appears to work fine. – Jonesey95 (talk) 17:34, 8 September 2023 (UTC)- @Jonesey95 With the parameter
|mapframe-wikidata = yes
the Infobox area indicators appears, but we are talking about default scenario. If the bottom code by default does show the area indicators, then the top code by default should show them too, or the inverse default scenario should be applied. - I think in 99% of cases these red line area indicators are necessary, so the default value of mapframe-wikidata should be
|mapframe-wikidata = yes
, but the user could change this parameter tono
for 1% of cases. Hooman Mallahzadeh (talk) 03:31, 9 September 2023 (UTC)- That sounds like a good discussion to have at the relevant infobox talk page, or at Module talk:Mapframe. Meanwhile, please use the sandbox for testing instead of making 30 edits to a live template with over 1,000 transclusions. – Jonesey95 (talk) 05:05, 9 September 2023 (UTC)
- @Jonesey95 Setting default value for
|mapframe-wikidata
requires modifying module codes. I requested that here: Default value for mapframe-wikidata parameter Hooman Mallahzadeh (talk) 05:06, 9 September 2023 (UTC)
- @Jonesey95 With the parameter
File bug with authors who have redlinks
Hello!
I recently encountered a bug with files whose authors' link leads to a non-existant page (redlink).
- Steps to replicate the issue
- Click on the thumbnail of the first image on the right
- Click on either of the links on the author information (next to the icon)
- What happens?
- Being led to https://en.wikipedia.org//commons.wikimedia.org/w/index.php?title=User:Nonexistant_user&redlink=1 or https://en.wikipedia.org//commons.wikimedia.org/w/index.php?title=User:Other_redlink&redlink=1, which are both invalid links.
- What should have happened instead?
- Being led to https://commons.wikimedia.org/w/index.php?title=User:Nonexistant_user&redlink=1 or https://commons.wikimedia.org/w/index.php?title=User:Other_redlink&redlink=1, which are both valid links
This doesn't happen with bluelinks, such as the one on the second example image --QuickQuokka [talk • contribs] 17:52, 9 September 2023 (UTC)
- Comment: Added title cus i forgor 💀 QuickQuokka [talk • contribs] 17:54, 9 September 2023 (UTC)
- Note: I added the Phabricator ticket. I have no idea which tags to add. QuickQuokka [talk • contribs] 18:09, 9 September 2023 (UTC)
- @QuickQuokka: The image is hosted at Commons, so it's not an English Wikipedia problem. The templates involved are c:Template:U and c:Template:Information; so have you asked at their talk pages, or at c:COM:VPT? --Redrose64 🌹 (talk) 18:10, 9 September 2023 (UTC)
- This seems to work for me? It leads to https://commons.wikimedia.org/w/index.php?title=Other_redlink&action=edit&redlink=1, which I think is what redlinks usually do. LittlePuppers (talk) 18:12, 9 September 2023 (UTC)
- Hmm... Strange. The video I included demonstrates this bug. QuickQuokka [talk • contribs] 18:37, 9 September 2023 (UTC)
- Courtesy ping: LittlePuppers QuickQuokka [talk • contribs] 18:37, 9 September 2023 (UTC)
- Hmm, switching to vector-2022 doesn't make it reproduce either, trying a few things. LittlePuppers (talk) 18:41, 9 September 2023 (UTC)
- Also doesn't reproduce in safe mode. LittlePuppers (talk) 18:42, 9 September 2023 (UTC)
- Looks like this is a bug with the way the links show in MediaViewer; they seem to work just fine if you click on it in the standard view. — xaosflux Talk 18:56, 9 September 2023 (UTC)
- @QuickQuokka can you try turning off all your scripts in Special:PrefixIndex/User:QuickQuokka/ and meta:Special:PrefixIndex/User:QuickQuokka/ and try again? — xaosflux Talk 19:01, 9 September 2023 (UTC)
- @Xaosflux: Miraculously, yes! It did fix it. Now we have to narrow it down. QuickQuokka [talk • contribs] 19:36, 9 September 2023 (UTC)
- I have narrowed it down to User:Awesome Aasim/noeditredlinks.js. QuickQuokka [talk • contribs] 19:47, 9 September 2023 (UTC)
- I proposed a fix at User talk:Awesome Aasim/noeditredlinks.js. Matma Rex talk 22:25, 9 September 2023 (UTC)
- I have narrowed it down to User:Awesome Aasim/noeditredlinks.js. QuickQuokka [talk • contribs] 19:47, 9 September 2023 (UTC)
- @Xaosflux: Miraculously, yes! It did fix it. Now we have to narrow it down. QuickQuokka [talk • contribs] 19:36, 9 September 2023 (UTC)
- QuickQuokka I've also uploaded a video and can't see what's causing the difference. LittlePuppers (talk) 18:58, 9 September 2023 (UTC)
- @QuickQuokka can you try turning off all your scripts in Special:PrefixIndex/User:QuickQuokka/ and meta:Special:PrefixIndex/User:QuickQuokka/ and try again? — xaosflux Talk 19:01, 9 September 2023 (UTC)
- Looks like this is a bug with the way the links show in MediaViewer; they seem to work just fine if you click on it in the standard view. — xaosflux Talk 18:56, 9 September 2023 (UTC)
- Also doesn't reproduce in safe mode. LittlePuppers (talk) 18:42, 9 September 2023 (UTC)
- Hmm, switching to vector-2022 doesn't make it reproduce either, trying a few things. LittlePuppers (talk) 18:41, 9 September 2023 (UTC)
Big pencils
Happy Thursday! Some of these pencil icons are pretty big now! On the Refdesks, the "edit" icon for the date sections seem like they're scaled 2x the individual questions. Meanwhile I had a look at a mainspace article and the icons to edit lvl3s are larger than the ones to edit lvl2? Then lvl4s and lvl5s are back down to normal size (see History of China for an example lvl5 subheadings in the wild). I don't think I have anything turned on that would affect this. Minerva, Firefox, Android, if any of that matters. Just some brief feedback. Folly Mox (talk) 07:50, 7 September 2023 (UTC)
- Hmm I do note that I'm now unable to edit AfDs by tapping the pencil icon from the daily transclusion log. It just recollapses the AfD entry, so now I have to go to the article, open the AfD notice, then click through to the individual discussion before I can edit (unless I'm using ReplyTool, which is not always possible, for example after a relist). Pretty sure this behaviour isn't intended, and I'm pretty sure it started the same time the pencils became engorged. Folly Mox (talk) 18:53, 10 September 2023 (UTC)
The WMF may be planning a performance budget for default gadgets
Some say I shouldn't worry and there's no need to inform the community at this point. But my belief is that the community can provide valuable suggestions, alternatives and ideas.
“ | Currently anyone with the correct rights can edit MediaWiki:Gadgets-definition to turn gadgets on for anonymous users. Left unchecked this has led to some performance problems and potential SEO (related to slow loading) on many of our smaller sites leading to phab:T340705. We should be doing more to guide site admins on when they are introducing performance/SEO problems to the site. In MediaWiki we've been investing a lot of effort in limiting the amount of CSS and JS we ship to our end users, but any improvements here are meaningless if the same is not happening within gadgets. I think we should enforce a performance budget for all gadgets that have been marked as "default". |
” |
— Jdlrobson, Architecture: We should track size of default gadgets loaded on site and present this to users |
If you have thoughts on this, please go to phab:T345960 to add your suggestions/ideas/concerns/praise. — Alexis Jazz (talk or ping me) 21:28, 10 September 2023 (UTC)
- The ticket does point out that
enwiki has less than a 1% increase when community gadget/site scripts are shipped
. I hope that nothing we run here is covered, but perhaps we can ensure that message gets through and we at least get notification of any breakage which may be imposed on us. Fortunately, our HTML has very little of the advertising which would hit response times. Although I don't share the poster's concern with SEO, if we must regard other sources of information as rivals rather than partners then the lack of ads should also help us to rank ahead of them. Certes (talk) 22:53, 10 September 2023 (UTC)
Wikipedia launch dates
List of Wikipedias#Wikipedia editions lists active Wikipedias with their launch dates. A discussion here asks whether there is a way to get an authorative list of such dates. Is the date of launch for each project available somewhere? Johnuniq (talk) 04:10, 11 September 2023 (UTC)
Template:Advert not displaying in Firefox
There appears to be an issue with Template:Advert not displaying in Firefox (my version is 117.0). The page does not load and only displays a white blank page. This also means any pages with the template do not display the template while the rest of the page does display. Osarius 09:01, 8 September 2023 (UTC)
- Not experiencing this on Firefox 117.0 on macOS. Could it be an extension, maybe an adblock cosmetic filter that filtered it as a likely advert? DFlhb (talk) 09:16, 8 September 2023 (UTC)
- Not experiencing this either. I have bunch of extensions enabled among which includes adblockers with bunch of filters enabled (none are cosmetic) and trackers blockers, and Firefox built-in Enhanced Tracking Protection enabled in Custom mode. If you haven't done so, try launching Firefox in Safe mode and visit the Template:Advert and see if it's displaying. — Paper9oll (🔔 • 📝) 09:59, 8 September 2023 (UTC)
- I see the template as normal on Firefox 117.0. However, I've whitelisted Wikipedia in my ad blockers. I expect one of your extensions thinks that a page called Advert might be an advert. Certes (talk) 11:14, 8 September 2023 (UTC)
- Yep, you're all correct. Turns out to be an adblocker extension. My bad Osarius 10:34, 11 September 2023 (UTC)
- I see the template as normal on Firefox 117.0. However, I've whitelisted Wikipedia in my ad blockers. I expect one of your extensions thinks that a page called Advert might be an advert. Certes (talk) 11:14, 8 September 2023 (UTC)
- Not experiencing this either. I have bunch of extensions enabled among which includes adblockers with bunch of filters enabled (none are cosmetic) and trackers blockers, and Firefox built-in Enhanced Tracking Protection enabled in Custom mode. If you haven't done so, try launching Firefox in Safe mode and visit the Template:Advert and see if it's displaying. — Paper9oll (🔔 • 📝) 09:59, 8 September 2023 (UTC)
Special character causing unresolved issue at WP:FA
Could someone have a look at Wikipedia:Featured_articles/mismatches#In_Category:Featured_articles_but_not_on_Wikipedia:Featured_articles relative to this old attempt at a fix, which did not work? Thanks! SandyGeorgia (Talk) 14:46, 11 September 2023 (UTC)
- So the bug is that the article Β-Hydroxy β-methylbutyric acid should not appear on the report at Wikipedia:Featured_articles/mismatches? If so, sounds like a bug in GreenC bot. Would likely need GreenC to take a look, or have the source code published somewhere. –Novem Linguae (talk) 15:37, 11 September 2023 (UTC)
- It's partially published on toolforge (see User:GreenC bot/Job 15), but parts aren't world-readable so I can't test. (Also, the last time I used awk for more than a few minutes at a time was before unicode existed.)I suspect the problem is the -b flag in fambot.awk; it looks to be what's preventing the "β-Hydroxy β-methylbutyric acid" in WP:Featured articles from being properly upcased to "Β-Hydroxy β-methylbutyric acid" as fetched from the category:—Cryptic 15:51, 11 September 2023 (UTC)
cryptic@tools-sgebastion-10:0~$ cat ~cryptic/betas Β-Hydroxy β-methylbutyric acid β-Hydroxy β-methylbutyric acid cryptic@tools-sgebastion-10:0~$ file ~cryptic/betas /home/cryptic/betas: UTF-8 Unicode text, with CRLF line terminators cryptic@tools-sgebastion-10:0~$ gawk -b '{print toupper(substr($0,1,1)) substr($0,2)}' ~cryptic/betas Β-Hydroxy β-methylbutyric acid β-Hydroxy β-methylbutyric acid cryptic@tools-sgebastion-10:0~$ gawk '{print toupper(substr($0,1,1)) substr($0,2)}' ~cryptic/betas Β-Hydroxy β-methylbutyric acid Β-Hydroxy β-methylbutyric acid
- It's partially published on toolforge (see User:GreenC bot/Job 15), but parts aren't world-readable so I can't test. (Also, the last time I used awk for more than a few minutes at a time was before unicode existed.)I suspect the problem is the -b flag in fambot.awk; it looks to be what's preventing the "β-Hydroxy β-methylbutyric acid" in WP:Featured articles from being properly upcased to "Β-Hydroxy β-methylbutyric acid" as fetched from the category:
- Hmmm that's weird as I had it working with a static override in the bot code for this particular name. Something in the past few days changed somewhere, it wasn't my code. The -b is interesting, I could try removing it, it might break other things. This has used up a lot of time. I keep trying. -- GreenC 16:09, 11 September 2023 (UTC)
User:SandyGeorgia: This is the problem. Recall we added this workaround so the bot sees it as B and not β since the Category page returns it as B we want WP:Featured article to also return it as B. I'm hesitant to try Cryptic's suggestion of removing the -b switch because it might break other things, but, I can try that if you prefer, the worse that will happen is the report has false positives and we add the -b back. -- GreenC 18:34, 11 September 2023 (UTC)
- Over my head; trust all of you to do whatever you think best :) SandyGeorgia (Talk) 19:19, 11 September 2023 (UTC)
- Piping the wikilink looks like a good workaround here. I've done so in this diff. –Novem Linguae (talk) 19:26, 11 September 2023 (UTC)
Updates on Vector 2022, Zebra, dark mode, and more
Hi everyone,
First of all, many thanks for your involvement in discussions about the desktop interface and the Vector 2022 skin. Below, we give you an update on Vector 2022 and Zebra, as well as our next project, which includes introducing dark mode, and customizations on mobile and desktop for both logged-in and logged-out. Let's do this!
Last few months: Zebra, preference persistence, annual plan, and more
During our conversations about Vector 2022, we mentioned that we see the skin as an improvement in itself, but also, as a foundation on top of which we can continue to make improvements. We also discussed ideas for changing our default interfaces on desktop and mobile browsers.
Over the last couple of months, we have continued working on skins through bug-fixing, performing an A/B test on Zebra (read the new update with results from the test!), and studying our previous user testing on font size. We have also taken a close look at the latest Community Wishlist Survey's top #1 proposal, dark mode, as well as other accessibility-related requests from communities. Those of you who have read the annual plan or took part in the consultations of its draft, might have also noticed this related objective (WE2.1). If you watch our team even more closely, you may have read our May update where we captured some of the initiatives mentioned above.
In addition to that, we have worked on building out the capability for logged-out users to customize certain portions of the interface. First of these were introduced as a result of the conversations we had together around customizing the width of content in Vector 2022. We are glad your community encouraged us to build a way for readers to set these options and look forward to using it for changes that improve accessibility!
Next project: Improved typography and dark mode
Now, we are ready to work on a next project. Our focus will be on making the site more accessible while reading and easier to customize. We will work on:
- Providing more options for font size and typography (currently, these are only available on mobile) and improving our default typography
- Building out a dark mode
Both of these will be available on desktop and mobile, and customizable for all logged-out and logged-in users.
We have published our initial thoughts on this project page, as well as some of our initial research and review of existing literature for the project. We welcome you to read over our thinking and share your opinions below. We are currently defining what success means for this project. Sketching out summaries of the research we’ve done so far that made us realize that accessibility should be a priority for this work.
We are also building a tool that will allow editors to experiment with different options around font size and typography. The goal here would be to identify what needs different communities have for various customizations and make it easier to discuss ideas for the changes together. We hope to have this tool ready to share with you all within the next couple of weeks.
Thank you and we look forward to hearing your thoughts! OVasileva (WMF), SGrabarczuk (WMF) (talk) 02:23, 12 September 2023 (UTC)
- Thanks for the update. It looks like Wikipedia:Vector 2022 could use some updates. It doesn't show that anything has happened since January 2023.
- Also, is the team still processing bug reports? Things like T325219, an easy fix that would eliminate some "oops" whitespace at the top of every single page, sitting idle since February do not inspire a lot of confidence. Other feature requests sit idle, like T333590, asking for notification icons to be in the sticky header, and T329673, asking for the sticky header to appear in all pages and page views (e.g. diffs and history). I've had to work around these basic problems since December using personal CSS. Editors should not be expected to have to do this with the default skin. – Jonesey95 (talk) 03:12, 12 September 2023 (UTC)
- I don't process Wikimedia bug reports, yet for T333590, all I see is a personal assertion of editor behavior that is not backed up with data. As a neutral observer, this bug is no more important than any other random feature request. If there is evidence that most editors expect certain behavior, I suggest including the data for that so it can be properly evaluated. Without that, it sounds like a personal wish list item. Orange Suede Sofa (talk) 07:38, 12 September 2023 (UTC)
- Is there any information on how the tested groups were selected? Aaron Liu (talk) 13:53, 12 September 2023 (UTC)
- Based on the user's local "user ID", where odd numbers are one group, and even numbers are the other. You may preview your ID here. More information is in comments to the Phabricator task T335379; there's also a detailed report. It's very technical, though – a layperson like me doesn't understand most of that code and information ;) SGrabarczuk (WMF) (talk) 14:04, 12 September 2023 (UTC)
- Dark mode? For me? Thank you so much! 199.208.172.35 (talk) 15:35, 12 September 2023 (UTC)
Noincludes on article hatnote
Can anyone explain why there are noincludes on the "For ... " hatnotes at the top of Operation Gideon (2020) (permadiff)? I've not seen that before on article dab pages, and don't understand why they are needed here. (Also unclear why the dab page Operation Gideon (disambiguation) isn't just used, but that's another matter.) Thx, SandyGeorgia (Talk) 14:46, 11 September 2023 (UTC)
- I think it was unintentional…
<noinclude>
tags were first added with a bot notice: [53]. Then another user, probably accidentally, moved a hatnote inside these tags: [54]. The bot notice was later removed: [55] but the tags were not. (They could also be used legitimately for article excerpts, but that doesn't seem to be the case here.) Matma Rex talk 15:05, 11 September 2023 (UTC)- That article has been contentious, so I'm a bit reluctant to fix this myself without ample feedback. Does anyone else see any reason for the noincludes? SandyGeorgia (Talk) 16:52, 11 September 2023 (UTC)
- Article pretty much has no transclusions (in other words, nothing "includes" it), so it should be safe to remove the noinclude tags. I've done so. If anyone more tech saavy than me wants to explain why Talk:Operation Gideon (2020) shows up in the list of transclusions despite not transcluding the article, feel free :) –Novem Linguae (talk) 17:57, 11 September 2023 (UTC)
- Many talk pages appear to transclude their corresponding article. Some templates in the talk banners, such as {{Talk header}}, will be referencing the page in a way that causes a transclusion to be recorded. For example it might run getContent() on it in a Lua module to determine what sort of page it is (article, redirect, dab...). Certes (talk) 18:09, 11 September 2023 (UTC)
- Thanks all; I'll wait to correct the duplicate hatnotes, then, until we get through a Requested move that is now being discussed. SandyGeorgia (Talk) 19:18, 11 September 2023 (UTC)
- When an article transcludes itself, 99+% of the time it uses {{cite xxx}} templates (Trappist the monk has explained why in the past). The other tiny fraction are genuine errors, this probably isn't such a case. As for talk pages transcluding their articles -
{{talk header}}
and{{WikiProject banner shell}}
both do this, as do all WikiProject banners. --Redrose64 🌹 (talk) 13:30, 12 September 2023 (UTC)- {{Short description}} appears to cause a self-transclusion too, probably due to Module:Pagetype#L-116. (Example: A4042 road: preview with the SD removed, and it disappears from the used template list.) I expect there are others. Certes (talk) 16:04, 12 September 2023 (UTC)
- When an article transcludes itself, 99+% of the time it uses {{cite xxx}} templates (Trappist the monk has explained why in the past). The other tiny fraction are genuine errors, this probably isn't such a case. As for talk pages transcluding their articles -
- Thanks all; I'll wait to correct the duplicate hatnotes, then, until we get through a Requested move that is now being discussed. SandyGeorgia (Talk) 19:18, 11 September 2023 (UTC)
- Many talk pages appear to transclude their corresponding article. Some templates in the talk banners, such as {{Talk header}}, will be referencing the page in a way that causes a transclusion to be recorded. For example it might run getContent() on it in a Lua module to determine what sort of page it is (article, redirect, dab...). Certes (talk) 18:09, 11 September 2023 (UTC)
- Article pretty much has no transclusions (in other words, nothing "includes" it), so it should be safe to remove the noinclude tags. I've done so. If anyone more tech saavy than me wants to explain why Talk:Operation Gideon (2020) shows up in the list of transclusions despite not transcluding the article, feel free :) –Novem Linguae (talk) 17:57, 11 September 2023 (UTC)
- That article has been contentious, so I'm a bit reluctant to fix this myself without ample feedback. Does anyone else see any reason for the noincludes? SandyGeorgia (Talk) 16:52, 11 September 2023 (UTC)
Weird bullet indentation adjacent to left-floated image
If you view Black market in wartime France#Response by authorities, you'll see a left-floated image, with some content flowing around it, including three bullet items. But, the three bullet items
- appear to have very odd indentation;
- not only aren't they indented right a couple of characters, or even flush with text above it, they are
- actually shifted to the left, as if there were a bit of negative left padding. This seems very odd.
What could be going on here? Is there a ticket for this already, or should I write one?
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Mathglot (talk) 08:29, 10 September 2023 (UTC)
- That's just how the CSS works out. The margin is on the
<ul>
, but that extends under the image as the floated image only pushes the text right. There's a template {{flowlist}} that can wrap the list to avoid this display issue. That's also why MOS:IMAGELOC suggests avoiding left-floated images when bulleted lists are nearby. Anomie⚔ 11:53, 10 September 2023 (UTC) - This is a known issue, and has been so for as long as I've been around (14+ years). That said, it's improved a little during that time - when I first started, the bullets actually overlapped the image. --Redrose64 🌹 (talk) 18:54, 10 September 2023 (UTC)
- Thanks, all. Just to be clear, when we say that this is "just how the CSS works out", I assume we mean that "this is just how the Mediawiki CSS works out". Given the CSS box model, I'm assuming that if I tried this in a pure Html file external to Wikipedia using an html unordered list and rendered it in a browser, the indentation would be correct. In other words, this is a Mediawiki bug, not a bug in CSS. I'm not pushing for it to be resolved if it's been outstanding this long, I just want to be clear where the locus of the problem is, in case this comes up again. Mathglot (talk) 19:49, 10 September 2023 (UTC)
- You assume incorrectly. Try it and see. Anomie⚔ 21:27, 10 September 2023 (UTC)
- (edit conflict) No, if you have HTML code like this: you will find that the first few list items (six in my browser) have their bullets overlapping the image, with the left of the letter "L" immediately to the right of the right-hand edge of the image; and the last few list items (four in my browser) are below the image, arranged normally. So you need extra CSS to move those first few bullets to the right. --Redrose64 🌹 (talk) 21:30, 10 September 2023 (UTC)
<!DOCTYPE html> <html> <head> <title>Demo of list alongside left-floated image</title> </head> <body> <img src="https://upload.wikimedia.org/wikipedia/en/thumb/a/a9/Example.jpg/100px-Example.jpg" width="100" height="108" style="float:left;" /> <ul> <li>List item <li>List item <li>List item <li>List item <li>List item <li>List item <li>List item <li>List item <li>List item <li>List item </ul> </body> </html>
- Also six in my browser. Well, I'm stunned. So the problem is with CSS itself, then, as I can't see any way that this is compliant with the box model, unless there's some very fine print somewhere. Wow. So the solution here is to use {{flowlist}}; thanks for that great tip, and all the supporting work to demonstrate this. I'm still getting over my shock. I wonder what else is lurking out there in CSS-land that I don't know about. (Don't tell me; I don't think I really want to know!) Mathglot (talk) 22:39, 10 September 2023 (UTC)
- Floated elements are removed from the layout flow and so the bounding boxes of other elements don't take them into account. However floated elements do push aside the inline content of the other elements. Floats have always been tricky to use as a result—you often have to allocate space for them within other elements—and thus other layout methods like grid or flexbox were invented and are usually preferred nowadays. isaacl (talk) 00:31, 11 September 2023 (UTC)
- @Isaacl:, thanks for this. My skills are mostly a robust 4.1, with some of the bright and shiny 5.0 stuff, but I'm not up on things like grid or flexbox, so at least I know where to look to update my increasingly rusty skills. Much appreciated. Mathglot (talk) 01:04, 11 September 2023 (UTC)
- I think the "fine print" you're missing is that the list item bullets ("markers" in CSS terms) are not a part of the box model. They are drawn outside of the boxes of the list items, regardless of what else appears there. And by the way, there's a workaround in CSS that changes that –
list-style-position: inside
[56] causes the markers to be placed inside the list item's box, and behave more intuitively. The drawback is that you can't adjust where exactly the marker appears using margin and padding any more. Matma Rex talk 14:50, 11 September 2023 (UTC)- On a fine technical point, note the bullet will get pushed over by the floated element in that case because it is inline content (though of course that necessarily means it's put within the box content). isaacl (talk) 17:01, 11 September 2023 (UTC)
- On another fine technical point, the only actual CSS in my example is the declaration
float:left
inside the singlestyle=
attribute of theimg
element. The list is pure HTML, using no CSS at all. I know of no non-CSS method for flosting an object such as an image. --Redrose64 🌹 (talk) 19:35, 11 September 2023 (UTC)<img src=... align="left">
is deprecated Html, but still works using your example, modified; but bullet placement is the same. Mathglot (talk) 21:06, 11 September 2023 (UTC)- The
align=
attribute isn't deprecated, it's obsolete, which is why I didn't mention it. It's still supported by all major browsers though, but this is not guaranteed. --Redrose64 🌹 (talk) 17:01, 12 September 2023 (UTC)
- The
- I don't think Matma Rex has suggested there is more CSS other than the single style attribute in your example. isaacl (talk) 21:12, 11 September 2023 (UTC)
- Floated elements are removed from the layout flow and so the bounding boxes of other elements don't take them into account. However floated elements do push aside the inline content of the other elements. Floats have always been tricky to use as a result—you often have to allocate space for them within other elements—and thus other layout methods like grid or flexbox were invented and are usually preferred nowadays. isaacl (talk) 00:31, 11 September 2023 (UTC)
- Also six in my browser. Well, I'm stunned. So the problem is with CSS itself, then, as I can't see any way that this is compliant with the box model, unless there's some very fine print somewhere. Wow. So the solution here is to use {{flowlist}}; thanks for that great tip, and all the supporting work to demonstrate this. I'm still getting over my shock. I wonder what else is lurking out there in CSS-land that I don't know about. (Don't tell me; I don't think I really want to know!) Mathglot (talk) 22:39, 10 September 2023 (UTC)
- Thanks, all. Just to be clear, when we say that this is "just how the CSS works out", I assume we mean that "this is just how the Mediawiki CSS works out". Given the CSS box model, I'm assuming that if I tried this in a pure Html file external to Wikipedia using an html unordered list and rendered it in a browser, the indentation would be correct. In other words, this is a Mediawiki bug, not a bug in CSS. I'm not pushing for it to be resolved if it's been outstanding this long, I just want to be clear where the locus of the problem is, in case this comes up again. Mathglot (talk) 19:49, 10 September 2023 (UTC)
Noticeboard archive problem - Multiple threads don't display, but material is in the archive
I am having a problem with material in a noticeboard archive that cannot be displayed by viewing the archive, and can only be seen by editing the archive. The material is, in effect, hidden, and I don't know why. Either I am making some complicated mistake, or the viewing of an archive is making some complicated mistake. Is someone knowledgeable willing to take a look at a noticeboard archive? Is there some character sequence that says to hide everything until an unhide sequence is encountered?
I briefly thought that under some circumstances, User:Lowercase sigmabot III was dropping portions of archived threads when adding new threads to a noticeboard archive. After some investigation, I have concluded that, in at least one case, portions of threads are invisible in the archive, although the material that cannot be seen on viewing can nonetheless be seen when editing the archive. The problematical archive file is Wikipedia:Dispute_resolution_noticeboard/Archive_230. I become aware of a problem because I was unable to find a dispute over Purdue University Global. If I view the archive file, I don't see a Purdue dispute. On closer examination I see that thread begins as a dispute about Peter Eckstein-Kovacs and then picks up as a dispute over Theanine. The end of the EK case and the beginning of the Theanine case are not seen. However, if I edit the archive file, I see the Arvind Kejriwal case, then the Purdue University Global case, then Yamam, then Vehicle registration plates of New York, then Vurg, then Theanine.
The problem happens the same if I am using Firefox or Google Chrome or Opera as the web browser. Am I explaining clearly enough what the issue is? Robert McClenon (talk) 04:38, 13 September 2023 (UTC)
- I've fixed it (and then Nardog fixed my fix). You were on the right track comparing the wikitext to the rendered version; you just stopped narrowing it down too soon: it wasn't ==Arvind Kejriwal==, but ===Third statement by moderator (Eckstein-Kovacs)===, that was the first header not displayed, so the problem was just before it. —Cryptic 04:52, 13 September 2023 (UTC)
- Thank you, User:Cryptic. So there was a loose tag that ate five cases. That sounds like a blurb for a bad horror movie. So I wasn't making a complicated mistake, and there wasn't a complicated mistake in viewing, but there was a complicated mistake in what was being archived. It shuffled along like a zombie until it stopped for some tea, and then the caffeine and theanine got it to wake up. I saw the reference error, but I didn't realize that the reference error would do something like that. Strange. Thank you. Robert McClenon (talk) 05:51, 13 September 2023 (UTC)
Follow-Up Question
So am I correct that this can happen to any noticeboard archive under the wrong circumstances if there is a malformed reference or certain other errors? Robert McClenon (talk) 06:56, 13 September 2023 (UTC)
- Not just that; it can happen on any page, not just noticeboards or archives. An unclosed template or tag has the potential to swallow a large blob of content or even the rest of the page. – Jonesey95 (talk) 13:29, 13 September 2023 (UTC)
One-click archiver
Can anyone determine what is off with the one-click archiver at Talk:Operation Gideon (2020) ? It looks like I have a faulty pipe or some such. I copied the template from Talk:Dementia with Lewy bodies, where it is working fine, so it's not the script, rather something I did wrong. SandyGeorgia (Talk) 13:48, 13 September 2023 (UTC)
- @SandyGeorgia Try it now. I've removed the {{Archive basics}} because it shouldn't be necessary on that page, the oneclickarchiver script should be able to get its information from the {{user:MiszaBot/config}} template. 163.1.15.238 (talk) 15:19, 13 September 2023 (UTC)
- Thanks, 163, but now I get the error message: "No archive counter was detected on this page, so archiving was aborted. See User:Equazcion/OneClickArchiver for details." SandyGeorgia (Talk) 16:28, 13 September 2023 (UTC)
- Line 47 of the script searches for
'\\|counter ?= ?(\\d+)'
, with no space before the word "counter" and at most one space before and after the equals sign. So at Talk:Operation Gideon (2020) the setting in the "User:MiszaBot/config" is not understood, whereas the one in the deleted "Archive basics" was accepted. - I think the original problem was a mismatch between lines 56 and 74 of the script. Line 56 accepts an optional space between the pipe and the word "archive", but when line 74 does some further processing, it doesn't allow for that space. Thus the text
| archive =
remains in the name of the archive that the script tries to create. - A workaround for now might be to restore the "Archive basics", placing it above the "User:MiszaBot/config" so that line 56 of the script finds the "archive=" line from the "Archive basics" and not the one from the "User:MiszaBot/config". -- John of Reading (talk) 16:58, 13 September 2023 (UTC)
- John of Reading thanks, it worked! Unfortunately, I corrupted the test by moving from my iPad to real computer (different browser) in the interim, so I will next go back and undo and re-test also from my iPad, to make sure it wasn't a browser issue. Thanks again ! SandyGeorgia (Talk) 17:09, 13 September 2023 (UTC)
- @SandyGeorgia: I don't think the problem was caused by your choice of browser. -- John of Reading (talk) 17:11, 13 September 2023 (UTC)
- Yep, it worked from iPad, so we're good here-- thx again. SandyGeorgia (Talk) 17:12, 13 September 2023 (UTC)
- @SandyGeorgia: Rather than diving straight into the code I should have looked at the documentation! The script user:Equazcion/OneClickArchiver is known to be buggy; you should be using one of the versions listed at Wikipedia:One click archiving. -- John of Reading (talk) 17:32, 13 September 2023 (UTC)
- Yep- looks like I'm outdated; now to see how many VPT help requests it will take me to get that updated :) Thanks again, SandyGeorgia (Talk) 19:21, 13 September 2023 (UTC)
- Thanks again; User:SandyGeorgia/common.js all set, and tested and working. SandyGeorgia (Talk) 19:28, 13 September 2023 (UTC)
- @SandyGeorgia: Rather than diving straight into the code I should have looked at the documentation! The script user:Equazcion/OneClickArchiver is known to be buggy; you should be using one of the versions listed at Wikipedia:One click archiving. -- John of Reading (talk) 17:32, 13 September 2023 (UTC)
- John of Reading thanks, it worked! Unfortunately, I corrupted the test by moving from my iPad to real computer (different browser) in the interim, so I will next go back and undo and re-test also from my iPad, to make sure it wasn't a browser issue. Thanks again ! SandyGeorgia (Talk) 17:09, 13 September 2023 (UTC)
- Line 47 of the script searches for
- Thanks, 163, but now I get the error message: "No archive counter was detected on this page, so archiving was aborted. See User:Equazcion/OneClickArchiver for details." SandyGeorgia (Talk) 16:28, 13 September 2023 (UTC)
Autofill
It seems that Autofill (in citation templates) is not working. Ali Pirhayati (talk) 07:32, 13 September 2023 (UTC)
- Same issue with Refill. GiantSnowman 15:51, 13 September 2023 (UTC)
- Got a WP:Steps to reproduce? Hard to tell what the bug just from this description. –Novem Linguae (talk) 15:01, 14 September 2023 (UTC)
Is User:HBC AIV helperbot5 working?
Wikipedia:Usernames for administrator attention has a long list of accounts that were blocked in the past few hours but have not been removed. Is HBC AIV helperbot5 working? It's usually faster than this, surely. Bishonen | tålk 10:42, 12 September 2023 (UTC).
- Thanks for the ping, I have restarted the bot now. — JamesR (talk) 10:49, 12 September 2023 (UTC)
- Cool, thanks. Bishonen | tålk 11:04, 12 September 2023 (UTC).
- Looks like it's been glitchy the last few days. See also Wikipedia:Bots/Noticeboard#AIV bot is down again(?) –Novem Linguae (talk) 11:10, 12 September 2023 (UTC)
- Anomie's comment at Wikipedia:Village pump (technical)#In general may be related. Looks like restarting certain servers can make Toolforge cron jobs hang and require a manual restart. –Novem Linguae (talk) 15:08, 14 September 2023 (UTC)
- Looks like it's been glitchy the last few days. See also Wikipedia:Bots/Noticeboard#AIV bot is down again(?) –Novem Linguae (talk) 11:10, 12 September 2023 (UTC)
- Cool, thanks. Bishonen | tålk 11:04, 12 September 2023 (UTC).
Using the API to query for article ratings
Hi there. I'm doing a project for my Deep Learning class this semester where I'm attempting to evaluate the quality of articles using a recurrent neural network. In order to do this, I'm hoping to create a dataset where the article's rating is used as the target feature. I know that I can download a dump of the English Wikipedia very trivially, but I have never used the API before, and I'm unsure if I could use it to connect article ratings (and possibly other metadata) to downloaded articles. I'm aware each article title acts as a unique identifier within its namespace, so would I have to download all of the article talk pages, parse them for the class, and manually associate them with every article? Could there be an easier way using the API? All the best, TheTechnician27 (Talk page) 20:17, 13 September 2023 (UTC)
- @TheTechnician27 Could you use the rating categories for this, e.g. Category:B-Class biography articles? You could use mw:API:Categories to get the categories present on the talk page, and extract the ones that give the rating?
- P.S. you can use Special:APISandbox to experiment with using the API - in this case use action = query and select the categories property. 192.76.8.91 (talk) 20:38, 13 September 2023 (UTC)
- @TheTechnician27, you could also use the page assessments API (action=query & prop=pageassessments).
You may be interested in mw:ORES. — Qwerfjkltalk 20:56, 13 September 2023 (UTC)- Yes, I was going to point to that. mw:Extension:PageAssessments has some more info. Izno (talk) 20:59, 13 September 2023 (UTC)
- @Qwerfjkl: I was actually aware of ORES as a new page patroller, and I was hoping to compare my results against its (obviously its will be better, so it's a good watermark). I'll certainly have a look at and try to figure out the PageAssessments extension. Incidentally, I'm going at this with the assumption I can't just query 6.7 million article ratings for free. What sorts of hurdles do you think I might face here? Either way, thank you so much for sharing this! I would've never found it on my own. TheTechnician27 (Talk page) 00:45, 14 September 2023 (UTC)
- @TheTechnician27, I think there are some rate limits. You'll want to make sure to query multiple pages in each request, and querying categories might be quicker. — Qwerfjkltalk 06:09, 14 September 2023 (UTC)
- The API is not intended for such bulk usage. PageAssessments also has a database table which you can preview via Superset. Ideally, you should sign up for a Toolforge account to access the database directly. Use paginated queries to retrieve N (say 10000) records at a time (don't use OFFSET for pagination, instead order by pa_page_id and filter its values to be greater than the last value from previous iteration). – SD0001 (talk) 10:48, 14 September 2023 (UTC)
- @SD0001: That makes a good deal of sense. I've since created a Toolforge account and installed MariaDB. So what I understand so far is that I should make paginated queries to a Wiki Replica. I don't understand a ton about databases, but I think I should be able to figure it out. Regarding the paginations, do you know roughly how often I should query? I know I won't overwhelm the WMF's infrastructure or anything, but I also don't want to be greedy. Additionally, does a school project (possibly attached to an academic paper) qualify as "benefit[ting] the Wikimedia movement"? If I learn more about Toolforge, I might be able to create useful tools in the future, but I'm not under the impression my project RNN could possibly be better than what the WMF already uses. TheTechnician27 (Talk page) 19:16, 14 September 2023 (UTC)
- You can send a new query as soon as the previous query is over. Any research on Wikipedia content quality (or ways to assess it) qualifies as benefitting the movement. – SD0001 (talk) 03:31, 15 September 2023 (UTC)
- @SD0001: That makes a good deal of sense. I've since created a Toolforge account and installed MariaDB. So what I understand so far is that I should make paginated queries to a Wiki Replica. I don't understand a ton about databases, but I think I should be able to figure it out. Regarding the paginations, do you know roughly how often I should query? I know I won't overwhelm the WMF's infrastructure or anything, but I also don't want to be greedy. Additionally, does a school project (possibly attached to an academic paper) qualify as "benefit[ting] the Wikimedia movement"? If I learn more about Toolforge, I might be able to create useful tools in the future, but I'm not under the impression my project RNN could possibly be better than what the WMF already uses. TheTechnician27 (Talk page) 19:16, 14 September 2023 (UTC)
Mobile web talk pages
The mobile website (idk about the mobile app, I don't use it) talk pages get unreadable if there's too many replies, because it squeezes it literally into one character width column. It is a little bit of a hard problem, because you need to make it clear who's replying to who. Maybe just make it stop getting thinner once it gets to a certain width
Browser: chrome mobile, Firefox mobile MarkiPoli (talk) 08:03, 15 September 2023 (UTC)
- Yes, this is a known problem of the current discussion/talk page model. Not really an easy way around it. It’s also relatively uncommon however. —TheDJ (talk • contribs) 09:49, 15 September 2023 (UTC)
"Inline" thing
- What on earth is this "Inline" thing that now (as of today) appears on diffs, just below the revision slider and against the right margin? It's got a smartphone-style slidy button. If I hover my mouse over it, there's no hint at all as to what it does. I shall not click the button if I don't know what it does. --Redrose64 🌹 (talk) 21:19, 14 September 2023 (UTC)
- It displays the diff in like a simplified Visual style. Hyphenation Expert (talk) 21:21, 14 September 2023 (UTC)
- It switches between the default two-column and the new inline diff style. As mentioned in the latest tech news above, this is part of addressing a Community Wishlist request. the wub "?!" 21:44, 14 September 2023 (UTC)
- @Redrose64: A tooltip on hover with a short description as to what the toggle does sounds like a useful idea I'll pass this on! — TheresNoTime-WMF (talk • they/them) 09:48, 15 September 2023 (UTC)
- FYI, now logged at phab:T346429 — TheresNoTime-WMF (talk • they/them) 09:55, 15 September 2023 (UTC)
- It displays the diff in like a simplified Visual style. Hyphenation Expert (talk) 21:21, 14 September 2023 (UTC)
"Differences" now difficult to read on Monobook
This changed yesterday and I thought it may be fixed overnight. Watchlisted items, when clicked on "Differences" to see what has been changed, comes up as a jumble of words and colors mixed with coding. This occurs on the Monobook skin, I haven't checked Vector to read what it looks like. Thanks if coders can bring the "changes" back to the good ole days (Wednesday). Randy Kryn (talk) 13:00, 15 September 2023 (UTC)
- Dumb question - you didn't swap from Wikitext to Visual view, did you? --130.111.39.47 (talk) 13:12, 15 September 2023 (UTC)
- In the diff view, do you see a button at the top right that says "Inline"? Have you tried clicking that to see if things go back to normal? –Novem Linguae (talk) 13:20, 15 September 2023 (UTC)
- Thanks Novem Linguae and 130.111.39.47, that worked. Yes, I am extremely dumb when it comes to coding and the variations of computer tech, which is why I came here and was quickly set on the right path. My go-to blame is Windows10, which clicks and brings pop ups so often when the cursor is moved around that it seems natural now. Windows7, we hardly knew ye. Thanks again. Randy Kryn (talk) 13:30, 15 September 2023 (UTC)
- Hey Randy Kryn, I'm glad to see your query has been answered by Novem above — I do have a quick question though, if you have a moment; is it possible you accidentally toggled that "inline" slider to the "on" (the right hand) position? Only reason I ask is because, as far as I'm aware, it should be "off" by default and we'd ideally like to know if some folx are seeing it enabled by default..! — TheresNoTime-WMF (talk • they/them) 14:08, 15 September 2023 (UTC)
- Yes TheresNoTime-WMF, exactly. Either with my thumb in gliding down or the cursor bouncing around. I didn't even know there was such a switch to toggle. So it's not a default problem but a myfault personal glitch. Randy Kryn (talk) 14:22, 15 September 2023 (UTC)
- Thanks for confirming! — TheresNoTime-WMF (talk • they/them) 14:32, 15 September 2023 (UTC)
- Yes TheresNoTime-WMF, exactly. Either with my thumb in gliding down or the cursor bouncing around. I didn't even know there was such a switch to toggle. So it's not a default problem but a myfault personal glitch. Randy Kryn (talk) 14:22, 15 September 2023 (UTC)
I can't access some pages
Voiced bilabial nasal, Voiced labiodental fricative and Close central unrounded vowel
I can only see Israel flag if I try to access that pages. Is it my problem? 49.142.62.94 (talk) 10:02, 15 September 2023 (UTC)
- Template:IPA was recently updated, it seems to be causing issues on all pages that use it. John Womble (talk) 10:08, 15 September 2023 (UTC)
- Looks like it was some vandalism on Module:IPA — the image is likely cached for you (try refreshing/clearing your cache) — TheresNoTime-WMF (talk • they/them) 10:13, 15 September 2023 (UTC)
- Thank you! 49.142.62.94 (talk) 10:16, 15 September 2023 (UTC)
- Looks like it was some vandalism on Module:IPA — the image is likely cached for you (try refreshing/clearing your cache) — TheresNoTime-WMF (talk • they/them) 10:13, 15 September 2023 (UTC)
- Module protected and user blocked (see WP:AN/I report) — TheresNoTime (talk • they/them) 10:20, 15 September 2023 (UTC)
- TYVM, should asked for a preemptive template protection. Nardog (talk) 17:23, 15 September 2023 (UTC)
- User:MusikBot II should have protected it automatically. I'm not sure why it didn't here. It may be due to the Toolforge problems mentioned above. — MusikAnimal talk 18:52, 15 September 2023 (UTC)
- TYVM, should asked for a preemptive template protection. Nardog (talk) 17:23, 15 September 2023 (UTC)
A page fail to load on multiples of my browser
I have tried entering the URL https://en.wikipedia.org/wiki/Gdynia , without logging in, on Chrome, Firefox, Edge, and Old IE. However, on Firefox, Edge, and Chrome, it showed an all-black page without selectable text below header, like https://pasteboard.co/YEpZrWcORKf9.png , while on Old IE, it show a giant Israel flag with no text. The issue would disappear after logging in. THe issue do not happen on other pages like Gdansk. Why is that? C933103 (talk) 10:12, 15 September 2023 (UTC)
- Edit: It seems to be same problem as the one above. C933103 (talk) 10:13, 15 September 2023 (UTC)
Tech News: 2023-37
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- ORES, the revision evaluation service, is now using a new open-source infrastructure on all wikis except for English Wikipedia and Wikidata. These two will follow this week. If you notice any unusual results from the Recent Changes filters that are related to ORES (for example, "Contribution quality predictions" and "User intent predictions"), please report them. [57]
- When you are logged in on one Wikimedia wiki and visit a different Wikimedia wiki, the system tries to log you in there automatically. This has been unreliable for a long time. You can now visit the login page to make the system try extra hard. If you feel that made logging in better or worse than it used to be, your feedback is appreciated. [58]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 12 September. It will be on non-Wikipedia wikis and some Wikipedias from 13 September. It will be on all wikis from 14 September (calendar).
- The Technical Decision-Making Forum Retrospective team invites anyone involved in the technical field of Wikimedia projects to signup to and join one of their listening sessions on 13 September. Another date will be scheduled later. The goal is to improve the technical decision-making processes.
- As part of the changes for the Better diff handling of paragraph splits wishlist proposal, the inline switch widget in diff pages is being rolled out this week to all wikis. The inline switch will allow viewers to toggle between a unified inline or two-column diff wikitext format. [59]
Future changes
- All wikis will be read-only for a few minutes on 20 September. This is planned at 14:00 UTC. More information will be published in Tech News and will also be posted on individual wikis in the coming weeks. [60]
- The Enterprise API is launching a new feature called "breaking news". Currently in BETA, this attempts to identify likely "newsworthy" topics as they are currently being written about in any Wikipedia. Your help is requested to improve the accuracy of its detection model, especially on smaller language editions, by recommending templates or identifiable editing patterns. See more information at the documentation page on MediaWiki or the FAQ on Meta.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 21:05, 11 September 2023 (UTC)
the inline switch widget in diff pages is being rolled out this week
— Is there a Special:Preferences option to remove this? It's extra screen space taken up by a feature that I don't use. Mitch Ames (talk) 01:15, 15 September 2023 (UTC).mw-diffPage-inlineToggle-container { display: none }
in your CSS should do away with it. —Cryptic 01:24, 15 September 2023 (UTC)- Additionally,
.ve-init-mw-diffPage-diffMode
is the CSS class for the visual/wikitext switch if you also don't want to see that. (And.mw-diff-table-prefix
is the class for the div that houses them both.) - Purplewowies (talk) 03:36, 15 September 2023 (UTC)- I'm sure Preferences option would be easier. How does one request such an option? Mitch Ames (talk) 04:59, 15 September 2023 (UTC)
- Hi Mitch Ames, I'll pass this feedback on to the rest of the team — I think we did consider a preferences option to show/hide (and/or set a global default, and thus hide the need for it), but feedback in the past suggested that folx dislike "more things" appearing in their preferences so that likely swayed us against the option. Either way, I'll pass it on — TheresNoTime-WMF (talk • they/them) 09:03, 15 September 2023 (UTC)
folx dislike "more things" appearing in their preferences
— More or less than they dislike more things appearing on every diff page? Surely I'm not the only one who views diffs far more often than I view my preferences page. Mitch Ames (talk) 11:43, 15 September 2023 (UTC)
- Hi Mitch Ames, I'll pass this feedback on to the rest of the team — I think we did consider a preferences option to show/hide (and/or set a global default, and thus hide the need for it), but feedback in the past suggested that folx dislike "more things" appearing in their preferences so that likely swayed us against the option. Either way, I'll pass it on — TheresNoTime-WMF (talk • they/them) 09:03, 15 September 2023 (UTC)
- I'm sure Preferences option would be easier. How does one request such an option? Mitch Ames (talk) 04:59, 15 September 2023 (UTC)
- Additionally,
- Maybe you should try using the feature —TheDJ (talk • contribs) 09:47, 15 September 2023 (UTC)
- I have tried the feature, and I don't like it. It might be useful if it showed the "as displayed" diff (ie with formatted text instead of wiki markup), but as it stands I find it harder to read than the existing "standard" diff or (for some scenarios) wikEdDiff. I realise that many people might like it, but I think wasting screen space for a switch that is visible all the time - even when I'll never use it - is a bad idea. Mitch Ames (talk) 11:56, 15 September 2023 (UTC)
- @Mitch Ames There's also an option to show the "as displayed" diff, using the "Visual" button that you should find next to the "Inline" toggle (see image on the right for how it should look).
- By the way, the inline diff is basically the same thing as wikEdDiff, so if it is harder to read, perhaps there's some improvement to be made. Can you explain why it feels worse to you? Matma Rex talk 22:47, 15 September 2023 (UTC)
- For my part, I'd be more likely to use the feature if it didn't come with a gigantic, infantilizing button. Desktop is not mobile. With the visual/wikitext toggle, at least we can hide the redundant icon and debuttonize, but with this, if the immense graphic is hidden, the remaining label is nonfunctional. —Cryptic 14:28, 15 September 2023 (UTC)
- @Cryptic I can't say I understand why you feel this way about the button, but you make a good point that the text of the label should also be clickable, and we follow that principle everywhere else throughout MediaWiki. It turns out that it was also designed to work this way here, and it's a tiny mistake that broke it – I proposed a patch at T346132 that will correct it, so this will probably be fixed here on Wikipedia next week. Matma Rex talk 23:20, 15 September 2023 (UTC)
- I have tried the feature, and I don't like it. It might be useful if it showed the "as displayed" diff (ie with formatted text instead of wiki markup), but as it stands I find it harder to read than the existing "standard" diff or (for some scenarios) wikEdDiff. I realise that many people might like it, but I think wasting screen space for a switch that is visible all the time - even when I'll never use it - is a bad idea. Mitch Ames (talk) 11:56, 15 September 2023 (UTC)
Content of Category:Soviet and Russian attack aircraft
The category was moved to Category:Soviet attack aircraft, but it was populated by a template, and the content was not moved when the move was performed by a bot. I tried to figure out what exactly needs to be modified, but failed. Could someone help please. An example member of that category is Category:1930s Soviet attack aircraft. Thanks. Ymblanter (talk) 05:55, 12 September 2023 (UTC)
- It's caused by
|Soviet
under "Output cat 2 regardless" in {{Airntd}}. The template is used in lots of Soviet-related categories and other cases will break if it's removed. For example, Category:1930s Soviet experimental aircraft is currently in Category:Soviet and Russian experimental aircraft but would change to Category:Soviet experimental aircraft. It appears to require a more complicated change. I'm not delving further into it. PrimeHunter (talk) 09:19, 12 September 2023 (UTC)- Ugh, I "fixed" {{Airntd}} before seeing PrimeHunter's response. Ymblanter, should these other categories be moved to match the outcome of the discussion that led to moving the "attack aircraft" category, or should I undo my template changes? Note: I will be away from Wikipedia for about 12 hours soon. Any template editor is welcome to revert my changes to that template if that is the right thing to do. – Jonesey95 (talk) 14:04, 12 September 2023 (UTC)
- Thanks both of you. All the categories which were inside Category:Soviet and Russian attack aircraft should be moved, but if there are any others they should not. If there is no solution via template may be we should just make a separate template or add categories by hand? Ymblanter (talk) 14:10, 12 September 2023 (UTC)
- Or at least I do not think we currently have consensus for moving all these categories. I am just trying to implement a particular CfD conclusion though, this is not really an area I understand well. Ymblanter (talk) 14:12, 12 September 2023 (UTC)
- At the end it seems to work, thanks a lot. Ymblanter (talk) 16:37, 13 September 2023 (UTC)
- My change has created a bunch of red-linked categories. I have reverted the change pending a more sophisticated fix, a more comprehensive CFD, or an undo of the initial CFD that seems to be tied to other categories. – Jonesey95 (talk) 23:55, 14 September 2023 (UTC)
- Fixed this specific problem using {{Resolve category redirect}}. More problems of this sort will likely crop up in the future. * Pppery * it has begun... 04:12, 16 September 2023 (UTC)
- My change has created a bunch of red-linked categories. I have reverted the change pending a more sophisticated fix, a more comprehensive CFD, or an undo of the initial CFD that seems to be tied to other categories. – Jonesey95 (talk) 23:55, 14 September 2023 (UTC)
- At the end it seems to work, thanks a lot. Ymblanter (talk) 16:37, 13 September 2023 (UTC)
- Or at least I do not think we currently have consensus for moving all these categories. I am just trying to implement a particular CfD conclusion though, this is not really an area I understand well. Ymblanter (talk) 14:12, 12 September 2023 (UTC)
- Thanks both of you. All the categories which were inside Category:Soviet and Russian attack aircraft should be moved, but if there are any others they should not. If there is no solution via template may be we should just make a separate template or add categories by hand? Ymblanter (talk) 14:10, 12 September 2023 (UTC)
- Ugh, I "fixed" {{Airntd}} before seeing PrimeHunter's response. Ymblanter, should these other categories be moved to match the outcome of the discussion that led to moving the "attack aircraft" category, or should I undo my template changes? Note: I will be away from Wikipedia for about 12 hours soon. Any template editor is welcome to revert my changes to that template if that is the right thing to do. – Jonesey95 (talk) 14:04, 12 September 2023 (UTC)
"Patrolling is disabled on this wiki"
I was testing out a change to one of my user scripts and noticed that Wikipedia does not have recent changes patrolling enabled on the wiki. I wonder what would it take to turn this feature on? I picture it would be great for stuff like ORES review where certain edits that are below the threshold of ClueBot NG but in the range where they might need fixing could show up in Recent Changes with the "!" indicating unpatrolled. What are your thoughts? Aasim - Herrscher of Wikis ❄️ 22:05, 13 September 2023 (UTC)
- @Awesome Aasim: We do have WP:RCP. Can you please clarify what feature you are asking about? RudolfRed (talk) 01:23, 14 September 2023 (UTC)
- @RudolfRed This is a technical question. I am not saying it is impossible to patrol recent changes. What I am saying is that it is impossible to mark recent changes as "patrolled". I wonder if there might be a reason for this. Aasim - Herrscher of Wikis ❄️ 01:41, 14 September 2023 (UTC)
- This link might help: WP:Patrolled revisions. Someone must know more about it than me, but I think you might have to delve into the history of Pending Changes. I seem to vaguely recall some incompatibility, compounded by a lack of investment into development, but I might be imagining that. As you've already found out, and will see from the backlinks, being really clear and precise with terminology is key if you want to move it forward. -- zzuuzz (talk) 07:07, 14 September 2023 (UTC)
- Yeah, this. I also see as a big project it would be impractical to "mark every revision as patrolled" on behalf of the patrollers. Pending Changes does give something similar to RC patrol in which the best revision can be rated. I do think, though, that there would be some benefit in being able to mark individual or sets of revisions as patrolled.
- I know New Page Review uses the same patrolling system, but we can give "rollbackers" the ability to mark individual revisions as patrolled but not new pages. Because those are the two tools a rollbacker needs to embark on RC patrol. Aasim - Herrscher of Wikis ❄️ 16:04, 14 September 2023 (UTC)
- This link might help: WP:Patrolled revisions. Someone must know more about it than me, but I think you might have to delve into the history of Pending Changes. I seem to vaguely recall some incompatibility, compounded by a lack of investment into development, but I might be imagining that. As you've already found out, and will see from the backlinks, being really clear and precise with terminology is key if you want to move it forward. -- zzuuzz (talk) 07:07, 14 September 2023 (UTC)
- @RudolfRed This is a technical question. I am not saying it is impossible to patrol recent changes. What I am saying is that it is impossible to mark recent changes as "patrolled". I wonder if there might be a reason for this. Aasim - Herrscher of Wikis ❄️ 01:41, 14 September 2023 (UTC)
- Patrols seem to be somewhat equivalent to new page reviews on this wiki. Perhaps that is why this ability is still turned on (I see [Mark this page as reviewed] for new pages if the Page Curation toolbar is closed), but is restricted to editors that have the new page patroller permission. –Novem Linguae (talk) 14:56, 14 September 2023 (UTC)
- Short answer: we don't have this enabled - and likely won't because of the highly customized PageTriage extension here - combined with our extremely high volume of revision creations. Also, you don't have "patrol" rights (which do work on "new pages" via pagetriage). — xaosflux Talk 15:04, 14 September 2023 (UTC)
- I think this question is about individual edits, rather than creating new pages.
- If it seems impractical to "mark every revision as patrolled", then presumably it is even more impractical to have multiple editors look at the same edit several times. Whatamidoing (WMF) (talk) 16:02, 15 September 2023 (UTC)
- I think we can also consider that after a certain time the edits are automatically marked as patrolled. I think it is variable and can be changed but if, say, the edits are more than a day or even half a day old, it can probably be removed from the patrol queue. Edits with higher ORES destructive values can be held for longer, while edits with higher ORES constructive values can be autopatrolled. Aasim - Herrscher of Wikis ❄️ 02:12, 17 September 2023 (UTC)
- Sounds complicated to program. Would require a cron job and interfacing with both core and mw:Extension:ORES. Might also mess up the NPP workflow on enwiki. –Novem Linguae (talk) 02:32, 17 September 2023 (UTC)
- I think we can also consider that after a certain time the edits are automatically marked as patrolled. I think it is variable and can be changed but if, say, the edits are more than a day or even half a day old, it can probably be removed from the patrol queue. Edits with higher ORES destructive values can be held for longer, while edits with higher ORES constructive values can be autopatrolled. Aasim - Herrscher of Wikis ❄️ 02:12, 17 September 2023 (UTC)
PageNotice extension - now available for testing
It has been proposed numerous times on this wiki to install the PageNotice MediaWiki extension to allow a uniform header to be automatically displayed at the top of every page in the Draft namespace. See Wikipedia:Village_pump_(idea_lab)/Archive_39#Universal_notice_for_draftspace for what I understand to be the most recent discussion, but it was suggested as far back as 2014.
I'm pleased to report that the extension is now available for testing. The wiki used for testing PageNotice is Beta English Wiktionary (not Wikipedia).
I'm happy to grant established English Wikipedia users temporary admin rights on your Beta English Wiktionary account if you would like to test this new feature. There is no Draft namespace on Wiktionary, but you can test with any other namespace if you wish. Instructions for using the extension are at mw:Extension:PageNotice.
If there is a desire to enable the extension on this wiki (the non-beta English Wikipedia), community consensus would need to be demonstrated.
Ping @Sdkb and SD0001:. This, that and the other (talk) 10:03, 12 September 2023 (UTC)
- I'd be happy to test it out, sure! Thanks to all who have worked on this! {{u|Sdkb}} talk 13:55, 12 September 2023 (UTC)
- @Sdkb have you created an account on Beta English Wiktionary (or any other beta.wmflabs.org site)? What is your username there? Let me know and I'll assign the admin bit. This, that and the other (talk) 08:30, 13 September 2023 (UTC)
- @This, that and the other, created an account at Beta Wiktionary with my same username of Sdkb. {{u|Sdkb}} talk 17:08, 13 September 2023 (UTC)
- @Sdkb done. This, that and the other (talk) 23:22, 13 September 2023 (UTC)
- Got it to work, @This, that and the other; see https://en.wiktionary.beta.wmflabs.org/wiki/User:Sdkb.
- Two comments that come to mind:
- I'd prefer it to go above the page title, just like a banner would, rather than below.
- When viewing or editing a page, it's hard to tell where the banner is coming from. Just like editors with the requisite permissions for editnotices on Wikipedia have the "page notice" and "group notice" links in the editor, there should be a link to the namespace banner MediaWiki page so that editors can edit it if desired.
- Cheers, {{u|Sdkb}} talk 03:04, 14 September 2023 (UTC)
- @Sdkb re your second point, I feel this is something that should be handled locally, similar to the {{editnotice load}} system for editnotices.
- The first point is a more interesting one. The placement of the notice at the top of the page content, beneath the title, makes it valuable for boilerplate text or disclaimers of the kind that this project might want to include at the top of Draft pages. What is the use case that you are imagining, where the notice goes above the page title? I note that in Vector 2022 skin, this would span the whole width of the page, deepening the disconnect between the page content (which is in a fixed-width panel) and the page notice. This, that and the other (talk) 03:16, 14 September 2023 (UTC)
- The use case would be the draft namespace. Idk, it just seems more intuitive to have it above the title, and less like it could be confused with the actual page content. {{u|Sdkb}} talk 03:19, 14 September 2023 (UTC)
- @Sdkb done. This, that and the other (talk) 23:22, 13 September 2023 (UTC)
- @This, that and the other, created an account at Beta Wiktionary with my same username of Sdkb. {{u|Sdkb}} talk 17:08, 13 September 2023 (UTC)
- @Sdkb have you created an account on Beta English Wiktionary (or any other beta.wmflabs.org site)? What is your username there? Let me know and I'll assign the admin bit. This, that and the other (talk) 08:30, 13 September 2023 (UTC)
- Tested. Looks good to me. – SD0001 (talk) 08:57, 17 September 2023 (UTC)
Previewing references within sections
Is there a technical reason why citations defined outside of sections can't be previewed, or would rendering them within the section preview be considered undesirable behavior? Photos of Japan (talk) 07:36, 17 September 2023 (UTC)
- You'd have to do some fairly complicated stuff to get the definitions from outside the section in order to bring them in. The Phab task (T146072) User:Nardog added here describes one option of that "complicated stuff" for the context of potential section editing in VE; there are other ways it might be done that might work better for non-VE use cases. Anomie⚔ 13:21, 17 September 2023 (UTC)
- Ah, I meant to add T124840, which is not VE-specific. Nardog (talk) 13:41, 17 September 2023 (UTC)
Tiny text on mobile web
Recently I have been seeing very small text size on some articles but not others, and on this very page, when using an iPad. I haven't figured out what it is about the page that changes the size. (Might affect tablet and not phone, would have to confirm on the latter.) When I say tiny, I mean so small that that Minerva is as hard to read as Vector and Vector 2022. Anyone know what changed? ⁓ Pelagic ( messages ) 18:16, 12 September 2023 (UTC)
- Are you sure you didn't switch to the desktop site ? When you click the Aa in the addressbar on the device and click 100%, does that fix it ? —TheDJ (talk • contribs) 19:07, 12 September 2023 (UTC)
- Yes, 100% sure, TheDJ. And zoom is 100%. I'll work on uploading some screenshots. Happens when logged-out also.
- Since other people don't appear to be experiencing the same, I’ll test on some other devices. Maybe it’s “a me thing”. It looks fine on iPhone.) ⁓ Pelagic ( messages ) 21:25, 15 September 2023 (UTC)
- On two old iPads that I keep around for testing it looks “normal”. 15–18 words per line, my top post line-breaks at:
on/this
,that/changes
,latter.)/When
,Vector/2022
. (5 lines total) iOS 9.3.6 and 12.5 - On the iPad where I'm writing this: 25 words per line, line breaks at
haven't/figured
,latter.)/When
(3 lines total) iOS 15. ⁓ Pelagic ( messages ) 22:31, 15 September 2023 (UTC) - For comparison: desktop web using Vector 2022 with all sidebars (menu, ToC, tools) hidden, I get same line breaks on all three tablets:
out/what
,so/small
. Portrait not landscape orientation in all cases. ⁓ Pelagic ( messages ) 22:39, 15 September 2023 (UTC) - Inserted screenshot above, next to the original “I'll work on uploading comment.” ⁓ Pelagic ( messages ) 23:06, 15 September 2023 (UTC)
- On two old iPads that I keep around for testing it looks “normal”. 15–18 words per line, my top post line-breaks at:
- Replicated on another iPad also running iOS 15. Confirmed so far on Safari 15.6.1, and Safari 15.6.6 on iOS 15.7.7. Viewport doesn't appear to be a factor: 810 x 977 and 768 x 921 affected; 768 x 922 and 928 unaffected.
- Another relevant observation: I get a flash of normal larger text (FONLT?) and then the size changes to small.
- Clearing “website data” for wikipedia.org or browsing in-private doesn't make a difference. ⁓ Pelagic ( messages ) 04:28, 16 September 2023 (UTC)
- Two possible ideas.
- 1) The mobile web has a font size control in the settings page. Is that ticked?
- 2) On Special:Preferences you can disable responsive behaviour in the skin options. It applies to all skins. Has that been unchecked accidentally? Jdlrobson (talk) 16:16, 17 September 2023 (UTC)