Wikipedia:Village pump (technical)/Archive 215
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
How can I convert Google Books urls to neutral format?
Object: For a citation, I want to include the url for the Google Books page. (It's in Preview mode.)
Problem: I live outside the U.S., so the url I get here is country-specific. Furthermore, the url I get includes irrelevant data, like the search term I used to find it in the first place.
Question: How do I convert the url to the country-neutral, approved short form?
And a suggestion: It would be helpful if this knowhow were included in WP:Help? Ttocserp 10:32, 24 August 2024 (UTC)
- Ttocserp, can you link using the ISBN (e.g. https://books.google.com/books?vid=ISBN0863163165)? — Qwerfjkltalk 10:41, 24 August 2024 (UTC)
- Thank you, although that will give me the book, but not the page. Also, it won't work for older books since there was no ISBN then, Ttocserp 11:44, 24 August 2024 (UTC)
- Yeah someone should file a WP:BOTREQ to remove unnecessary parameters and use the correct language version of Google Books. See https://en.wikipedia.org/wiki/Special:LinkSearch?target=books.google.de for example. If possible it would be even better to convert them all to {{cite book}} or {{Google Books URL}}. We already have a bot removing tracking parameters from URLs (although I can't remember the name) so it might be a good feature request for them. Polygnotus (talk) 11:47, 24 August 2024 (UTC)
- User:Citation bot normalizes Google Book URLs. Polygnotus (talk) 12:34, 24 August 2024 (UTC)
- Thank you; problem solved. Ttocserp 12:46, 24 August 2024 (UTC)
- Well, not yet. @Ttocserp: nothing on this planet is easy. There are currently 198 articles with one or more links to the German version of Google Books. And there are many languages other than German and English. Working on it. Polygnotus (talk) 12:50, 24 August 2024 (UTC)
- Thank you; problem solved. Ttocserp 12:46, 24 August 2024 (UTC)
- Thank you, although that will give me the book, but not the page. Also, it won't work for older books since there was no ISBN then, Ttocserp 11:44, 24 August 2024 (UTC)
So, this simple request led to a lot of todoes:
- MediaWiki doesn't appear to have a way to filter Special:LinkSearch by namespace. many Phabricator tickets, T37758 dates back to 2012... But the functionality already exists in NewPagesPager.php so it shouldn't be too hard to make something similar.
- I couldn't find a userscript that allows the user to filter Special:LinkSearch by namespace. User:Polygnotus/namespace.js does it, exceptionally poorly (it does not make API requests it just filters whatever is displayed on the page).
- If there are no other scripts that do this task better then something like this should be improved and added to the list.
- Help:Linksearch#Toolforge claims there is a toolforge tool that can filter external links by namespace but it is dead. Can it be resurrected? Can it also be used for the other Special: pages? In progress I asked over at User_talk:Giftpflanze#toolforge:Linksearch
- Have to check if there are more Special: pages that also don't have filter capabilities but should have.
- AWB also appears to be unable to use External link search as a list generator. Should that be added as a feature request? In progress T373261
- According to this there are 187 language versions of Google. Someone should probably scan the latest dump to see which appear in it.
- We need either a feature request for User:Citation bot or a WP:BOTREQ for whoever wants to deal with this. In progress I asked over at User_talk:Citation_bot#Feature_request:_Google_Books
To get an idea of the scale of the problem, here we got: de, nl, es, fr. 620 combined articles that contain one or more of these links. Polygnotus (talk) 13:16, 24 August 2024 (UTC)
- You might find this and variant searches useful:
insource:"books.google" insource:/\/\/books\.google\.(de|fr|es|nl|pt|it)/
. That search finds about 1480 articles. - —Trappist the monk (talk) 13:52, 24 August 2024 (UTC)
- @Trappist the monk: Thank you! I do not understand why Special:LinkSearch returns a different number than the same languages in that regex via the searchbox. Polygnotus (talk) 14:12, 24 August 2024 (UTC)
- The search looks for that pattern in the wikitext of pages. Linksearch looks for links in its rendered output. Consider templates like {{geoSource}}, which can produce links to google books from wikitext like {{geoSource|DE|AHL|42}}. (Or even the Template:GeoSource page itself, which has many links to google books despite that url not appearing in its wikitext at all, through its transclusion of Template:GeoSource/doc.) —Cryptic 14:54, 24 August 2024 (UTC)
- Ok, that was a stupid question. Thanks! Polygnotus (talk) 15:30, 24 August 2024 (UTC)
- Since a bot can only edit URLs that literally exist in the wikitext, insource is more accurate for that purpose. Unless the bot is programmed for those special templates, which most are not since there are thousands, each with their own syntax that can change on a whim. -- GreenC 13:14, 26 August 2024 (UTC)
- Ok, that was a stupid question. Thanks! Polygnotus (talk) 15:30, 24 August 2024 (UTC)
- And because it is only looking for six of the who-knows-how-many languages google books supports. And because the search is constrained to mainspace.
- —Trappist the monk (talk) 15:35, 24 August 2024 (UTC)
- I managed to avoid those pitfalls ;-) Polygnotus (talk) 16:06, 24 August 2024 (UTC)
- The search looks for that pattern in the wikitext of pages. Linksearch looks for links in its rendered output. Consider templates like {{geoSource}}, which can produce links to google books from wikitext like {{geoSource|DE|AHL|42}}. (Or even the Template:GeoSource page itself, which has many links to google books despite that url not appearing in its wikitext at all, through its transclusion of Template:GeoSource/doc.) —Cryptic 14:54, 24 August 2024 (UTC)
- @Trappist the monk: Thank you! I do not understand why Special:LinkSearch returns a different number than the same languages in that regex via the searchbox. Polygnotus (talk) 14:12, 24 August 2024 (UTC)
- Probably the best task to look at is phab:T12593, which is specifically about Special:LinkSearch. It's not as simple as you seem to think, the SQL query would be too inefficient. NewPagesPager and some others have different enough table structure that efficient queries can be written. Anomie⚔ 16:33, 24 August 2024 (UTC)
- Very interesting, thank you! I will have to do a bit more research. Polygnotus (talk) 09:55, 25 August 2024 (UTC)
- Polygnotus, you can use the API for this, e.g.:See User:Qwerfjkl/sandbox/Language-specific Google Books links. — Qwerfjkltalk 09:02, 26 August 2024 (UTC)
async function fetchGoogleBooksLinks(languageTLD) { const api = new mw.Api(); let params = { action: 'query', format: 'json', list: 'exturlusage', euquery: `books.google.${languageTLD}`, eunamespace: 0, eulimit: 'max' }; let titles = []; let continueToken; do { if (continueToken) { params eucontinue = continueToken; } console.log(`Fetching for ${languageTLD}`) const data = await api.get(params); const exturls = data.query.exturlusage; exturls.forEach((exturl) => { titles.push(exturl.title); }); continueToken = data continue ? data.continue.eucontinue : null; } while (continueToken); return titles; } async function fetchAllGoogleBooksLinks() { const tlds = ['de', 'fr', 'es', 'nl', 'pt', 'it']; let allTitles = []; for (const tld of tlds) { const titles = await fetchGoogleBooksLinks(tld); allTitles = allTitles.concat(titles); } console.log("* [["+allTitles.join("]]\n* [[")+"]]") } fetchAllGoogleBooksLinks();
- Thank you! I know this cool little trick where I can take any piece of code and double it in size... by converting it to Java. Let me tell you, bigger is not always better. Polygnotus (talk) 12:35, 26 August 2024 (UTC)
- Polygnotus, you can use the API for this, e.g.:
- Very interesting, thank you! I will have to do a bit more research. Polygnotus (talk) 09:55, 25 August 2024 (UTC)
- In case it helps, I keep statistics, Enwiki has 2,122,411 Google Books links as of last month. If all you found was about 1,500 malformed links, about 0.0007 percent, is pretty good. We do have a much bigger problem with the corpus of GB links, which BTW is one of the largest corpuses<sp?> comparable to nytimes.com and web.archive.org .. the problem is that many of them have stopped working, directly (hard-404), or indirectly (soft-404 and crunchy-404 - see WP:LINKROT#Glossary). It could be 10% or more (200,000+). Nobody is really maintaining the 2 million corpus other than the URL normalization work of Citation bot. IABot typically skips them since archives usually don't work. Dead-ish GB links sit there, unresolved, often providing nothing more than an "About the book" page confirming the author and title, with a "Buy this book" button. At one time the link had content, but GB changes things around, removing content leaving little behind. All 2 million are at risk of becoming hard, soft and crunchy 404s. -- GreenC 13:44, 26 August 2024 (UTC)
geohack is down
Looking in to reports that geohack (where article coordinates go) is down. Getting 504 timeouts when following links such as [1]. — xaosflux Talk 13:37, 26 August 2024 (UTC)
- Reported at mw:Talk:GeoHack#Geohack seems to be down. — xaosflux Talk 13:43, 26 August 2024 (UTC)
- Appears to be back up, no idea who fixed it. — xaosflux Talk 15:13, 26 August 2024 (UTC)
Zombies in the search index
This search – -hastemplate:"short description" prefix:"List of" – returns just two results and they are the same page – List of Coastal Carolina Chanticleers head baseball coaches. One copy (2024-06-09T16:09:55) is a version of the article just before it was moved to draftspace (2024-06-09T16:49:44). The other version is the article that was re-created under the original article name. Any clues as to how we expunge the undead version from the search index? — GhostInTheMachine talk to me 14:08, 26 August 2024 (UTC)
- copied from WP talk:Short description — GhostInTheMachine talk to me 14:13, 26 August 2024 (UTC)
- phab:T331127 maybe, which should have been fixed a while ago. Izno (talk) 14:59, 26 August 2024 (UTC)
- Thanks. Looks like it, but the ticket was closed a few weeks back. Should it be re-opened? — GhostInTheMachine talk to me 15:29, 26 August 2024 (UTC)
- I nudged it, we'll see what the response is. Izno (talk) 15:52, 26 August 2024 (UTC)
- Thanks. Looks like it, but the ticket was closed a few weeks back. Should it be re-opened? — GhostInTheMachine talk to me 15:29, 26 August 2024 (UTC)
Tech News: 2024-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.
Feature news
- Administrators can now test the temporary accounts feature on test2wiki. This was done to allow cross-wiki testing of temporary accounts, for when temporary accounts switch between projects. The feature was enabled on testwiki a few weeks ago. No further temporary account deployments are scheduled yet. Temporary Accounts is a project to create a new type of user account that replaces IP addresses of unregistered editors which are no longer made public. Please share your opinions and questions on the project talk page.
- Later this week, editors at wikis that use FlaggedRevs (also known as "Pending Changes") may notice that the indicators at the top of articles have changed. This change makes the system more consistent with the rest of the MediaWiki interface. [2]
Bugs status
- Editors who use the 2010 wikitext editor, and use the Character Insert buttons, will no longer experience problems with the buttons adding content into the edit-summary instead of the edit-window. You can read more about that, and 26 other community-submitted tasks that were resolved last week.
Project updates
- Please review and vote on Focus Areas, which are groups of wishes that share a problem. Focus Areas were created for the newly reopened Community Wishlist, which is now open year-round for submissions. The first batch of focus areas are specific to moderator workflows, around welcoming newcomers, minimizing repetitive tasks, and prioritizing tasks. Once volunteers have reviewed and voted on focus areas, the Foundation will then review and select focus areas for prioritization.
- Do you have a project and are willing to provide a three (3) month mentorship for an intern? Outreachy is a twice a year program for people to participate in a paid internship that will start in December 2024 and end in early March 2025, and they need mentors and projects to work on. Projects can be focused on coding or non-coding (design, documentation, translation, research). See the Outreachy page for more details, and a list of past projects since 2013.
Learn more
- If you're curious about the product and technology improvements made by the Wikimedia Foundation last year, read this recent highlights summary on Diff.
- To learn more about the technology behind the Wikimedia projects, you can now watch sessions from the technology track at Wikimania 2024 on Commons. This week, check out:
- Community Configuration - Shaping On-Wiki Functionality Together (55 mins) - about the Community Configuration project.
- Future of MediaWiki. A sustainable platform to support a collaborative user base and billions of page views (30 mins) - an overview for both technical and non technical audiences, covering some of the challenges and open questions, related to the platform evolution, stewardship and developer experiences research.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 20:29, 26 August 2024 (UTC)
Partially blocked user still able to edit page?
Any idea how DN27ND is still able to edit the page Nori Bunasawa? They appear to have been partially blocked from editing it on July 31, but were able to make dozens of edits to it on August 27. –Novem Linguae (talk) 07:34, 28 August 2024 (UTC)
- The most likely explanation is that, because of an AfD debate, the article was deleted and the pageblock then ended. And then the article was recreated, and the editor was then able to contribute to it. The current incarnation of the article was deleted by another administrator a few minutes ago, just as I was about to click the delete button. My explanation is an informed hunch and those with deeper understanding of the software may have a better explanation. Cullen328 (talk) 07:44, 28 August 2024 (UTC)
- On 28 August 2024, Special:Contributions/DN27ND moved User:DN27ND/sandbox3 to Nori Bunasawa. I guess a partial block from editing does not prevent moving a page to the deleted and unsalted target. The edits occurred in the sandbox, before moving. Johnuniq (talk) 07:46, 28 August 2024 (UTC)
- There's some edits after the page was moved. I think Cullen328 above might be on the right track. Maybe partial blocks are by page_id rather than page_title. Thank you both for the ideas. –Novem Linguae (talk) 07:48, 28 August 2024 (UTC)
- Just a brief update here...
- The previously blocked user is already arguing for undeletion at Requests for Undeletion, here [3].
- Given that the article coudl as easily have been deleted under G5 as G4, would it not be possible for an admin to just site block the user, rather than for others to have their time wasted by his continual bad faith actions? Axad12 (talk) 08:29, 28 August 2024 (UTC)
- That's off-topic for the technical discussion. Nardog (talk) 08:48, 28 August 2024 (UTC)
- You can post future updates about user behavior in Wikipedia:Teahouse#Speedy deletion criteria, which I'm subscribed to. –Novem Linguae (talk) 08:54, 28 August 2024 (UTC)
- No problem, I will open a thread at ANI and copy you in. (I will say for now however that I feel that the user's behaviour at Requests for Undeletion was quite unacceptable). Axad12 (talk) 08:57, 28 August 2024 (UTC)
- @Novem Linguae Partial blocks apply to a specific incarnation of a page, not the page title (as you say, it works by page id). If you move a page to a new title the partial block should move with it.
- You also cannot use a partial block to stop an editor creating a page.
- See the manual on mediawiki: MW:Manual:Block and unblock#Partial blocks
- See Phab:T271253 for a request to make this clearer. 86.23.109.101 (talk) 10:48, 28 August 2024 (UTC)
- There's some edits after the page was moved. I think Cullen328 above might be on the right track. Maybe partial blocks are by page_id rather than page_title. Thank you both for the ideas. –Novem Linguae (talk) 07:48, 28 August 2024 (UTC)
Namespace naming inconsistently
Perhaps changed recently or I did not pay attention but Special:Watchlist has filter for namespace and refers to Article/Mainspace as "Content", the first I've seen it named as such anywhere. I like content but find it confusing when elsewhere e.g in Special:MovePage it's called (Article). I don't have a strong opinion on the correct name, but think we should minimize confusion. ~ 🦝 Shushugah (he/him • talk) 10:55, 28 August 2024 (UTC)
- Are you perhaps confusing the "All contents" entry with the "Article" entry in the drop down ? —TheDJ (talk • contribs) 11:18, 28 August 2024 (UTC)
- If you really see "Content" and not "All contents" then what is your language at Special:Preferences? "All contents" in the watchlist means all non-talk pages. There is also a MediaWiki concept of "content namespaces" which can be set by a wiki with mw:Manual:$wgContentNamespaces. I think it's only mainspace for all Wikimedia wikis (no mention in InitialiseSettings or CommonSettings). I haven't seen it used in any watchlist settings. PrimeHunter (talk) 11:52, 28 August 2024 (UTC)
- {{trout}} me 🎏 You are right! I did not read closely enough, despite bothering to report it here, because I would have expected it to select all content/talk pages then. Thank you for the informative links down MediaWiki rabbit hole! ~ 🦝 Shushugah (he/him • talk) 12:36, 28 August 2024 (UTC)
- If you really see "Content" and not "All contents" then what is your language at Special:Preferences? "All contents" in the watchlist means all non-talk pages. There is also a MediaWiki concept of "content namespaces" which can be set by a wiki with mw:Manual:$wgContentNamespaces. I think it's only mainspace for all Wikimedia wikis (no mention in InitialiseSettings or CommonSettings). I haven't seen it used in any watchlist settings. PrimeHunter (talk) 11:52, 28 August 2024 (UTC)
Onlyinclude allows for transclusion of hidden comments?
I was wondering, has it always been the case that <onlyinclude>...</onlyinclude>
tags, if placed inside of a hidden HTML comment, will still transclude its contents when called from another page? (For example, see here and here in my sandbox.) This seems strange to me, if the code is hidden it seems like it should not be transcluded elsewhere. This doesn't seem to apply to includeonly though.
I'm aware of the issue with onlyinclude+nowiki tags mentioned here, but found nothing about hidden comments. Thanks, S.A. Julio (talk) 06:54, 28 August 2024 (UTC)
- I assume it has always been like that and it seems logical to me. Comments
<!-- ... -->
are saved as part of the page and not stored somewhere else. If the page has onlyinclude tags inside then all other parts of the page are ignored on transclusion so the comment start and end tags are not seen. includeonly works different. A page with includeonly but no onlyinclude is processed from the beginning on transclusion so the comment tags are seen there. PrimeHunter (talk) 12:10, 28 August 2024 (UTC)- Okay, thanks for the clarification. S.A. Julio (talk) 19:11, 28 August 2024 (UTC)
Invisible text on pending changes page histories with green on black gadget.
I use the green on black gadget available through preferences. When I go to the history of a page which has pending changes, the bytes and the user-entered edit summary for the top two entries are in black text on black. I struggle to read this. If I click-and-highlight then I can read it. I'm not sure how long ago it started. For example here. Can it be fixed? Thanks, DuncanHill (talk) 16:07, 29 August 2024 (UTC)
- Which skin are you using? Are you also in dark mode? (If so, which dark mode?) — xaosflux Talk 17:36, 29 August 2024 (UTC)
- @Xaosflux: Monobook. No, I'm not using dark mode. DuncanHill (talk) 17:45, 29 August 2024 (UTC)
Old notifications reappearing
The other day, I had a notification I had already seen reappear a month later. Apparently this is something which is seen on occasion, but nobody knows how to reproduce it. If this happens to you, please leave comments on T373443 with whatever details you can figure out, or just email me if you don't have phab access and I can do it for you. RoySmith (talk) 17:57, 29 August 2024 (UTC)
Template code validation
Hi, can someone with a good knowledge of template code have a look at my request over at Wikipedia:Village pump (miscellaneous) § Template:Permanent dead link? Thanks! — AP 499D25 (talk) 02:00, 30 August 2024 (UTC)
Dark mode new talk message
I have been experimenting with dark mode (&withgadget=dark-mode
). While doing that, I received a "You have a new Talk page message" notification. In dark mode, I had no idea that the notification was there. The text is black on a dark brown background that visually disappears in the black window. I did not even see the light red badge on the bell. Looking at it now, the pink badge is kind of obvious but I only noticed it while looking for it after seeing the normal notification in another window with the original white background. It is essential that new editors receive an in-your-face talk notification because we block people who do not respond but continue with problematic editing. I know this should be requested elsewhere but there is not much point adding the opinion of one person so I'm looking for thoughts. Johnuniq (talk) 05:07, 30 August 2024 (UTC)
- Which skin ? —TheDJ (talk • contribs) 08:02, 30 August 2024 (UTC)
- Good point, monobook. Johnuniq (talk) 08:47, 30 August 2024 (UTC)
List of contributions as plain text
If I filter my recent contributions, for example to show only page creations and exclude the User: namespace, I am returned a list of edits.
If I only want the names of the pages concerned, as plain text, can I extract that, using some too or other? If so, how? Or can I get the results as, say, a CSV file? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:09, 27 August 2024 (UTC)
- Not via the WEBUI, you may get close with the API - but a quarry report is likely going to give you what you want assuming your filters are supported cheaply. — xaosflux Talk 18:26, 27 August 2024 (UTC)
- WP:RAQ. Izno (talk) 21:02, 27 August 2024 (UTC)
- Another possibility is old-school screen scraping. Just go to your contributions page in a browser and save the page as HTML (in Chrome, it's File/Save Page As..., and I'm sure similar in most other browsers). Then hack at the HTML with standard command-line tools. This did a pretty good job for me:
% grep "mw-contributions-title" User\ contributions\ for\ RoySmith\ -\ Wikipedia.html | sed -e 's/<\/a>//' -e 's/.*>//' | sort | uniq
- It's ugly and hackish, but for a one-off job where you can accept occasional errors, it's often the best way. If you're not into the command-line, google for "HTML to CSV conversion" and you'll find lots of other tools that do this. RoySmith (talk) 15:22, 29 August 2024 (UTC)
- I use Notepad++ + regex. I copy the list into Np++, use Alt to column-select all the text to the left of the page names & remove it, then Ctrl+H to remove
diffhist [^\r\n]+
, leaving only the page names. ~ Tom.Reding (talk ⋅dgaf) 16:23, 29 August 2024 (UTC)
Thank you, Tom.Reding (and all) that's an interesting approach. But the recent results for my contribution include:
12:02, 26 August 2024 diff hist +32 N De Cotiis #REDIRECT Vincenzo de Cotiis current Tags: New redirect Uncategorized redirect
18 August 2024
18:59, 18 August 2024 diff hist +32 N Taxa inquirenda Species inquirenda current Tags: New redirect Uncategorized redirect
7 August 2024
22:04, 7 August 2024 diff hist +31 N Jablochkoff electric candle #REDIRECT Yablochkov candle current Tags: New redirect Uncategorized
and not only does your regex not work for that (it removes the page titles as well as other stuff), but the "diff hist" columns do not align, as the dates are of differing lengths. Are we at cross purposes? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:14, 30 August 2024 (UTC)
- Replacing:
(\r?\n)[^\r\n]+? diff hist [\+\-][\d\.,]+[ ]+(?:N[ ]+)?([^\r\n]+?)(?: )[^\r\n]+
- with:
$1$2
- worked for me for the sample text.
- A couple caveats:
- The 2 apparently empty brackets
[ ]
actually contain 2 whitespace characters each, present in sample text, 1 of which is 0-width, so be careful when copy-pasting, since misplacing and/or losing the 0-width character is never good. - There are 3 whitespace characters in
(?: )
, which are also required. - The position & formatting of
diff hist
/diffhist
probably differs based on skin, but the idea is to use some string that appears at the same relative position on each line. - Make sure there is a blank line before the first line, to match
(\r?\n)
, which are the CRLF characters, or else the regex won't evaluate the first line.
What Izno said. Or, to save you the trip, here's a list going back to late June 2018 (when the create log began). I've removed creations in user talk, too, since I assumed that's what you meant; there were 585 in that namespace, compared to just 21 in User:. CSV available in the cyan "Download data" box. —Cryptic 14:46, 30 August 2024 (UTC)
Missing history
The redirect Actinobacillus actinomycetemcomitans seems to have once been an article. Its history shows DRosenbach making an edit that converted it to a redirect and reduced the pagesize by 2037 bytes – but it doesn't show any revisions before that! What might have caused this? (I checked nost:Actinobacillus actinomycetemcomitans, but it didn't exist.) jlwoodwa (talk) 19:52, 29 August 2024 (UTC)
- @Jlwoodwa: It's probably something to do with the histmerge that Dreamy Jazz (talk · contribs) carried out at 21:25, 22 May 2024 - the other page involved was Aggregatibacter actinomycetemcomitans. --Redrose64 🌹 (talk) 20:48, 29 August 2024 (UTC)
- Special:Redirect/logid/162249345 is the log entry with slightly more details. — xaosflux Talk 21:22, 29 August 2024 (UTC)
- Yes this because I history merged the page. The tool doesn't update the "diff count" on the revision that is left behind. The same thing occurs on the history page for Aggregatibacter actinomycetemcomitans, but that incorrect count has a revision before it. Dreamy Jazz talk to me | my contributions 15:44, 30 August 2024 (UTC)
- Special:Redirect/logid/162249345 is the log entry with slightly more details. — xaosflux Talk 21:22, 29 August 2024 (UTC)
Problem of using "|show_designation=no" and "|show_type=no" on Template:Public art row
Hi
I am trying to use "|show_designation=no" and "|show_type=no" commands on Template:Public art row when I use the template on list of public art pages, but it keeps showing these colons.
What should I do to stop them being shown?
Cheers Shkuru Afshar (talk) 00:29, 31 August 2024 (UTC)
- Please link to an example page. – Jonesey95 (talk) 04:18, 31 August 2024 (UTC)
- I created an example on Template:Public art row/testcases. Shkuru Afshar (talk) 06:15, 31 August 2024 (UTC)
- The simple answer is that these parameters are not recognised or supported by Template:Public art header. Perhaps it was thought that every table should have these columns. Are you sure it is appropriate to omit them in the article you are working on? — Martin (MSGJ · talk) 06:36, 31 August 2024 (UTC)
- No. I am not.
- But what if all items don't have a grade? Like List of public art in Melbourne.
- And "Type" parameter could be confusing. Some items could be both a sculpture and/or a statue. (Check "Driver & Wipers Memorial" and "King George V" on List of public art in Melbourne) Shkuru Afshar (talk) 06:43, 31 August 2024 (UTC)
- If you like, we can take this discussion to Template talk:Public art row (which I have now watchlisted) and we can explore further options — Martin (MSGJ · talk) 06:47, 31 August 2024 (UTC)
- I agree.
- There, I am going to submit an edit request for both Designation and Type columns. Shkuru Afshar (talk) 06:54, 31 August 2024 (UTC)
- If you like, we can take this discussion to Template talk:Public art row (which I have now watchlisted) and we can explore further options — Martin (MSGJ · talk) 06:47, 31 August 2024 (UTC)
- The simple answer is that these parameters are not recognised or supported by Template:Public art header. Perhaps it was thought that every table should have these columns. Are you sure it is appropriate to omit them in the article you are working on? — Martin (MSGJ · talk) 06:36, 31 August 2024 (UTC)
- I created an example on Template:Public art row/testcases. Shkuru Afshar (talk) 06:15, 31 August 2024 (UTC)
Dark mode when logged out of Wikipedia
When logged out, in dark mode, at {{Soulfly}}, the actual link for Soulfly is an extremely dark grey that is difficult to see on a black background. It was not this way before. Does anyone know how to fix this? --Jax 0677 (talk) 12:41, 31 August 2024 (UTC)
Xtools appears to be down
Here - it says 'Error' and then "This web service cannot be reached. Please contact a maintainer of this project. Maintainers can find troubleshooting instructions from our documentation on Wikitech." Any idea what's going on? GiantSnowman 13:43, 31 August 2024 (UTC)
- Now appears to be back up. GiantSnowman 16:37, 31 August 2024 (UTC)
Disappearing edit
I'm not familiar with Phabricator and I'm not sure it's the best place to point this out. I made this edit. It appeared on the page after I clicked on the button to publish. As I clicked back to where I was before, the edit disappeared. It was gone from the live page and also gone when I clicked the edit button to browse the page's text, this without any intervention via succeeding edits. This continued to be the case after I cleared the cache for the page. However, the edit was still there when I checked the page's edit history and my own contribution history. I thought this to be bizarre, as I don't recall anything like this ever happening before. RadioKAOS / Talk to me, Billy / Transmissions 20:14, 31 August 2024 (UTC)
- Your edit was undone by Sunshineisles2 in Special:Diff/1243313302 about 40 seconds after yours. I'm assuming this was an inadvertent reversion due to an edit conflict. RoySmith (talk) 20:23, 31 August 2024 (UTC)
- Thanks. I saw that edit but I guess I neglected to scroll all the way down. RadioKAOS / Talk to me, Billy / Transmissions 20:30, 31 August 2024 (UTC)
- Yes, I was unaware this happened and it was completely unintentional. Apologies for any confusion. Sunshineisles2 (talk) 21:24, 31 August 2024 (UTC)
Tool request: What changed recently?
Courtesy link: User talk:Mathglot § Ships of ancient Rome
History link: these 6 edits at Ships of ancient Rome
(Note: not sure this is the right venue for a tool request; I searched around and the hatnote at Wikipedia:Bug reports and feature requests pointed me here.)
I would like to request a tool that, given a revision number (or title) of a page and timestamps T1 and T2, would run down all the transcluded templates, {{excerpt}}s, and modules in that rev, and return a most-recent-first sorted list of transcluded/invoked items which have changes recorded in their history between T1 and T2, or since T1 (if T2 is empty). The tool should recursively expand templates (maybe only if |recurse=y
?). Possible format: four columns, with 1) Item name, 2) last change timestamp, 3) rev. number, 4) userid; where item name could be template, module, or excerpted source pagename. Bonus: column five, containing the template traceback sequence, if the row item was not found at top level, i.e., the item was not directly transcluded by the given page rev., but further down.)
Here is my use case: I recently panicked when I noticed that Ships of ancient Rome, which has over one hundred {{sfn}} short citations and makes liberal use of {{excerpt}} had fifty harv errors of the type 'Harv error: link from CITEREFLastname-YYYY doesn't point to any citation'. (I am very familiar with sfn/Harv errors of this sort and how to fix them, and wrote part of the doc for it; ditto {{excerpt}} doc.) The offending edit was a very minor change to add a {{convert}} template to the body (diff) which resulted, very oddly, in the 50 errors. No one had changed {{convert}} or Module:Convert, so I first suspected PEIS issues or nonprinting characters, but that proved wrong, and the problem went away during the time I worked on it (see these 6 edits), so I presume an upstream problem had been fixed in the interim. It could have been an entirely different template, but my investigation was hampered, and then I abandoned it, because of the impracticality of tracking down every transclusion made by the article, possibly recursively if nothing changed in directly transcluded items.
Having a tool that would return a sorted list of most recently changed transcluded items would be a powerful aid in this situation. (O/T: we need a word that encompasses the meanings of transcluded, invoked, or excerpted; I vote for eval'ed unless somebody has a better idea.)
The way things turned out, the problem I observed (whatever the cause) was fixed while I looked into it, and that's great, but what if it hadn't been? Such a tool would be very useful to help someone track down a real problem and make it possible to find and advise the author of a recent change that broke something, whereas now, it is so impractical as to be near hopeless. Can anyone build this? (edit conflict) Mathglot (talk) 21:04, 31 August 2024 (UTC)
- Sounds a lot like Special:RecentChangesLinked, except substituting the templatelinks table for pagelinks, only going in one direction, and without the unfeasible complication of looking at old revisions instead of the current one. I'm surprised it's not in MediaWiki already (and wouldn't be surprised if it was and I just didn't know where to find it). Twenty years ago I'd have suggested making a feature request. For now, something like quarry:query/85974 is probably the best you can hope for. —Cryptic 21:43, 31 August 2024 (UTC)
template/technique request : insert wikitext between each character of string
i am looking for something that works like the following two examples
;
between abc
→ a;b;c
{{key|
followed by }}{{key|
between abc
followed by }}
→ abc
thanks in advance akizet talk 20:34, 1 September 2024 (UTC)
{{#invoke:String|replace|source=abc |pattern=(%a) |replace={{key|%1}} |plain=false}}
- abc
- —Trappist the monk (talk) 20:49, 1 September 2024 (UTC)
- thank you :) akizet talk 21:05, 1 September 2024 (UTC)
How are references rendered?
A while ago, I asked about references. I put that aside for a while and now I'm picking it up again. It's obvious that my original strategy was not going to work, so I'm starting again. Before I dive into this too deeply, is there any actual documentation on how references are rendered in HTML? Some of it I can suss out. For example, the first citation in Special:Permalink/1233803324 gives:
<sup id="cite_ref-:2_1-0" class="reference"><a href="#cite_note-:2-1">[1]</a></sup>
for the in-line citation and links to:
<ol class="references"> ... <li id="cite_note-:2-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-:2_1-0"><sup><i><b>a</b></i></sup></a> ... </ol>
in the reflist, with the backlink for citation 1a, and I should treat the "cite_ref..." and "cite_note" ids as opaque strings (as opposed to trying to parse them, as I was originally doing). Is that it, or are the more bits of magic that will only become apparent when this iteration of my code breaks on something I haven't seen yet? RoySmith (talk) 19:26, 31 August 2024 (UTC)
- There is no documentation on the current parser's format, but there is documentation for the new parser: https://www.mediawiki.org/wiki/Specs/HTML/Extensions/Cite. You will probably have a much more enjoyable time working with the new parser's output anyway, since it includes lots of extra output to make it more machine-readable (e.g. the values for
ref
name
in thedata-mw
attribute – no need to try to parse them out of thehref
/id
). - You can access the new parser's HTML like this in your browser: [4] or like this from the tool you're working on: [5]. Matma Rex talk 00:20, 1 September 2024 (UTC)
- OK, that looks like it might work, thanks. RoySmith (talk) 01:04, 1 September 2024 (UTC)
- @Matma Rex what does the
about
attribute on the<sup>
tag mean? RoySmith (talk) 18:53, 1 September 2024 (UTC)- It's somewhat vestigial. For other wikitext XML-style tags, and for template transclusions, it's used to mark all of the HTML tags that were generated by that wikitext tag or template. But since every wikitext
<ref>
corresponds to exactly one HTML<sup>
, the attributes don't provide any extra information. This is mentioned at https://www.mediawiki.org/wiki/Specs/HTML#DOM_Ranges, but it could be documented better… Matma Rex talk 21:32, 1 September 2024 (UTC)it's used to mark all of the HTML tags that were generated by that wikitext tag or template
Wow, that's (in the general case) really useful. I've often looked at the pile of HTML in my browser and tried to figure out what generated it. Now I know! RoySmith (talk) 22:48, 1 September 2024 (UTC)
- It's somewhat vestigial. For other wikitext XML-style tags, and for template transclusions, it's used to mark all of the HTML tags that were generated by that wikitext tag or template. But since every wikitext
- @Matma Rex what does the
- OK, that looks like it might work, thanks. RoySmith (talk) 01:04, 1 September 2024 (UTC)
Am I imagining that until today I could hide/unhide diffs in my watch list?
Or is that somewhere else? Doug Weller talk 12:30, 31 August 2024 (UTC)
- Hm, maybe that is only for user contributions, sorry. Mind you it would be nice if it worked in watchlists. Doug Weller talk 12:33, 31 August 2024 (UTC)
- Preferences - Watchlist - Changes shown & Watched pages? Donald Albury 12:57, 31 August 2024 (UTC)
- @Donald Albury Nothing there, I think I'm just forgetting it was only contributions. Thanks. Doug Weller talk 13:00, 31 August 2024 (UTC)
- @Doug Weller: You load User:Writ Keeper/Scripts/commonHistory.js in meta:User:Doug Weller/global.js. That should give an option to show or hide diffs in both contributions and watchlist. Maybe something interferes with the watchlist part. It works for me. Do you know how to run
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript");
in your browser console? If yes, does it display the option at https://en.wikipedia.org/wiki/Special:Watchlist?safemode=1? If no, what is your browser? PrimeHunter (talk) 23:00, 31 August 2024 (UTC)- @PrimeHunter Thanks. I'm afraid I am not sure how to add that to my global.js - or how to load the other one in my browser console. In fact, I'd never heard of my browser console until today. I use Chrome and have found it now, but am still pretty clueless. Sorry. Doug Weller talk 08:06, 1 September 2024 (UTC)
- @Doug Weller: You already load it in your global.js. That's why you have the diff option in contributions and used to have it in your watchlist. safemode=1 omits user scripts and gadgets. The browser console is a way to run specific JavaScript on a page you are currently viewing. Right-click on an empty part of https://en.wikipedia.org/wiki/Special:Watchlist?safemode=1, click "Inspect", click the "Console" tab in the lower part of the right pane, copy-paste the above command and press enter. Does that give you "Inspect diff" links at the time (it won't last when you leave the page), and do they work? What happens if you do the same at https://en.wikipedia.org/wiki/Special:Watchlist? PrimeHunter (talk) 10:08, 1 September 2024 (UTC)
- @PrimeHunter I copied mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript"); into the console and hit return but got the message "undefined". Doug Weller talk 10:27, 1 September 2024 (UTC)
- Not sure if it is relevant, but I've 3 watchlists, one for user and user talk pages, one for articles and their talk pages, the third for Wikipedia and Wikipedia talk, and that one has show and hide diffs. I'm not sure if that's always been the case, sorry. Doug Weller talk 10:32, 1 September 2024 (UTC)
- @Doug Weller: I also get "undefined" but that's normal and just means the command has no return statement. The question was whether you get "Inspect diff" links. I do. What do you mean by having three watchlists? Are you referring to pages like Special:RecentChangesLinked/User:Doug Weller/usertalkwatchlist? That's not your watchlist although it has similarities and "Inspect diff" works for me there. If that's actually the page where it's missing for you then try the console command at https://en.wikipedia.org/wiki/Special:RecentChangesLinked/User:Doug_Weller/usertalkwatchlist?safemode=1. Say whether you get the missing diff option, not whether the console says "undefined". PrimeHunter (talk) 10:58, 1 September 2024 (UTC)
- @PrimeHunter No, but I've taken up far too much of your time, I can live with what I have. Thanks. Doug Weller talk 11:07, 1 September 2024 (UTC)
- Although now my ANI list no longer has hide/show diffs. Doug Weller talk 12:07, 1 September 2024 (UTC)
- @PrimeHunter sorry to ping you again, but any ideas who to undo this? Thanks. Doug Weller talk 15:02, 1 September 2024 (UTC)
- I've had help and it's fixed. Just had to removed some entries. Doug Weller talk 16:37, 2 September 2024 (UTC)
- @PrimeHunter sorry to ping you again, but any ideas who to undo this? Thanks. Doug Weller talk 15:02, 1 September 2024 (UTC)
- Although now my ANI list no longer has hide/show diffs. Doug Weller talk 12:07, 1 September 2024 (UTC)
- @PrimeHunter No, but I've taken up far too much of your time, I can live with what I have. Thanks. Doug Weller talk 11:07, 1 September 2024 (UTC)
- @Doug Weller: I also get "undefined" but that's normal and just means the command has no return statement. The question was whether you get "Inspect diff" links. I do. What do you mean by having three watchlists? Are you referring to pages like Special:RecentChangesLinked/User:Doug Weller/usertalkwatchlist? That's not your watchlist although it has similarities and "Inspect diff" works for me there. If that's actually the page where it's missing for you then try the console command at https://en.wikipedia.org/wiki/Special:RecentChangesLinked/User:Doug_Weller/usertalkwatchlist?safemode=1. Say whether you get the missing diff option, not whether the console says "undefined". PrimeHunter (talk) 10:58, 1 September 2024 (UTC)
- Not sure if it is relevant, but I've 3 watchlists, one for user and user talk pages, one for articles and their talk pages, the third for Wikipedia and Wikipedia talk, and that one has show and hide diffs. I'm not sure if that's always been the case, sorry. Doug Weller talk 10:32, 1 September 2024 (UTC)
- @PrimeHunter I copied mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript"); into the console and hit return but got the message "undefined". Doug Weller talk 10:27, 1 September 2024 (UTC)
- @Doug Weller: You already load it in your global.js. That's why you have the diff option in contributions and used to have it in your watchlist. safemode=1 omits user scripts and gadgets. The browser console is a way to run specific JavaScript on a page you are currently viewing. Right-click on an empty part of https://en.wikipedia.org/wiki/Special:Watchlist?safemode=1, click "Inspect", click the "Console" tab in the lower part of the right pane, copy-paste the above command and press enter. Does that give you "Inspect diff" links at the time (it won't last when you leave the page), and do they work? What happens if you do the same at https://en.wikipedia.org/wiki/Special:Watchlist? PrimeHunter (talk) 10:08, 1 September 2024 (UTC)
- @PrimeHunter Thanks. I'm afraid I am not sure how to add that to my global.js - or how to load the other one in my browser console. In fact, I'd never heard of my browser console until today. I use Chrome and have found it now, but am still pretty clueless. Sorry. Doug Weller talk 08:06, 1 September 2024 (UTC)
- @Doug Weller: You load User:Writ Keeper/Scripts/commonHistory.js in meta:User:Doug Weller/global.js. That should give an option to show or hide diffs in both contributions and watchlist. Maybe something interferes with the watchlist part. It works for me. Do you know how to run
- @Donald Albury Nothing there, I think I'm just forgetting it was only contributions. Thanks. Doug Weller talk 13:00, 31 August 2024 (UTC)
- Preferences - Watchlist - Changes shown & Watched pages? Donald Albury 12:57, 31 August 2024 (UTC)
Adding an EventListener to avoid unwanted submit during type of "edit summary" textboxes
Hi, for example during type of "edit summary" after an edition or during writing "Other/additional reason" for moving a page, users may press enter button, but they may or may not tend to submit their form. In the case of not tending to submit their form, this behavior of Wikipedia may be considered ill-posed. For example consider this scenario:
- Enter my sandbox page
- Do all the edits you want
- Type some edit summary at the final text box
- Press Enter
During the third stage, casual pressing enter key may lead to ill-posed submit of this form. So, I propose adding this EventListener to avoid wrong submit:
var input = document.getElementById("myInput");
input.addEventListener("keypress", function(event) {
if (event.key === "Enter") {
}
});
Or somehow showing a confirmation message box, like this:
var input = document.getElementById("myInput");
input.addEventListener("keypress", function(event) {
if (event.key === "Enter") {
let text = "Are you sure?";
if (confirm(text) == true) {
document.getElementById("myForm").submit();
}
}
});
Thanks, Hooman Mallahzadeh (talk) 15:46, 31 August 2024 (UTC)
- This is the default behavior of forms on in HTML. I don't think it is wise to change that. —TheDJ (talk • contribs) 08:46, 1 September 2024 (UTC)
- I myself have had many problems with this «default behavior of forms on in HTML». This behavior is not the intended behavior for such important actions like "Edit" and "Move" of pages. I really think that other users of Wikipedia sometimes have had many problems with this default behavior.
- This default behavior is good for other applications, like entering a password and then checking it on back-end code.
- But for "editing" or "moving" an article, this default behavior is not appropriate. In fact, at least a confirmation is required. Hooman Mallahzadeh (talk) 08:56, 1 September 2024 (UTC)
- I myself have had many problems with this «default behavior of forms on in HTML». This behavior is not the intended behavior for such important actions like "Edit" and "Move" of pages. I really think that other users of Wikipedia sometimes have had many problems with this default behavior.
- There are a few scripts like that listed in Wikipedia:User scripts/List#Edit form (SuppressEnterInForm, NoSubmitSummary, enterInSummaryPreviews). Nardog (talk) 11:28, 1 September 2024 (UTC)
- (edit conflict) See Wikipedia:User scripts/List#Edit summary if you want to disable save on enter. I haven't tried it and wouldn't support it as default. PrimeHunter (talk) 11:32, 1 September 2024 (UTC)
- I really think that showing a confirmation before publishing an edit (only showing confirmation in the case of pressing Enter key in the textbox, otherwise not showing) would be helpful. Hooman Mallahzadeh (talk) 12:14, 1 September 2024 (UTC)
- To be really blunt: No, it would be absolutely terrible. Izno (talk) 19:24, 1 September 2024 (UTC)
- This should not be the default, and I agree with Izno. Dreamy Jazz talk to me | my contributions 21:19, 1 September 2024 (UTC)
- As you can see Hooman, many experienced editors are very used to being able to press Tab and then Enter to quickly save their edits ;) even though it causes mistakes sometimes (I've seen many edit summaries cut off because someone pressed Enter instead of an apostrophe).
- For what it's worth, other editing interfaces actually show a confirmation message when pressing Enter, and require Ctrl+Enter to actually submit the edit. This was implemented in the visual editor (where the edit summary field appears multi-line, so trying to press Enter to input a line break would be a common mistake) and in the reply tool (the edit summary is hidden under "Advanced" – there was some discussion about that behavior at the time at T326500). Matma Rex talk 21:43, 1 September 2024 (UTC)
- And in the CAPTCHA confirmation menu for the reply tool, which might be a side-effect? Thankfully it doesn't happen often, I'm not a fan of needing to press Ctrl+Enter there.
- Also, in the 2 years I've edited as IPs I never learned you could edit the summary - only now learning it from you. – 2804:F1...4C:A92D (talk) 23:00, 2 September 2024 (UTC)
- To be really blunt: No, it would be absolutely terrible. Izno (talk) 19:24, 1 September 2024 (UTC)
- I really think that showing a confirmation before publishing an edit (only showing confirmation in the case of pressing Enter key in the textbox, otherwise not showing) would be helpful. Hooman Mallahzadeh (talk) 12:14, 1 September 2024 (UTC)
Parser function for checking if a user is blocked
If possible, could someone assist me with a template which checks if a user is blocked?
The syntax would ideally go something like this:
- {{ifblocked|Blocked User|foo|bar}} would return foo because Blocked User is blocked.
- {{ifblocked|Magog the Ogre|foo|bar}} would return bar because Magog the Ogre is unblocked.
I'm happy to use Lua if necessary (I have never learned to use Lua, unfortunately).
If possible, I would prefer to also check global locks. Magog the Ogre (t • c) 13:25, 1 September 2024 (UTC)
- This is currently not possible. See phab:T27380 and phab:T325146. * Pppery * it has begun... 13:44, 1 September 2024 (UTC)
- Do you have a certain use-case in mind? And especially, is this something for mainly personal convenience or a tool you might share, or instead is it for something you are developing for wider adoption/generally used template-tags? DMacks (talk) 21:48, 1 September 2024 (UTC)
- @DMacks: yes it would come in useful on c:User:SteinsplitterBot/Previously deleted files. I have written an API script which could be installed globally on a project (if we still support that?) and could be used for any use case. But it's an onerous workaround. Magog the Ogre (t • c) 00:11, 3 September 2024 (UTC)
- My thought was basing something on MediaWiki:Gadget-markblocked.js. But I'm not a JS whiz, and it's JS/API so it's maybe not lightweight or easily deployable. DMacks (talk) 04:08, 3 September 2024 (UTC)
- @DMacks: yes it would come in useful on c:User:SteinsplitterBot/Previously deleted files. I have written an API script which could be installed globally on a project (if we still support that?) and could be used for any use case. But it's an onerous workaround. Magog the Ogre (t • c) 00:11, 3 September 2024 (UTC)
Tech News: 2024-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.
Weekly highlight
- Editors and volunteer developers interested in data visualisation can now test the new software for charts. Its early version is available on beta Commons and beta Wikipedia. This is an important milestone before making charts available on regular wikis. You can read more about this project update and help to test the charts.
Feature news
- Editors who use the Special:UnusedTemplates page can now filter out pages which are expected to be there permanently, such as sandboxes, test-cases, and templates that are always substituted. Editors can add the new magic word
__EXPECTUNUSEDTEMPLATE__
to a template page to hide it from the listing. Thanks to Sophivorus and DannyS712 for these improvements. [6] - Editors who use the New Topic tool on discussion pages, will now be reminded to add a section header, which should help reduce the quantity of newcomers who add sections without a header. You can read more about that, and 28 other community-submitted tasks that were resolved last week.
- Last week, some Toolforge tools had occasional connection problems. The cause is still being investigated, but the problems have been resolved for now. [7]
- Translation administrators at multilingual wikis, when editing multiple translation units, can now easily mark which changes require updates to the translation. This is possible with the new dropdown menu.
Project updates
- A new draft text of a policy discussing the use of Wikimedia's APIs has been published on Meta-Wiki. The draft text does not reflect a change in policy around the APIs; instead, it is an attempt to codify existing API rules. Comments, questions, and suggestions are welcome on the proposed update’s talk page until September 13 or until those discussions have concluded.
Learn more
- To learn more about the technology behind the Wikimedia projects, you can now watch sessions from the technology track at Wikimania 2024 on Commons. This week, check out:
- Charts, the successor of Graphs - A secure and extensible tool for data visualization (25 mins) – about the above-mentioned Charts project.
- State of Language Technology and Onboarding at Wikimedia (90 mins) – about some of the language tools that support Wikimedia sites, such as Content/Section Translation, MinT, and LanguageConverter; also the current state and future of languages onboarding. [8]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 01:03, 3 September 2024 (UTC)
- Does anyone know how we can get the new keyword into the automatic "This is the template sandbox page for..." note that appears on template sandbox pages? – Jonesey95 (talk) 04:15, 3 September 2024 (UTC)
COI edit request category not updating
Usually when I mark a COI edit request as answered or declined Category:Wikipedia conflict of interest edit requests updates almost immediately, but I've answered several today since the morning and they're still in the unanswered requests category. Any idea why this might be? I've purged the cache of the page and I don't believe I'm doing anything differently than usual. Example of an answered request still showing up in the category at Talk:Pershing Square Capital Management. Rusalkii (talk) 23:00, 2 September 2024 (UTC)
- @Rusalkii: Do you mean the box with the rows having differently-coloured backgrounds, or the list below the heading 'Pages in category "Wikipedia conflict of interest edit requests"'? They have different origins.
- The second one is the primary list, it is driven directly by the use of the
{{edit COI}}
tag (with no parameters, or with certain param values) on a talk page, and it should update at the exact moment that you save an edit that adds e.g.|D
or|answered=yes
to the tag. - If you mean the box, it's transcluded from User:AnomieBOT/COIREQTable which is built periodically by AnomieBOT (talk · contribs). I would not expect this to update instantaneously, a delay of minutes or hours is not uncommon. If AnomieBOT is not updating the page, that's a matter for the bot operator, i.e. Anomie (talk · contribs), but please read the bot's User: and User talk: pages before raising what might be a duplicate complaint. --Redrose64 🌹 (talk) 07:26, 3 September 2024 (UTC)
- Something on Toolforge had taken out several of the bot's processes. The bot has been restarted now. Anomie⚔ 11:31, 3 September 2024 (UTC)
- Got it, thanks! Rusalkii (talk) 17:09, 3 September 2024 (UTC)
- Something on Toolforge had taken out several of the bot's processes. The bot has been restarted now. Anomie⚔ 11:31, 3 September 2024 (UTC)
Talk page editing
I'm a long time editor. Throughout my career, I have used Safari. I am not updated to the most recent OS because my computer cannot handle it. I have no problem editing in mainspace. However when I make an edit to a talk page (even this page), if I move my cursor, the next capital letter will jump the cursor to the first character of the edit box, meaning I have to go back to move all sentences through cut and paste. It's obnoxious. It makes it hard to concentrate when so many sentences now constructed in reverse order need to be moved.Trackinfo (talk) 19:40, 2 September 2024 (UTC)
- @Trackinfo: A Firefox user reported the same at Wikipedia:Help desk#Glitches when typing on talk pages. They used the same "Enable quick topic adding" at Special:Preferences#mw-prefsection-editing as you so it may not be the browser but a conflicting preference, script or something else. The tool works for me in the same Firefox version 129.0.2 (64-bit) as the help desk report. If you keep the tool enabled for testing then does it work or fail at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?safemode=1? PrimeHunter (talk) 20:11, 2 September 2024 (UTC)
- It's been reported here several times over the last few years, they'll be in the archives. --Redrose64 🌹 (talk) 21:51, 2 September 2024 (UTC)
- If i remember correctly, it was the fault of the Google Translate gadget. —TheDJ (talk • contribs) 20:50, 3 September 2024 (UTC)
- It's been reported here several times over the last few years, they'll be in the archives. --Redrose64 🌹 (talk) 21:51, 2 September 2024 (UTC)
How does one go about initiating a request for batch deletion of text?
Over a year ago, User:Mliu92 expressly conceded an error at Talk:California superior courts but never attempted to fix it.
I just tried to fix a few examples and it's taking way too long. As a busy practicing attorney, I don't have two hours to spare to clean up someone else's mistakes. I have better things to do with the Labor Day holiday weekend, like going through more of my photography library to identify more photos for upload to Commons.
One of the longest running debates among lawyers for many centuries is whether a trial court should be organized as a nationwide or statewide entity that merely happens to sit in multiple counties, districts, or circuits—or whether each county, district or circuit should be regarded as having an entirely separate trial court. There are strong public policy arguments for and against each position, resulting in worldwide gridlock on this issue.
California is among the majority of American jurisdictions that adhere to the latter position. In other words, it has 58 superior courts, not one superior court that happens to sit in 58 counties. Section 1 of Article 6 of the California Constitution refers to "superior courts" (notice the plural) and Section 4 starts with the following words: "In each county there is a superior court of one or more judges."
Unfortunately, User:Mliu92 created many articles for superior courts that imply that California adheres to the former position. For example, the article for Santa Cruz County Superior Court incorrectly states that the "Superior Court of California, County of Santa Cruz, is the branch of the California superior court with jurisdiction over Santa Cruz County."
We need a bot to go through the English Wikipedia and replace every instance of the phrase "is the branch of the California superior court" with the phrase "is the California superior court". How do I go about initiating that request? Coolcaesar (talk) 19:11, 31 August 2024 (UTC)
- You can request bot work at WP:BOTREQ. — xaosflux Talk 21:32, 31 August 2024 (UTC)
- I will take a look at that page. Thank you! --Coolcaesar (talk) 17:06, 2 September 2024 (UTC)
- Isn’t this something AWB could do fairy easily? Mathglot (talk) 05:56, 4 September 2024 (UTC)
- I will take a look at that page. Thank you! --Coolcaesar (talk) 17:06, 2 September 2024 (UTC)
Coming soon: A new sub-referencing feature – try it!
Hello. For many years, community members have requested an easy way to re-use references with different details. Now, a MediaWiki solution is coming: The new sub-referencing feature will work for wikitext and Visual Editor and will enhance the existing reference system. You can continue to use different ways of referencing, but you will probably encounter sub-references in articles written by other users. More information on the project page.
We want your feedback to make sure this feature works well for you:
- Please try the current state of development on beta wiki and let us know what you think.
- Sign up here to get updates and/or invites to participate in user research activities.
We are aware that enwiki and other projects already use workarounds like {{sfn}} for referencing a source multiple times with different details. The new sub-referencing feature doesn’t change anything about existing approaches to referencing, so you can still use sfn. We have created sub-referencing, because existing workarounds don’t work well with Visual Editor and ReferencePreviews. We are looking forward to your feedback on how our solution compares to your existing methods of re-using references with different details.
Wikimedia Deutschland’s Technical Wishes team is planning to bring this feature to Wikimedia wikis later this year. We will reach out to creators/maintainers of tools and templates related to references beforehand.
Please help us spread the message. --Johannes Richter (WMDE) (talk) 11:11, 19 August 2024 (UTC)
- This is a very important task to work on, but I am not sure how this proposal is an improvement for those of us who do not use the VisualEditor.
- Compare:
<ref name="Samer M. Ali">Samer M. Ali, 'Medieval Court Poetry', in ''The Oxford Encyclopedia of Islam and Women'', ed. by Natana J. Delong-Bas, 2 vols (Oxford: Oxford University Press, 2013), I 651-54.</ref> {{r|Samer M. Ali|p=653}}
- or:
<ref name="Samer M. Ali"/>{{rp|653}}
- with:
<ref name="Samer M. Ali">Samer M. Ali, 'Medieval Court Poetry', in ''The Oxford Encyclopedia of Islam and Women'', ed. by Natana J. Delong-Bas, 2 vols (Oxford: Oxford University Press, 2013), I 651-54.</ref> <ref extends="Samer M. Ali" name="Samer M. Ali, p. 653">p. 653</ref>
existing workarounds don’t work well with Visual Editor and ReferencePreviews
OK, then VE and ReferencePreviews need to be fixed so that they work well with the existing ways of referencing.- Adding another competing standard (obligatory XKCD) is not very useful unless you want to disallow the others which will probably make people very mad (see WP:CITEVAR) and is not necessarily an improvement.
- There is no reason why VE or RP would require a new standard, they could just as easily support one of the existing ones (and ideally all of em).
- Am I missing something?
- Polygnotus (talk) 15:14, 19 August 2024 (UTC)
- Sfn is routinely out of sync with its parent and requires the use of third party scripts to detect that it is so. Extended references do not i.e. the Cite extension will issue a warning when you have an extension without a parent.
- And Rp is
objectivelysubjectively ugly. Presenting it as a potential option is offensive. :) - In
<ref extends="Samer M. Ali" name="Samer M. Ali, p. 653">p. 653</ref>
, a name for the subreference is not required (<ref extends="Samer M. Ali">p. 653</ref>
will be typical I suppose), and even when it is you can abbreviate since you know what the parent is (e.g.<ref extends="Samer M. Ali" name="SMA653">p. 653</ref>
). - Some other benefits:
- Reference extensions work with reference previews to display the extension directly with the primary citation.
- The extensions are grouped with the primary citation in the reference lists.
- And the third, which you brushed aside: VE works well with reference extensions.
- None of which can be said of the other two items. Izno (talk) 16:01, 19 August 2024 (UTC)
- And as for
OK, then VE and ReferencePreviews need to be fixed so that they work well with the existing ways of referencing.
, MediaWiki systems try to be agnostic about the specific things that wikis do around X or Y or Z. As a general design principle this helps to avoid maintaining systems that only some wikis use, and leaves the burden of localization and each wiki's design preferences to those wikis. Rp additionally has nothing to work with in regard to VE and ref previews. Izno (talk) 16:06, 19 August 2024 (UTC)- @Izno: Thank you. Gotta sell these things a bit, you know?
- Is this style of referencing intended to replace all others? If its better, then lets just abandon all other variants.
- The extends keyword is familiar to codemonkeys but perhaps not the most userfriendly for others. I am not sure why it would be harder to show an error when someone writes
<ref name="nonexistant" />{{rp|653}}
than when someone writes<ref extends="nonexistant">p. 653</ref>
but in theory this new system could auto-repair references (has that been considered?) Category:Pages_with_broken_reference_names contains 1300+ pages. - Also I am curious what your opinion Wikipedia:Templates_for_discussion/Log/2024_August_15#Template:R here would be. Polygnotus (talk) 16:17, 19 August 2024 (UTC)
- I agree with Izno—I'd rather have a syntax that integrates with the
<ref>...</ref>
syntax, rather than relying on templates, which mixes in a different syntax, and are wiki-specific. isaacl (talk) 16:28, 19 August 2024 (UTC)- If you control the parser you can make any string do anything you want so the currently chosen syntax is, in itself, no advantage or disadvantage. Polygnotus (talk) 16:31, 19 August 2024 (UTC)
- You provided the wikitext for two examples and asked if one seemed to be an improvement, so I responded that in my opinion, the syntax of the sub-referencing feature under development is conceptually more cohesive to an editor than one where wikitext surrounded in braces follows the
<ref ... />
code, or uses solely wikitext surrounded by braces. Sure, any strings can be turned into any other strings, but there are still advantages of some input strings over others. I also prefer the resulting output of the reference list. isaacl (talk) 16:45, 19 August 2024 (UTC)- Agreed, but I assume that things are not set in stone yet. I don't mind the difference between [1]:635 and [1.1] or what exact wikicode is used. So I am trying to think about functionality (e.g. automatically repairing broken refs/automatically merging refs instead of how things get displayed/which wikicode is used). Polygnotus (talk) 16:47, 19 August 2024 (UTC)
- I apologize as your first post seemed to be concerned about the wikitext markup being used by users of the wikitext editor. From a functionality perspective, I think as Izno alludes to, it will be easier to implement features such as detecting hanging references and merging them together with a syntax that is within the
<ref>
element, rather than relying on detecting templates and associating them with<ref>
elements. That would require the MediaWiki software to treat some wikitext in double braces specially. (It would be easier if the extended information were flagged using triple braces, since it would avoid clashing with the extensible template system, but I don't see any advantages to that over extending the<ref>
syntax.) isaacl (talk) 17:09, 19 August 2024 (UTC)- Please don't apologize to me (even if there would be a reason to do so, which there isn't), I am a very confused and confusing person and I understand myself roughly 4% of the time (and the world around me far less often than that). Polygnotus (talk) 17:14, 19 August 2024 (UTC)
- I apologize as your first post seemed to be concerned about the wikitext markup being used by users of the wikitext editor. From a functionality perspective, I think as Izno alludes to, it will be easier to implement features such as detecting hanging references and merging them together with a syntax that is within the
- Agreed, but I assume that things are not set in stone yet. I don't mind the difference between [1]:635 and [1.1] or what exact wikicode is used. So I am trying to think about functionality (e.g. automatically repairing broken refs/automatically merging refs instead of how things get displayed/which wikicode is used). Polygnotus (talk) 16:47, 19 August 2024 (UTC)
- You provided the wikitext for two examples and asked if one seemed to be an improvement, so I responded that in my opinion, the syntax of the sub-referencing feature under development is conceptually more cohesive to an editor than one where wikitext surrounded in braces follows the
- If you control the parser you can make any string do anything you want so the currently chosen syntax is, in itself, no advantage or disadvantage. Polygnotus (talk) 16:31, 19 August 2024 (UTC)
- Good to see this moving forward. My main interest was how it would look on the hover, rather than in the References section. I thought the ref extends might 'fill in' variable fields into the general ref, but it seems instead that it just created a new line below. How flexible is this below line, will it display any wikitext? Could we for example add chapters and quotes? (Which will need manual formatting I assume.) CMD (talk) 16:53, 19 August 2024 (UTC)
- URI fragment support might also be useful. One sub-reference could link to, for example, https://www.cia.gov/the-world-factbook/countries/mexico/#government and another to https://www.cia.gov/the-world-factbook/countries/mexico/#economy Polygnotus (talk) 16:56, 19 August 2024 (UTC)
- As noted here meta:Talk:WMDE_Technical_Wishes/Sub-referencing#Unintended_consequences .. unleashing this complexity into the mainstream without guidance is a huge mistake that is going to cause years of cleanup work, if ever. There are two main issues I can think of:
- What parameters should be sub-referenced? It should be limited to page numbers, and quotes. Not, for example, multiple works, authors, volumes, issues, IDs, dates of publication, ISBN numbers, etc..
- How is data in a sub-ref added? If it's free-form text, it's a step backwards from CS1|2's uniform
|page=42
to a free-form text like "Page 42" or "(p) 42" or whatever free-form text people choose. Bots and tools need to be able to parse the page number(s). Free form text is not semantic. Templated text is semantic. Anything that moves from semantic to non-semnatic is bad design.
- Before this is set loose, there must be consensus about how it should be used. It opens an entirely new dimension to citations that is going to impact every user, citation template, bot, bot library (PyWikiBot etc), tool, etc.. -- GreenC 17:00, 19 August 2024 (UTC)
- Yeah its also a bit weird to ask for feedback and then already have a proof of concept and say
is planning to bring this feature to Wikimedia wikis later this year
. You must ask for feedback before code is written and before any timeline exists. Polygnotus (talk) 17:05, 19 August 2024 (UTC)- At a minimum, it should not be added until there are clear guidelines for usage. More specifically, it should have a feature that issues a red error message if the sub-ref does not contain a special template for displaying page numbers and/or quotes ie. anything else in the sub-ref is disallowed. Then new parameters can be added once consensus is determined. We should have the ability to opt-in parameters, instead of retroactively playing cleanup removing disallowed parameters. -- GreenC 17:18, 19 August 2024 (UTC)
- @GreenC: So then you would get something like this, right?
<ref extends="Samer M. Ali" page="" chapter="" quote="" anchor=""> <ref extends="Samer M. Ali">{{subref|page=""|chapter=""|quote=""|anchor=""}}</ref>
- And then a form in VE where people can fill it in.
- Polygnotus (talk) 17:32, 19 August 2024 (UTC)
- The former was deliberately not chosen during design work as being too inflexible for all the things one might want to make an extending reference. Izno (talk) 19:33, 19 August 2024 (UTC)
- "All the things", which below you said was only page numbers, chapters and quotes. What else do you have in mind? -- GreenC 20:04, 19 August 2024 (UTC)
- There have been previous requests for support in CS1 for subsections of chapters of works. But that's beside the point: we don't need to lock this down out of some misbegotten idea of chaos. YAGNI. Izno (talk) 20:45, 19 August 2024 (UTC)
- It will be chaos as currently proposed, though I never said "lock this down". Johannes asked for feedback. The two main issues I raised, Johannes already said, these are known issues. He said, make a guideline. So I suggested at a minimum, let's make a guideline. You and Johannes don't seem to be on the same page about that. You hinted that were part of the development team, is that correct? -- GreenC 23:09, 19 August 2024 (UTC)
- No, I am a volunteer interested in this work since when it was first discussed at WMDE Tech Wishes and/or the community wishlist and have been following it accordingly, working on a decade ago now.
- Guidelines are descriptive also. "We usually use it for this, but there may be exceptions." is reasonable guideline text. "You are required to use it only for this." is another reason it's not going to fly. Izno (talk) 16:06, 20 August 2024 (UTC)
- It will be chaos as currently proposed, though I never said "lock this down". Johannes asked for feedback. The two main issues I raised, Johannes already said, these are known issues. He said, make a guideline. So I suggested at a minimum, let's make a guideline. You and Johannes don't seem to be on the same page about that. You hinted that were part of the development team, is that correct? -- GreenC 23:09, 19 August 2024 (UTC)
- There have been previous requests for support in CS1 for subsections of chapters of works. But that's beside the point: we don't need to lock this down out of some misbegotten idea of chaos. YAGNI. Izno (talk) 20:45, 19 August 2024 (UTC)
- That's a shame, the former was precisely what I imagined and was excited for when I first read about the idea. CMD (talk) 02:36, 20 August 2024 (UTC)
- "All the things", which below you said was only page numbers, chapters and quotes. What else do you have in mind? -- GreenC 20:04, 19 August 2024 (UTC)
- The former was deliberately not chosen during design work as being too inflexible for all the things one might want to make an extending reference. Izno (talk) 19:33, 19 August 2024 (UTC)
- @GreenC We don't do that with regular references. There's nothing in the software that produces a red error message if I do
<ref>My cousin's roommate's friend told me</ref>
, so why should subrefs be enforcing that? --Ahecht (TALK
PAGE) 19:37, 19 August 2024 (UTC)
- @Polygnotus: This has been being discussed for many years now. m:WMDE Technical Wishes/Sub-referencing was created in 2018, and even then the idea had already been being discussed for a while. phab:T15127 was created in 2008. It's not odd that they're finally at the stage of having an implementation (or if it is, it's that it took so long to get here). Anomie⚔ 21:45, 19 August 2024 (UTC)
- @Anomie: Ah, thank you, I didn't know this was a "plant trees under whose shade you do not expect to sit"-type situation. Polygnotus (talk) 22:19, 19 August 2024 (UTC)
- You should probably assume that's the situation for any MediaWiki change. A few years back, some user script authors were mad because a code change had been throwing error messages at them for "only" seven years(!), which was obviously too short a time frame for them to notice that anything needed to be adjusted. WhatamIdoing (talk) 23:06, 23 August 2024 (UTC)
- @Anomie: Ah, thank you, I didn't know this was a "plant trees under whose shade you do not expect to sit"-type situation. Polygnotus (talk) 22:19, 19 August 2024 (UTC)
- At a minimum, it should not be added until there are clear guidelines for usage. More specifically, it should have a feature that issues a red error message if the sub-ref does not contain a special template for displaying page numbers and/or quotes ie. anything else in the sub-ref is disallowed. Then new parameters can be added once consensus is determined. We should have the ability to opt-in parameters, instead of retroactively playing cleanup removing disallowed parameters. -- GreenC 17:18, 19 August 2024 (UTC)
- I actually totally disagree and think you're making a mountain out of a molehill. My anticipation is that most people will use it for the obvious (page numbers). In some cases they may use chapters (a single long text with a single author or even for anthologies). Rarely do I anticipate them using anything else, but I think they should have the luxury of putting whatever they want in the reference.
- As regards mandating some use like templates, that's not how it works, though I can imagine some sort of {{Cs1 subref}}... which is probably basically {{harvnb}} and some others.
- One thing however that is sure not to occur is to have subreferences of subreferences. This should prevent the vast majority of pathological cases. Izno (talk) 19:32, 19 August 2024 (UTC)
- You think it's a mountain to have a guideline for usage before it's turned on? -- GreenC 20:37, 19 August 2024 (UTC)
- Uh, yeah. People have successfully used our current mechanisms for extending a parent reference in many many ways which notably don't fit what you want. Izno (talk) 20:44, 19 August 2024 (UTC)
- /me looks back 20+ years… sure is a good thing we wrote all those guidelines before making a wiki that was to become the most popular encyclopedia……. —TheDJ (talk • contribs) 07:20, 20 August 2024 (UTC)
- No one's stopping you from writing some guidelines. There might not even be any opposition if you put sensible things in it. But as Izno says, the guidelines would be advisory rather than prescriptive. – SD0001 (talk) 14:03, 20 August 2024 (UTC)
- See WP:PROPOSAL if you really want to bother with this. I personally wouldn't recommend it, though. WhatamIdoing (talk) 23:07, 23 August 2024 (UTC)
- When a document has a nested structure, e.g., chapters within sections, it is natural for an editor to want citations that match that structure. I would expect nested citations to include arbitrary combinations of author, editor, page, quote, title and URL, depending on the type of document. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 22:15, 19 August 2024 (UTC)
- You think it's a mountain to have a guideline for usage before it's turned on? -- GreenC 20:37, 19 August 2024 (UTC)
- Yeah its also a bit weird to ask for feedback and then already have a proof of concept and say
Does "will work for wikitext and Visual Editor
" cover the list-defined references examples on the demo page? I'm testing right now and the Visual Editor still seems to have the same problems with list-defined references that have existed for some time.[9] Will this update fix any of those issues? Rjjiii (talk) 02:28, 20 August 2024 (UTC)
Hi, thanks for your feedback, questions and interest in sub-referencing! Given the large number of comments, I’ll try to provide answers to all of them at once:
- replacing other referencing styles: We don’t intend to replace other citation styles. We are fulfilling an old community wish, creating a MediaWiki solution for citing a source multiple times with different details. Citation styles are a community matter and per WP:CITEVAR you can continue to use your preferred way of referencing. If the community wants certain referencing templates to be replaced by sub-referencing, they are of course free to do so, but that’s up to you.
- reference pop-up:
- Reference Previews are going to display both main- and sub-reference in one reference pop-up, showing the sub-reference’s details below the main information (example). There are still a couple of details going to be fixed in the next couple of months.
- ReferenceTooltips (the gadget enabled by default at enwiki) will need an update. It currently only displays the sub-reference’s information (example), similar to the behavior with sfn (example). But different to sfn (example) it currently doesn’t show a pop-up on top of the first pop-up for the main information. Given that gadgets are community-owned, we won’t interfere with that, but we’ll try to assist communities in updating the gadget.
- Yes it will be possible to display any wikitext in sub-references, just like it is possible to do so using normal references (without any templates). We’ve intentionally allowed this, because local communities prefer different citation styles (and even within communities users have different preferences), therefore our solution shouldn’t limit any of those. Citing sources with different book pages will probably be the main reason to use sub-referencing, but it’s also possible to use it for chapters, quotes or other details.
- You’ll need to do the formatting (e.g. writing details in italic) yourself, except if the community creates a template for sub-references
- URI fragments: Those can be used for sub-references as well (example)
- List-defined references in VE: We are aware of the issues mentioned in phab:T356471, many of those also affect sub-references. As we are still defining some VE workflows (currently we’ve mostly worked on the citation dialog) we haven’t found a solution yet, but we might be able to resolve at least some of those issues while continuing our work on sub-referencing in Visual Editor.
- What parameters should be sub–referenced?
- As already mentioned on meta this should be up to local communities, given the many different referencing styles. It should also be up to them to decide if they want to use templates for sub-referencing or not. We’ve reached out to communities much in advance, so you should have enough time working out some guidelines if your community wants that.
- But as Ahecht said: Users can already use references for all kinds of unintended stuff, sub-referencing is not different to that. It’s necessary to technically allow all kinds of details in sub-references, due to the many different citation styles within one community and across different communities.
- From our user research we expect most people using sub-referencing for book pages. There will be a tracking category (example) which could be used to check if there is unintended usage of sub-referencing
- Nested citations: Should be possible with sub-referencing (example), if you’re talking about WP:NFN?. Feel free to test other referencing styles on betawiki and give feedback if anything doesn't work which should be working.
- VE and RefPreviews should be fixed to work with all existing referencing styles: Just like Izno said it’s unlikely to achieve that, because local communities are using many different types of referencing and could come up with new local referencing templates every day. That’s why we’ve chosen to add a new attribute to the existing and globally available MediaWiki cite extension.
- Adding another referencing style isn’t really useful: We are fulfilling a wish which is more than 15 years old and has been requested many times in the past years. Existing template-based solutions for citing references with different details only work on those wikis who maintain such local templates – and most of those have issues with Visual Editor. That’s why a global MediaWiki solution was necessary. You can always continue to use your preferred citation style per WP:CITEVAR.
- Doesn’t look like an improvement for Wikitext: If you compare it with template-based solutions like {{rp}} you are correct that those allow for simpler wikitext. But if you’re editing in multiple Wikimedia projects, your preferred template from one project might not exist on the other one. That’s why a MediaWiki solution will be beneficial to all users. And most current template-based solutions have the already mentioned disadvantages for Visual Editor users. Also readers will benefit from a more organized reference list by having all sub-references grouped below the main reference.
- The attribute “extends” doesn’t seem user friendly for non-technical users: We’ve done several consultations with the global community and a lot of user testing in past years where we asked for feedback and ideas on the attribute name. One takeaway is that the name is less important for many users than we initially thought, as long as they can remember it. And our user tests showed a surprisingly large number of Wikitext users switching to VE in order to use the citation dialog (for referencing in general, not just for sub-referencing) – if you do that, you don’t need to deal with the attribute name at all. We didn’t see any major issues with “extends” for people exclusively using Wikitext in our user tests. But so far there is no final decision on the attribute name, so if you have any ideas let us know (we’ll make a final decision soon).
- You should have asked for feedback earlier: We’ve been working on this feature (on and off) for almost 8 years and had a lot of community consultations (e.g. at Wikimania, WikiCite, discussions on metawiki where we invited communities via Mass Message) and many rounds of user testings – always with the involvement of enwiki users. And we are doing this big announcement now in order to make sure that really everyone knows in advance and can provide further feedback while we are finalizing our feature.
Thanks for all of your feedback, it's well appreciated! --Johannes Richter (WMDE) (talk) 16:20, 20 August 2024 (UTC)
- Perhaps it would be wise, in future, to make a list of predictable reactions/questions and incorporate the responses to those in the announcement. Highlighting the advantages of a change/addition, USPs if any, why decisions were made and perhaps even a short timeline can make the reception much warmer. Some people here (e.g. Polygnotus) don't know the 15 years worth of background information. The good news is that I think that it is an improvement (although it could be a bigger improvement). I assume others have also mentioned things like ensuring refs don't break and automatically merging refs (but I do not want to dig through 15 years of history to figure out why it wasn't implemented) and this is/was an opportunity to make something superior to the existing methods that could replace them. The OrphanReferenceFixer of AnomieBOT will need to be updated. Polygnotus (talk) 17:04, 20 August 2024 (UTC)
- It's always difficult to write such announcements in a way that they answer the most important questions while also being short an concise so that people actually read the them ;) Some of the questions raised in this section have already been answered in meta:WMDE Technical Wishes/Sub-referencing#FAQ and we'll continue to add more frequently asked questions there, if we notice (e.g. in this village pump discussion) that certain questions come up again and again. Johannes Richter (WMDE) (talk) 17:16, 20 August 2024 (UTC)
- Agreed, it is super difficult to strike the right balance. And even if you do, some will still be grumpy. But its also very important. Polygnotus (talk) 17:20, 20 August 2024 (UTC)
- If the announcement is too long, then nobody reads it. WhatamIdoing (talk) 23:11, 23 August 2024 (UTC)
- Yes, the {{collapse}} is super useful. Polygnotus (talk) 01:35, 29 August 2024 (UTC)
- If the announcement is too long, then nobody reads it. WhatamIdoing (talk) 23:11, 23 August 2024 (UTC)
- Agreed, it is super difficult to strike the right balance. And even if you do, some will still be grumpy. But its also very important. Polygnotus (talk) 17:20, 20 August 2024 (UTC)
- It's always difficult to write such announcements in a way that they answer the most important questions while also being short an concise so that people actually read the them ;) Some of the questions raised in this section have already been answered in meta:WMDE Technical Wishes/Sub-referencing#FAQ and we'll continue to add more frequently asked questions there, if we notice (e.g. in this village pump discussion) that certain questions come up again and again. Johannes Richter (WMDE) (talk) 17:16, 20 August 2024 (UTC)
- Thanks for the detailed response and the included screenshots. I was a bit glum following my comment above but I think I have a better grasp of the underlying concept now. If we are able to use citation templates in the sub-reference field, that may provide a way to fix at least some of the potential issues raised above. Is there a place to track changes to the reference pop-up (File:Sub-referencing refpreview.png)? My first impression is that's perhaps not a necessary large white space but I'm curious to read more discussion on the matter. CMD (talk) 17:25, 20 August 2024 (UTC)
- @CMD depends on what you mean by "place to track changes"? There are several phabricator tags which might serve this purpose (although we've collected a lot of user feedback which is still under discussion and therefore not filed as a task yet). We want to use meta:WMDE Technical Wishes/Sub-referencing#Recent changes and next steps to document important changes on the current prototype and can certainly document further changes to Reference Previews for sub-referencing in this section as well, if that's what you imagined? Johannes Richter (WMDE) (talk) 15:43, 21 August 2024 (UTC)
- Yes, reference previews are one of the great benefits of the Wikipedia reference system. I'll follow on meta. CMD (talk) 16:27, 21 August 2024 (UTC)
- @CMD depends on what you mean by "place to track changes"? There are several phabricator tags which might serve this purpose (although we've collected a lot of user feedback which is still under discussion and therefore not filed as a task yet). We want to use meta:WMDE Technical Wishes/Sub-referencing#Recent changes and next steps to document important changes on the current prototype and can certainly document further changes to Reference Previews for sub-referencing in this section as well, if that's what you imagined? Johannes Richter (WMDE) (talk) 15:43, 21 August 2024 (UTC)
Thanks for the lengthy reply! Can a template tell if it's being used in an extended reference?
If there is any probability of this all working in the Visual Editor, we should also aim to make templates that work in the Visual Editor. That would mean a template that slots inside of an extended reference, rather than a template that invokes one (the way that {{r}} or {{sfn}} work). There is already some discussion at Help talk:Citation Style 1 about building a template for consistency between the main named reference and the extended sub-references. I considered making a proof of concept template that would only handle pages, quotations, and so on, but folks have already mentioned citing named sections in a larger work and other broader ideas.
For a template to plug into this, I've checked the parameters currently available in major templates that cite locations within a longer work. If I've missed anything feel free to update this table:
Element | {{Cite book}} | {{rp}} | {{Sfn}} | other CS1 |
---|---|---|---|---|
Page |
|
|
|
|
Quote |
|
|
(within loc) | |
No pp |
|
|
(not available) | |
|
|
Also, regarding formatting, CS1 and sfn are based (to an extent) on APA and Harvard citation styles.
Also(B), regarding LDR, one of the issues with list-defined references in the Visual Editor is that removing all usage of a reference from an article's body text makes the reference become invisible in the VE and emits this error message on the rendered page, "Cite error: A list-defined reference named "Bloggs-1974" is not used in the content (see the help page)." To have an un-called reference isn't exactly an error, though. Editors move citations from the bibliography and standard references down to other sections (Further reading, External links, and so on); some articles still have general references at the bottom. Is there a way to push un-called references down to the bottom of the list and treat them as a maintenance issue rather than an outright error, like the below example with citations borrowed from Template:Cite book/doc(11-02-2024)
References
- ^ Mysterious Book. 1901.
- ^ Bloggs, Joe (1974). Book of Bloggs.
- * Bloggs, Joe; Bloggs, Fred (1974). Book of Bloggs.
- * Notes with an asterisk (*) are not cited inline.
Also(C), regarding guidelines and guidance, we could create Help:Sub-referencing before the feature goes live, Rjjiii (talk) 02:53, 21 August 2024 (UTC)
Can a template tell if it's being used in an extended reference?
No, not currently. Lua experts feel free to correct me if I am wrong. Polygnotus (talk) 02:57, 21 August 2024 (UTC)push un-called references down to the bottom of the list and treat them as a maintenance issue
it isn't even a maintenance issue; it is useful if people name refs so that those names can be used later to refer to those refs. But if no one refers to em that is fine. Polygnotus (talk) 03:01, 21 August 2024 (UTC)- I have adjusted the table;
|postscript=
is for terminal punctuation only, not for in-text locations. As for LDRs that are named but not cited, those are most definitely errors. They are generated by the MediaWiki software, hence the name of the help page (Help:Cite errors/Cite error references missing key) and the use of the word "error" on the Category:Pages with incorrect ref formatting page, and the name of the MediaWiki page that holds the error message, MediaWiki:Cite error references missing key. – Jonesey95 (talk) 04:08, 21 August 2024 (UTC)- @Jonesey95: But why would it be considered an error if a ref has a name but nothing that refers to it? Polygnotus (talk) 08:56, 21 August 2024 (UTC)
- Indeed to best of our knowledge templates currently cannot tell if they are being used in a sub-reference. But it should be possible to make such changes. As templates are community-owned, we cannot do that ourselves, but we'll try to assist communities (e.g. by providing documentation or some examples) with the necessary changes to citation tools and templates. Johannes Richter (WMDE) (talk) 15:47, 21 August 2024 (UTC)
- Yes, additional parameters might be needed on
<ref>...</ref>
and on citation templates to designate main and sub-references. - LDRs that are named but not cited are most definitley treated as errors; that doesn't mean that they should be treated as errors. There are other markup languages where uncited references are treated as legitimate. Admiitedly {{Refideas}} is a workaround, but it would be nice if {{Reflist}} could include incited references and if the LDRs were listed first. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 16:20, 21 August 2024 (UTC)
- @Jonesey95: But why would it be considered an error if a ref has a name but nothing that refers to it? Polygnotus (talk) 08:56, 21 August 2024 (UTC)
- I have adjusted the table;
Incategory searches missing redirects?
Wanted to ask about a recurring problem I run into occasionally when working with Wikipedia:Database reports/Polluted categories to clean up userspace content in articlespace categories. When I use each category's "search user namespace" link in that report, I will either get a list of one or more userspace pages, or the text "There were no results matching the query" — the majority of the time, the latter means that the category has already been cleaned up, either by me via another query earlier in the batch (since pages are often in more than one category at the same time) or by somebody else before I even got to it. However, on occasion there are categories on a redirect in userspace, which the search link seems to fail to detect because it's a redirect instead of a straight sandbox "article", and thus tells me that the category is already clean when it actually isn't.
So because the link failed to detect the redirect and told me that the category was clean, I just move on, but because the category isn't actually clean, that redirect just stays in the category until I notice, on a future run of that report, that the search link was purple (meaning I've visited that exact search link before) and the category is still empty — meaning that I have to take the extra step of manually eyeballing the category to see if there's a userspace redirect in it. Examples: User:Upgov.in/sandbox, which had been in categories since August 19, and User:Luis Santos24/sandbox2, in categories since August 11, meaning they both survived multiple regenerations of the report before I finally caught them today.
TLDR, the polluted categories report does catch userspace redirects, but the search link fails to find them when I use it.
However, since the majority of "there were no results matching the query" categories are actually genuinely clean, it wouldn't be a productive use of my time to consistently double-check every category whose search link produces that result across the board — so my question is whether somebody can look into ensuring that the incategory search stops failing to detect redirects so they can be caught the first time instead of loitering around for multiple regenerations of the report. Bearcat (talk) 17:51, 3 September 2024 (UTC)
- No search actually returns redirects. Izno (talk) 18:00, 3 September 2024 (UTC)
- Well, then, is there any other way to solve the problem besides the total non-starter "just let userspace redirects survive multiple regenerations of the report before getting caught" or the total non-starter "manually double-check every single category that came up as already empty"? Bearcat (talk) 18:07, 3 September 2024 (UTC)
- This was quite tedious to go through; please be concise next time.quarry:query/86063 will list the userspace redirects that are in any one of the categories linked from Wikipedia:Database reports/Polluted categories. You can use {{database report}} to get the list periodically dumped to the wiki if desired. – SD0001 (talk) 19:37, 4 September 2024 (UTC)
Map error
Over on the article Bagar region there's a big red error showing at the top of the article, "<mapframe>: The JSON content is not valid GeoJSON+simplestyle." I've never seen this before and don't know how to fix it, so I thought I'd put it here to bring it to the attention of anyone who does know how to fix it. Suntooooth, it/he (talk/contribs) 21:04, 4 September 2024 (UTC)
- The template was using invalid
|type=
values. – Jonesey95 (talk) 23:10, 4 September 2024 (UTC)
Markup appearing in short description
When searching for the article Faya Dayi, the short description that shows up is "2021 ?'"`UNIQ--templatestyles-00000002-QINU`"'? film". Does anyone know why that would happen? It looks like something on the page ({{Infobox film}}?) is supposed to set it to "2021 film" but ends up inserting some kind of markup in the middle of the text. hinnk (talk) 09:43, 5 September 2024 (UTC)
- See the section #Strange short description - how to fix it? above. Nthep (talk) 10:12, 5 September 2024 (UTC)
- Thanks! Guess my search term was too narrow and I totally missed that. hinnk (talk) 10:28, 5 September 2024 (UTC)
Strange short description - how to fix it?
I started typing "Space-Men" in the search bar and it suggested the Space-Men article with the strange short description of 1960 Italy?'"`UNIQ--ref-00000004-QINU`"'? film. It shows up in the page information page that way too, but not in the article's source/wikitext, so I'm not sure how to fix it. Any ideas? 28bytes (talk) 17:34, 26 August 2024 (UTC)
- I think I've fixed it? DonIago (talk) 17:43, 26 August 2024 (UTC)
it does, but it doesn't explain how it got there.Nthep (talk) 17:47, 26 August 2024 (UTC)- Looks like a bug, something to do with strip markers. Nthep (talk) 17:56, 26 August 2024 (UTC)
- {{Infobox_film}} builds a shortdescription from the country. The country ends with a reference. A reference gets replaced by a strip marker, for technical reasons. But a short description doesn't have wikitext support, so the stripmarker is not automatically replaced/removed. The template that adds the automatic short description should be updated to strip the strip markers. —TheDJ (talk • contribs) 18:27, 26 August 2024 (UTC)
- @TheDJ: is that something you could adjust? Template in question would be Template:Infobox film/short description. - Favre1fan93 (talk) 20:15, 26 August 2024 (UTC)
- @Doniago it's almost never a good idea to "fix" something like you as you didn't actually fix the issue and it's probably on other articles. Instead you just have posted it at Template talk:Infobox film/short description so it can be fixed at the source. Gonnym (talk) 20:00, 26 August 2024 (UTC)
- While my effort to fix it evidently didn't address the underlying issue, if you're going to slap my hand you could at least acknowledge that I made a good-faith effort to fix the most immediate problem that was presented in the OP, and that I made it clear in my own message that I wasn't sure that I'd really fixed it at all. I'm not sure what you're talking about with the second part of what you've said, unless you meant to say that I could have posted it there. Except that I couldn't have posted it there because I didn't know that the underlying issue was with the template, nor did the OP indicate that the issue lay with the template. DonIago (talk) 20:17, 26 August 2024 (UTC)
- Not sure what this was supposed to accomplish. lets be glad some people try to make things better before complaining about their work. —TheDJ (talk • contribs) 22:00, 26 August 2024 (UTC)
- After thinking more on it, I agree. Fixing the broken case as a temporary measure seems fine, not different from CSS fixes people make. I do think VPT should try to find the root cause of problems, but I don't think DonIago's change should have been reverted while the problem is not fixed.
- Fixing it like that would be bad if it was done in mass as that would create future work, but it wasn't. – 2804:F1...00:86B7 (::/32) (talk) 00:03, 27 August 2024 (UTC)
- I'm unclear if the strip markers not being detected is a larger issue, or something that needs to be coded into Template:Infobox film/short description. Nthep and DJ's comments made it seem like an easy fix, so I restored Space-Men to using the auto-generated SD so it will be as it was prior to the issue and utilize that auto SD. But if it is not an easy fix, then yes, we can implement the workaround that Doniago did. - Favre1fan93 (talk) 16:10, 28 August 2024 (UTC)
- The problem is fairly common where the infobox generates a short description from values found in the infobox. Often a country is expected, but the country name turns out to be a list of countries. Often (like here) a field is expected to be a simple piece of text, but has a reference appended or includes an extra formatting template. In this case, the reference should be moved into the article text – the infobox should be only a summary of details that are present in full in the article. Otherwise, just add a manual SD like DonIago did. The sandbox is well out of date, so I assume that nobody has signed up to fix the template? If not, can we please just fix the Space-Men article? It hurts — GhostInTheMachine talk to me 18:16, 30 August 2024 (UTC)
- It seems easy enough to fix, just wrap the parameter in {{KillMarkers}}. — Qwerfjkltalk 20:28, 30 August 2024 (UTC)
- Ah. I would have first tried {{Strip tags}}. Is that too aggressive? However, us mortals make such changes. We need somebody with superpowers to fix the infobox template for us. So, for now, I just fix individual articles as I find them — GhostInTheMachine talk to me 21:41, 30 August 2024 (UTC)
- {{KillMarkers}} added. Should solve the Space-Men issue. Please note here or on the talk of the template in question if more issues arise because of this change. - Favre1fan93 (talk) 22:05, 30 August 2024 (UTC)
- @Favre1fan93 I just came here after running into the same issue at Faya Dayi, which uses a {{Plainlist}} for the countries and shows up as "2021 ?'"`UNIQ--templatestyles-00000002-QINU`"'? film". I'm not sure if there's a tag that's not being caught by {{KillMarkers}} or if it's just stale data from before the fix to {{Infobox film/short description}}. hinnk (talk) 11:05, 5 September 2024 (UTC)
- It was stale data; you can fix it yourself by clicking Edit and then Publish. This is called a null edit. It's quite useful for situations like this one. – Jonesey95 (talk) 13:13, 5 September 2024 (UTC)
- Thank you! Glad the fix is working, I'll try that if I run into any other cases. hinnk (talk) 20:14, 5 September 2024 (UTC)
- It was stale data; you can fix it yourself by clicking Edit and then Publish. This is called a null edit. It's quite useful for situations like this one. – Jonesey95 (talk) 13:13, 5 September 2024 (UTC)
- @Favre1fan93 I just came here after running into the same issue at Faya Dayi, which uses a {{Plainlist}} for the countries and shows up as "2021 ?'"`UNIQ--templatestyles-00000002-QINU`"'? film". I'm not sure if there's a tag that's not being caught by {{KillMarkers}} or if it's just stale data from before the fix to {{Infobox film/short description}}. hinnk (talk) 11:05, 5 September 2024 (UTC)
- {{KillMarkers}} added. Should solve the Space-Men issue. Please note here or on the talk of the template in question if more issues arise because of this change. - Favre1fan93 (talk) 22:05, 30 August 2024 (UTC)
- Ah. I would have first tried {{Strip tags}}. Is that too aggressive? However, us mortals make such changes. We need somebody with superpowers to fix the infobox template for us. So, for now, I just fix individual articles as I find them — GhostInTheMachine talk to me 21:41, 30 August 2024 (UTC)
- It seems easy enough to fix, just wrap the parameter in {{KillMarkers}}. — Qwerfjkltalk 20:28, 30 August 2024 (UTC)
Mouseovers in navigation templates
I have recently noticed that, in navigation templates (both navboxes and sidebars), on an article, that article's entry appears clickable. The entry is correctly bold black (ie not a blue link) but when hovered over it displays as a clickable black link, ie, the I-cursor becomes a pointer, though no action occurs.
For example, on Sockeye salmon, see the horizontal Salmon nav box at bottom. The entry for Sockeye salmon is correctly appearing black but seems clickable. Similarly, on Battle of Elands River (1900), see the Transvaal Front vertical side campaign box. The article's entry rightly appears black but seems clickable.
Am I misremembering that only an I-cursor would appear when hovering until very recently? JennyOz (talk) 11:59, 5 September 2024 (UTC)
- It only happens in Vector 2022. I don't know whether it always happened in that skin. PrimeHunter (talk) 14:23, 5 September 2024 (UTC)
- It can be avoided with
a.mw-selflink.selflink {cursor:text;}
in your CSS. PrimeHunter (talk) 20:27, 5 September 2024 (UTC)
- It can be avoided with
Adding extra language
How do you add extra language links to an article these days? The link now says "No languages yet." (untrue) and gives options to "Translate this page" (not what I want) and "Open language settings" (not what I want). I used to just give an option to add another link. I can do this on the other languages but not on the English Wikipedia. Hawkeye7 (discuss) 09:57, 5 September 2024 (UTC)
- Which article? I can see "Add languages" then "Edit interlanguage links" which goes to wikidata where can enter names of articles in other languages. If the article isn't linked to Wikidata yet can do it manually or wait for it to be linked. Indagate (talk) 10:15, 5 September 2024 (UTC)
- The article I was working on is Catharina Weiss. There are companion articles it:Catharina Weiss and de:Catharina Weiß. And there is no "Edit interlanguage links". I tried going to Wikidata [10] and adding the English, German and Italian links there but I should never have to go there. It should work from the English Wikipedia. Hawkeye7 (discuss) 11:38, 5 September 2024 (UTC)
- Article only created yesterday and it can take time for Wikidata to be updated, just need to give it time or do it manually. Indagate (talk) 11:42, 5 September 2024 (UTC)
- I have never added languages in Vector 2022 so I don't know how it's supposed to work but I cannot find a way to do it if there are no languages or Wikidata item. I picked Mayank Vahia at Special:NewPages. The top right says "Add languages" but it only gives a search box which does nothing no matter what I try, and the options "Translate this page" and "Open language settings". They don't appear to have a way to add a language. Are you saying it's meant to not work for new pages? It would be awful design to give users an "Add languages" link which cannot add languages. PrimeHunter (talk) 11:47, 5 September 2024 (UTC)
- Yes, it is an awful design. It doesn't offer an option if there is no Wikidata item or it cannot find it. Hawkeye7 (discuss) 12:07, 5 September 2024 (UTC)
I tried going to Wikidata ... but I should never have to go there.
When you use the "Edit links" feature, you are always taken to Wikidata: that is the way that interlanguage links are always added, ever since Wikidata was launched in early 2013. --Redrose64 🌹 (talk) 17:39, 5 September 2024 (UTC)- I meant instead of having to log on to Wikidata on a another screen rather than being taken there. Hawkeye7 (discuss) 18:03, 5 September 2024 (UTC)
- Although your English Wikipedia account was created in June 2005, almost three years before WP:SUL came in, nowadays you should be automatically logged in on all other WMF wikis, including Wikidata. --Redrose64 🌹 (talk) 19:26, 5 September 2024 (UTC)
- That stopped working a while ago. What I meant though, was that I opened a new tab, put in the URL of Wikidata, and logged in there to look at what was going on. I don't normally touch Wikidata because I lack expertise. Hawkeye7 (discuss) 07:07, 6 September 2024 (UTC)
- Although your English Wikipedia account was created in June 2005, almost three years before WP:SUL came in, nowadays you should be automatically logged in on all other WMF wikis, including Wikidata. --Redrose64 🌹 (talk) 19:26, 5 September 2024 (UTC)
- I meant instead of having to log on to Wikidata on a another screen rather than being taken there. Hawkeye7 (discuss) 18:03, 5 September 2024 (UTC)
- Yes, it is an awful design. It doesn't offer an option if there is no Wikidata item or it cannot find it. Hawkeye7 (discuss) 12:07, 5 September 2024 (UTC)
- I have never added languages in Vector 2022 so I don't know how it's supposed to work but I cannot find a way to do it if there are no languages or Wikidata item. I picked Mayank Vahia at Special:NewPages. The top right says "Add languages" but it only gives a search box which does nothing no matter what I try, and the options "Translate this page" and "Open language settings". They don't appear to have a way to add a language. Are you saying it's meant to not work for new pages? It would be awful design to give users an "Add languages" link which cannot add languages. PrimeHunter (talk) 11:47, 5 September 2024 (UTC)
- Looking at other new articles, they have the same poor drop down box, but with a third option "Edit interlanguage links". Unfortunately, this takes you to Wikidata, which we don't want. In my case, it could not find the Wikidata item (although it existed), so (incorrectly) did not offer the option at all. Hawkeye7 (discuss) 11:59, 5 September 2024 (UTC)
- The functionality appears to still work in V2010, if you want to go back. This seems to be the topic of Phab:T329570. CMD (talk) 12:05, 5 September 2024 (UTC)
- Article only created yesterday and it can take time for Wikidata to be updated, just need to give it time or do it manually. Indagate (talk) 11:42, 5 September 2024 (UTC)
- The article I was working on is Catharina Weiss. There are companion articles it:Catharina Weiss and de:Catharina Weiß. And there is no "Edit interlanguage links". I tried going to Wikidata [10] and adding the English, German and Italian links there but I should never have to go there. It should work from the English Wikipedia. Hawkeye7 (discuss) 11:38, 5 September 2024 (UTC)
- The link is somewhat hidden, but you can find "Add interlanguage links" (or "Edit interlanguage links") in the sidebar, under "Tools". Matma Rex talk 13:29, 5 September 2024 (UTC)
74,841 + 168 = 75,008 ?
I have a script that runs whenever I start up or shut down my laptop. I created the script quite a while back to experiment with the Wikipedia API, and have generally ignored it since.
The script records in a log file, my Wikipedia edit count and the number of edits so far today. It also checks the running total — does the edit count at the end of yesterday + the edits today = the edit count for the end of today?
When the total fails to match, it indicates that some edits have been "lost" because a page that I edited today was deleted during the day. Fair enough, if I am motivated, I can look up the page for which the edits were lost — even if I now cannot see my own edit summaries.
Today, however, the script alerted me to a mismatch in the other direction.
- At the end of 3 September, my edit count was 74,841
- During 4 September I made 168 edits
- My edit count at the end of 4 September was reported as 75,008
Now, call me picky, but I think the total should be 75,009. Replag is zero, and edits today are being correctly counted (although the grand total is still out by one).
While inexact edit counts is not a cosmic catastrophe, I am offended when maths seems to break.
So, please, can anybody think of a reason for my overall edit count to be reduced? — GhostInTheMachine talk to me 20:20, 5 September 2024 (UTC)
- Increasing the edit count is a separate step after saving the edit, and occasionally it can fail. I had a look for related issues in Phabricator, and apparently there's an issue known as T369461 that occurs about 30 times per day, preventing some edits from being counted. Maybe one of your edits was among the unlucky ones.
- There are also some actions that create edits, but don't increase an edit count. Moving a page with a redirect creates two revisions (one on each title), but only counts as one edit. Protecting a page creates a revision, but doesn't count as an edit. It doesn't seem like you moved any pages yesterday though: Special:Log/move/GhostInTheMachine (but you did today, so you might see a new discrepancy).
- Also, revisions imported from another wiki will show up in your contributions, but won't be counted. Did you know that on German Wikipedia, you have 10 edits, but your edit count is 1? They usually import the history of pages when translating them. That's not what happened here, given Special:Log/import, just mentioning it as a curiosity.
- Matma Rex talk 23:24, 5 September 2024 (UTC)
- Thanks for the info. So it is possible that anybody's overall edit count could be short by a small number of edits. I suspect that I could conjure a query to derive a "better" version of my count from the
revision
table (and thearchive
table?). Maybe a project for a rainy day ... - I am surprised by even a single counted edit on the German WP. My German was schoolboy level about 50 years ago and I would never dream of editing there — GhostInTheMachine talk to me 11:16, 6 September 2024 (UTC)
- Thanks for the info. So it is possible that anybody's overall edit count could be short by a small number of edits. I suspect that I could conjure a query to derive a "better" version of my count from the
- Short answer, as I finally bothered to note in the documentation, reported edit counts may not be reliable. — xaosflux Talk 14:54, 6 September 2024 (UTC)
Last few sections at Wikipedia:Redirects for discussion appear as links instead
Figured this would be the place to see if anyone knows what's going on. Historically, Wikipedia:Redirects for discussion has been a rather expensive page, processing-wise, But what is currently going on has not happened at any point recently. The bottom-most sections are appearing as links instead of sections. This was not the case a few weeks ago. Does anyone know what's going on? Steel1943 (talk) 22:29, 4 September 2024 (UTC)
- See WP:PEIS. – Jonesey95 (talk) 23:13, 4 September 2024 (UTC)
- It's been categorized as >2,000,000 PEIS since 01:00, 2 September 2024 [11] and as >500 expensive parser calls since 02:28, 2 September 2024 [12]. Anything happen just over 3 days ago? SilverLocust 💬 02:38, 5 September 2024 (UTC)
- Though the reason why the expensive parser function limit was hit is simple enough. There are >500 redirects currently nominated, and therefore >500 instances of
* {{no redirect|...}} → [[...]]
- And {{no redirect}} uses an expensive parser function. SilverLocust 💬 04:41, 5 September 2024 (UTC)
- This happened to us a few years ago at TFD when we embarked on a project to delete a few thousand unused and redundant templates. We had to slow down our nominations and list some of them on subpages. – Jonesey95 (talk) 05:02, 5 September 2024 (UTC)
- Listing redirects at RfD should have a simpler template which just generates the link without checking anything. Johnuniq (talk) 06:03, 5 September 2024 (UTC)
- The inexpensive alternatives are (1) a non-redirecting link that doesn't turn red after the RfD is closed as "delete" (or it's otherwise deleted), or (2) a normal wikilink that doesn't prevent redirection once the RfD is closed as "keep" (or the RfD banner is removed). SilverLocust 💬 07:15, 5 September 2024 (UTC)
- Option (3) would be to just have both links, i.e. "Terrorblade (no redirect)". It's a low-tech solution but it may be good enough? Matma Rex talk 13:26, 5 September 2024 (UTC)
- One could hide the second link if the first doesn't have the
mw-redirect
class in TemplateStyles. Nardog (talk) 13:28, 5 September 2024 (UTC)
- One could hide the second link if the first doesn't have the
- Option (3) would be to just have both links, i.e. "Terrorblade (no redirect)". It's a low-tech solution but it may be good enough? Matma Rex talk 13:26, 5 September 2024 (UTC)
- The inexpensive alternatives are (1) a non-redirecting link that doesn't turn red after the RfD is closed as "delete" (or it's otherwise deleted), or (2) a normal wikilink that doesn't prevent redirection once the RfD is closed as "keep" (or the RfD banner is removed). SilverLocust 💬 07:15, 5 September 2024 (UTC)
- Listing redirects at RfD should have a simpler template which just generates the link without checking anything. Johnuniq (talk) 06:03, 5 September 2024 (UTC)
- This happened to us a few years ago at TFD when we embarked on a project to delete a few thousand unused and redundant templates. We had to slow down our nominations and list some of them on subpages. – Jonesey95 (talk) 05:02, 5 September 2024 (UTC)
- It's been categorized as >2,000,000 PEIS since 01:00, 2 September 2024 [11] and as >500 expensive parser calls since 02:28, 2 September 2024 [12]. Anything happen just over 3 days ago? SilverLocust 💬 02:38, 5 September 2024 (UTC)
- Unless {{No redirect}} gets updated in a way that prevents expensive parser calls, I think either Option 2 or weak Option 3 is the winner there. The redirection should be prevented when the discussion is in progress due to the substitution of {{Redirect for discussion}} on the nominated redirect(s), and the option also allows the link to be red on the RfD if the redirect ends up being deleted. I can see a reason to have both links though, so my "weak option 3", but I don't see that option incredibly user-friendly as option 2. Steel1943 (talk) 19:46, 6 September 2024 (UTC)
- Also, this discussion may need to be moved to Template talk:Rfd2 at some point if this discussion gets large. Steel1943 (talk) 19:56, 6 September 2024 (UTC)
Map labels unreadable in dark mode
Given the number of transclusions on Template:Infobox settlement, it looks like the problem reported at Template talk:Infobox settlement#Location labels unreadable in dark mode is affecting over half a million articles for anyone reading in dark mode. Does anyone feel competent enough to poke around the CSS? -- Beland (talk) 06:44, 7 September 2024 (UTC)
Technical Powers to "Block"
As my account has now been "blocked" - I began to ponder, peacefully - if Wikipedia has a forum of experts who deliberate as a technical team to "block or not" or is it an individual who decides and activates a "block" on a fellow wikipedian? I will patiently await a response or redirect to an article addressing my concerns. ZAWADI NPC (talk) 07:57, 6 September 2024 (UTC)
- See WP:BLOCK for more information about the blocking process. 331dot (talk) 08:26, 6 September 2024 (UTC)
- Your account is not blocked, ZAWADI NPC (as evidenced by your ability to post here). Why do you think it is? It has never been blocked. Bishonen | tålk 08:31, 6 September 2024 (UTC).
- Their user page was deleted, maybe they think that is a block? 331dot (talk) 08:34, 6 September 2024 (UTC)
- You were advertising on your page. Advertising is not allowed on Wikipedia, not even on your page. You don't own that page – it is only there to show people what kind of Wikipedia editor you are, not anything about your business. You may say something about hobbies or interests that you don't get money from, for example if you take great photographs and put them on Wikipedia (for free of course), then you can say so. TooManyFingers (talk) 19:23, 7 September 2024 (UTC)
templatedata not showing up
i have added templatedata to Template:Infobox card game. why isn't it showing up when editing, say, whist? ltbdl☃ (talk) 08:58, 7 September 2024 (UTC)
- That's weird. Izno (talk) 16:23, 7 September 2024 (UTC)
- Works for me. I null-edited the Infobox template. Editing the /doc template should, in a perfect world, immediately provide a null edit to the single page that transcludes it, but it rarely does so. – Jonesey95 (talk) 22:25, 7 September 2024 (UTC)
- I was able to reproduce earlier in Firefox up to date, but no longer. Maybe indeed it was a question of needing a null edit. Izno (talk) 22:39, 7 September 2024 (UTC)
- Works for me. I null-edited the Infobox template. Editing the /doc template should, in a perfect world, immediately provide a null edit to the single page that transcludes it, but it rarely does so. – Jonesey95 (talk) 22:25, 7 September 2024 (UTC)
Current date templates break after entering source editor
The default template for dating tags Template:Currentyear and Template:Currentmonth turn into a nowiki format after entering and exiting source. Roasted (talk) 00:52, 8 September 2024 (UTC)
- Aren't they supposed to do that? They mean "today as I am writing", not "today as someone is reading 30 years later" ... TooManyFingers (talk) 06:19, 8 September 2024 (UTC)
- @Roastedbeanz1: Your post could refer to different situations. Describe what you did from the start, what you expected and what happened instead. Save and link an edit where it happened. If you tried to add templates using source code like
{{...}}
} in VisualEditor then it's not supposed to work. VisualEditor has its own way of adding templates. See Help:VisualEditor#Editing templates. PrimeHunter (talk) 09:20, 8 September 2024 (UTC)
- @Roastedbeanz1: Your post could refer to different situations. Describe what you did from the start, what you expected and what happened instead. Save and link an edit where it happened. If you tried to add templates using source code like
Auto-expand "Learn more about this page" on navigation to anchor
This is with reference to the trouble a user reported at Talk:Turkey#Extended-confirmed-protected edit request on 12 August 2024 and similar reports I've seen elsewhere. In mobile view, the tags at the top of a talk page are hidden under an expandable link reading "Learn more about this page". These tags may include, among other things, a FAQ tag. When, in a discussion on the page, we want to route an inquiring editor to the FAQ (such as to Talk:Turkey#FAQ), we can't do so for a mobile user because the link doesn't work and the user, even if they scroll to the top (which is now the second thing they've tried in their attempt to see the referenced material), don't see the FAQ and don't see the third thing, clicking "Learn more about this page" that they'd have to do to get there, or perhaps at that point they've already given up.
Is it possible through some feat of CSS and/or Javascript wizardry to cause the top material to expand automatically upon navigation to an anchor that's within it? Largoplazo (talk) 17:31, 8 September 2024 (UTC)
No search box for default skin
The search box at the top of the main page en.wikipedia.org is absent on the default skin, at least on certain browsers. There is an empty area where it would belong, but there's nothing visible or clickable there. This happens at least on some versions of Chrome. The default skin on mobile is still working fine. On desktop, switching skins fixes the problem. Could this be dark mode related? TooManyFingers (talk) 16:39, 7 September 2024 (UTC)
- I found my problem.
- 1. Clicking the magnifying glass icon is now required, to use the search box.
- 2. My magnifying glass is not visible in dark mode. But it's there and I can click on it. TooManyFingers (talk) 17:19, 7 September 2024 (UTC)
- Clicking the icon should be required only at smaller resolutions. But it should still be visible, so something there is weird. Izno (talk) 18:39, 7 September 2024 (UTC)
- Another user who's not on dark mode says the magnifying glass is invisible or barely visible for them too. So it's not just dark mode. TooManyFingers (talk) 19:07, 7 September 2024 (UTC)
- Several similar complaints at WP:Help desk recently. Gråbergs Gråa Sång (talk) 09:30, 8 September 2024 (UTC)
- Another user who's not on dark mode says the magnifying glass is invisible or barely visible for them too. So it's not just dark mode. TooManyFingers (talk) 19:07, 7 September 2024 (UTC)
- Clicking the icon should be required only at smaller resolutions. But it should still be visible, so something there is weird. Izno (talk) 18:39, 7 September 2024 (UTC)
Why isn't this valid CSS?
The problem I'm having is actually on wikiconference.org, not here, but I'm asking this here because this is where all the really smart people hang out :-)
I'm trying to generate some custom CSS for https://wikiconference.org/wiki/2024/Schedule which will let me highlight the talks I want to go to. this works, but only highlights the talk title. this one highlights every table cell (as expected). this one does exactly what I want (i.e. highlights the table cell containing the desired title), but when I go to save it, I get an error message "The document contains errors. Are you sure you want to save?" and "Error: Expected RPAREN at line 1, col 9". Ignoring the error message and clicking "OK" seems to work fine.
Is this really invalid CSS, or is the editor just giving me a bogus warning? RoySmith (talk) 14:06, 9 September 2024 (UTC)
- The editor is older than the CSS you're employing. Izno (talk) 15:54, 9 September 2024 (UTC)
- Thanks. As far as I can tell, :has() was introduced in 2018, but I guess that's not a long time by wiki standards. RoySmith (talk) 16:31, 9 September 2024 (UTC)
:has()
was first-implemented in 2022 by Safari, then Chromium, then late 2023 by Firefox (implementing it was non-trivial for performance reasons), and I think went through a few name changes between 2018 and 2022. I am not surprised that the editor doesn't know it. Izno (talk) 16:41, 9 September 2024 (UTC)- @RoySmith: The W3C doc that you link is a Working Draft, which is a long way from being a Recommendation. The
:has()
pseudo-class is not part of the Selectors Level 3 spec, which is a W3C Recommendation. --Redrose64 🌹 (talk) 19:00, 9 September 2024 (UTC)- Thank you. RoySmith (talk) 19:43, 9 September 2024 (UTC)
- Thanks. As far as I can tell, :has() was introduced in 2018, but I guess that's not a long time by wiki standards. RoySmith (talk) 16:31, 9 September 2024 (UTC)
Special:Preferences sticky table header hides first data row
Originally reported in Phabricator but closed as "invalid" because "this is a local gadget". https://phabricator.wikimedia.org/T374327
Basically, enabling "Make headers of tables display as long as the table is in view" in Special:Preferences Gadgets results in the first table data row in templated tables being hidden by the table header rows shifted down. See Phabricator ticket for example and screenshots. ~Anachronist (talk) 14:19, 9 September 2024 (UTC)
- Interestingly, it displays properly in Chrome if my window is about half the width of the screen, or if I turn on Developer Tools so that the display area is about half the width of the screen. --SarekOfVulcan (talk) 14:28, 9 September 2024 (UTC)
- Your Phabricator example is Template:Series overview/doc. That template has code which works poorly with the gadget. See MediaWiki talk:Gadget-StickyTableHeaders.css#Not working at The Economist Democracy Index#List by region. PrimeHunter (talk) 18:03, 9 September 2024 (UTC)
- I had noticed it in other places, but I got bothered enough yesterday to report it after my most recent occurrence, which happened to be the series overview template. It also happens to every table in Historical rankings of presidents of the United States, for example. ~Anachronist (talk) 20:21, 9 September 2024 (UTC)
Navigation icons have vanished
Using Firefox and Dark Reader with Light Mode on, the icons are the same hue as the background and are not visible.
Fix by using Wikipedia's new Dark Mode? Not so fast. The background is too dark and the text is too bright. My eyes hurt when looking at it, and they don't hurt when using Dark Reader. This issue has already been raised by multiple users,[13] and will no doubt be solved in a timely fashion. But until then it would be nice to hit the undo button on whatever happened this week to the icons.
Here is some color data:
Wikipedia dark mode - harsh contrast
icons 234 236 240 Luminosity: 93%
back 16 20 24 Luminosity: 8%
Dark reader - easy on the eyes
text 232 230 227 Luminosity: 90%
back 24 26 27 Luminosity: 10%
This broke only a few days ago. Before, the icons were mostly correct except for the drop-down arrows. Wizmut (talk) 02:56, 6 September 2024 (UTC)
- Possibly phab:T374180 which is now fixed. 🐸 Jdlrobson (talk) 00:31, 10 September 2024 (UTC)
- Still broken. Is there a better place to report this issue? Wizmut (talk) 00:49, 10 September 2024 (UTC)
Font size change in Vector 2010
Can anyone have a look at phab:T367643, please? I submitted this task almost four months ago. Thanks, ‑‑Neveselbert (talk · contribs · email) 22:02, 9 September 2024 (UTC)
- You are running into Apple's browser's inflation algorithm which is adjusting your font size to what it thinks is the preferred minimum font size because they consider the current font-size too small for the current page and your preferences. It's best to set your preferred font size locally on your device so it doesn't change again.
- You can alter this by changing your font size on your device or if you have an account applying text-size-adjust in your user CSS.
- 🐸 Jdlrobson (talk) 00:42, 10 September 2024 (UTC)
html { --webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
- @Jdlrobson: thanks for responding. I've tried something like this already, by having JavaScript revert the viewport back to width=100 (reverting the font size back to normal). What I don't understand is why this change was applied to legacy Vector, instead of just the new Vector. ‑‑Neveselbert (talk · contribs · email) 18:59, 10 September 2024 (UTC)
"Missing in" added to language selector with delay, disrupting the UI
Hi,
Whenever I click on the language selector, it shows not only languages in which the article is available, but also suggestions of new languages to translate it in. (Which are never useful to me, but that is beside the point.)
The problem is that this suggestion appears with a delay of a second or so. See screencast:
Typically, I move my mouse cursor to the language name that I want to select, then just before I have the time to click, this suggestion appears and moves the target, so I end up clicking on the wrong languages.
Firefox 129.0 on Fedora 40. EDIT: Also reproduced with Google Chrome. Jean Abou Samra (talk) 13:02, 10 September 2024 (UTC)
- This appears to be an issue with the mw:Content translation beta feature, we can not fix this directly here on the English Wikipedia. You could bring this up at the feature talk here: mw:Talk:Content translation and/or open a bug on that feature. If you open a bug, please let us know your bug id so if others come upon this discussion they can follow up on it. — xaosflux Talk 13:26, 10 September 2024 (UTC)
- Done, thanks. https://phabricator.wikimedia.org/T374449 Jean Abou Samra (talk) 13:49, 10 September 2024 (UTC)
- @Jean Abou Samra: If you never use the Content Translation tool then you can disable it at Special:Preferences#mw-prefsection-betafeatures. If you still want the tool enabled but never want the "Missing in [languages]" message then you can add this to your CSS:
.cx-uls-relevant-languages-banner {display:none !important;}
- PrimeHunter (talk) 15:15, 10 September 2024 (UTC)
- Thanks! TIL I can edit my own CSS directly in Wikipedia (rather than Greasemonkey or similar); this is going to be useful! Jean Abou Samra (talk) 19:07, 10 September 2024 (UTC)
- Done, thanks. https://phabricator.wikimedia.org/T374449 Jean Abou Samra (talk) 13:49, 10 September 2024 (UTC)
Notification stoppage after bot edits
When a bot edits a watched page or file, notification emails for subsequent human edits stop being sent. Notifications only resume once the page is manually viewed or the entire watchlist is marked as read. Has anyone not had this problem? ‑‑Neveselbert (talk · contribs · email) 19:11, 10 September 2024 (UTC)
- Primefac has also highlighted this problem in phab:T358087. It's still a problem, and I've missed dozens of edits because some bot edited a bunch of pages on my watchlist. ‑‑Neveselbert (talk · contribs · email) 19:15, 10 September 2024 (UTC)
- See this tool and this discussion for more information. It doesn't get 100% of bot edits but it is about 99% accurate. Primefac (talk) 20:07, 10 September 2024 (UTC)
- Thanks Primefac, but how do I get a "Watchlist token"? ‑‑Neveselbert (talk · contribs · email) 21:13, 10 September 2024 (UTC)
- See this tool and this discussion for more information. It doesn't get 100% of bot edits but it is about 99% accurate. Primefac (talk) 20:07, 10 September 2024 (UTC)
Navboxes in mobile view
I'm not sure if this is the right place, but why are navboxes not visible in mainspace articles in mobile view (unless rotated sideways)? They are visible in drafts. Kailash29792 (talk) 01:38, 11 September 2024 (UTC)
- phab:T124168 has some background, particularly phab:T124168#1948388. Izno (talk) 01:54, 11 September 2024 (UTC)
Advanced Mode issues
I have been having this issue for a while now and would like some help solving it. I use Advanced Mode as a mobile user. Occasionally, going to some pages in the Wikipedia or User namespaces will show me the non-Advanced Mode UI. Going to another page typically fixes this, and going into Settings shows that Advanced Mode is still turned on. This seems to happen most often when clicking a link from one Wikipedia namespace page to another page in that namespace, but will sometimes also happen in other circumstances. There is no visible pattern to when it happens. Does anyone know why this happens or how it can be fixed? Thanks, QuicoleJR (talk) 14:42, 6 September 2024 (UTC)
- Which mobile client type (Apple, Android) and Version are you using? — xaosflux Talk 14:46, 6 September 2024 (UTC)
- Using the mobile browser version on an iPhone. I'm not sure what you mean by
version
. QuicoleJR (talk) 14:51, 6 September 2024 (UTC)- @QuicoleJR thank you, was clarifying if you were using the browser or the Wikipedia App. For your browser, assuming you are using Safari? Are you using the current version of Safari? — xaosflux Talk 14:55, 6 September 2024 (UTC)
- Actually, no, I do not use Safari. I use the Google app (not Google Chrome, Google itself). I am using the current version of Google AFAICT. QuicoleJR (talk) 15:01, 6 September 2024 (UTC)
- To verify if this is some browser problem, can you try again using a different browser? — xaosflux Talk 10:09, 11 September 2024 (UTC)
- Ok. I will ping you after I do that. QuicoleJR (talk) 12:05, 11 September 2024 (UTC)
- @Xaosflux: I tried using Safari and encountered the same issue. It seems to be most common with FACs. QuicoleJR (talk) 12:08, 11 September 2024 (UTC)
- @QuicoleJR when browsing are you logged in? Non-logged in users may get cached versions of pages. — xaosflux Talk 13:17, 11 September 2024 (UTC)
- Yes, I always use Wikipedia logged-in. QuicoleJR (talk) 13:26, 11 September 2024 (UTC)
- @QuicoleJR when browsing are you logged in? Non-logged in users may get cached versions of pages. — xaosflux Talk 13:17, 11 September 2024 (UTC)
- To verify if this is some browser problem, can you try again using a different browser? — xaosflux Talk 10:09, 11 September 2024 (UTC)
- Actually, no, I do not use Safari. I use the Google app (not Google Chrome, Google itself). I am using the current version of Google AFAICT. QuicoleJR (talk) 15:01, 6 September 2024 (UTC)
- @QuicoleJR thank you, was clarifying if you were using the browser or the Wikipedia App. For your browser, assuming you are using Safari? Are you using the current version of Safari? — xaosflux Talk 14:55, 6 September 2024 (UTC)
- Using the mobile browser version on an iPhone. I'm not sure what you mean by
Tech News: 2024-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.
Feature news
- Starting this week, the standard syntax highlighter will receive new colors that make them compatible in dark mode. This is the first of many changes to come as part of a major upgrade to syntax highlighting. You can learn more about what's to come on the help page. [14][15]
- Editors of wikis using Wikidata will now be notified of only relevant Wikidata changes in their watchlist. This is because the Lua functions
entity:getSitelink()
andmw.wikibase.getSitelink(qid)
will have their logic unified for tracking different aspects of sitelinks to reduce junk notifications from inconsistent sitelinks tracking. [16]
Project updates
- Users of all Wikis will have access to Wikimedia sites as read-only for a few minutes on September 25, starting at 15:00 UTC. This is a planned datacenter switchover for maintenance purposes. More information will be published in Tech News and will also be posted on individual wikis in the coming weeks. [17]
- Contributors of 11 Wikipedias, including English will have a new
MOS
namespace added to their Wikipedias. This improvement ensures that links beginning withMOS:
(usually shortcuts to the Manual of Style) are not broken by Mooré Wikipedia (language codemos
). [18]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 18:48, 9 September 2024 (UTC)
- Deployment of the MOS namespace on English Wikipedia is expected to happen tomorrow. I'll post a list of titles that need to be cleaned up after it happens; expected the bare [[MOS:]] and [[MoS:]] etc to break; please replace these with WP:MOS. C. Scott Ananian (WMF) (talk) 14:52, 11 September 2024 (UTC)
How to mark Minor Edit on Source Editor of Mobile website
I want to mark some of my edit as Minor Edit, but unable to do so with source editor. only Visual Editor provide interface to do that but i mostly work with source editor. how to mark any edit as minor edit on source editor of mobile website.
- Browser: Google Chrome 128.0.6613.127
-- kemel49(connect)(contri) 15:19, 10 September 2024 (UTC)
- This feature is not currently available in the mobile web view, see phab:T123694. As a workaround you could change to the desktop view. — xaosflux Talk 15:41, 10 September 2024 (UTC)
- @Xaosflux@KEmel49 we have also fielded a couple wishes on this. There might be an update regarding the availability of this feature.
- Out of curiosity, how would you feel if all editors saw this UX? JWheeler-WMF (talk) 19:03, 10 September 2024 (UTC)
- I'd be fine, as they do in VE mode already - think it should at least be consistent. — xaosflux Talk 21:47, 10 September 2024 (UTC)
- @JWheeler-WMF: As someone who uses the mobile source editor, I would appreciate the change. I don't think it makes sense to keep it from only one type of editor. QuicoleJR (talk) 12:12, 11 September 2024 (UTC)
- As we note any Minor copy edit as CE at Edit summary field, can't we note any minor edit as
<m>
or with any other tag,that cannot be marked on checkbox for technical limitation.-- kemel49(connect)(contri) 15:28, 11 September 2024 (UTC)
Cannot watch or mark edit as minor with source editor on mobile website
Buttons for watching or marking an edit as minor are nonexistent on mobile website source editor.
I tested the issue on both Safari 15.6, iPadOS 15.8 on an iPad Mini 4 and on Firefox 129, Android 14 on a Samsung Galaxy S23.
Hopefully this is enough info. Treetop-64bit (talk) 23:24, 10 September 2024 (UTC)
- See above section. — xaosflux Talk 10:03, 11 September 2024 (UTC)
PXPX issue with GALLERY tag
I noticed that my userpage was in Category:Pages with image sizes containing extra px. As it turned out, this was because I had specified |widths=80px
. Removing the px
solved it. This appears to be a WP:PXPX issue.
Checking a random sample of a dozen pages of the currently 8k+ in the category, I found that, in all cases, the member pages had the exact same issue with |widths=
and/or |heights=
specifications. Paradoctor (talk) 10:25, 8 September 2024 (UTC)
- This is phab:T374311. I think it has always been suggested to include px in gallery sizes but now it adds the new tracking category. I think the gallery tag or tracking code should be modifed to allow one
px
in gallery wikitext without triggering the category, rather than mass-removing oldpx
from all wikis to avoid the category. The suggestion to includepx
was removed from mw:Gallery examples yesterday and today.[19] PrimeHunter (talk) 12:49, 8 September 2024 (UTC)- This category appears to be broken at this time (false positives on properly configured gallery tags, per long-standing documentation at mediawiki.org), and possibly not needed at all, since Linter started detecting pxpx errors in 2023. I have commented at two related Phab tasks. – Jonesey95 (talk) 00:48, 10 September 2024 (UTC)
- Yeah, sorry about that. Fix in gerrit, but it did uncover the fact that the 'px' suffixes weren't being localized properly on non-English wikis. C. Scott Ananian (WMF) (talk) 14:47, 11 September 2024 (UTC)
- Gallery within mediawiki core itself does add an "px", so there definatly is an "pxpx" when the user gives one too. See for example https://gerrit.wikimedia.org/g/mediawiki/core/+/4d588557172511e7931bcdb63a87e9a6281c8cb3/includes/gallery/TraditionalImageGallery.php#65. That hardcoded px in code should go away, this is usually a bad practice anyway. It could also open the possibility of other units in galleries, but given that this has been hardcoded for years, it is most likely not tested at all. Snævar (talk) 14:13, 10 September 2024 (UTC)
- Color me confused. When I run through Special:ExpandTemplates and ask it to show me the raw HTML, I see
<gallery widths=180px> foo.jpg </gallery>
I don't see any pxpx in there. I agree that any hardcoded px should go away and live in the "gallery" declaration. That might allow us to use other units like em with code like "widths=10" being ambiguous. – Jonesey95 (talk) 01:31, 11 September 2024 (UTC)<div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 215px"> <div class="thumb" style="width: 210px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:Foo.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Foo.jpg/180px-Foo.jpg" decoding="async" width="180" height="118" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Foo.jpg/270px-Foo.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/0/06/Foo.jpg 2x" data-file-width="300" data-file-height="197" /></a></span></div> <div class="gallerytext"></div> </li> </ul></div>
- gallery tags are not template-expanded to other wikitext so Special:ExpandTemplates doesn't show it but there is an internal MediaWiki process which adds
px
before passing code from gallery tags to other parts of MediaWiki. phab:T374311#10137524 says a patch has been uploaded today. It has to be approved and deployed but I suggest we just wait and ignore the tracking category for now. Category:Pages with image sizes containing extra px already has a note [20] about it. PrimeHunter (talk) 16:04, 11 September 2024 (UTC)
- gallery tags are not template-expanded to other wikitext so Special:ExpandTemplates doesn't show it but there is an internal MediaWiki process which adds
- Color me confused. When I run
Gallery issue
I noticed some recent gallery's in articles that have this heading: <gallery mode=packed heights=250px>. The result is such a gallery having very big images, not the specified 250px but 469px high. I found the 469px by making a screenshot of the page (using Edge as browser, with zoom 100%), followed by cropping is to contain one image only. For an example see Wat Ket Karam. FredTC (talk) 11:14, 10 September 2024 (UTC)
- According to dev tools they are 501x375 — Qwerfjkltalk 17:09, 10 September 2024 (UTC)
- The thumbnails are shown too big, because the parameter is not "heights" but "height". "<gallery mode=packed height=250px>" works fine.--Snævar (talk) 22:30, 10 September 2024 (UTC)
- No, "heights" is correct. "height" is ignored as an unknown parameter and you get a default size. I don't know the precise algorithm when heights is used but it looks like the browser may calculate how many images will fit in a row with the current window width, and then enlarges the images so the whole window width is used, except it's limited how much it will enlarge an image. And MediaWiki apparently offers a larger image file than requested with the heights parameter so the browser has a good image to work with if enlargement is needed by the algorithm. PrimeHunter (talk) 00:01, 11 September 2024 (UTC)
- Then this text:
heights=
Image heights in pixels (has no effect if mode is set to slideshow)
- in Help:Gallery tag is incorrect. Should the help-info be modified to explain what really happens? --FredTC (talk) 10:58, 11 September 2024 (UTC)
- I tried to guess what happens from some tests but I'm not comfortable writing documentation based on that. Help:Gallery tag#Usage notes says:
- The
packed
mode will automatically adjust image sizes to use available display space optimally.
- The
- Help:Gallery tag#packed says: "It may relatively enlarge some images that were smaller in the above views."
- The potential enlargement should maybe be mentioned when
packed
is introduced in Help:Gallery tag#Attributes and values. PrimeHunter (talk) 11:54, 11 September 2024 (UTC)
- I tried to guess what happens from some tests but I'm not comfortable writing documentation based on that. Help:Gallery tag#Usage notes says:
- "Except with very good reason, a fixed width in pixels (e.g. 17px) should not be specified, because it ignores the user's base width setting." Wikipedia:Manual of Style/Images#Size Snævar (talk) 22:28, 11 September 2024 (UTC)
- That doesn't apply to gallery tags. Help:Gallery tag#Usage notes says: "The default width and height are currently 120px. Images displayed by the
<Gallery>...</Gallery>
tag do not obey user viewing preferences." PrimeHunter (talk) 22:51, 11 September 2024 (UTC)
- That doesn't apply to gallery tags. Help:Gallery tag#Usage notes says: "The default width and height are currently 120px. Images displayed by the
- Then this text:
- No, "heights" is correct. "height" is ignored as an unknown parameter and you get a default size. I don't know the precise algorithm when heights is used but it looks like the browser may calculate how many images will fit in a row with the current window width, and then enlarges the images so the whole window width is used, except it's limited how much it will enlarge an image. And MediaWiki apparently offers a larger image file than requested with the heights parameter so the browser has a good image to work with if enlargement is needed by the algorithm. PrimeHunter (talk) 00:01, 11 September 2024 (UTC)
Cite links are broken when VisualEditor is rendered in Parsoid
An odd bug that for some reason only affects, ironically enough, the article VisualEditor, which is why Parsoid began in the first place.
For some reason, all citation links, which should normally cause the query fragment of the citation ID to be used as a hyperlink, for example #cite-note_24
in the Technical section, instead get #Technical
, the name of a subsection, prepended to them (so something like #Technical#cite-note_24
) This naturally is an invalid ID for any element on the page, and thus citations aren't able to send you to where they're stored. Despite the name, this bug appears to affect every citation on the page, as well as the caret links back.
A quick search for another article with a level 3 header as Technical was, Oura Health, did not provoke this bug.
I do apologise if this isn't the right venue for such a technical issue, but I suspect that something on VisualEditor is responsible for making Parsoid act up. Thanks for reading. Regards, User:TheDragonFire300. (Contact me | Contributions). 15:32, 11 September 2024 (UTC)
- So, you mean that at https://en.wikipedia.org/wiki/VisualEditor?useparsoid=1 (link for the Parsoid version) the anchors are broken? Can confirm the described bug happens to me in that link, yes. As for the Oura Health test, I don't see a #Technical subsection in that article.
- *edit: I tried with Main sequence, which does have a #Technical subsection, and the bug does not happen there. – 2804:F1...EE:9927 (talk) 19:34, 11 September 2024 (UTC) *edited 19:51, 11 September 2024 (UTC)
- Something of note(maybe): The previous revision (permalink) of the VisualEditor article with Parsoid did not have broken anchors. I don't see anything in Special:Diff/1245017847 that could have caused it, though it is an edit to the #Technical subsection, hm. – 2804:F1...EE:9927 (talk) 20:15, 11 September 2024 (UTC)
- I've purged the article and the links appear to be working again. -- LCU ActivelyDisinterested «@» °∆t° 20:35, 11 September 2024 (UTC)
- ...How did I forget about Special:Purge? Such a simple thing to fix a bizarre (?) bug. But yeah, the reason why I brought up Oura Health was that was my Special:Random-found "control group" article, to try to understand the nature of the bug. (
"as Technical was"
was meant to be understood in the sense that both articles had a level 3 header, not that Oura Health literally had a "Technical" subsection. But yeah, I wonder if/how this should be reported, given that the purge got rid of it. Regards, User:TheDragonFire300. (Contact me | Contributions). 23:22, 11 September 2024 (UTC)
- ...How did I forget about Special:Purge? Such a simple thing to fix a bizarre (?) bug. But yeah, the reason why I brought up Oura Health was that was my Special:Random-found "control group" article, to try to understand the nature of the bug. (
- I've purged the article and the links appear to be working again. -- LCU ActivelyDisinterested «@» °∆t° 20:35, 11 September 2024 (UTC)
- Something of note(maybe): The previous revision (permalink) of the VisualEditor article with Parsoid did not have broken anchors. I don't see anything in Special:Diff/1245017847 that could have caused it, though it is an edit to the #Technical subsection, hm. – 2804:F1...EE:9927 (talk) 20:15, 11 September 2024 (UTC)
What's the best fix for section titles containing ‹math› code?
I've come across some articles like List of repunit primes that have section titles like Bases such that is prime for prime which appear in the table of contents sidebar as Bases ?'"`UNIQ--postMath-00000001-QINU`"'? such that ?'"`UNIQ--postMath-00000002-QINU`"'? is prime for prime ?'"`UNIQ--postMath-00000003-QINU`"'. I presume this is another issue related to strip markers, but I'm not sure what the correct fix is. Should the section titles just be reworded and the <math> tags stripped out? Or is there a way to keep the math markup in the section titles without breaking the table of contents? 28bytes (talk) 22:13, 11 September 2024 (UTC)
- MOS:HEADINGS says "For technical reasons, section headings should: ... Not contain <math> markup." PrimeHunter (talk) 22:22, 11 September 2024 (UTC)
- Well, that sounds pretty straightforward! I'll go ahead and remove it. Thanks. 28bytes (talk) 23:00, 11 September 2024 (UTC)
- I have "fixed" a few of these in the past—not really a fix because the math markup often gives a far better result in section headings. A bluesky solution might be for some new wikitext to define the heading for the contents, although that would give ugly wikitext and another hassle for visual editor developers. See this search to find more. Johnuniq (talk) 03:24, 12 September 2024 (UTC)
- Well, that sounds pretty straightforward! I'll go ahead and remove it. Thanks. 28bytes (talk) 23:00, 11 September 2024 (UTC)
Categories with pages that aren't in that cat
Category:NA-Class medicine articles contains a short list of pages. However, if you click on the pages in the cat, e.g., Talk:2024 United States listeriosis outbreak, there is no sign of the cat on those pages. It's been almost 8 weeks since anyone edited that talk page. How do I get this page out of that cat? WhatamIdoing (talk) 01:55, 11 September 2024 (UTC)
- Make a null edit of the page. I did and it disappeared from the category. PrimeHunter (talk) 02:04, 11 September 2024 (UTC)
- Thanks, that's working on most of them. WhatamIdoing (talk) 02:37, 11 September 2024 (UTC)
- I can't get Help talk:Wikipedia editing for medical experts or Talk:Rorschach test/top business out of the cat. The help page would ideally be Category:Project-Class medicine articles, and the second should be an ordinary article (Category:B-Class medicine articles). I wonder whether the use of a subpage on the second one affects the template's behavior. WhatamIdoing (talk) 21:36, 11 September 2024 (UTC)
- It looks like it's working as intended. The category is actually on those pages so null edits will have no effect. Help talk:Wikipedia editing for medical experts says
{{WikiProject Medicine|class=Project|importance=NA}}
. The WikiProject tag detects the page is not in the project talk namespace so it refuses to add Category:Project-Class medicine articles. There is no category for help pages so it's put in Category:NA-Class medicine articles instead. I would just leave it there. Talk:Rorschach test/top business serves no purpose now and should probably have been deleted or blanked after [21]. I assume the category is added because Rorschach test/top business doesn't exist. PrimeHunter (talk) 22:45, 11 September 2024 (UTC)- Thanks for the explanation. I've the templates on Rorschach page, since it's not being used. That seems to be enough. WhatamIdoing (talk) 03:57, 12 September 2024 (UTC)
- It looks like it's working as intended. The category is actually on those pages so null edits will have no effect. Help talk:Wikipedia editing for medical experts says
- I can't get Help talk:Wikipedia editing for medical experts or Talk:Rorschach test/top business out of the cat. The help page would ideally be Category:Project-Class medicine articles, and the second should be an ordinary article (Category:B-Class medicine articles). I wonder whether the use of a subpage on the second one affects the template's behavior. WhatamIdoing (talk) 21:36, 11 September 2024 (UTC)
- Thanks, that's working on most of them. WhatamIdoing (talk) 02:37, 11 September 2024 (UTC)
Cleaning up MOS: links
With the impending addition of MOS
as a namespace on English Wikipedia, [[MOS:]]
links (and [[MoS:]]
etc) need to be replaced with [[WP:MOS]]
. Can anyone help with that cleanup before the MOS namespace rolls out tomorrow? See T363538 and the Tech News item above for more details. C. Scott Ananian (WMF) (talk) 14:56, 11 September 2024 (UTC)
- @CAnanian (WMF) wasn't the point of this supposed to be not have to touch 2000+ pages?? Why would we even want a new namespace added here otherwise?? — xaosflux Talk 15:27, 11 September 2024 (UTC)
- Special:PrefixIndex/MOS:, Special:PrefixIndex/Mos:, Special:PrefixIndex/MoS:. — xaosflux Talk 15:29, 11 September 2024 (UTC)
- And more specifically to not have to touch every link to these pages on every other page. — xaosflux Talk 15:29, 11 September 2024 (UTC)
- The request is to fix wikilinks which only say
[[MOS:]]
(or other capitalizations) without anything after the colon. Those links will become broken like[[Wikipedia:]]
which produces [[Wikipedia:]]. It can be fixed by replacing the links with[[WP:MOS]]
which produces WP:MOS. A linksto search currently finds 4908 links to [[MOS:]] so it sounds like a job for a bot or patient AWB users. PrimeHunter (talk) 15:43, 11 September 2024 (UTC)- Thank you for the clarification. Some of these prob don't need to be done (like old talk archives). — xaosflux Talk 16:21, 11 September 2024 (UTC)
- Most of them came from {{GAProgress}}, which Stjn already fixed. insource search shows 597 pages still to fix, most of which are old talk archives. * Pppery * it has begun... 16:36, 11 September 2024 (UTC)
- I've also filed phab:T374555, since this concept should be supported even though it currently isn't. * Pppery * it has begun... 16:36, 11 September 2024 (UTC)
- It’s still many, many pages due to that template being substituted in every GA review. So PrimeHunter’s link is better (since it captures most of the cases which are boilerplate
[[MoS:|…]]
, and your link doesn’t). stjn 16:40, 11 September 2024 (UTC)- True. * Pppery * it has begun... 16:52, 11 September 2024 (UTC)
- Old archived pages are routinely cleaned up after changes like this. Please include them in the AWB/bot work. – Jonesey95 (talk) 17:11, 11 September 2024 (UTC)
- I'm in principle willing to run a bot to fix this. But I'd like to see what happens with T374555 first. * Pppery * it has begun... 17:12, 11 September 2024 (UTC)
- I have just done it. I have skipped user talk pages and just a handful of sandbox pages, for which a bot may be better to avoid OBODs.
- I find it telling that of the 500 some odd links, the vast majority were added because of the one template being substed or transcluded. I think maybe only some 100 uses were actual natural links, and those across the time-space of 20 years... well, I wouldn't support the work of that task. There are better edge cases to support. Izno (talk) 17:51, 11 September 2024 (UTC)
- Some links start with
MOS:#
.[22] PrimeHunter (talk) 18:24, 11 September 2024 (UTC)- Nice catch. I've sorted these outside user talk. Izno (talk) 20:35, 11 September 2024 (UTC)
- Izno, I can run this on my bot if it would help, I think this falls under WP:IAR. — Qwerfjkltalk 19:42, 11 September 2024 (UTC)
- I just did it after cscott made it obvious what the impact of many of these links was (adding an iw link to mos wiki and vanishing the original link in the process). Izno (talk) 15:32, 12 September 2024 (UTC)
- Some links start with
- I'm in principle willing to run a bot to fix this. But I'd like to see what happens with T374555 first. * Pppery * it has begun... 17:12, 11 September 2024 (UTC)
- Old archived pages are routinely cleaned up after changes like this. Please include them in the AWB/bot work. – Jonesey95 (talk) 17:11, 11 September 2024 (UTC)
- True. * Pppery * it has begun... 16:52, 11 September 2024 (UTC)
- Most of them came from {{GAProgress}}, which Stjn already fixed. insource search shows 597 pages still to fix, most of which are old talk archives. * Pppery * it has begun... 16:36, 11 September 2024 (UTC)
- Thank you for the clarification. Some of these prob don't need to be done (like old talk archives). — xaosflux Talk 16:21, 11 September 2024 (UTC)
- The request is to fix wikilinks which only say
- Script just finished running. The list of affected titles is at T363538#10141129. Most of these look fairly harmless, eg if MOS:HEAD already exists, then the existing MoS:HEAD is (a) a conflict, and so gets moved to Broken/MOS:HEAD but (b) is also unnecessary, because the namespace is case-insensitive so existing links to MoS:HEAD "just work". So the Broken/ page can be safely deleted. C. Scott Ananian (WMF) (talk) 14:47, 12 September 2024 (UTC)
- It looks like Izno deleted the first set of broken pages. The second set at https://en.wikipedia.org/wiki/Special:PrefixIndex?prefix=MOS%3AT3&namespace=0 still needs to be deleted. * Pppery * it has begun... 15:17, 12 September 2024 (UTC)
- And JJMC took care of another batch, including those and others like these. Izno (talk) 15:27, 12 September 2024 (UTC)
- It looks like Izno deleted the first set of broken pages. The second set at https://en.wikipedia.org/wiki/Special:PrefixIndex?prefix=MOS%3AT3&namespace=0 still needs to be deleted. * Pppery * it has begun... 15:17, 12 September 2024 (UTC)
Filed a related edit request at MediaWiki talk:Title-invalid-empty. * Pppery * it has begun... 16:52, 11 September 2024 (UTC)
- I've taken care of that now. Elli (talk | contribs) 15:38, 12 September 2024 (UTC)
Dark mode problems for code blocks
Template:Linux layers is working fine in light mode, but in dark mode, the <code>...</code>
blocks (with text like "fopen") are unreadable dark gray text on dark gray background. It looks like that's happening from this CSS block:
@media screen { html.skin-theme-clientpref-night table:not(.infobox):not(.navbox-inner):not(.navbox) [bgcolor] a:not(.mw-selflink), html.skin-theme-clientpref-night table:not(.infobox):not(.navbox-inner):not(.navbox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink), html.skin-theme-clientpref-night table:not(.infobox):not(.navbox-inner):not(.navbox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink), html.skin-theme-clientpref-night table:not(.infobox):not(.navbox-inner):not(.navbox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a:not(.mw-selflink) { color: var(--color-base-fixed,#202122);
Firefox is telling me it's the last item in the comma-separated list which is active. I think this might be coming from the built-in skin CSS? This is a complicated case because the surrounding background colors are pastel in both light and dark modes, but the background of the code tag itself is white in light mode and dark gray in dark mode. It would require careful testing if this is in fact a skin problem. -- Beland (talk) 03:37, 11 September 2024 (UTC)
- Yes, that's a skin issue. @Jon (WMF) Izno (talk) 03:41, 11 September 2024 (UTC)
- Is this related to all HTML tags (that used to appear as green text in syntax highlighter) are now indistinguishable from plaintext when viewed in dark mode? Started yesterday on Wikivoyage, and today here on en.wiki. Zinnober9 (talk) 22:06, 12 September 2024 (UTC)
- We can use TemplateStyles here to fix the local case, but links inside <code> is an unanticipated edge case. Izno (talk) 03:42, 11 September 2024 (UTC)
Transclusion check tool doesn't seem to work
There seems to be somethings wrond with the tool that {{check completeness of transclusions}} uses. It doesn't return an answer. HandsomeFella (talk) 22:29, 12 September 2024 (UTC)
- That tool asks for bugs to be reported here. — xaosflux Talk 23:56, 12 September 2024 (UTC)
New pages highlight color changed
Until today, the "New pages" list were bright yellow highlight if no one had looked at them. It was very helpful in spotting new articles that needed editing. As of about an hour ago, that bright yellow went away and has been replaced by a very blah and light flesh colored background for the new pages. The new color, if you can even call it a color, only makes it more hard to scroll for entries. — Maile (talk) 00:25, 13 September 2024 (UTC)
- You can add this to your CSS:
li.not-patrolled {background-color:yellow;}
- PrimeHunter (talk) 04:29, 13 September 2024 (UTC)
- Thanks. It's been years since I edited that CSS and I'm not getting it correct. — Maile (talk) 13:56, 13 September 2024 (UTC)
- Just copy-paste the line to User:Maile66/common.css and ignore the warning about
li.not-patrolled
being overqualified. It's a yellow warning, not a red error. I addedli
to override the existing color declaration fornot-patrolled
. PrimeHunter (talk) 15:27, 13 September 2024 (UTC)- Success! Thank you! — Maile (talk) 21:43, 13 September 2024 (UTC)
- Just copy-paste the line to User:Maile66/common.css and ignore the warning about
- Thanks. It's been years since I edited that CSS and I'm not getting it correct. — Maile (talk) 13:56, 13 September 2024 (UTC)
New gadget for doing user entered calculations
We at Wiki Project Med are working to build mediawiki based calculators. One can be seen here on MDWiki mdwiki:Body_mass_index.
Within medicine there are hundreds of such calculators.[23]
Wondering about getting this functional here as a trial? More development is going to be required before this is extensively used of course.
We would need an interface admin to copy this over for it to work. Doc James (talk · contribs · email) 06:33, 4 September 2024 (UTC)
- I don't see any calculator on mdwiki:Body_mass_index? – SD0001 (talk) 14:36, 4 September 2024 (UTC)
- Do you see it on mdwiki:Template:Calculator#Example ? Bawolff (talk) 15:10, 4 September 2024 (UTC)
- On that remote wiki I see it labeled as "BMI calculator". — xaosflux Talk 15:17, 4 September 2024 (UTC)
- ah never mind, for some reason I had JS disabled on the site. – SD0001 (talk) 15:58, 4 September 2024 (UTC)
- Baring any actual objections to testing I'm not seeing any showstoppers to forking over as an opt-in/?withgadget test. — xaosflux Talk 17:12, 4 September 2024 (UTC)
- Thanks Xaosflux. Have built another example here mdwiki:CHA2DS2–VASc score. Once we have a testable version on EN WP will be easier to discuss with others who may be interested. Doc James (talk · contribs · email) 07:38, 5 September 2024 (UTC)
- I feel like specifying formulas inline could be susceptible to subtle vandalism which would be undesirable. I'm also seeing mentions of eval, can you comment on how this calculations are being done ? (I'll note evaling user-generated content on Wikimedia sites should probably be a no-go from a security POV). Sohom (talk) 16:57, 5 September 2024 (UTC)
- Everything on Wikipedia is susceptible to vandalism; it doesn't mean we stop mentioning people's birth dates and other details which can be subtly fabricated. The calculators could be made templates which can be protected if necessary. Evalling is fine if inputs are sanitised. – SD0001 (talk) 17:10, 5 September 2024 (UTC)
- @SD0001 Wrt to the first point, my thought process was that manipulating birthdays would be a lesser issue than manipulating a BMI calculator that could be potentially be used by people to self-diagnose metabolism disorders. Regarding the rest, on looking further at the code, I agree that security shouldn't be a issue for it's current version, however, it would be nice to document the method the script uses anyway (as a comment) to make sure future editors of the script are aware of this consideration. Sohom (talk) 19:33, 5 September 2024 (UTC)
- The tl;dr is that the formulas are parsed using a simple Recursive descent parser into an AST type structure. The AST is evaluated by walking through the tree. In the tree there are
OP
nodes that represent an operation from a fixed set of valid operations implemented in javascript. A dependency graph structure is also created in order to refresh any widgets that depend on a value that was changed with loop detection. Bawolff (talk) 19:41, 5 September 2024 (UTC)- I added a code comment to the script. Bawolff (talk) 19:53, 5 September 2024 (UTC)
- The tl;dr is that the formulas are parsed using a simple Recursive descent parser into an AST type structure. The AST is evaluated by walking through the tree. In the tree there are
- @SD0001 Wrt to the first point, my thought process was that manipulating birthdays would be a lesser issue than manipulating a BMI calculator that could be potentially be used by people to self-diagnose metabolism disorders. Regarding the rest, on looking further at the code, I agree that security shouldn't be a issue for it's current version, however, it would be nice to document the method the script uses anyway (as a comment) to make sure future editors of the script are aware of this consideration. Sohom (talk) 19:33, 5 September 2024 (UTC)
- @Sohom Datta this would serve the user some javascript, execution is client-side via browser. The script code itself could only be modified by interface admins. The current script would always be viewable by anyone, and is currently available to see at this link. — xaosflux Talk 19:30, 5 September 2024 (UTC)
- The script does not use eval() as a security precaution. It is designed with security in mind. Bawolff (talk) 19:31, 5 September 2024 (UTC)
- See my comment just above regarding this, I agree that is probably safe, but it would make sense to document the security considerations in the code for future interface admins/script editors. Sohom (talk) 19:36, 5 September 2024 (UTC)
- Everything on Wikipedia is susceptible to vandalism; it doesn't mean we stop mentioning people's birth dates and other details which can be subtly fabricated. The calculators could be made templates which can be protected if necessary. Evalling is fine if inputs are sanitised. – SD0001 (talk) 17:10, 5 September 2024 (UTC)
- I feel like specifying formulas inline could be susceptible to subtle vandalism which would be undesirable. I'm also seeing mentions of eval, can you comment on how this calculations are being done ? (I'll note evaling user-generated content on Wikimedia sites should probably be a no-go from a security POV). Sohom (talk) 16:57, 5 September 2024 (UTC)
- I have made some enhancements to User:SDZeroBot/Gadget sync so that it also supports wikis with a non-local interwiki mapping (like mdwiki). Could be used for this. – SD0001 (talk) 08:24, 10 September 2024 (UTC)
- Thanks Xaosflux. Have built another example here mdwiki:CHA2DS2–VASc score. Once we have a testable version on EN WP will be easier to discuss with others who may be interested. Doc James (talk · contribs · email) 07:38, 5 September 2024 (UTC)
- Not seeing any blockers to testing, will work on import/setup. — xaosflux Talk 14:54, 11 September 2024 (UTC)
- Useful gadget, but it should be placed below the infobox rather than inside it, because it's somewhat unnoticeable when its placed inside the infobox. Vestrian24Bio (TALK) 14:42, 13 September 2024 (UTC)
- The gadget can go outside or inside the infobox. I think the decision of were it goes can be left up to the editors of the article in question. Best Doc James (talk · contribs · email) 19:39, 13 September 2024 (UTC)
- In that case, I was talking about mdwiki:Body mass index. Vestrian24Bio (TALK) 00:34, 14 September 2024 (UTC)
- The gadget can go outside or inside the infobox. I think the decision of were it goes can be left up to the editors of the article in question. Best Doc James (talk · contribs · email) 19:39, 13 September 2024 (UTC)
- Useful gadget, but it should be placed below the infobox rather than inside it, because it's somewhat unnoticeable when its placed inside the infobox. Vestrian24Bio (TALK) 14:42, 13 September 2024 (UTC)
- @Doc James and Bawolff:} this has been mirrored in. This gadget may currently be used 2 ways: (1) OPT-IN from Special:Preferences#mw-prefsection-gadgets-gadget-section-test (2) Using a ?withgadget query parameter. — xaosflux Talk 15:09, 13 September 2024 (UTC)
- Prior to larger development, a trigger category Category:Pages using gadget Calculator should be built. Additionally, related templates and documentation are needed. How to present the template when the gadget isn't running or javascript isn't running should be discussed. Finally, the non-technical consideration of article styling/usage consideration (such as what @Vestrian24Bio brought up above) should be discussed. — xaosflux Talk 15:14, 13 September 2024 (UTC)
- Just for reference there is some documentation on Template:Calculator Bawolff (talk) 16:38, 13 September 2024 (UTC)
- Prior to larger development, a trigger category Category:Pages using gadget Calculator should be built. Additionally, related templates and documentation are needed. How to present the template when the gadget isn't running or javascript isn't running should be discussed. Finally, the non-technical consideration of article styling/usage consideration (such as what @Vestrian24Bio brought up above) should be discussed. — xaosflux Talk 15:14, 13 September 2024 (UTC)
Popups/tooltips editing
Who controls the tooltips, popup, etc.? Is it the developers, or can we administrators edit some MediaWiki page that controls them? I just now logged out, and I was shown a brief popup with the following text:
"You are being logged out, please wait."
This has a clear comma splice, so it needs to have the comma replaced with a semicolon, but I'm not sure how to do it or whom to ask. The popup wasn't really a separate window; it looked more like a tooltip, but it appeared only after I clicked the link, so it's not really a tooltip. Nyttend (talk) 04:49, 13 September 2024 (UTC)
- The default MediaWiki message can be changed by administrators at MediaWiki:Logging-out-notify but I wouldn't create a localized message for such a small change. PrimeHunter (talk) 05:17, 13 September 2024 (UTC)
- gerrit:1072652 * Pppery * it has begun... 05:33, 13 September 2024 (UTC)
- Aparently @SD0001 disagrees with the semi-colon — Martin (MSGJ · talk) 10:26, 13 September 2024 (UTC)
- I see the message as two sentences, so how about a full stop.
Please wait
is also an imperative, so perhaps it deserves an exclamation? — GhostInTheMachine talk to me 11:28, 13 September 2024 (UTC)- A full stop would work fine as well. I don't think an exclamation mark is needed (I can't tell if the above is humor). – Jonesey95 (talk) 12:03, 13 September 2024 (UTC)
- Only semi-serious on the pling. Can go with or without. Perhaps we need a
{{not serious}}
or{{inline humour}}
template? — GhostInTheMachine talk to me 12:49, 13 September 2024 (UTC)- We have an entire collection of such templates. – SD0001 (talk) 07:30, 14 September 2024 (UTC)
- Only semi-serious on the pling. Can go with or without. Perhaps we need a
- A full stop would work fine as well. I don't think an exclamation mark is needed (I can't tell if the above is humor). – Jonesey95 (talk) 12:03, 13 September 2024 (UTC)
- I see the message as two sentences, so how about a full stop.
- Aparently @SD0001 disagrees with the semi-colon — Martin (MSGJ · talk) 10:26, 13 September 2024 (UTC)
- gerrit:1072652 * Pppery * it has begun... 05:33, 13 September 2024 (UTC)
Not receiving "Reset Password" emails
I've submitted my information to the "Reset Password" form, but I am not receiving the "Reset Your Password" email(s). I've submitted:
• Both username and email • Username only • Email only
I have access to the email account, and my last login with my username was 2018.
How can I reset my password? 2001:5A8:49C4:BC00:90B:103A:2BA0:38B0 (talk) 21:10, 13 September 2024 (UTC)
- Accounts and passwords never expire. If you have a spam folder, maybe at your email provider, then try checking it. If you post the username (on this public page which already shows your IP address) then we can check whether the account exists and has an email address stored, but that's all. We cannot see what the email address is. If you didn't store one or cannot receive mail at it then you have to create new account. PrimeHunter (talk) 21:41, 13 September 2024 (UTC)
- Thank you, I've been checking my spam folders, but I'm not getting an email.
- Username is Emdub510 2001:5A8:49C4:BC00:90B:103A:2BA0:38B0 (talk) 22:02, 13 September 2024 (UTC)
- The account User:Emdub510 does exist and has set an email address but has chosen to not receive mails from other users. The account was created in 2006. Most users rarely or never use our email features so it's plausible you gave the email address in 2006 and never needed it before now. Maybe you changed email address? The account has made 119 edits (only 1 since 2011). That's low by Wikipedia standards. You can just create a new account. If you want you can write on the user page of the old and new account that you are the same user. PrimeHunter (talk) 23:28, 13 September 2024 (UTC)
- For privacy reasons, somebody who isn't logged in to the account cannot test at Special:PasswordReset or elsewhere whether it has a specific email address. PrimeHunter (talk) 23:32, 13 September 2024 (UTC)
- Your best course of action might be to file a bug report in Phabricator about not receiving the password reset emails for your account. The developers can both look into that and offer any alternatives. Anomie⚔ 13:34, 14 September 2024 (UTC)
Problem with account creation in Germany
I'm unable to create an account, because I always get the message "Visitors to Wikipedia using your IP address have created 6 accounts in the last 24 hours..." It seems like something is broken. I asked about it a few days ago at the Help Desk: Wikipedia:Help desk/Archives/2024 September 10#Unable to create account - a few admins looked at it, but couldn't help.
My Mac computer has a dynamic IP on O2/Telefonica in Germany. It changes once a day usually, or if I power-cycle my router. I've tried about 20 different IP numbers, over the past week, and it's always the same. I've tried several different browsers, emptying my cache, and creating a fresh browser profile in Firefox. It's also happening on my phone. I've tried using my phone's browser on WiFi. Then I turned off WiFi, and used the phone's cellular data, which is also on O2/Telefonica, but mobile. I tried using the phone as a mobile hotspot for my computer. But it's always the same error message, no matter what I do.
It seems unlikely that every single address has been used to create multiple Wikipedia accounts in the past day. Like there would have to be some kind of bot net cycling through IP numbers and creating thousands of accounts. Otherwise, because the number doesn't change that often, it feels like something is malfunctioning, and that it's not my equipment. If so, it may be affecting a large number of people, since this is a major ISP and this address pool covers a large part of Germany, including Berlin. I understand I could try to use the "request an account" page, but I wanted to report this as possibly a bug. Any ideas, or someone else I should talk to? Thanks. 77.183.18.209 (talk) 15:17, 15 September 2024 (UTC)
- @77.183.18.209 You can request an account via this page. A volunteer will review your request shortly after it is submitted. NightWolf1223 <Howl at me•My hunts> 15:25, 15 September 2024 (UTC)
- Thanks, I understand I can request an account that way, but I prefer not to give my real e-mail address (even if it's not retained), and it says that I can't use a throw-away address. So it's a little inconvenient. But the main thing is that this seems like a bug that should be reported and fixed, if it's affecting more than just me. 77.183.18.209 (talk) 15:37, 15 September 2024 (UTC)
- There may be a more legitimate reason as to why your IPv4 address hits the 6-account creation limit: your service provider may be using a CGNAT setup in which the same IPv4 address is potentially shared across hundreds of their subscribers. How to determine you are on CGNAT, check your modem/router WAN IP address, and see if it matches your public address (which you can check with a third party website such as https://whatismyipaddress.com/). If indeed it is a CGNAT setup, you can only registere through WP:ACC or access Wikipedia on another ISP that does not use CGNAT or see if you can force an IPv6-only connection on your current provider (not sure if this will work through). – robertsky (talk) 15:38, 15 September 2024 (UTC)
- @Robertsky: Thanks for the info. I don't think that's the case though. If I log into my router's admin interface, the WAN address listed is the same as the public IP address reported by whatismyipaddress.com. The IPv6 number is blank in the router, and not listed on whatismyipaddress.com. But if I use my phone as a mobile hotspot, with cellular data (which I'm doing right now), I do get an IPv6 number. But I just tried again, and I still get the "more than 6 accounts" message. 2A02:3032:312:C23E:651B:88A4:497B:5E99 (talk) 16:01, 15 September 2024 (UTC)
- Back on DSL again - according to o2 customer service CGNAT is not used on my DSL line. I also did a traceroute on my WAN IP, and there's only one hop. 77.183.18.209 (talk) 17:19, 15 September 2024 (UTC)
The Interface
About how text is displayed:
- As for the Italic text feature in English, it is towards the right. But this happens even for the Arabic language, and this is considered a Wrong.
- There is another matter, I see that the level of spacing between the lines along the article page is too far apart from each other.
Mohmad Abdul sahib talk☎ talk 16:48, 15 September 2024 (UTC)
- @Mohmad Abdul sahib: I don't know Arabic but if I understand you correctly, you are saying that Wikipedia displays italic text slanted to the right for the Arabic script but we shouln't do that. Our software just places the html tag
<i>...</i>
around text to say it should be displayed in italics. Your browser makes the rendering you see on your screen. Arabic text: اَلْعَرَبِيَّةُ. Same text in italics: اَلْعَرَبِيَّةُ. I do see the italic version slanted to the right in Firefox. I Googled the issue and found that italics traditionally aren't used at all in Arabic but if fonts support italics for Arabic then they generally slant it to the right like the Latin script. Slanting Arabic italics to the left doesn't appear to be an option with normal fonts. Is your concern about the English or Arabic Wikipedia? If it's the Arabic then you will have to take it there. If it's English then please give an example page. Should we try to avoid using italics in Arabic text if slanting it to the left is not possible? PrimeHunter (talk) 20:16, 15 September 2024 (UTC)- @PrimeHunter. I meant that every language has a way of writing. For example, when you write in English, the direction of the text will be from left to right, but in the Arabic language, the way of writing is from right to left. What I mean is that in all interfaces, the display locations will differ, whether fonts, icons, options, and the like. I do not mean only the Arabic language, but rather all languages on Wikipedia. The text must be Italiced according to the way it is written.
- I think that this is a technical Wrong that must be fixed across all Wikipedia languages. Mohmad Abdul sahib talk☎ talk 21:03, 15 September 2024 (UTC)
- ~~~ Mohmad Abdul sahib talk☎ talk 21:03, 15 September 2024 (UTC)
- You lost me when you started talking about icons, options and all languages. I thought this was something specific about how to slant italic text in the Arabic script. PrimeHunter (talk) 21:24, 15 September 2024 (UTC)
- The issue should be irrelevant, as long as pages are complying with MOS:BADITALICS, which says
Text in non-Latin scripts (such as Greek, Cyrillic or Chinese) should neither be italicized as non-English nor bolded
. Italic markup around Arabic script should pretty much always be removed. – Jonesey95 (talk) 01:13, 16 September 2024 (UTC)
- The issue should be irrelevant, as long as pages are complying with MOS:BADITALICS, which says
- You lost me when you started talking about icons, options and all languages. I thought this was something specific about how to slant italic text in the Arabic script. PrimeHunter (talk) 21:24, 15 September 2024 (UTC)
Why can't I extract the dump?
I tried enwiki-20240820-pages-articles.xml.bz2 and the latest enwiki dump but 7zip and bzip2 keep failing. I redownloaded it multiple times. I'm on Pop OS and there is plenty of disk space available of course.
I am using 7z x enwiki-20240820-pages-articles.xml.bz2
and
bzip2 -d enwiki-20240820-pages-articles.xml.bz2
to extract.
Error messages like ERROR: E_FAIL Archives with Errors: 1 are not very helpful. Polygnotus (talk) 22:33, 10 September 2024 (UTC)
- The mailing list may be your best resource for help with that, see meta:Data dumps "Getting help" section for info. — xaosflux Talk 23:07, 10 September 2024 (UTC)
Thanks. So far I figured out that the problem is in all tools that use libbzip2 under the hood (I think 7zip and pbzip2 and bzip2). The problem is that the default block size is 900.000 bytes, and if you go over that you get:
pbzip2 -dkv enwiki-latest-pages-articles.xml.bz2 Parallel BZIP2 v1.1.13 [Dec 18, 2015] By: Jeff Gilchrist [http://compression.ca] Major contributions: Yavor Nikolov [http://javornikolov.wordpress.com] Uses libbzip2 by Julian Seward # CPUs: 20 Maximum Memory: 100 MB Ignore Trailing Garbage: off ------------------------------------------- File #: 1 of 1 Input Name: enwiki-latest-pages-articles.xml.bz2 Output Name: enwiki-latest-pages-articles.xml BWT Block Size: 900k Input Size: 22880311372 bytes Decompressing data... pbzip2: *ERROR: Could not write 900000 bytes to file [ret=-1]! Aborting... pbzip2: *ERROR: system call failed with errno=[2: No such file or directory]! pbzip2: *ERROR: system call failed with errno=[5: Input/output error]! Terminator thread: premature exit requested - quitting... Cleanup unfinished work [Outfile: enwiki-latest-pages-articles.xml]... Deleting output file: enwiki-latest-pages-articles.xml, if it exists... pbzip2: *INFO: Deletion of output file succeeded.
SO recommends some .NET lib or provides no answer.
I'll give it a try with Python before I use the mailinglist. Polygnotus (talk) 09:03, 11 September 2024 (UTC)
@Xaosflux: I figured it out: for some reason you need to sudo. sudo pbzip2 -dkv enwiki-latest-pages-articles.xml.bz2
works fine. Polygnotus (talk) 20:19, 11 September 2024 (UTC)
- @Polygnotus I think that might be a limits issue. Maybe the unzipping is using more inodes or memory etc then what they are allowed to and root can use more. —TheDJ (talk • contribs) 03:57, 16 September 2024 (UTC)
- @TheDJ Yeah I wondered about that. To be honest I was so happy it finally worked that I didn't do any digging. The memory was limited to (the default) 100mb I think, despite the fact that there was ~64gb RAM available. Polygnotus (talk) 04:03, 16 September 2024 (UTC)
Position of pending changes lock
Could we revert to how the position of the "pending changes" lock looked before? Now it looks like this, with "Pending" wording next to it with a crossed out eye. The previous lock was a simple compact lock icon with a tick, did not include text or other additional features (like the crossed-out eye) and was less obtrusive and didn't draw as much attention. I'd like to restore the lock to its previous visual format whilst making sure users can still understand its meaning (that there are pending changes, which should already be handled by users pressing "Edit source" and the note coming up). Best, 750h+ 16:54, 15 September 2024 (UTC)
- @750h+ Could you be specific which page this is; I don't see it in ordinary pages.
- Vestrian24Bio (TALK) 03:22, 16 September 2024 (UTC)
- I'm pretty sure that's because of the number of gadgets you have installed. Log out and see. 750h+ 03:33, 16 September 2024 (UTC)
- I see what you mean, but the check does shows information about the page review status when hovering over it. Vestrian24Bio (TALK) 03:37, 16 September 2024 (UTC)
- I still see no point of it. It's obtrusive (the previous layout was much better) and i feel that this could be fixed by allowing the user to hover it and see the review status. 750h+ 03:39, 16 September 2024 (UTC)
- I agree with that. Vestrian24Bio (TALK) 03:40, 16 September 2024 (UTC)
- I still see no point of it. It's obtrusive (the previous layout was much better) and i feel that this could be fixed by allowing the user to hover it and see the review status. 750h+ 03:39, 16 September 2024 (UTC)
- I see what you mean, but the check does shows information about the page review status when hovering over it. Vestrian24Bio (TALK) 03:37, 16 September 2024 (UTC)
- I'm pretty sure that's because of the number of gadgets you have installed. Log out and see. 750h+ 03:33, 16 September 2024 (UTC)
- I also dislike the change. It's too "busy", the eye icon seems out of place (there's already an equally awful glasses icon which has a different meaning), and it's not visually pleasant. Daniel Quinlan (talk) 04:29, 16 September 2024 (UTC)
- Eww, yuck. I'm seeing this too, File:Screenshot 2024-09-16 061722.jpg, also if I dare hover that ugly "pending" area this popup comes, and stays open until manually dismissed. — xaosflux Talk 10:19, 16 September 2024 (UTC)
- This especially looks bad with FAs or GAs like Communication or Sims 4 750h+ 10:21, 16 September 2024 (UTC)
- Note, this is not coming from our "lock icon" template {{pp-pc}}, haven't tracked down what is sourcing this yet. — xaosflux Talk 10:21, 16 September 2024 (UTC)
- Probably something that is on, or should now be on this workboard, but I don't have time to go through it right now. — xaosflux Talk 10:26, 16 September 2024 (UTC)
- I opened phab:T374829 as a bug/complaint about how this popup persists and covers content until manually dismissed. — xaosflux Talk 10:32, 16 September 2024 (UTC)
- Probably something that is on, or should now be on this workboard, but I don't have time to go through it right now. — xaosflux Talk 10:26, 16 September 2024 (UTC)
Constraining infobox width
I recently ran into a problem with Template:Infobox aircraft at NAL Hansa in which a long "designer" parameter input resulted in an excessively wide infobox (see this diff). I was able to temporarily fix the issue on the article, but I would like to prevent similar issues by constraining the infobox size to a fixed maximum value. With how much experience I have with templates, I should know how to do this, but I don't. Does anyone know how to do this? - ZLEA T\C 19:43, 16 September 2024 (UTC)
- @ZLEA: It happened because Prarambh20 used {{Nowrap}} on the
designer
parameter in [24]. I don't see a good reason for nowrap and suggest to just remove it. Prarambh20 hasn't edited since June 2023. nowrap was also used on two other parameters but those parameters have been removed. PrimeHunter (talk) 20:02, 16 September 2024 (UTC) - Template:Infobox/doc § Examples shows how to set an infobox's width. jlwoodwa (talk) 20:04, 16 September 2024 (UTC)
- Just realized that this doesn't fully answer your question. I think replacing
width
withmax-width
might have the effect you want. jlwoodwa (talk) 20:06, 16 September 2024 (UTC)- PrimeHunter Jlwoodwa Thanks. Removing the nowrap template seems to have fixed the issue, but I'll keep the max-width parameter in mind if further problems arise. - ZLEA T\C 20:22, 16 September 2024 (UTC)
- Just realized that this doesn't fully answer your question. I think replacing
Default sort conflict
Could anyone remove User:Fuddle/Cold Default Sort.js from Category:Pages with DEFAULTSORT conflicts? I have checked with the user, and they don't know how to — Martin (MSGJ · talk) 21:02, 16 September 2024 (UTC)
- Fixed. Izno (talk) 21:09, 16 September 2024 (UTC)
- Thanks — Martin (MSGJ · talk) 21:11, 16 September 2024 (UTC)
IP editor(s) cannot edit talk pages
An IP editor came to my user talk, and said he was unable to edit an article talk page. So, I logged out, and tried editing article talk pages, but was also unable. What’s up? Anythingyouwant (talk) 05:04, 12 September 2024 (UTC)
- What talk page can an IP not edit? What happens when they try? Johnuniq (talk) 05:31, 12 September 2024 (UTC)
- When I logged out, I went to several article talk pages and couldn’t add a topic. Clicked “add topic” and nada. Anythingyouwant (talk) 05:38, 12 September 2024 (UTC)
- Seeing your user talk page, the person who asked you is not an IP editor. Their described problem also happened after clicking "Add topic", which you managed to do successfully (you just hit an edit filter that prevents creating very short talk page topics as an IP or new user, the user in your user talk page did not hit that filter though).
- I didn't want to finish adding a topic just to test, but I'm pretty sure I would have been able to. – 2804:F1...EE:9927 (talk) 05:32, 12 September 2024 (UTC)
- He just registered, and doubtless will be able to add topics now. Anythingyouwant (talk) 05:38, 12 September 2024 (UTC)
- I just logged out again and tried the “add topic” feature and it still doesn’t work. Anythingyouwant (talk) 05:41, 12 September 2024 (UTC)
- Again, you are hitting an edit filter, specifically Special:AbuseFilter/1245, which, if I read the code correctly, prevents users who are not autoconfirmed or confirmed (which includes all IPs) from adding new talk page topics that have a title that is 2 words or less and a content that is 2 words or less (and less than 300 characters total).
- It's there to prevent a common type of talk page spam. – 2804:F1...EE:9927 (talk) 05:45, 12 September 2024 (UTC)
- Okay, it works when I add more words. Thanks. Anythingyouwant (talk) 05:52, 12 September 2024 (UTC)
- I just logged out again and tried the “add topic” feature and it still doesn’t work. Anythingyouwant (talk) 05:41, 12 September 2024 (UTC)
- I had originally tried to add the topic to Talk:Hunter_Biden_laptop_controversy without logging in. When it failed I created User:Swan2024, but I still have the same problem. I just tried again while logged in and it still fails the same way (moving slanted lines over the text for a few seconds, then gives up). I don't see any warning/error messages. I checked Special:AbuseLog and do not see any entries for me. Any other ideas? Swan2024 (talk) 00:11, 13 September 2024 (UTC)
- @Swan2024: If you are trying to add external links then place them inside
<nowiki>...</nowiki>
in source mode to deactivate them. The add topic feature doesn't currently work with external links for users who are not autoconfirmed which requires four days and ten edits. PrimeHunter (talk) 18:28, 13 September 2024 (UTC)- Huh? Is this mentioned anywhere? That does seem to be it (can reproduce with a link to Google)...
- Odd considering you can add external links just fine in replies, just have to type a captcha. – 2804:F1...A7:E311 (talk) 20:39, 13 September 2024 (UTC)
- That fixed it! Thanks! Swan2024 (talk) 20:53, 13 September 2024 (UTC)
- There was an issue with the new topic tool which was stopping any save error messages from being shown, which includes captchas. This is being fixed, and should be back to working for everyone by Thursday (or earlier if we decided to go to special efforts to backport it) DLynch (WMF) (talk) 00:42, 17 September 2024 (UTC)
- @Swan2024: If you are trying to add external links then place them inside
- He just registered, and doubtless will be able to add topics now. Anythingyouwant (talk) 05:38, 12 September 2024 (UTC)
Losing edits after logging in
I was editing an article (in the old, non-visual editing format, in case it matters) and upon clicking Submit, a notice came up encouraging me to log in before posting the edit. I clicked the notice's link to the Log In page, filled in my user info, successfully logged in, and was brought back to the same Edit page I was on... only to notice, to my horror, that all my changes did NOT get saved and were completely gone! This is a horrific thing in terms of user friendliness! No one should be punished for following Wikipedia's own suggestion. Thankfully my edits were only 5 minutes of work so I was able to reconstruct it, but what if it had taken, say, hours? I would definitely be so disconcerted that I would probably never edit Wikipedia again out of sheer trauma. — Preceding unsigned comment added by Ericobnn (talk • contribs) 23:28, 16 September 2024 (UTC)
- Hi @Ericobnn, sorry that happened to you. Your browser should have displayed a warning message that you will lose unsaved changes when clicking the "log in" link. Anyway, there is a fairly new Edit Recovery feature, which would have helped in this scenario – you can enable it under "Editing" in your preferences, and hopefully it will be enabled by default soon. The visual editing mode has a similar feature enabled by default already. Matma Rex talk 05:24, 17 September 2024 (UTC)
Undo Function on Mobile
I was reading The Eustace Diamonds and noticed an addition that needed to be removed because it wasn't constructive. I was reading on mobile and realised I couldn't use the undo function via the page history on mobile. Is this deliberate? Red Fiona (talk) 20:14, 15 September 2024 (UTC)
- The undo buttons appear if you turn on the advanced mode. Nardog (talk) 02:29, 16 September 2024 (UTC)
- Thank you Red Fiona (talk) 09:36, 17 September 2024 (UTC)
Template:PASE
This template no longer works because the target has changed to [25]. Can someone expert fix the problem. Dudley Miles (talk) 08:34, 17 September 2024 (UTC)
- See Template talk:PASE for further discussion. – Jonesey95 (talk) 10:57, 17 September 2024 (UTC)
Tech News: 2024-38
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Improvements and Maintenance
- Editors interested in templates can help by reading the latest Wishlist focus area, Template recall and discovery, and share your feedback on the talkpage. This input helps the Community Tech team to decide the right technical approach to build. Everyone is also encouraged to continue adding new wishes.
- The new automated Special:NamespaceInfo page helps editors understand which namespaces exist on each wiki, and some details about how they are configured. Thanks to DannyS712 for these improvements. [26]
- References Check is a feature that encourages editors to add a citation when they add a new paragraph to a Wikipedia article. For a short time, the corresponding tag "Edit Check (references) activated" was erroneously being applied to some edits outside of the main namespace. This has been fixed. [27]
- It is now possible for a wiki community to change the order in which a page’s categories are displayed on their wiki. By default, categories are displayed in the order they appear in the wikitext. Now, wikis with a consensus to do so can request a configuration change to display them in alphabetical order. [28]
- Tool authors can now access ToolsDB's public databases from both Quarry and Superset. Those databases have always been accessible to every Toolforge user, but they are now more broadly accessible, as Quarry can be accessed by anyone with a Wikimedia account. In addition, Quarry's internal database can now be queried from Quarry itself. This database contains information about all queries that are being run and starred by users in Quarry. This information was already public through the web interface, but you can now query it using SQL. You can read more about that, and 20 other community-submitted tasks that were resolved last week.
- Any pages or tools that still use the very old CSS classes
mw-message-box
need to be updated. These old classes will be removed next week or soon afterwards. Editors can use a global-search to determine what needs to be changed. It is possible to use the newercdx-message
group of classes as a replacement (see the relevant Codex documentation, and an example update), but using locally defined onwiki classes would be best. [29]
Technical project updates
- Next week, all Wikimedia wikis will be read-only for a few minutes. This will start on September 25 at 15:00 UTC. This is a planned datacenter switchover for maintenance purposes. This maintenance process also targets other services. The previous switchover took 3 minutes, and the Site Reliability Engineering teams use many tools to make sure that this essential maintenance work happens as quickly as possible. [30]
Tech in depth
- The latest monthly MediaWiki Product Insights newsletter is available. This edition includes details about: research about hook handlers to help simplify development, research about performance improvements, work to improve the REST API for end-users, and more.
- To learn more about the technology behind the Wikimedia projects, you can now watch sessions from the technology track at Wikimania 2024 on Commons. This week, check out:
- Hackathon Showcase (45 mins) - 19 short presentations by some of the Hackathon participants, describing some of the projects they worked on, such as automated testing of maintenance scripts, a video-cutting command line tool, and interface improvements for various tools. There are more details and links available in the Phabricator task.
- Co-Creating a Sustainable Future for the Toolforge Ecosystem (40 mins) - a roundtable discussion for tool-maintainers, users, and supporters of Toolforge about how to make the platform sustainable and how to evaluate the tools available there.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:58, 16 September 2024 (UTC)
- @Ahecht @Novem Linguae @Awesome Aasim you maintain scripts which are affected by the removal of mw-message-box, see [31]. Izno (talk) 00:35, 17 September 2024 (UTC)
- @Izno As I'm reading it, this change only removes support for
mw-message-box
from the Vector 2022 skin, and won't actually remove the class from system messages, so it wouldn't affect scripts like mine that are using it as a selector. Scripts that create message boxes should use both themw-message-box
and codex classes to maintain compatibility with Vector 2010 and other older skins. --Ahecht (TALK
PAGE) 15:17, 17 September 2024 (UTC)
- @Izno As I'm reading it, this change only removes support for
Keep bots from archiving unanswered edit requests?
Cluebot keeps archiving unanswered edit requests from Wikipedia:WikiProject U.S. Roads/Shields task force/Requests. Is there any way to stop it other than what I've been doing (reverting, then changing the dates on the requests)? - Sumanuil. (talk to me) 01:51, 17 September 2024 (UTC)
- Instructions are at User:ClueBot III/ArchiveThis. I doubled that page's archiving time from one month to two months. – Jonesey95 (talk) 02:42, 17 September 2024 (UTC)
- That will help. Now all I need to do is get some help fulfilling the requests. - Sumanuil. (talk to me) 02:49, 17 September 2024 (UTC)
- @Sumanuil: Archiving bots don't care if a request is answered or not, and generally speaking, have no way of knowing. They work on a basis of time elapsed since the last post to that thread. However, ClueBot III has a feature where it will also archive threads that are explicitly marked with some tag, such as
{{done}}
even if the archiving time limit has not been reached. I see that this has been set up at Wikipedia:WikiProject U.S. Roads/Shields task force/Requests - it's the|archivenow=
parameter - but that does not prevent the|age=
parameter from also being taken into account. The thing to do is set|age=
to a very high value - a minimum of 4368, which is six months. - Also, archiving bots perform two edits at once, to different pages. If you revert one edit of the pair, you must also revert the other one - otherwise you have the same thread on two different pages. So your "List of state highways in Arkansas" thread is still at Wikipedia:WikiProject U.S. Roads/Shields task force/Requests/Archive 9. I've not checked for other duplicates. --Redrose64 🌹 (talk) 07:22, 17 September 2024 (UTC)
- @Sumanuil: Archiving bots don't care if a request is answered or not, and generally speaking, have no way of knowing. They work on a basis of time elapsed since the last post to that thread. However, ClueBot III has a feature where it will also archive threads that are explicitly marked with some tag, such as
- Ok, I've removed it from the archive. And I know that it doesn't care about if it's been answered, that's the problem. - Sumanuil. (talk to me) 22:07, 17 September 2024 (UTC)
- That will help. Now all I need to do is get some help fulfilling the requests. - Sumanuil. (talk to me) 02:49, 17 September 2024 (UTC)
Substituting Template:Documentation clears a template from Category:Pages with template loops?!
I just dropped by Category:Pages with template loops on patrol, and found several "Cite Grove" templates there. I couldn't figure out what was causing the loops but after subst: the doc the problem went away. Why? Is there a better solution? wbm1058 (talk) 22:59, 17 September 2024 (UTC)
- @Wbm1058 All these cite Grove templates include a copy of {{Grove templates}} in their documentation page to link between each other. {{Grove templates}} does not have it's documentation template in noinclude tags (it was deleted by accident in this edit [32]), so you end up with a documentation template in a documentation template. 86.23.109.101 (talk) 23:07, 17 September 2024 (UTC)
- fixed here [33]. 86.23.109.101 (talk) 23:09, 17 September 2024 (UTC)
Vertical text
We have templates such as {{Vertical header}}
and {{Vertical text}}
which are used to display text in narrow table columns. Do we have a view about text being displayed in a narrow column as a series of one-character lines? For example List of Tulu films of 2023 — GhostInTheMachine talk to me 09:12, 17 September 2024 (UTC)
- The linked article shows a terrible practice that hurts accessibility as well. Sjoerd de Bruin (talk) 10:51, 17 September 2024 (UTC)
- Oof, horrible. This is really a WP:MOS question rather than a VPT question, but I killed that formatting with fire. The all-caps months can probably be fixed as well. – Jonesey95 (talk) 11:00, 17 September 2024 (UTC)
- With fire? That was a stronger response than I was expecting. However, if you check the page history, you will see that I actually went a bit further but was reverted. I was going to post in the project talk page to discuss an overall fix – there are lots[clarification needed] of other film list articles that use that pattern — GhostInTheMachine talk to me 11:40, 17 September 2024 (UTC)
- In case Anishviswa (talk · contribs) doesn't understand the problem here, both Template:Vertical text and Template:Vertical header use the CSS
writing-mode:
property to realign the text. These can have potential accessibility issues for the partially-sighted, but there is zero impact for screen reader users. However this edit uses the<br />
tag to split words into individul letters, and that does cause issues for screen reader users, because the month names are no longer complete words, but groups of from three to nine discrete letters. --Redrose64 🌹 (talk) 20:04, 17 September 2024 (UTC)- Issue is not with just one article as some people jumped in and started editing after the start of this discussion😂. Same format is there in British films and Australian films also. The fundamental question is regarding the template used for film lists (year-wise). Make or improve the template and deploy to all film lists and let us follow it.
Anish Viswa 04:54, 18 September 2024 (UTC)
- Issue is not with just one article as some people jumped in and started editing after the start of this discussion😂. Same format is there in British films and Australian films also. The fundamental question is regarding the template used for film lists (year-wise). Make or improve the template and deploy to all film lists and let us follow it.
- In case Anishviswa (talk · contribs) doesn't understand the problem here, both Template:Vertical text and Template:Vertical header use the CSS
- @Jonesey95 (talk · contribs) You could try to kill this article with fire and see how it is received there - List_of_American_films_of_2024
Anish Viswa 13:11, 18 September 2024 (UTC)- It is horrifying to see that this is not just a one-off problem. Thanks for the link. I opened a discussion on the article's talk page. – Jonesey95 (talk) 14:10, 18 September 2024 (UTC)
- I don't see a problem with the presentation per se as long as it's done purely through CSS (and w/o
<br>
). We even have {{Vertical header}} for that. Nardog (talk) 14:13, 18 September 2024 (UTC)
- I don't see a problem with the presentation per se as long as it's done purely through CSS (and w/o
- It is horrifying to see that this is not just a one-off problem. Thanks for the link. I opened a discussion on the article's talk page. – Jonesey95 (talk) 14:10, 18 September 2024 (UTC)
- With fire? That was a stronger response than I was expecting. However, if you check the page history, you will see that I actually went a bit further but was reverted. I was going to post in the project talk page to discuss an overall fix – there are lots[clarification needed] of other film list articles that use that pattern — GhostInTheMachine talk to me 11:40, 17 September 2024 (UTC)
- Oof, horrible. This is really a WP:MOS question rather than a VPT question, but I killed that formatting with fire. The all-caps months can probably be fixed as well. – Jonesey95 (talk) 11:00, 17 September 2024 (UTC)
Extra spaces at start of article
Fame (Confederate monument). I succeeded in removing them but I'm certain that what I removed to accomplish this should not be removed.— Vchimpanzee • talk • contributions • 21:24, 18 September 2024 (UTC)
- They shouldn't be removed, no. Swapping their order fixed the whitespace, as did moving {{italic title}} below the infobox; moving {{short description}} below it instead did not. It's not immediately clear why. —Cryptic 21:57, 18 September 2024 (UTC)
- Thanks, and is there somewhere we can document this in case someone finds the same problem elsewhere?— Vchimpanzee • talk • contributions • 23:13, 18 September 2024 (UTC)
- Something to do with templates that produce no output. Perhaps phab:T369520? The cure, apparently, is to add a leading
<nowiki />
tag. Why? Don't know. - —Trappist the monk (talk) 23:23, 18 September 2024 (UTC)
- If a template has no output then a call of the template placed on its own line becomes a blank line, causing whitespace. If the template returns a nowiki then MediaWiki doesn't treat it as a blank line. PrimeHunter (talk) 00:13, 19 September 2024 (UTC)
- The current (better) workaround, in case anyone else looks at the article's history, just sees the reverts, and is confused. {{short description}} already had something similar for blank shortdescs; and non-blank ones do have output, a div that's hidden by css. —Cryptic 01:20, 19 September 2024 (UTC)
Sort irregularity
At List of Women's Basketball Academic All-America Team Members of the Year the header sort is not working for the Aliyah Boston rows.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 12:14, 18 September 2024 (UTC)
- Also problem in table two sorting Division III column winner.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 12:23, 18 September 2024 (UTC)
- Similar issue at List of Men's Basketball Academic All-America Team Members of the Year with John Amaechi row in table 1 and and college winner columns in both tables.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 12:23, 18 September 2024 (UTC)
- Well, the cells in question use a flag icon, it's not going to sort correctly like that. Gonnym (talk) 12:31, 18 September 2024 (UTC)
- More specifically, the table sorter code includes the alt tag of the flag image, so it sorts the row as something like "United States Virgin Islands Boston, Aliyah". Does MOS:FLAG apply here? Otherwise you might find Help:Sortable tables#Specifying a sort key for a cell in determining a workaround. Anomie⚔ 12:57, 18 September 2024 (UTC)
- Workaround using data-sort-value works, added example for 2022, Aliyah Boston (2). Uwappa (talk) 13:13, 18 September 2024 (UTC)
- User:Uwappa, Thank you for showing me how to implement this correction.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 03:10, 19 September 2024 (UTC)
- Well, the cells in question use a flag icon, it's not going to sort correctly like that. Gonnym (talk) 12:31, 18 September 2024 (UTC)
- -TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 03:11, 19 September 2024 (UTC)Resolved
Unicode block template
Not sure where else to properly propose or showcase this, but I did a refactor of the Unicode block template design, introducing various BCP bells and whistles—namely dark mode support via TemplateStyles (Template:Unicode chart/styles minimal.css). Sadly, I can't use <tfoot>
. Compare {{Unicode chart CJK Radicals Supplement}}
CJK Radicals Supplement[1][2] Official Unicode Consortium code chart (PDF) | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
U+2E8x | ⺀ | ⺁ | ⺂ | ⺃ | ⺄ | ⺅ | ⺆ | ⺇ | ⺈ | ⺉ | ⺊ | ⺋ | ⺌ | ⺍ | ⺎ | ⺏ |
U+2E9x | ⺐ | ⺑ | ⺒ | ⺓ | ⺔ | ⺕ | ⺖ | ⺗ | ⺘ | ⺙ | ⺛ | ⺜ | ⺝ | ⺞ | ⺟ | |
U+2EAx | ⺠ | ⺡ | ⺢ | ⺣ | ⺤ | ⺥ | ⺦ | ⺧ | ⺨ | ⺩ | ⺪ | ⺫ | ⺬ | ⺭ | ⺮ | ⺯ |
U+2EBx | ⺰ | ⺱ | ⺲ | ⺳ | ⺴ | ⺵ | ⺶ | ⺷ | ⺸ | ⺹ | ⺺ | ⺻ | ⺼ | ⺽ | ⺾ | ⺿ |
U+2ECx | ⻀ | ⻁ | ⻂ | ⻃ | ⻄ | ⻅ | ⻆ | ⻇ | ⻈ | ⻉ | ⻊ | ⻋ | ⻌ | ⻍ | ⻎ | ⻏ |
U+2EDx | ⻐ | ⻑ | ⻒ | ⻓ | ⻔ | ⻕ | ⻖ | ⻗ | ⻘ | ⻙ | ⻚ | ⻛ | ⻜ | ⻝ | ⻞ | ⻟ |
U+2EEx | ⻠ | ⻡ | ⻢ | ⻣ | ⻤ | ⻥ | ⻦ | ⻧ | ⻨ | ⻩ | ⻪ | ⻫ | ⻬ | ⻭ | ⻮ | ⻯ |
U+2EFx | ⻰ | ⻱ | ⻲ | ⻳ | ||||||||||||
Notes |
with {{User:Remsense/Unicode chart CJK Radicals Supplement}}
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
U+2E8x | ⺀ | ⺁ | ⺂ | ⺃ | ⺄ | ⺅ | ⺆ | ⺇ | ⺈ | ⺉ | ⺊ | ⺋ | ⺌ | ⺍ | ⺎ | ⺏ |
U+2E9x | ⺐ | ⺑ | ⺒ | ⺓ | ⺔ | ⺕ | ⺖ | ⺗ | ⺘ | ⺙ | ⺛ | ⺜ | ⺝ | ⺞ | ⺟ | |
U+2EAx | ⺠ | ⺡ | ⺢ | ⺣ | ⺤ | ⺥ | ⺦ | ⺧ | ⺨ | ⺩ | ⺪ | ⺫ | ⺬ | ⺭ | ⺮ | ⺯ |
U+2EBx | ⺰ | ⺱ | ⺲ | ⺳ | ⺴ | ⺵ | ⺶ | ⺷ | ⺸ | ⺹ | ⺺ | ⺻ | ⺼ | ⺽ | ⺾ | ⺿ |
U+2ECx | ⻀ | ⻁ | ⻂ | ⻃ | ⻄ | ⻅ | ⻆ | ⻇ | ⻈ | ⻉ | ⻊ | ⻋ | ⻌ | ⻍ | ⻎ | ⻏ |
U+2EDx | ⻐ | ⻑ | ⻒ | ⻓ | ⻔ | ⻕ | ⻖ | ⻗ | ⻘ | ⻙ | ⻚ | ⻛ | ⻜ | ⻝ | ⻞ | ⻟ |
U+2EEx | ⻠ | ⻡ | ⻢ | ⻣ | ⻤ | ⻥ | ⻦ | ⻧ | ⻨ | ⻩ | ⻪ | ⻫ | ⻬ | ⻭ | ⻮ | ⻯ |
U+2EFx | ⻰ | ⻱ | ⻲ | ⻳ |
Thoughts? Remsense ‥ 论 07:51, 11 September 2024 (UTC)
- @Gonnym suggested the bare EL be converted into a reference. I think I agree with that, but I didn't want to unilaterally change everything at once. It's a pretty dated design though, while several editors have tried to redesign it but haven't completed it. So, I guess I wanted to triage it and do everything right while keeping the manual work of fixing every block manageable. Remsense ‥ 论 15:37, 11 September 2024 (UTC)
- A nitpick: I don't love the use of two different fonts and font sizes for the column and row headers, especially since both appear to be different from the base page font. Is there a reason for these fonts to be different from the base page font? See MOS:FONTFAMILY for a guideline. – Jonesey95 (talk) 17:09, 11 September 2024 (UTC)
- Thanks for the nitpick, of course! I wouldn't do it purely for decoration per guidelines and good sense; I could easily lose one of the font sizes which was just mirroring the original, but the monospace is due to it being a computer-based code point, I guess? Now that I'm interrogating that again, it's a rather weak reason to insist on it, I think I can 86 that too. Remsense ‥ 论 17:13, 11 September 2024 (UTC)
- I do think the table footer is a bit visually distracting at
1rem
, especially if the string appears several times on a page corresponding to several blocks. What do you think? Remsense ‥ 论 17:19, 11 September 2024 (UTC)- Can convert it to a {{efn}} note maybe. Gonnym (talk) 17:34, 11 September 2024 (UTC)
- Hmm—I think what will work is visually (but not semantically) folding it into the table like in the original. Remsense ‥ 论 17:36, 11 September 2024 (UTC)
- Iterated as such. Remsense ‥ 论 17:54, 11 September 2024 (UTC)
- Hmm—I think what will work is visually (but not semantically) folding it into the table like in the original. Remsense ‥ 论 17:36, 11 September 2024 (UTC)
- Can convert it to a {{efn}} note maybe. Gonnym (talk) 17:34, 11 September 2024 (UTC)
- A nitpick: I don't love the use of two different fonts and font sizes for the column and row headers, especially since both appear to be different from the base page font. Is there a reason for these fonts to be different from the base page font? See MOS:FONTFAMILY for a guideline. – Jonesey95 (talk) 17:09, 11 September 2024 (UTC)
- Definitely restore the normal-sized and fixed-pitch row and column headers (you might try making *all* the characters normal-sized). Try to make the cells perfectly square and as small as possible, they seem to not be square and are bigger than before. I would just put the text "Unicode 16.0" in the header with a ref leading to the PDF, and also there is no need to tell them that gray cells are unassigned, so both footnotes are removed. Spitzak (talk) 18:22, 11 September 2024 (UTC)
- I'm not sure about making square cells—which would be easy to do—of course we inspect isolated glyphs in an ideal square, but I think this becomes significantly harder to read as a table that way. Though, I realize I've picked a CJK block to test this with, maybe that's different with a graphetically different script so square cells would be best.Remsense ‥ 论 18:26, 11 September 2024 (UTC)
- Hmm no, I'm full of it and square cells is obviously the move. I've allowed the headers to be bolded like in other tables instead, and I think that's good. Trying to step away so people can analyze for now. Remsense ‥ 论 18:35, 11 September 2024 (UTC)
- @Remsense: You can't use
tfoot
for the same reason thatthead
andtbody
(alsoa
,img
and a bunch of others) can't be used - none of these are whitelisted in MediaWiki. --Redrose64 🌹 (talk) 20:45, 11 September 2024 (UTC)- Sure, I know why! It's just a bummer in this case and a few others. Remsense ‥ 论 20:46, 11 September 2024 (UTC)
- @Remsense: You can't use
- Hmm no, I'm full of it and square cells is obviously the move. I've allowed the headers to be bolded like in other tables instead, and I think that's good. Trying to step away so people can analyze for now. Remsense ‥ 论 18:35, 11 September 2024 (UTC)
- I'm not sure about making square cells—which would be easy to do—of course we inspect isolated glyphs in an ideal square, but I think this becomes significantly harder to read as a table that way. Though, I realize I've picked a CJK block to test this with, maybe that's different with a graphetically different script so square cells would be best.Remsense ‥ 论 18:26, 11 September 2024 (UTC)
- I support the rewrite, especially on accessibility grounds, but
nounderlines
class should probably be removed: does it even serve a purpose here? (If it even has one at al.) stjn 15:09, 12 September 2024 (UTC)- Hmm, that was another importation. I'll pull it too. Remsense ‥ 论 15:10, 12 September 2024 (UTC)
- Also, thank you for the tweak—I misremembered the threshold as being 80% as opposed to 85%. Remsense ‥ 论 15:11, 12 September 2024 (UTC)
- Ah, seems like it was intended to remove the underlines from symbols that get linked, e. g. Currency Symbols (Unicode block). Then it can be moved to individual
<tr>
blocks, I think. stjn 15:18, 12 September 2024 (UTC)- Right! Yes, I remembered then forgot that. Good catch. Remsense ‥ 论 15:19, 12 September 2024 (UTC)
nounderlines
is this little bit of Common.css. Izno (talk) 15:28, 12 September 2024 (UTC)- Seems like a pretty bad relic of a different time. I get the case for why someone though this might be a good idea, but removing underlines is also just removing pretty much the only way you can tell a link from a non-link apart in Wikipedia, so moving styles like that to TemplateStyles (where they target specific things) seems much better. stjn 19:52, 12 September 2024 (UTC)
- Yes, hence why it's in the TemplateStyles section of the page. The problem is that none of the classes of interest really go with specific templates, or are additionally employed in the "table" use case even when they do have a specific template in mind. So I haven't spent a ton of time trying to fix this one. Izno (talk) 20:11, 12 September 2024 (UTC)
- Seems like a pretty bad relic of a different time. I get the case for why someone though this might be a good idea, but removing underlines is also just removing pretty much the only way you can tell a link from a non-link apart in Wikipedia, so moving styles like that to TemplateStyles (where they target specific things) seems much better. stjn 19:52, 12 September 2024 (UTC)
- Looking better but can you please restore the cell size to what it was in the original? We seem to be suffering some bloat, it is even larger than before. In addition the cell sizes should match the inline tables being used for 8-bit character sets, which were designed to match the original.
- Though it was not in the original, making the row/col headers be fixed-pitch (as well as bold) would help for recognizing Hex values.
- I still think the footer can be removed in the majority of cases. Put "Unicode 16.0" and the PDF link into the title, and just remove the "gray indicates non-assigned" as this is well known. Spitzak (talk) 17:46, 12 September 2024 (UTC)
- I've reduced the effective padding, that looks better. I think I would like to maintain the table caption being used exclusively for the name of the block. I am also a hair skeptical that the meaning of gray squares is adequately intuitive to many readers who might be learning about Unicode or any related concept for the very first time, and they might not even really know that letters are assigned as such. That is to say, I think the note plausibly should remain. Remsense ‥ 论 17:56, 12 September 2024 (UTC)
- I found that fixed sized boxes with a very small padding is the way to get smaller boxes. They are still too large.
- For the gray, perhaps making the tooltip say "U+ABCD: unassigned" would work. Spitzak (talk) 18:16, 12 September 2024 (UTC)
- That's what I've done. Are you sure they're still too large? This is the worst case scenario for readability I think, with rather complex and diverse, square-filling glyphs. I worry if I reduce the spacing any more it will become more difficult to discern one glyph from another at a glance. Remsense ‥ 论 18:18, 12 September 2024 (UTC)
- Of course, then I actually try it again and decide it's fine after staring at it for a few seconds. Design is hard. Remsense ‥ 论 18:20, 12 September 2024 (UTC)
- Maybe just add the PDF as a ref to the title, with no unicode version text. The Unicode version is part of the title of the reference anyway.
- Yes they are still too large, as they are larger than the original. Copy however the original version set the box sizes. These glyphs should not be causing the boxes to get larger, that should not happen until the glyph literally does not fit in the box, with zero padding. Spitzak (talk) 18:19, 12 September 2024 (UTC)
- Nevermind you did fix the box sizes. Looks good to me! Spitzak (talk) 18:20, 12 September 2024 (UTC)
- Nevermind you did fix the box sizes. I should have taken a look. Spitzak (talk) 18:21, 12 September 2024 (UTC)
- I like the fact that you fixed the width of the row headers. Do you think you could try fixed pitch? I think that will help as usually U+AB12 is being shown in a fixed-pitch font. Spitzak (talk) 18:23, 12 September 2024 (UTC)
- I am on the fence about this choice as well, but I am often tugged towards parsimony (i.e. only using one font) but I'll try it out again now. Remsense ‥ 论 18:29, 12 September 2024 (UTC)
- Okay, I think that's pretty perfect. Remsense ‥ 论 18:32, 12 September 2024 (UTC)
- The titles are showing with serifs for me, not as U+2E8x. Spitzak (talk) 17:58, 13 September 2024 (UTC)
- Actually the row titles are in a different font than the column titles. Spitzak (talk) 17:58, 13 September 2024 (UTC)
- That's odd, there's no reason for that to be the case, they're both set to
font-family: monospace
. I'll change it though to what our templates do instead. Remsense ‥ 论 18:02, 13 September 2024 (UTC)- Oh, lookie here. I've discovered why we need a WP:MONO shortcut. Fixed. Remsense ‥ 论 18:09, 13 September 2024 (UTC)
- Removing the
lang="mul"
from the row headers fixed it for me. Spitzak (talk) 19:52, 13 September 2024 (UTC)- Makes sense! I have no idea why they would be tagged that, as it's not the case that the text is writing several different languages! Not sure why I bothered copying it over. Remsense ‥ 论 20:20, 13 September 2024 (UTC)
- Removing the
- Oh, lookie here. I've discovered why we need a WP:MONO shortcut. Fixed. Remsense ‥ 论 18:09, 13 September 2024 (UTC)
- That's odd, there's no reason for that to be the case, they're both set to
- Actually the row titles are in a different font than the column titles. Spitzak (talk) 17:58, 13 September 2024 (UTC)
- The titles are showing with serifs for me, not as U+2E8x. Spitzak (talk) 17:58, 13 September 2024 (UTC)
- Okay, I think that's pretty perfect. Remsense ‥ 论 18:32, 12 September 2024 (UTC)
- I am on the fence about this choice as well, but I am often tugged towards parsimony (i.e. only using one font) but I'll try it out again now. Remsense ‥ 论 18:29, 12 September 2024 (UTC)
- That's what I've done. Are you sure they're still too large? This is the worst case scenario for readability I think, with rather complex and diverse, square-filling glyphs. I worry if I reduce the spacing any more it will become more difficult to discern one glyph from another at a glance. Remsense ‥ 论 18:18, 12 September 2024 (UTC)
- I've reduced the effective padding, that looks better. I think I would like to maintain the table caption being used exclusively for the name of the block. I am also a hair skeptical that the meaning of gray squares is adequately intuitive to many readers who might be learning about Unicode or any related concept for the very first time, and they might not even really know that letters are assigned as such. That is to say, I think the note plausibly should remain. Remsense ‥ 论 17:56, 12 September 2024 (UTC)
- I'm concerned about making the table design slicker at the expense of conveigying information clearly. That said, User:Remsense asked for my feedback on the redesign...
- Is it possible to use a sticky header for the "0 1 2 3 4 ..." heading? This would be very useful for longer charts like Template:Unicode chart Egyptian Hieroglyphs and many CJK related blocks. You can see it in action on the here.
- I'm as adamant about the use of "nounderlines" as I was ten years ago. Yes, readers are used to the use of underlines on Latin letters but it gets very confusing with unfamiliar letters/symbols. The best example is Template:Unicode chart Mathematical Operators. I contend that the change is color of the linked symbol is sufficient to alert the reader of a link.
- I would like a PDF symbol in the header of the chart to the official Unicode code chart. I don't think it's intuitive to follow a reference for "As of Unicode version 16.0" to find the chart. That just buries this incredibly useful information. If you want to condense the information, what about this for the heading: Early Dynastic Cuneiform as of Unicode version 16.0 or Early Dynastic Cuneiform as of Unicode version 16.0 (official chart)
- The size/shape of the table cell gets thrown out the window for some charts. See Template:Unicode chart Javanese and Template:Unicode chart Early Dynastic Cuneiform for example.
- Be sure to test that the new block layout works when multiple charts appear on the same page, like Mon–Burmese script.
- I don't really care which font is used for the headings/column heading but it will need to be different than the fonts (if any) for the data cells themselves. For example, Template:Unicode chart Ahom. We don't want to use Noto Serif Ahom for the entire chart, just the data cells. Not sure if the new format makes this an issue or not.
- FYI: I think this is a complete list of charts with notes other than "as of" and "grey": Arabic, Arabic Presentation Forms-A, CJK Compatibility Ideographs, General Punctuation, Hangul Jamo, Khmer, Latin Extended-A, Miscellaneous Technical, Specials, Superscripts and Subscripts, Sutton SignWriting, Tags, and Tibetan.
- DRMcCreedy (talk) 20:40, 13 September 2024 (UTC)
- Thank you very much, it's just what I was hoping for! Of course, the last thing I want to do is make anything less clear, but I need to do everything wrong first Remsense ‥ 论 21:35, 13 September 2024 (UTC)
- The problem with
nounderlines
even in {{Unicode chart Mathematical Operators}} is that it affects the table caption. I wasn’t saying thatnounderlines
needs to be completely removed, just that it shouldn’t affect legit links unnecessarily. stjn 13:35, 15 September 2024 (UTC)- I understand now. I agree with you that links outside of the table data cell contents should have underlines. DRMcCreedy (talk) 14:56, 15 September 2024 (UTC)
- I'm going to judge the EL vs. reflist citation position as no consensus for the moment, meaning I'll try a version with the existing convention as well. Further thoughts on each?
- Unicode 16.0[2] – grey areas indicate non-assigned code points.
- Unicode 16.0 (official chart) – grey areas indicate non-assigned code points.
- Remsense ‥ 论 03:18, 16 September 2024 (UTC)
- I strongly prefer the EL with the PDF symbol because it's much more obvious there's a PDF chart available. Especially nice if it's a block I don't have fonts installed for. DRMcCreedy (talk) 14:48, 18 September 2024 (UTC)
- The
lang="mul"
reappeared for some reason Spitzak (talk) 04:23, 16 September 2024 (UTC) - It's a citation. EL should not be placed in the middle of articles per WP:NOELBODY. How does this usage satisfy "rare exception"? Gonnym (talk) 15:16, 18 September 2024 (UTC)
- I'm so used to the current format that this never occurred to me. I guess that pushes us towards a normal citation. That said, I'd like the citation chapter parm changed to "Code chart for xxx" (where xxx is the block name) and the page number parm removed (because of the maintenance issues with new releases). DRMcCreedy (talk) 16:02, 18 September 2024 (UTC)
- I'm happy to make any future changes if consensus agrees to them or problems are indicated; for the moment, is everyone okay with me starting to implement this new design, possibly as a handful of metatemplates, that can replace the existing unicode block templates? Also, third option: just put the citation template itself in the bar?
- "CJK Radicals Supplement" (PDF), The Unicode Standard, Version 16.0.0, South San Francisco, CA: The Unicode Consortium, 2024-09-10, pp. 325–329, ISBN 978-1-936213-34-4 – grey areas indicate non-assigned code points.Remsense ‥ 论 22:00, 18 September 2024 (UTC)
- That is probably the worst option. Just make it a citation, there is no reason to prefer an inline icon for the link in the footer. stjn 16:58, 19 September 2024 (UTC)
- I only worry that it'll cause heartburn for those working with the bespoke citation styles existing in maybe 2–10 articles ever, but whatever at this point. Remsense ‥ 论 17:01, 19 September 2024 (UTC)
- Yes I think it should be a plain old citation in the header. The header could look like this:
- CJK Radicals Supplement Unicode 16.0 [3]
- I do think the link to the PDF has to be in the title somehow. Spitzak (talk) 17:43, 19 September 2024 (UTC)
- @Drmccreedy @Spitzak @Stjn @Gonnym how's that, y'all? —you know what, I won't apologize for including the full citation template. hurts no one!Remsense ‥ 论 20:02, 19 September 2024 (UTC)
- Hard no on using the full citation in the header. I think that is still an inline citation so if breaks the MOS. I'm fine with just a reference so long as the title is "Code chart for ..." or "Official Code Chart for ...". DRMcCreedy (talk) 21:44, 19 September 2024 (UTC)
- I dropped the inline cite idea. Remsense ‥ 论 21:58, 19 September 2024 (UTC)
- Current version looks good to me Spitzak (talk) 22:59, 19 September 2024 (UTC)
- I notice the page numbers are still on the reference. I'd like to reiterate that these are a maintenance issue and not useful to the reader because they will just pull up the PDF, not look up the page numbers is some hardcopy or omnibus PDF. DRMcCreedy (talk) 14:33, 20 September 2024 (UTC)
- I dropped the inline cite idea. Remsense ‥ 论 21:58, 19 September 2024 (UTC)
- Hard no on using the full citation in the header. I think that is still an inline citation so if breaks the MOS. I'm fine with just a reference so long as the title is "Code chart for ..." or "Official Code Chart for ...". DRMcCreedy (talk) 21:44, 19 September 2024 (UTC)
- @Drmccreedy @Spitzak @Stjn @Gonnym how's that, y'all? —you know what, I won't apologize for including the full citation template. hurts no one!Remsense ‥ 论 20:02, 19 September 2024 (UTC)
- I only worry that it'll cause heartburn for those working with the bespoke citation styles existing in maybe 2–10 articles ever, but whatever at this point. Remsense ‥ 论 17:01, 19 September 2024 (UTC)
- That is probably the worst option. Just make it a citation, there is no reason to prefer an inline icon for the link in the footer. stjn 16:58, 19 September 2024 (UTC)
- I'm so used to the current format that this never occurred to me. I guess that pushes us towards a normal citation. That said, I'd like the citation chapter parm changed to "Code chart for xxx" (where xxx is the block name) and the page number parm removed (because of the maintenance issues with new releases). DRMcCreedy (talk) 16:02, 18 September 2024 (UTC)
References
- ^ "CJK Radicals Supplement" (PDF), The Unicode Standard, Version 16.0.0, South San Francisco, CA: The Unicode Consortium, 2024-09-10, pp. 325–329, ISBN 978-1-936213-34-4
- ^ "CJK Radicals Supplement" (PDF), The Unicode Standard, Version 16.0.0, South San Francisco, CA: The Unicode Consortium, 2024-09-10, pp. 325–329, ISBN 978-1-936213-34-4
- ^ This is the citation to the PDF
Issue with Template:Inflation
Not sure if this is just on my end, but when I open the template page, I get the message "The time allocated for running scripts has expired.". I've searched through the archives but I have no clue how to check the Lua runtime and don't even know if if it needs to be fixed or if this'll just go away, but just thought I'd make the pump aware. Sincerely, Dilettante 20:20, 19 September 2024 (UTC)
- It's affecting several articles too, Oscar Wilde and Pouakai Range are full of error messages and missing templates. Kindlejim (talk) 20:37, 19 September 2024 (UTC)
- I found the error at Caltech. Sincerely, Dilettante 20:45, 19 September 2024 (UTC)
- Yes, I see it too. 'Find' and 'sub' callbacks take 9 seconds:
Parser profiling data of Template:Inflation:
|
---|
Parser profiling data (help): CPU time usage 10.868 seconds Real time usage 11.235 seconds Preprocessor visited node count 17,969/1,000,000 Post-expand include size 304,975/2,097,152 bytes Template argument size 55,123/2,097,152 bytes Highest expansion depth 29/100 Expensive parser function count 12/500 Unstrip recursion depth 0/20 Unstrip post-expand size 6,600/5,000,000 bytes Lua time usage 10.069/10.000 seconds Lua memory usage 25,050,261/52,428,800 bytes Lua Profile MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::find 5140 ms 49.6% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::sub 4020 ms 38.8% ? 440 ms 4.2% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::match 240 ms 2.3% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::getExpandedArgument 100 ms 1.0% recursiveClone <mwInit.lua:45> 80 ms 0.8% dataWrapper <mw.lua:672> 80 ms 0.8% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::gsub 60 ms 0.6% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::callParserFunction 60 ms 0.6% MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback::getContent 60 ms 0.6% [others] 80 ms 0.8% Number of Wikibase entities loaded 0/400 |
- Maybe someone with better tech chops can help you. Mathglot (talk) 20:41, 19 September 2024 (UTC)
- Presumably caused by this good-faith edit which I've since reverted. Izno (talk) 21:32, 19 September 2024 (UTC)
- @Dilettante, Kindlejim, Mathglot, Izno: Oops, my bad. I implemented an automatic version of {{Inflation/year}} that uses Lua, but it turns out
mw.text.split()
is incredibly slow. Replacing it with a home-grown splitting function made it 20x faster. I've fixed the Lua module and re-implemented it, and it's now working with all the above pages (except Pouakai Range, which appears to be an unrelated issue with {{Maplink}}). --Ahecht (TALK
PAGE) 00:06, 20 September 2024 (UTC)- Ahecht, Thanks. It sounds like something wildly beyond normal expectation, especially since your home-brew version was so much faster. I don't know Lua yet, but
mw.text.split()
looks like it might be some imported library routine defined externally somewhere. If that's close to right, would you mind commenting/filing a Phabricator ticket or whatever the right response is about that routine, wherever it happens to be? Mathglot (talk) 00:19, 20 September 2024 (UTC)- @Mathglot It seems to be a known issue (see phab:T278206). The reason mine is faster is that the built-in one is Unicode aware and mine is not. --Ahecht (TALK
PAGE) 00:56, 20 September 2024 (UTC)- Thanks; I reopened it. Mathglot (talk) 03:23, 20 September 2024 (UTC)
- @Ahecht:, closed again; see this comment. Do you think you can create a new ticket for this? You are much more plugged in to what is going on here than I am, and I fear my explanation would not be complete or accurate. Thanks, Mathglot (talk) 11:19, 21 September 2024 (UTC)
- @Mathglot I really don't know too much about the issue other than what is in that ticket, and I fear that a regression that occurred 3 years ago may be hard to track down. --Ahecht (TALK
PAGE) 22:58, 21 September 2024 (UTC)
- @Mathglot I really don't know too much about the issue other than what is in that ticket, and I fear that a regression that occurred 3 years ago may be hard to track down. --Ahecht (TALK
- @Ahecht:, closed again; see this comment. Do you think you can create a new ticket for this? You are much more plugged in to what is going on here than I am, and I fear my explanation would not be complete or accurate. Thanks, Mathglot (talk) 11:19, 21 September 2024 (UTC)
- Thanks; I reopened it. Mathglot (talk) 03:23, 20 September 2024 (UTC)
- @Mathglot It seems to be a known issue (see phab:T278206). The reason mine is faster is that the built-in one is Unicode aware and mine is not. --Ahecht (TALK
- Ahecht, Thanks. It sounds like something wildly beyond normal expectation, especially since your home-brew version was so much faster. I don't know Lua yet, but
- @Dilettante, Kindlejim, Mathglot, Izno: Oops, my bad. I implemented an automatic version of {{Inflation/year}} that uses Lua, but it turns out
- Presumably caused by this good-faith edit which I've since reverted. Izno (talk) 21:32, 19 September 2024 (UTC)
"The time allocated for running scripts has expired"
In the process of doing some category cleanup today, I came across Albert Bridge, London, a page which looks fine at first, but about halfway down once you get to the "structural weaknesses" section, becomes absolutely swarmed with a constant profusion of blaring red "The time allocated for running scripts has expired" error messages every time there's supposed to be a footnote. The last time I saw something like this, it was because the affected page had recently been moved, so there was a conflict between its title and the title that was being expected by various templates, but that doesn't seem to be the case here as the page hasn't been moved at all. So could somebody take a look at this and figure out how to fix whatever's wrong? Thanks. Bearcat (talk) 20:47, 19 September 2024 (UTC)
- For the moment I've removed the dynamic content (Special:Diff/1246585381) that was trying to display the current year and the problem went away - at least the page is readable now, this needs more investigation. — xaosflux Talk 21:17, 19 September 2024 (UTC)
Inflation Template may be broken
I've used it on James Brudenell, 7th Earl of Cardigan and it returns an error: "The time allocated for running scripts has expired". AFAICS there's been nothing changed on the page.--AntientNestor (talk) 21:24, 19 September 2024 (UTC)
- Cross post, sorry. Same as previous entry.--AntientNestor (talk) 21:26, 19 September 2024 (UTC)
Template:cot cutting off bg color on mobile
{{cot}} is cutting off bg color in collapsed state on mobile. When expanded displays properly in Talk:List of Grand Slam and related tennis records#New versions. Is this a bug or a skin issue? Qwerty284651 (talk) 10:32, 20 September 2024 (UTC)
- It's about window width. It also happens in narrow desktop windows but not in wide mobile windows. The green background always stops right after the "show" link. The difference in narrow windows is that the show link moves to the left. I don't know why. PrimeHunter (talk) 11:59, 20 September 2024 (UTC)
- I've eliminated your table content as a factor; that does not affect it. But the length of the title field in the collapse bar does. The first cot/cob below shows the same problem, but the second does not:
{{Cot|Version 1}} |- | {{lipspan|1}} |} {{Cot|Version 1 - same, but with a longer title field; there must be a clue here somewhere}} |- | {{lipspan|1}} |}
- The generated Html for the first one looks like this:
Generated Html for top example:
|
---|
<div style="margin-left:0"> {| class="mw-collapsible mw-archivedtalk mw-collapsed " style="background: transparent; text-align: left; border: 1px solid Silver; margin: 0.2em auto auto; width:100%; clear: both; padding: 1px;" |- ! style="background: #CCFFCC; font-size:87%; padding:0.2em 0.3em; text-align:center; " | <div style="font-size:115%;margin:0 4em">Version 1</div> |- | style="border: solid 1px Silver; padding: 0.6em; background: White;" | |- | 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. |} |
- Note that when expanded, the problem does not appear. Maybe this will help point the way to where to go next with this analysis. Mathglot (talk) 00:11, 21 September 2024 (UTC)
- Here is a small example:
{| style="border: 1px solid" |- style="background-color: cyan;" | Test |}
Test |
- In a narrow window, the table border is widened to the full width but the background color is not included in the widened part. Tested in Firefox in Vector 2022 and Vector legacy. PrimeHunter (talk) 09:34, 21 September 2024 (UTC)
- Again the content length matters:
{| style="border: 1px solid" |- style="background-color: azure;" | testing whether that nation, or any nation so conceived and so dedicated, can long endure |}
testing whether that nation, or any nation so conceived and so dedicated, can long endure
- Problem gone again. But why? Mathglot (talk) 11:14, 21 September 2024 (UTC)
- Also MonoBook. It's this rule: For a table, the
@media screen { @media (max-width: 639px) { .mw-parser-output table { display: block; overflow: auto; max-width: 100%; } } }
display:
property defaults todisplay:table;
which would cause thatmax-width: 100%;
declaration to be ignored, but this rule overrides it. --Redrose64 🌹 (talk) 13:44, 21 September 2024 (UTC)
- Also MonoBook. It's this rule:
- Problem gone again. But why? Mathglot (talk) 11:14, 21 September 2024 (UTC)
- It's an unknown table, so the table defaults kick in (to allow for scrolling, in case the thing is superwide). Those defaults do not take into that something has a colored background like that and by default, the background for that element will thus not be maximum width wide, but content wide. —TheDJ (talk • contribs) 00:53, 22 September 2024 (UTC)
- Have you taken the step of grabbing the right edge of your browser window, and slowly dragged it left, until you see a jump in the background color of the title bar to half the width of the title bar (meaning the right half has white backgroundd) as the window shrinks to 1/3 or 1/5 of its former width? How is your explanation related to this behavior? And, what is an "unknown table"? Mathglot (talk) 01:21, 22 September 2024 (UTC)
- This would effectively be fixed if someone took the time to convert {{collapse top}} and any bottom templates (collapse bot, possibly others) to use divs rather than tables. They will need to be point person on any issues that come up. I can support. (I just don't have it in me to do it by myself. :) Izno (talk) 16:27, 22 September 2024 (UTC)
Specific Dumps
Hi, I would like a dump for the following: All Featured articles, All featured lists, All good articles, and all Vital Articles (All levels). Preferrably in separate files for each of the requests. And also preferably in html, pdf, or a similar format. I don’t like the xml one due to it having the coding and unnecessary stuff included. Is this possible? I was told to come here after asking on Help Desk. Thanks, MrM MiniMikeRM (talk) 12:47, 19 September 2024 (UTC)
- MiniMikeRM, you could try something like Special:Export + Category:Featured articles. You won't be able to get anything other than XML. Other than that, you'd need to download the full dump and filter it. The only way to get the HTML dumps (that I know of) is https://dumps.wikimedia.org/other/enterprise_html/. — Qwerfjkltalk 18:33, 19 September 2024 (UTC)
- Thanks, how would I go about filtering though? MiniMikeRM (talk) 11:55, 20 September 2024 (UTC)
- MiniMikeRM, it depends on what you're using. You could use an XML parser, iterate through the pages, and check the categories or whatever else you want to check. — Qwerfjkltalk 18:16, 22 September 2024 (UTC)
- Thanks, how would I go about filtering though? MiniMikeRM (talk) 11:55, 20 September 2024 (UTC)
Wapo
Certain Washington Post pages have inconsistent dates and metadata. User:Brownhairedgirl was dealing with this issue, she is now blocked.
- Category:WaPoCheckDates contains those items she identified which have not been resolved.
- There may well be more items with this issue by now.
I have resolved a couple by looking at the Wayback Machine history, so it is possible. The community needs to decide how we deal with both the backlog and the issue going forward.
All the best: Rich Farmbrough 21:13, 22 September 2024 (UTC).
- In what way is this a technical issue? I just fixed one by comparing the date in the citation with the date on the article. – Jonesey95 (talk) 00:30, 23 September 2024 (UTC)
Test for presence of Newcomer home page
Is there an #if test I can do on some variable, or an #ifexist <file> to check if a user has their newcomer home page enabled? I wish to provide a link at H:YFA to the newcomer home page (Special:Homepage), but only if they have one. A magic word {{HOMEPAGE}} that returns non-empty would be nice, but anything that works is good.
Note: if you are an experienced user reading this, that Special link probably goes nowhere for you, as it did for me, until I enabled it in the bottom section at Preferences. If you've never seen the Homepage, it's interesting, and if you are a WP:Tea house aficionado, it may help you help others. Mathglot (talk) 19:27, 19 September 2024 (UTC)
- No, there is not. Izno (talk) 19:53, 19 September 2024 (UTC)
- Darn; okay, thanks. Mathglot (talk) 20:32, 19 September 2024 (UTC)
- Two points of context to know more about the user case you envision, @Mathglot:
- Since August 2022, all newcomers have access to the homepage.
- Some (more experienced) users opted-out the homepage in their preferences, but they know that.
- Could we say these two points are a enough to consider that the number of newcomers who would have a "no access" message is low enough to add the link to H:YFA? Trizek_(WMF) (talk) 10:48, 20 September 2024 (UTC)
- Trizek_(WMF}, thanks for this. You echo my musings about this, as I have been thinking about adding it anyway, and assumed that all new users have the page, and that at least some older users don't, either because like me, they predate the feature, or that other editors have opted out on the Preferences page (or maybe aged out automatically after X-hundred or-thousand edits or whatever). So, I was coming around to your view, and hearing these details cinches it; I will add the link. Thanks for jumping in.
P.S. You might consider adding a WP:DOPPELGANGER account for Trizek (WMF), which is how I automatically spelled your name while typing, to prevent any future mischief. Most WMF users use blank there, not underscore as I recall, so it's a familiar pattern.Thanks, Mathglot (talk) 17:46, 20 September 2024 (UTC)- Crap, can't win for losing; you already had it that way, and the underscore is added as a custom sig? You really know how to confuse a bod... . @Trizek (WMF):. Mathglot (talk) 17:49, 20 September 2024 (UTC)
- Ha, sorry for the confusion regarding the underscore @Mathglot! It is the opposite effect I was looking for: I added it to my signature as a global setting for RTL languages. It is also for other users who miss the parenthesis: they are quite regularly pinging my volunteer account... ;) Trizek_(WMF) (talk) 12:32, 23 September 2024 (UTC)
- Crap, can't win for losing; you already had it that way, and the underscore is added as a custom sig? You really know how to confuse a bod... . @Trizek (WMF):. Mathglot (talk) 17:49, 20 September 2024 (UTC)
- Done. Trizek, I've gone ahead and made that change; thanks. Mathglot (talk) 21:53, 22 September 2024 (UTC)
- Two points of context to know more about the user case you envision, @Mathglot:
- Darn; okay, thanks. Mathglot (talk) 20:32, 19 September 2024 (UTC)
New quirk, opening Wikipedia on Firefox (Chrome and Edge are fine)
Yesterday, I ran the McAfee "Tracker Remover". Normally, that's routine, and nothing odd happens, but I am wondering if my new quirk was triggered by McAfee . Normally I don't sign out when I leave Wikipedia for the day. But as of today, I'm having issues with Firefox asking me to sign in to Wikipedia. I click without password, and it opens anyway. It's just odd that it asked me to do that. If I open on Chrome or Microsoft Edge instead, both take me right into the Wikipedia page I want without asking for a password. Feedback welcome on this, please. — Maile (talk) 20:31, 19 September 2024 (UTC)
- I think it is more likely that you are seeing issues of the login system itself. In layman terms, the Wikipedia/WMF login system is not as safe as Firefox would want, which leads to issues (see https://bugzilla.mozilla.org/show_bug.cgi?id=1696095 and phab:T226797 for techical details). General login issues should be better once phab:T348388 is resolved. Snævar (talk) 08:01, 23 September 2024 (UTC)
- Thank you for the information. — Maile (talk) 21:13, 23 September 2024 (UTC)
Pending changes on a module
I was asked to investigate a problem with {{convert}} at the Ukrainian Wikipedia. I have edited some pages there and am curious about the effect of a new user (me) editing a pending-changes protected page such as uk:Module:Convert/пісочниця (/sandbox). When I look at that page in a private window where I am not logged in, I can find "pername". I added that in the most recent edit which history shows as "pending review". Also, the pername change to the module is used at uk:User:Johnuniq/convert#pername (it shows dummy text "miPER" and "acrePER" in the output). In other words, an edit to the module which has not been reviewed still has an effect that is visible to all. This is not important—I'm just curious about WP:Pending changes. It appears that PC on a module does not achieve much other than flagging it as needing review? Johnuniq (talk) 02:58, 23 September 2024 (UTC)
- I think templates work the way one would expect, I would guess Scribunto content model pages just don't... Maybe @Stjn knows. Izno (talk) 03:12, 23 September 2024 (UTC)
- I just tried editing the PC protected page uk:Template:Convert/пісочниця. In a private window I could see the change to the template, and I could see the effect of the change. (I stuffed up my edit summary when I self-reverted—I meant to say that PC had no effect.) Johnuniq (talk) 03:45, 23 September 2024 (UTC)
- In Ukrainian Wikipedia, there is no expectation that pages are stabilised by default, so the page contents of /sandbox page display the unreviewed page. Template review status is tracked on pages transcluding the template that use FlaggedRevs. So User:Johnuniq/convert would also show the page with unreviewed edits while the mainspace page won’t. stjn 18:23, 24 September 2024 (UTC)
- Amazing, thanks. Johnuniq (talk) 21:20, 24 September 2024 (UTC)
- @Johnuniq Most of unreviewed changes are seen by unregistered user. It also doesn't depends if page has semi or full protection levels (however, to have fully protected page with unrewieved changes is rarest thing, because all administrator have rewiever rights). Only what matters is if a page has stabilization or not. Usually, if a page is highly proned to vandalism or have chosen as good article or featured article, administrator stabilize the page. In this case, all of unrewieved changes aren't seen by unregistered user. Usually, pages have special symbol to mark that they are stabilized, and the text on a save button would change from "save" to "write" or "write changes". Repakr (talk) 05:08, 24 September 2024 (UTC)
- Thanks. I've never seen that approach. I was wondering whether unregistered users would see the effect of an unreviewed change to a module or template. One day you might test that with a stabilized module but we have enough to think about before continuing this. Johnuniq (talk) 05:36, 24 September 2024 (UTC)
table-caption minerva issue
On screens below width 640px there are two related issues with table captions in Drummully#Statistics on mobile, ie https://en.m.wikipedia.org/wiki/Drummully#Statistics.
- In both tables, the caption only spans the first column.
- In the first table, the caption is below the column headers.
The cause is the user agent's default display ...
caption { display: table-caption;
... is overridden by a Minerva stylesheet
@media screen and (min-width: 640px) { .content caption { display: block
When I comment out that line in my Browser developer settings, both tables look fine.
The CSS file's URL is
I dunno where the corresponding source is, or whether this is a Wikipedia or MediaWiki issue, or if there is a defect logged and/or a workaround available. jnestorius(talk) 16:05, 18 September 2024 (UTC)
- The caption being set to display block has always been weird to me; the other display blocks in Minerva make some sense (but I also think I've played around with this before and come to the conclusion that it was necessary?? memory is weird on this point).
- skins.minerva.base.styles/content/tables.less is the source. Izno (talk) 16:32, 18 September 2024 (UTC)
- Captions should be either
display:table-caption;
ordisplay:none;
. Nothing else is sensible. --Redrose64 🌹 (talk) 19:39, 18 September 2024 (UTC)
- Captions should be either
- TLDR: The issue is the inline style adding display: inline-table which is interfering with Minerva's ability to make the table responsive on a mobile device. Please move this to a TemplateStyle so that it only applies at a suitable breakpoint and does not break the display on mobile.
- Longer version: On mobile, since a table doesn't fit in the screen, presenting them to mobile devices becomes tricky. The way we approach this general in MediaWiki sites, it to convert the display property of all table elements to block-based layouts rather than table-based layouts. Applying display block to the table caption, will ensure that it does not require horizontal scrolling to be viewed and will span multiple lines if needed. While this might seem strange is a pretty widely recommended and sensible practice.
- The bug here IMO is not the table caption - it's the use of display inline-table. If you load this article on a mobile device, and expand sections you'll see that this introduces horizontal scroll on the page e.g. the table breaks the content of the whole article. e.g. the whole article is not mobile friendly (note the whitespace to right of chrome in this screenshot: https://phabricator.wikimedia.org/F57532981).
- Inline styles as always interfere with a lot of the logic we have to optimize content. As with dark mode where use of any kind of color can break dark mode display - using display or width or height properties interfere with the responsive behaviour and I would personally recommend always using mw:TemplateStyles to express these. 🐸 Jdlrobson (talk) 00:07, 24 September 2024 (UTC)
- @Jdlrobson: the bug here is also in having
caption { display: block }
style as well. See ru:Амстердам#Климат on mobile for where it breaks easily. stjn 18:19, 24 September 2024 (UTC)- Thanks. This looks like a bug in the logic for the noresize class not the caption itself (for the reasons I say above).
- I've opened phab:T375563 to sort that out. 🐸 Jdlrobson (talk) 21:38, 24 September 2024 (UTC)
- @Jdlrobson: the bug here is also in having
Very small searchbox on Wikipedia:Help desk
Was the input box for Search the frequently asked questions
in the help desk always this small? It has been squished by the button so much that it can't even display one character when I start typing.
Pretty sure it happens on any setting (even mobile), but I'm using Google Chrome on a computer. – 2804:F1...F5:930E (talk)00:45, 25 September 2024 (UTC)
- That's messed up. I am able to reproduce it in Chrome. In Firefox, the search button text says "Search the freque...". I have worked around it by allowing the button to be on a second line. I wonder if something changed in the code for
<inputbox>...</inputbox>
. – Jonesey95 (talk) 00:57, 25 September 2024 (UTC)- Hmm, that's mw:Extension:InputBox? Doesn't seem like any related super recent changes there - there was an UI change in June though. I do not remember if Google Chrome ever displayed that search box correctly as I've only now paid conscious attention to it (and I don't frequent help desk, specially the top of the page, much).
- The workaround is working though, thank you. – 2804:F1...F5:930E (talk) 01:09, 25 September 2024 (UTC)
- We could up width=30 to width=40 see if that's better? Moxy🍁 01:21, 25 September 2024 (UTC)
- After testing in preview at Wikipedia:Help desk/Header/sandbox, it seems that when I restore the break=no, even if I do width=500, or 50000, nothing actually changes from width=30...
- Certainly seems like a bug. – 2804:F1...F5:930E (talk) 02:17, 25 September 2024 (UTC)
- The surrounding box is limited to 300px, so enlarging the width of the search box is probably limited by that. – Jonesey95 (talk) 02:24, 25 September 2024 (UTC)
- Well, without the break=no it does resize past the 300 (and all the way off the side of the screen), a width=3 also has no effect. They do change a size attribute in the input box, but I guess because of what Izno said below it just has no effect when the button is in the same line? – 2804:F1...F5:930E (talk) 02:47, 25 September 2024 (UTC)
- The surrounding box is limited to 300px, so enlarging the width of the search box is probably limited by that. – Jonesey95 (talk) 02:24, 25 September 2024 (UTC)
- Yes, the June update to use Codex is likely what caused the situation, if anything caused it. The block at is what causes the issue today, since it's assuming that the table width containing the whole input box is "king", more or less. And it wants to display the content from the button more than the non-content in the form input.
form.mw-inputbox-form-inline { .cdx-text-input { min-width: auto !important; } }
- (Without that CSS line at your browser, this naturally stretches the table to allow display of both the input and button. That's a feature of web tables but it causes issues in other ways sometimes.)
- Two ways to fix it probably without asking for a change upstream. One is to make the side box bigger. I wouldn't generally advise this, since that has knockon effects for use in mobile. The other is to put the input and the button on different lines. Izno (talk) 02:29, 25 September 2024 (UTC)
- We could up width=30 to width=40 see if that's better? Moxy🍁 01:21, 25 September 2024 (UTC)
Tools for formatting table cells
are there any toolbar buttons or add-ins which can be used/ added for users to format cells in a table, like changing cell BG colour?
Anish Viswa 11:05, 23 September 2024 (UTC)
- No, and you should generally not want to change the background color of cells. See also WP:COLOR. Izno (talk) 16:01, 23 September 2024 (UTC)
- @Anishviswa See Template:Table cell templates/doc. --Ahecht (TALK
PAGE) 16:42, 23 September 2024 (UTC)- This is not I am looking for. Is there some option in WYSIWYG editor (add a toolbar) to select and change BG color of a cell or group of cells, like in MS Excel ?
Anish Viswa 07:54, 25 September 2024 (UTC)
- This is not I am looking for. Is there some option in WYSIWYG editor (add a toolbar) to select and change BG color of a cell or group of cells, like in MS Excel ?
Mobile view: expand all headings
Is there a gadget, user script or way to get a button to expand all headings in mobile view? It's annoying to have to manually expand them all when you want to do "find in page" or just simply want to see the whole article </MarkiPoli> <talk /><cont /> 11:44, 25 September 2024 (UTC)
- Yes, there's an option for that on Special:MobileOptions (accessible via top-left menu → Settings). [For anyone else reading this, note that the option only appears when using the mobile mode, and only on small-screen devices, since on larger devices the headings are already expanded.] Matma Rex talk 12:36, 25 September 2024 (UTC)
- Wow, never realised that! Although it doesn't seem to be a "button", just an option saying to expand all headings. That's fine, but a button would still be useful. Maybe someone could write a user script? </MarkiPoli> <talk /><cont /> 13:37, 25 September 2024 (UTC)
This script doesn't seem active/working anymore. Can it be fixed? Or is there an identical script? Kailash29792 (talk) 07:11, 23 September 2024 (UTC)
- I would guess this broke with the headings change earlier this year. It should be fixable, but not by me. Izno (talk) 16:00, 23 September 2024 (UTC)
- Pinging @Amorymeltzer. --Ahecht (TALK
PAGE) 16:43, 23 September 2024 (UTC) - Yeah, been bugging me too, thanks for the prompt Kailash29792. Should be working now. ~ Amory (u • t • c) 14:40, 25 September 2024 (UTC)
Tech News: 2024-39
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Weekly highlight
- All wikis will be read-only for a few minutes on Wednesday September 25 at 15:00 UTC. Reading the wikis will not be interrupted, but editing will be paused. These twice-yearly processes allow WMF's site reliability engineering teams to remain prepared to keep the wikis functioning even in the event of a major interruption to one of our data centers.
Updates for editors
- Editors who use the iOS Wikipedia app in Spanish, Portuguese, French, or Chinese, may see the Alt Text suggested-edit experiment after editing an article, or completing a suggested edit using "Add an image". Alt-text helps people with visual impairments to read Wikipedia articles. The team aims to learn if adding alt-text to images is a task that editors can be successful with. Please share any feedback on the discussion page.
- The Codex color palette has been updated with new and revised colors for the MediaWiki user interfaces. The most noticeable changes for editors include updates for: dark mode colors for Links and for quiet Buttons (progressive and destructive), visited Link colors for both light and dark modes, and background colors for system-messages in both light and dark modes.
- It is now possible to include clickable wikilinks and external links inside code blocks. This includes links that are used within
<syntaxhighlight>
tags and on code pages (JavaScript, CSS, Scribunto and Sanitized CSS). Uses of template syntax{{…}}
are also linked to the template page. Thanks to SD0001 for these improvements. [34] - Two bugs were fixed in the GlobalVanishRequest system by improving the logging and by removing an incorrect placeholder message. [35][36]
- View all 25 community-submitted tasks that were resolved last week.
Updates for technical contributors
- From Wikimedia Enterprise:
- The API now enables 5,000 on-demand API requests per month and twice-monthly HTML snapshots freely (gratis and libre). More information on the updates and also improvements to the software development kits (SDK) are explained on the project's blog post. While Wikimedia Enterprise APIs are designed for high-volume commercial reusers, this change enables many more community use-cases to be built on the service too.
- The Snapshot API (html dumps) have added beta Structured Contents endpoints (blog post on that) as well as released two beta datasets (English and French Wikipedia) from that endpoint to Hugging Face for public use and feedback (blog post on that). These pre-parsed data sets enable new options for researchers, developers, and data scientists to use and study the content.
In depth
- The Wikidata Query Service (WDQS) is used to get answers to questions using the Wikidata data set. As Wikidata grows, we had to make a major architectural change so that WDQS could remain performant. As part of the WDQS Graph Split project, we have new SPARQL endpoints available for serving the "scholarly" and "main" subgraphs of Wikidata. The query.wikidata.org endpoint will continue to serve the full Wikidata graph until March 2025. After this date, it will only serve the main graph. For more information, please see the announcement on Wikidata.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:32, 23 September 2024 (UTC)
- @Quiddity (WMF) and SD0001: Regarding this change to syntaxhighlight, what would be the effect on pages like Help:Link and Help:Transclusion? Such pages have many examples of how wikitext is used, wrapped in
<syntaxhighlight lang="wikitext">...</syntaxhighlight>
where the intent is to show the markup and not the effect of using double square brackets and double braces. Will this be controllable with an attribute? If so, it should be opt-in, in order to not break all of the existing cases. --Redrose64 🌹 (talk) 06:56, 24 September 2024 (UTC)- Links are only applied within text detected by the syntax highlighter as comments (
<!-- ... -->
for lang=wikitext). The change is already live – if you don't see any effect now, there is no effect. – SD0001 (talk) 07:20, 24 September 2024 (UTC)- Example made with
<syntaxhighlight lang="wikitext">...</syntaxhighlight>
: <!-- [[Alice]] is in a wikitext comment with lang="wikitext" so it is linked. It still displays the link brackets. --> [[Boc]] is not in a comment so it is not linked. // [[Carol]] is not in a wikitext comment so it is not linked. It is in a CSS/JavaScript comment so it would have been linked with lang="CSS" or lang="JavaScript"
- PrimeHunter (talk) 11:27, 24 September 2024 (UTC)
@PrimeHunter I'm not seeing any links in that example. Is there some preference that might be overriding it? --Ahecht (TALKNever mind, refreshing the page made the link show up. Must've been a glitch. --Ahecht (TALK
PAGE) 14:58, 25 September 2024 (UTC)
PAGE) 15:04, 25 September 2024 (UTC)
- Example made with
- Links are only applied within text detected by the syntax highlighter as comments (
Word count template for sections, similar to Template:Section sizes
Do we have anything that shows word count in an article by section, similar to how Template:Section sizes shows size by byte for each section? If not, wouldn't this be helpful? Bogazicili (talk) 18:37, 25 September 2024 (UTC)
Mobile view center-aligns table header cells where they are left-aligned in desktop view
I'm unsure if this issue is known: I've reported it on Template_talk:Infobox_nutritional_value#Centre-aligned_labels_on_mobile_view_appear_haphazard and wondered if there should be a more general solution. Or is the different alignment intentional? Thanks, cmɢʟee⎆τaʟκ 14:43, 24 September 2024 (UTC)
- Most (if not all) browsers will centre-align table header cells by default: if left-alignment is desired, it needs to be explicitly stated. --Redrose64 🌹 (talk) 17:24, 24 September 2024 (UTC)
- Thanks, @Redrose64: What baffles me is why Desktop view left-aligns them in Template:Infobox_nutritional_value but Mobile view centre-aligns them. Any clue? cmɢʟee⎆τaʟκ 23:54, 24 September 2024 (UTC)
- I left a comment on the template talk page earlier about that. Izno (talk) 00:14, 25 September 2024 (UTC)
- For desktop view, MediaWiki:Common.css has this rule: The table header cells concerned match the first and third selectors here, so the declaration is applied to these cells. I don't think that Common.css is loaded in mobile view, so this rule is not applied. --Redrose64 🌹 (talk) 07:29, 25 September 2024 (UTC)
.infobox-label, .infobox-data, /* Remove element selector when every .infobox thing is using the standard module/templates */ .infobox th, .infobox td { /* @noflip */ text-align: left; }
- Thanks for explaining, @Izno: and @Redrose64: I'll leave it as is and await a solution then. Cheers, cmɢʟee⎆τaʟκ 19:21, 25 September 2024 (UTC)
- Thanks, @Redrose64: What baffles me is why Desktop view left-aligns them in Template:Infobox_nutritional_value but Mobile view centre-aligns them. Any clue? cmɢʟee⎆τaʟκ 23:54, 24 September 2024 (UTC)
¬
The latest run of Special:WantedCategories features another cluster of template-autogenerated nonsense, resulting from something that was done around {{WikiProject U.S. Roads}} within the past couple of days, rating articles for the importance level of "¬". Obviously that's not a real thing we actually expect to have, and this results from a coding or spelling error somewhere, but as that template imports things from an outside module I can't find the error to fix it as it isn't in the primary template itself. So could somebody look into making the following redlinked nonsense categories go away?
- Category:¬-importance Road transport articles
- Category:¬-importance Massachusetts road transport articles
- Category:¬-importance New York road transport articles
- Category:¬-importance Pennsylvania road transport articles
- Category:¬-importance Connecticut road transport articles
- Category:¬-importance Iowa road transport articles
- Category:¬-importance Kansas road transport articles
- Category:¬-importance Maine road transport articles
- Category:¬-importance Minnesota road transport articles
- Category:¬-importance Missouri road transport articles
- Category:¬-importance New Hampshire road transport articles
- Category:¬-importance New Jersey road transport articles
- Category:¬-importance Oklahoma road transport articles
- Category:¬-importance Rhode Island road transport articles
- Category:¬-importance Texas road transport articles
- Category:¬-importance Wyoming road transport articles
- Category:¬-importance Delaware road transport articles
- Category:¬-importance Maryland road transport articles
Thanks muchly. Bearcat (talk) 18:32, 25 September 2024 (UTC)
- @Bearcat: At the moment, this isn't a VPT matter, because a group of people are presently working on WikiProject banners as a group. For instance, MSGJ (talk · contribs) has edited Template:WikiProject U.S. Roads only yesterday. You could send this somewhere like Module talk:WikiProject banner, perhaps. --Redrose64 🌹 (talk) 19:21, 25 September 2024 (UTC)
- That should be fixed now — Martin (MSGJ · talk) 21:07, 25 September 2024 (UTC)
Weird change to mobile
For some reason, all clickable links that used to be gray have now become blue like normal links. This includes section links and the thank button, among other things. It also makes short descriptions blue when using the search feature. They are all still the correct color on the desktop version. Is this intentional, and if not, can it please be fixed? Thanks, QuicoleJR (talk) 20:46, 26 September 2024 (UTC)
- It also affects the notification when redirected to a different page, which is now hard to read because it is blue (or purple after clicked) on a black background. QuicoleJR (talk) 20:50, 26 September 2024 (UTC)
- @Jon (WMF). Izno (talk) 21:11, 26 September 2024 (UTC)
- +1 Mach61 23:56, 26 September 2024 (UTC)
- Confirming this new Thursday styling negatively affects UX legibility. Folly Mox (talk) 00:05, 27 September 2024 (UTC)
- We're aware of a few issues which seem to cover the situations you describe above:
- Let me know if there are any issues not covered by the bugs above. If so, please be specific and at minimum include URLs and description of area, and steps you followed. If you can please provide a screenshot (you can use phabricator upload if needed).
- We are looking to get these fixed next week. Jon (WMF) (talk) 00:35, 27 September 2024 (UTC)
Do we have a bot to populate a category based on the same category in another wiki?
I've just created Category:Polish archivists, which is well developed at pl:Kategoria:Polscy archiwiści. I am sure some entries from the pl category have entries here on en already. Do we have a both that could populate our category based on what is on pl? Doing this kind of stuff manually is a chore I no longer enjoy, I am afraid. Piotr Konieczny aka Prokonsul Piotrus| reply here 04:48, 24 September 2024 (UTC)
- @Piotrus I think this could be straightforward for a bot to accomplish when both categories are single level, i.e only articles, but not when there are child categogies. If there are subcategories, then it's not trivial and a bot could be disruptive. Imagine if we could add Category:Archivists from Poland (Q7604592) to an article subject, and it would populate specific language editions under certain conditions. I am holding out for wikidata improvements to address this. Ironically this convo will get archived by a bot later ;) ~ 🦝 Shushugah (he/him • talk) 11:18, 27 September 2024 (UTC)
- @Shushugah Fair point, I understand how subcategories could be messy. For now, however, a simple category copy of articles without dealing with subcategories would be much appreciated. Piotr Konieczny aka Prokonsul Piotrus| reply here 14:21, 27 September 2024 (UTC)
'Wikidata item' link is moving. Find out where...
Hello everyone, a small change will soon be coming to the user-interface of your Wikimedia project. The Wikidata item sitelink currently found under the General section of the Tools sidebar menu will move into the In Other Projects section.
We would like the Wiki communities feedback so please let us know or ask questions on the Discussion page before we enable the change which can take place October 4 2024, circa 15:00 UTC+2.
More information can be found on the project page.
We welcome your feedback and questions.
MediaWiki message delivery (talk) 18:57, 27 September 2024 (UTC)
- @Danny Benjafield, in the future, try to avoid color, or use one of the Codex tokens directly (with a fallback). Thanks! Izno (talk) 19:59, 27 September 2024 (UTC)
DMCA template for templates?
There is a maintenance category Category:Wikipedia articles with colour accessibility problems containing articles that have the templates {{overcolored}} or {{overcoloured}}. The maintenance category appears to have been created by including the {{DMCA}} template in the definition of {{overcoloured}}.
However, multiple templates also have this template, for example, {{Transport in Mexico City}}. The maintenance category does not seem to include templates. (Note: I recently added the {{overcoloured}} template to that template, but have since visited Special:Purge to purge both {{Transport in Mexico City}} and Category:Wikipedia articles with colour accessibility problems. Despite this purge, {{Transport in Mexico City}} does not appear on Category:Wikipedia articles with colour accessibility problems. So it seems that {{DMCA}} is specific to articles. There also does not seem to be an existing {{DMCT}} template to allow {{overcoloured}} to create Category:Wikipedia templates with colour accessibility problems.
Is this a Phabricator feature request that I need to file? Or is there somewhere else I need to request this?
Credit to Remsense for suggesting creating the Wikipedia templates with colour accessibility problems category.
Thisisnotatest (talk) 08:27, 27 September 2024 (UTC)
- I've raised a similar situation at Template:Unreferenced. This is because the templates use Template:Ambox. Creating an exact duplicate template just so other namespaces can be categorized is a horrible idea. Instead, the system behind categorization at the base level should be changed. The template shouldn't care which namespace it is placed on for categorization. Gonnym (talk) 09:53, 27 September 2024 (UTC)
- Some categories are intended for articles only, thus {{Dated maintenance category (articles)}} (abbreviated {{DMCA}}). A category named Category:Wikipedia articles with colour accessibility problems is probably of this type. A category that can contain any kind of page would probably begin with "Wikipedia pages" instead (e.g. Category:Wikipedia pages with colour accessibility problems).There are a few variations for other cases, such as {{Dated maintenance category (files, articles, categories, and templates)}}, as well as {{Dated maintenance category}} ({{DMC}}) that doesn't do any namespace checks. The last can be used along with templates like {{Main other}}, {{Namespace detect}}, and similar templates if you need something more complex, for example if you really want Category:Wikipedia templates with colour accessibility problems, Category:Wikipedia categories with colour accessibility problems, and so on. Anomie⚔ 11:25, 27 September 2024 (UTC)
- @Anomie: Aha! So the capability already exists! So what I need to do is update the talk page of {{overcoloured}} to suggest replacing the use of {{DMCA}} with {{DMC}} or {{DMCFACT}} since I believe we would want to track all or most overcolored situations, not just those occurring on articles, and attempt to get consensus on that change to the template. Thank you! Considering this matter solved. Thisisnotatest (talk) 20:01, 27 September 2024 (UTC)
- Some categories are intended for articles only, thus {{Dated maintenance category (articles)}} (abbreviated {{DMCA}}). A category named Category:Wikipedia articles with colour accessibility problems is probably of this type. A category that can contain any kind of page would probably begin with "Wikipedia pages" instead (e.g. Category:Wikipedia pages with colour accessibility problems).There are a few variations for other cases, such as {{Dated maintenance category (files, articles, categories, and templates)}}, as well as {{Dated maintenance category}} ({{DMC}}) that doesn't do any namespace checks. The last can be used along with templates like {{Main other}}, {{Namespace detect}}, and similar templates if you need something more complex, for example if you really want Category:Wikipedia templates with colour accessibility problems, Category:Wikipedia categories with colour accessibility problems, and so on. Anomie⚔ 11:25, 27 September 2024 (UTC)
- when I saw DMCA... I was thinking what has led to people filing DMCA requests on Templates here. – robertsky (talk) 14:27, 27 September 2024 (UTC)
- @Thisisnotatest: If something is wrongly categorised, and there is a possibility that the cat is due to the effects of a template, a purge won't help because it doesn't update the link tables. A WP:NULLEDIT is the thing to try. --Redrose64 🌹 (talk) 17:23, 27 September 2024 (UTC)
Edit filter when Wikipedia is cited
Do we have an edit filter that warns people who enter Wikipedia as a citation? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:36, 28 September 2024 (UTC)
Cite This Page boilerplate
How can Special:CiteThisPage be updated? Is a Phabricator ticket required? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:50, 28 September 2024 (UTC)
- Administrators can edit MediaWiki:Citethispage-content. You can make edit requests on the talk page. PrimeHunter (talk) 13:03, 28 September 2024 (UTC)
categories
What happened to the categories at the bottom of articles on the mobile version of the site? You finally added them, then they disappeared for a while, then they came back, then they disappeared for good and that was years ago. Please bring them back and keep them there, there is no reason to not have them there and it is extremely inconvenient 2603:7080:8140:8A60:14E:FF29:2359:5592 (talk) 12:42, 28 September 2024 (UTC)
- Categories are not displayed in the mobile version. Mobile users can click "Desktop" at the bottom of a page to see the desktop version with categories. Registered users can enable Advanced mode which includes a "Categories" button. PrimeHunter (talk) 13:08, 28 September 2024 (UTC)
- I added that to Help:Categories in 2021 [37] but it appears the categories are now displayed all the time in advanced mode. PrimeHunter (talk) 13:14, 28 September 2024 (UTC)
Two separate notices when editing an old revision of an article?
Have we always had two separate notices when editing an old revision of an article? If so, why? If not, what was changed and when? ElKevbo (talk) 23:07, 26 September 2024 (UTC)
- See other pic. — xaosflux Talk 00:34, 27 September 2024 (UTC)
- The first box shows MediaWiki:Revision-info which is also shown when the revision is viewed. We have customized it. The MediaWiki default at MediaWiki:Revision-info/qqx is much shorter. The second box shows MediaWiki:Editingold. The MediaWiki default MediaWiki:Editingold/qqx is a little shorter. The defaults have no overlap in content. PrimeHunter (talk) 10:32, 27 September 2024 (UTC)
- Thanks for the quick and helpful replies! I must have seen these so many times that they don't even register with me anymore.
- The two notices do seem to be duplicative but this is not a hill I'm going to die on. Cheers! ElKevbo (talk) 14:02, 28 September 2024 (UTC)
Talk pages and me not getting along
If I open a new topic on a talk (such as I have just done here) the software won't let me abandon it. It wants me to finish it. Like, suppose right now I decided "enh this isn't right venue" and left the page discarding my work (or wishing to). Well if I come back to this page tomorrow, it won't let me start a new thread, or edit an existing thread, or even read the page. Nope. It's like "You started a thread yesterday. I'll take you there now! FINISH IT AND POST IT chum and then we can talk about what I'll allow you do to next."
Mind you this is after I have clicked the "OK" on "Leave this page? Your work will be lost" box (that is generated by Firefox not Wikipedia). There it is again when I come back. I can erase the text, but can't entirely erase the title ("You can't have a blank title!") nor delete the thread. I suppose if I were to drop dead it would start harassing my estate to finish the post, I don't know.
This is no good. Can this be fixed? Is there a workaround? Fixing would better as that'd mean future editors would not have to climb the draperies. Thanks. Herostratus (talk) 17:34, 28 September 2024 (UTC)
- Click on cancel instead of emptying the contents. Sjoerd de Bruin (talk) 20:36, 28 September 2024 (UTC)
- Oof did not see that, and its right there. My bad. Sorry to bother, and thanks for the tip. Herostratus (talk) 20:52, 28 September 2024 (UTC)
Preview problem
Monobook, Edge, Win11. Navigation popups gadget. When I point my mouse at Jon Anderson, instead of the expected preview I see }}. DuncanHill (talk) 01:18, 28 September 2024 (UTC)
- FWIW it seems to be related to when the infobox is complicated with a module loading another box in the first infobox. Probably just beyond popups' ability to render that deep. — xaosflux Talk 10:12, 28 September 2024 (UTC)
- With
window.popupPreviewFirstParOnly = false;
in the browser console I see}}
and below it the opening paragraph. Popups apparently misreads the complicated infobox as an opening paragraph only containing}}
.{{
and}}
are correctly balanced in the article. PrimeHunter (talk) 11:56, 28 September 2024 (UTC) - Page previews tool displays the preview correctly. You may consider using that. – Ammarpad (talk) 06:54, 29 September 2024 (UTC)
A heading beginning with a wiki comment removes MediaWiki interface "edit" buttons for that section
Demonstrated at testwiki:Sandbox/Section edit button. Notice 2 out of 6 sections have their "edit source" or "edit" buttons missing deliberately, when a section heading text is prepended with a wiki comment (see the page source). A wiki comment after a heading on the same line works, however.
I had to make an edit Special:Diff/1248413109 here at en.wiki to workaround this MediaWiki behavior, to restore said interface button. The lack of edit interface buttons in sections can be misinterpreted confusingly as a page being protected, particularly as an unregistered user.
Is this intentional MediaWiki behavior? I didn't file or search for a bug at Phabricator, I don't have an account. 84.250.15.152 (talk) 11:26, 29 September 2024 (UTC)
- Known bad syntax MOS:SECTIONCOMMENT. Gonnym (talk) 11:41, 29 September 2024 (UTC)
Dark mode when logged out of Wikipedia
When logged out, in dark mode, at {{Soulfly}}, the actual link for Soulfly is an extremely dark grey that is difficult to see on a black background. It was not this way before. Does anyone know how to fix this? --Jax 0677 (talk) 15:47, 5 September 2024 (UTC)
- See the notes and linked pages from when you recently asked about this: Wikipedia:Village_pump_(technical)/Archive_214#Dark_Mode_Text. — xaosflux Talk 15:56, 5 September 2024 (UTC)
- Thanks, I assume that we will have to wait our turn.
- The issue is fixed when I am actually LOGGED IN, but not fixed when I am logged OUT. --Jax 0677 (talk) 16:11, 5 September 2024 (UTC)
- I made this edit yesterday to improve display of self links in navboxes. I will try to fix this fully today since this specific navbox keeps coming up. Izno (talk) 16:10, 5 September 2024 (UTC)
- This should be fixed for this template. Izno (talk) 17:37, 5 September 2024 (UTC)
Building a simple body index calculator
Having a discussion at this talk page to build a calculator using waist circumference and height as an index for body "roundness", which is based on eccentricity and used for anthropometric assessment in health research, first reported here.
A draft exists. Adjustments are needed to provide both metric and imperial inputs, and two decimal points, and any gadget assuring simplicity for public use. The completed calculator will be presented in the article. A commercial example is on this site.
Would be grateful for ideas and solutions. Thanks. Zefr (talk) 20:03, 25 September 2024 (UTC)
Bold solution: a zero input interface, no waist, no height to input, yet still provide the desired BRI: a table with waist left to right, height top to bottom, BRI in cells.
waist 1 | waist 2 | waist ... | |
---|---|---|---|
height 1 | bri w1/h1 | bri w2/h1 | ... |
height 2 | bri w1/h2 | bri w2/h2 | ... |
... | ... | ... | ... |
Uwappa (talk) 20:20, 25 September 2024 (UTC)
- Uwappa - thanks, although it isn't clear why 2 entries for waist and height are used, and the eccentricity factor is missing. Could you input data and show the result here? Also needed is the side-by-side display of metric and imperial results in 2 decimal places. See an example here (uses Wikipedia login to the medical wiki). Zefr (talk) 01:28, 26 September 2024 (UTC)
- The table was based on your "using waist circumference and height as an index for body "roundness", with waist and height being the two inputs and roundess the output.
- You will have far more than 2 entries for both waist and height, hence the three dots.
- The MDwiki asks for weight and height, not waist and height. Never mind, the idea is still the same: no input, do all computing in advance. No threshold, no effort required from readers. I've used your link to create the numbers for the example below, which will hopefully suffice to give you an idea for a similar table with waist and height as input.
- An additional idea: take it one step further and answer the question that will be in the readers mind: Am I healthy?
- Colour code the background, from green for healthy, via yellow to red for dangerous. A reader could look at the row close to own height and see multiple questions answered:
- Is my weight/waist in green, yellow or red?
- If yellow or red, what is the green value I should aim for?
- Colour codes below are not based on real data, just an example.
80 kg 90 kg ... kg 180 cm 24.7 kg/m2 27.8 kg/m2 ... 175 cm 26.1 kg/m2 29.4 kg/m2 ... ... cm ... ... ...
- An even bolder proposal that will probably rock your boat, but anyway, based on your metric/imperial question: Keep the calculator for the medics and target the general audience while on Wikipedia. Boldly omit the numbers in the cells and show both metrics and imperial in row and column headers. The table will still answer the question in the readers mind: what waist/weight is healthy for me, given my height?
80 kg 90 kg ... kg 175 lbs 200 lbs ... lbs 180 cm 6 feet 175 cm ... feet ... cm ... feet
- That might even allow to use both weight AND waist in the column headers and answer two questions: given my height, what weight and waist is healthy? — Preceding unsigned comment added by Uwappa (talk • contribs) 06:49, 26 September 2024 (UTC)
- I am reinventing the wheel. Please look at . You could do all the computations behind it and create a similar chart for BRI. Uwappa (talk) 07:24, 26 September 2024 (UTC)
- This conversation, if it is not over, should probably move to Wikipedia talk:WikiProject Medicine. It does not appear to be a technical issue. – Jonesey95 (talk) 14:18, 26 September 2024 (UTC)
- I was trying to make that photo vector, but Ive gotten bored, maybe ill finish when I get around to it Anthony2106 (talk) 13:45, 28 September 2024 (UTC)
- I've created one: cmɢʟee⎆τaʟκ 17:34, 29 September 2024 (UTC)
- This conversation, if it is not over, should probably move to Wikipedia talk:WikiProject Medicine. It does not appear to be a technical issue. – Jonesey95 (talk) 14:18, 26 September 2024 (UTC)
Italic title doesn't work on Mickey Maguire (Shameless), DISPLAYTITLE does
This version of Mickey Maguire (Shameless) uses {{italic title}}, and complains about no matching string. I couldn't find any invisible characters, so I'm out of ideas. Paradoctor (talk) 18:24, 29 September 2024 (UTC)
- {{italic title}} omits italics in parentheses, also when
|string=
is used. I think it should be changed but that's how it works now. {{Italic disambiguation}} can be used for your purpose without parameters. PrimeHunter (talk) 20:13, 29 September 2024 (UTC)- Alternatively, changing the page title to the more general disambiguation of "character" removes the need for italics in the title. Izno (talk) 20:28, 29 September 2024 (UTC)
- D'oh! I just realized that I should've used
|all=yes
. - Of course, {{italic disambiguation}} is easier, so I'll use that. Thanks. Paradoctor (talk) 20:45, 29 September 2024 (UTC)
Related changes broken?
"Related changes" seems to be broken. I usually view CAT:RFU using RelatedChanges, like this. I'm only getting the current day's changes. This is new as of today. --jpgordon𝄢𝄆𝄐𝄇 18:12, 29 September 2024 (UTC)
- I see entries since 22 September. The top right has a box saying "500 changes, 7 days" for me. Do you have such a box, what does it say and can you change it? PrimeHunter (talk) 20:22, 29 September 2024 (UTC)
- It appears to have resolved itself. --jpgordon𝄢𝄆𝄐𝄇 14:50, 30 September 2024 (UTC)
Quarry down?
Hello, Tech aficianados,
I know that this area technically isn't in Wikipedia's realm of control but I was just wondering if anyone knew why Quarry was down. I can't get any of my regular pages to even load. And, unfortunately, Phab isn't accepting the password I typically use and I don't want to reset it until the end of the day so I can't file a bug report. But I did a search and I can't see that anyone else has filed a ticket either.
The message I get is a logo for Wikimedia Cloud Services and then:
- Error
- This web service cannot be reached. Please contact a maintainer of this project.
- Maintainers can find troubleshooting instructions from our documentation on Wikitech.
I tried to find a discussion page at MediaWiki but was unsuccessful. Any clues? If the cloud services are down, it seems like it would be affecting other aspects of this project but I'm just running into problems with Quarry. Thank you. Liz Read! Talk! 22:48, 29 September 2024 (UTC)
- @Taavi: could this be related to the changes from phab:T361471? – 2804:F14:80A0:C01:CAC:C72A:E92:375B (talk) 01:05, 30 September 2024 (UTC)
- Thanks for supplying this. But it's from months ago so I'm not sure if it is relevant for today's problem. Quarry gets a lot of use though so I'm surprised there isn't an open ticket. But I appreciate you looking for one that is related. Liz Read! Talk! 02:58, 30 September 2024 (UTC)
- The change they did to fix this issue was applied on the 25th of this month, that's why I thought it might be related. At any rate Taavi is the one who made that fix, so he would know for certain - and probably can offer some information about the current problem too. – 2804:F1...92:375B (talk) 03:43, 30 September 2024 (UTC)
- I finally got the right password and filed a ticket. No response yet. Liz Read! Talk! 05:24, 30 September 2024 (UTC)
- The change they did to fix this issue was applied on the 25th of this month, that's why I thought it might be related. At any rate Taavi is the one who made that fix, so he would know for certain - and probably can offer some information about the current problem too. – 2804:F1...92:375B (talk) 03:43, 30 September 2024 (UTC)
- Most likely unrelated. Taavi (talk!) 07:55, 30 September 2024 (UTC)
- Thanks for supplying this. But it's from months ago so I'm not sure if it is relevant for today's problem. Quarry gets a lot of use though so I'm surprised there isn't an open ticket. But I appreciate you looking for one that is related. Liz Read! Talk! 02:58, 30 September 2024 (UTC)
- Should be back up and running, not sure yet why it failed, investigating in phab:T375997. DCaro (WMF) (talk) 08:03, 30 September 2024 (UTC)
- Thanks for checking on this, Taavi and DCaro (WMF). Liz Read! Talk! 21:27, 30 September 2024 (UTC)
NewUsers now blue-linking everyone’s contribs pages
iOS Safari browser: NewUsers seems to have recently had a change so that all users’ contribs pages are blue-linked, whether they’ve made an edit or not. I foresee this increasing UAA reports that get a Wait until the user edits. response. Is there a way to get around this? MM (Give me info.) (Victories) 14:45, 28 September 2024 (UTC)
- Can you be more specific about the page you are referring to? the user creation log doesn't seem to be doing this in a couple of different views I tried. — xaosflux Talk 15:05, 28 September 2024 (UTC)
- Okay, for example.
- 16:22, 28 September 2024 User account Karen8907 talk contribs was created
- ’contribs’ used to be red, if the user had made no edits. Now they are all blue, whether there’s an edit or not. Does that make more sense?
- I have ‘advanced mode’ on. Is that likely to be anything to do with it? MM (Give me info.) (Victories) 15:24, 28 September 2024 (UTC)
- When logged out, at mobile view, I only see blue contribs links; at desktop view most are red. So "advanced mode" (whatever this is) is not a factor. --Redrose64 🌹 (talk) 16:02, 28 September 2024 (UTC)
- If the user has no edits then the contribs link has the class
mw-usertoollinks-contribs-no-edits
in both desktop (tested in Vector legacy) and mobile, but only desktop has this CSS: .mw-usertoollinks-contribs-no-edits { color: #ba0000; }
- You can add the following to your CSS to get red links in all skins assuming they add the class:
.mw-usertoollinks-contribs-no-edits { color: #ba0000 !important; }
- PrimeHunter (talk) 16:36, 28 September 2024 (UTC)
- Code’s done the trick. BigThank, Prime. MM (Give me info.) (Victories) 16:57, 28 September 2024 (UTC)
- WMF recently changed link colors on Minerva and I suspect this is another casualty (or was a delta that always existed and shouldn't have). @Jon (WMF) Izno (talk) 16:48, 28 September 2024 (UTC)
- Just as a heads up, my skin is Vector (2022), not MinervaNeue. MM (Give me info.) (Victories) 16:59, 28 September 2024 (UTC)
- You linked the mobile site above and claimed to be on iOS. You cannot today select a skin for mobile website: you are always on Minerva. Izno (talk) 17:08, 28 September 2024 (UTC)
- It was xaosflux who linked mobile but MM is probably there. "Advanced mode" is a feature of the mobile version at https://en.m.wikipedia.org/wiki/Special:MobileOptions. Mobile devices usually pick the mobile version by default regardless of your skin. You can switch at "Desktop" or "Mobile view" at the bottom of pages. If it says "Desktop" then you are currently on mobile, also called Minerva. PrimeHunter (talk) 17:15, 28 September 2024 (UTC)
- You linked the mobile site above and claimed to be on iOS. You cannot today select a skin for mobile website: you are always on Minerva. Izno (talk) 17:08, 28 September 2024 (UTC)
- Yeah, they really need to fix all those new link bugs. QuicoleJR (talk) 13:23, 29 September 2024 (UTC)
- Just as a heads up, my skin is Vector (2022), not MinervaNeue. MM (Give me info.) (Victories) 16:59, 28 September 2024 (UTC)
And indeed, the CSS that should be activating is
.mw-usertoollinks-contribs-no-edits {
color: var(--color-destructive,#d73333);
}
And which is instead being overridden by
a:not([role="button"]):not(.minerva__tab-text) {
color: var(--color-progressive,#36c);
border-radius: 2px;
text-decoration: none;
}
likely due to specificity, since :not()
adds to the specificity. Izno (talk) 17:11, 28 September 2024 (UTC)
- @Izno You are correct, those styles were the cause of this issue.
We've updated those styles last Friday and we'll be deploying the fix this week. EDIT: I spoke too soon, that update did not fix the issue. I've captured this in a Pabricator task: [Minerva] Users lists show blue "contribs" link for users with no contributions and we're working on a fix. JDrewniak (WMF) (talk) 22:04, 30 September 2024 (UTC)
Tech News: 2024-40
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Updates for editors
- Readers of 42 more wikis can now use Dark Mode. If the option is not yet available for logged-out users of your wiki, this is likely because many templates do not yet display well in Dark Mode. Please use the night-mode-checker tool if you are interested in helping to reduce the number of issues. The recommendations page provides guidance on this. Dark Mode is enabled on additional wikis once per month.
- Editors using the 2010 wikitext editor as their default can access features from the 2017 wikitext editor by adding
?veaction=editsource
to the URL. If you would like to enable the 2017 wikitext editor as your default, it can be set in your preferences. [38] - For logged-out readers using the Vector 2022 skin, the "donate" link has been moved from a collapsible menu next to the content area into a more prominent top menu, next to "Create an account". This restores the link to the level of prominence it had in the Vector 2010 skin. Learn more about the changes related to donor experiences. [39]
- The CampaignEvents extension provides tools for organizers to more easily manage events, communicate with participants, and promote their events on the wikis. The extension has been enabled on Arabic Wikipedia, Igbo Wikipedia, Swahili Wikipedia, and Meta-Wiki. Chinese Wikipedia has decided to enable the extension, and discussions on the extension are in progress on Spanish Wikipedia and on Wikidata. To learn how to enable the extension on your wiki, you can visit the CampaignEvents page on Meta-Wiki.
- View all 22 community-submitted tasks that were resolved last week.
Updates for technical contributors
- Developers with an account on Wikitech-wiki should check if any action is required for their accounts. The wiki is being changed to use the single-user-login (SUL) system, and other configuration changes. This change will help reduce the overall complexity for the weekly software updates across all our wikis.
In depth
- The server switch was completed successfully last week with a read-only time of only 2 minutes 46 seconds. This periodic process makes sure that engineers can switch data centers and keep all of the wikis available for readers, even if there are major technical issues. It also gives engineers a chance to do maintenance and upgrades on systems that normally run 24 hours a day, and often helps to reveal weaknesses in the infrastructure. The process involves dozens of software services and hundreds of hardware servers, and requires multiple teams working together. Work over the past few years has reduced the time from 17 minutes down to 2–3 minutes. [40]
Meetings and events
- October 4–6: WikiIndaba Conference's Hackathon in Johannesburg, South Africa
- November 4–6: MediaWiki Users and Developers Conference Fall 2024 in Vienna, Austria
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 22:16, 30 September 2024 (UTC)
Issue I'm having with Calendar template.
Hello, so I recently made {{Calendar}} dark mode compatible. However, when calling calendar directly, I get dark text which doesn't work with dark mode. But when calling "Calendar/table", it does work. I can't figure out why. Anyone got any ideas why?
With calendar
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
With calendar/table
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Thanks, —Matrix(!) {user - talk? - uselesscontributions} 16:56, 1 October 2024 (UTC)
- Fixed in Special:Diff/1248831925. HTML elements with "background" in the CSS code get overridden text color. So either the "background" properties need to be removed (like in {{Calendar}}), or
color: var(--color-base, #202122)
added (example). —andrybak (talk) 18:20, 1 October 2024 (UTC)- Thank you! —Matrix(!) {user - talk? -
uselesscontributions} 19:09, 1 October 2024 (UTC)
- Thank you! —Matrix(!) {user - talk? -
Something wrong with my profile
Since yesterday I seem to have lost the option to delete. As far as I can see, nothing has changed in terms of my rights or preferences, but I no longer see "Delete" as an option on the drop-down menu. This is only affecting me on English Wikipedia. On cy I still have the same rights as yesterday and can see the same options - but I'm using the same skin on both so I don't understand why this has happened. Any thoughts? Deb (talk) 15:21, 1 October 2024 (UTC)
- You are probably only missing the link. If you get a delete form at https://en.wikipedia.org/wiki/User:Deb/sandbox?action=delete then you can still delete. There are different drop-down menus depending on preferences. What is your skin, what is your drop-down menu called, and do you have a delete option on "Tools" at https://en.wikipedia.org/wiki/User:Deb/sandbox?safemode=1&useskin=vector-2022? PrimeHunter (talk) 16:58, 1 October 2024 (UTC)
- Thanks, you're right. That seems even weirder. I can't see any difference in my preferences between en and cy. Using the default 2022 skin. Deb (talk) 17:05, 1 October 2024 (UTC)
- I asked three questions. PrimeHunter (talk) 18:45, 1 October 2024 (UTC)
- Thanks. Whatever you did seems to have worked. Deb (talk) 19:14, 1 October 2024 (UTC)
- I asked three questions. PrimeHunter (talk) 18:45, 1 October 2024 (UTC)
- Thanks, you're right. That seems even weirder. I can't see any difference in my preferences between en and cy. Using the default 2022 skin. Deb (talk) 17:05, 1 October 2024 (UTC)
Thoughts on Docbunto?
I encountered a powerful autodoc tool on Fandom Dev Wiki called Docbunto, and I have been able to get some changes to make it work on Test Wikipedia. I think it would be very great to have an autodoc tool like Docbunto on Wikipedia to help speed up the process of writing module documentation. But the key feature I like is the ability to transclude templates and similar on Lua pages.
I don't think it is ready for English Wikipedia yet but maybe with a few changes it can be very feature rich and ready. Yeah we are not exactly a code repository, but we do have thousands of modules used across articles that would be helpful to have auto documentation for. Awesome Aasim 18:21, 17 September 2024 (UTC)
- Wiktionary uses something similar. See wikt:Module:module documentation.
But the key feature I like is the ability to transclude templates and similar on Lua pages.
As for this, we can already do this on this wiki: Module:Module wikitext. – SD0001 (talk) 20:15, 17 September 2024 (UTC)- Another improvement we can do over wiktionary is take advantage of line numbers now being linkable. Ideally, the generated docs of exported functions should include links to their source code definitions. – SD0001 (talk) 20:18, 17 September 2024 (UTC)
As for this, we can already do this on this wiki: Module:Module wikitext.
That is very bodgy, and it doesn't entirely make sense to me how this works or why this should work. But then, an autodoc module rendering module comments is also very bodgy, although less bodgy because reading out comments to parse from the module is less likely to break than reading out variables from the documentation module after setting them in "addText". Module comments should be taken advantage of in the parser. I did open a task (and submit my first patch to MediaWiki to complete it) for having MediaWiki only parse the contents of CSS and JS comments, see phab:T373834 (and kindly do please send more feedback on how I can improve that patch!) Awesome Aasim 00:21, 18 September 2024 (UTC)
- Another improvement we can do over wiktionary is take advantage of line numbers now being linkable. Ideally, the generated docs of exported functions should include links to their source code definitions. – SD0001 (talk) 20:18, 17 September 2024 (UTC)
- We considered generating documentation from LuaDoc when creating Scribunto, but we decided not to for the same reasons most documentation pages here are on /doc subpages instead of being inline in the template page: inlined docs can't be protected separately from the module/template and any edit to inlined docs means any pages using the module/template have to be reparsed. Anomie⚔ 23:50, 17 September 2024 (UTC)
- I'd figure. I think of this inline doc as a good starting point for most Lua modules but ultimately there should be additional documentation that goes beyond the default functions and describes what the module exactly does. Awesome Aasim 23:53, 17 September 2024 (UTC)
- Yeah, being able to edit documentation without going through edit requests would be nice, even though so would be autogenerating doc sections for functions. Nardog (talk) 01:20, 18 September 2024 (UTC)
- Automated cat herding is not going to work at Wikipedia. Imagine forcing every module to have comments in a fixed format with extra gunk to be machine parsable. Johnuniq (talk) 02:27, 18 September 2024 (UTC)
- It is really bad practice to not put comments in code. Autodoc obviously won't work if there aren't any properly formatted comments. The goal of autodoc is to document functions and variables and more importantly module exports. Even functions in use by other modules. It never is intended to replace the module documentation page at the top of each; just supplement it. Awesome Aasim 03:05, 18 September 2024 (UTC)
- Yes, useful comments are great. What I meant was, it would be very difficult to get independent editors to use a fixed format. Also, I don't think documenting all functions and variables is achievable or even desirable, for example, due to the inevitable drift between hopeful comments and actual code. I do agree that exports should be documented and I once argued strongly that a module (I forget where now) should not have every function exported due to ensuing confusion and maintenance issues. I lost that argument. Johnuniq (talk) 03:34, 18 September 2024 (UTC)
- There is a few related stuff I can think of.
- Automatically making a list of variables is actually easy. The hard part is getting arguments in loops. See is:Module:Templatedata fyrir skriftu, which can create basic templatedata (containing only a list of variables) with the code {{#invoke:Templatedata fyrir skriftu|main|''name of module with namespace''}}.
- There is also an request to WMF at meta:Community_Wishlist/Wishes/Document_ALL_the_modules! about this same subject.
- Come to think of it some of doc.wikimedia.org is actually built on similar logic to docbunto. Snævar (talk) 19:08, 19 September 2024 (UTC)
- Why not both? If there's comments in code formatted in a certain way, show them in /doc, but also allow overriding or appending to it without having to edit the module directly. Nardog (talk) 03:37, 18 September 2024 (UTC)
- +1. I do think having both is useful. We can provide an end user overview at the top of the module documentation page, and a developer's overview in the autodoc. Something similar to how I implemented autodoc on testwiki:Module:Docbunto and testwiki:Module:i18n. There should be some sort of disclaimer that the documentation is auto generated and the contents can be overridden. Awesome Aasim 14:42, 18 September 2024 (UTC)
- I did a little bit more work on the module (not really any), and I am wondering if the module can be imported from testwiki to English Wikipedia? We may have to update some of the attribution links to point to Fandom users, but not much else. Awesome Aasim 01:23, 25 September 2024 (UTC)
- You are the only contributor on testwiki. Just copy it. Looks like you've modified Module:Documentation on testwiki to make it automatically show the generated docs. It may be more intuitive to not do that and instead have /doc subpages call the autodoc module (the way it's set up on wiktionary), enabling the automatic and manually written docs to co-exist, making it clearer where the autodoc came from, avoiding the weirdness of a [create] button in the documentation header showing up even when the documentation seemingly exists, etc. – SD0001 (talk) 04:13, 25 September 2024 (UTC)
- But the first edit at testwiki includes an edit summary with a link to the source. That should be retained. The subsequent edits may as well also be retained in the history here. I'm still dubious about whether automatic documentation can be helpful at Wikipedia but having it here would allow live demos. Johnuniq (talk) 05:37, 25 September 2024 (UTC)
- Problem: That module is at testwiki which does not appear as an option at Special:Import. Only test2wiki is available (it was added in February 2013 when Scribunto appeared here). An alternative would be for Awesome Aasim to duplicate the first edit here, with its edit summary, then make another edit to include the current version. Johnuniq (talk) 05:58, 25 September 2024 (UTC)
- Yeah and there are other problems that mean it won't be ready for use right away. See testwiki:Module:Documentation's autodoc, for example.
- I still managed to get it onto English Wikipedia so that we can all work together to make it robust. I actually see why the original i18n module was deleted, while the one on Fandom and on other Wikimedia projects was not: it was too simple.
- I think it will require some sort of consensus to turn this on by default, but at least we have something to start. Awesome Aasim 07:00, 25 September 2024 (UTC)
- Problem: That module is at testwiki which does not appear as an option at Special:Import. Only test2wiki is available (it was added in February 2013 when Scribunto appeared here). An alternative would be for Awesome Aasim to duplicate the first edit here, with its edit summary, then make another edit to include the current version. Johnuniq (talk) 05:58, 25 September 2024 (UTC)
- But the first edit at testwiki includes an edit summary with a link to the source. That should be retained. The subsequent edits may as well also be retained in the history here. I'm still dubious about whether automatic documentation can be helpful at Wikipedia but having it here would allow live demos. Johnuniq (talk) 05:37, 25 September 2024 (UTC)
- You are the only contributor on testwiki. Just copy it. Looks like you've modified Module:Documentation on testwiki to make it automatically show the generated docs. It may be more intuitive to not do that and instead have /doc subpages call the autodoc module (the way it's set up on wiktionary), enabling the automatic and manually written docs to co-exist, making it clearer where the autodoc came from, avoiding the weirdness of a [create] button in the documentation header showing up even when the documentation seemingly exists, etc. – SD0001 (talk) 04:13, 25 September 2024 (UTC)
- I did a little bit more work on the module (not really any), and I am wondering if the module can be imported from testwiki to English Wikipedia? We may have to update some of the attribution links to point to Fandom users, but not much else. Awesome Aasim 01:23, 25 September 2024 (UTC)
- +1. I do think having both is useful. We can provide an end user overview at the top of the module documentation page, and a developer's overview in the autodoc. Something similar to how I implemented autodoc on testwiki:Module:Docbunto and testwiki:Module:i18n. There should be some sort of disclaimer that the documentation is auto generated and the contents can be overridden. Awesome Aasim 14:42, 18 September 2024 (UTC)
- It is really bad practice to not put comments in code. Autodoc obviously won't work if there aren't any properly formatted comments. The goal of autodoc is to document functions and variables and more importantly module exports. Even functions in use by other modules. It never is intended to replace the module documentation page at the top of each; just supplement it. Awesome Aasim 03:05, 18 September 2024 (UTC)
- Automated cat herding is not going to work at Wikipedia. Imagine forcing every module to have comments in a fixed format with extra gunk to be machine parsable. Johnuniq (talk) 02:27, 18 September 2024 (UTC)
So I have a question. The docbunto module I have has an option to "preface" the automatic documentation (the section between the header and the documentation of each function) with some content. Could that content potentially be the stuff transcluded on the "/doc" page? Or would it be better to not have mixing, so that the manual documentation is not overridden with the automatic documentation? Awesome Aasim 04:02, 2 October 2024 (UTC)
This page needs refereeing, as it has been frequently edited recently in the wake of Helene, with most of the edits being less than constructive or even outright vandalism. I've made several unsuccessful attempts to ask for increased protection. I may have been trying to use an outdated request portal, but for whatever reason the info I've supplied on the form won't "take". -- HelpMyUnbelief (talk) 20:18, 30 September 2024 (UTC)
- What's the portal/form? Nardog (talk) 20:22, 30 September 2024 (UTC)
- I had followed a link from a Google search result, but unfortunately I don't remember for sure exactly how I phrased my query. The best I can recall, it was "request page protection site:en.wikipedia.org"; this directed me just now to Wikipedia:Requests for page protection/Increase/Form, which worked fine. I'm willing to mark the problem down as "self-corrected". :-) — HelpMyUnbelief (talk) 04:55, 2 October 2024 (UTC)
Preview box
The yellow box that says This is only a preview; your changes have not yet been saved!
when you preview your edit doesn't seem to be showing up for me. Instead, the message is just shown in plain text under the "Preview" header, which makes it seem like it is part of the actual text. Was this an intentional change? The box appears normally when signed out. InfiniteNexus (talk) 18:52, 28 September 2024 (UTC)
- Works for me What is your skin and browser? --Redrose64 🌹 (talk) 20:26, 28 September 2024 (UTC)
- Vector 2010 on Chrome. But I get the same result when I try switching to Vector 2022 and Firefox. InfiniteNexus (talk) 06:46, 29 September 2024 (UTC)
- Are you using the non-default live preview feature? If so there is a fix on the current train (I do not have the bug handy). 🐸 Jdlrobson (talk) 18:42, 1 October 2024 (UTC)
- I'm not sure what exactly you're referring to, but I think I've identified the issue. When I uncheck "Show preview without reloading the page" in Special:Preferences, the box appears as normal. Turn it back on, and the box disappears. InfiniteNexus (talk) 07:22, 2 October 2024 (UTC)
- Are you using the non-default live preview feature? If so there is a fix on the current train (I do not have the bug handy). 🐸 Jdlrobson (talk) 18:42, 1 October 2024 (UTC)
- Vector 2010 on Chrome. But I get the same result when I try switching to Vector 2022 and Firefox. InfiniteNexus (talk) 06:46, 29 September 2024 (UTC)
Substitution issue
I developed the {{Happy Adminship/year}} subtemplate to read pages like Wikipedia:Birthday Committee/Calendar/October/2 and return the year someone became an admin if it's listed. (This, in turn, can be used at {{Happy Adminship}} to automatically provide the anniversary number.) It works (preview {{Happy Adminship/year}}
at User talk:JHunterJ), except when substituted, which is unfortunately the way I need it to work since Happy Adminship is meant to be substed. Would anyone be able to identify what issue is causing the substitution to fail? Sdkb talk 09:04, 2 October 2024 (UTC)
- subst doesn't make transclusions in the target page unless they have subst there. Wikipedia:Birthday Committee/Calendar/October/2 contains
{{u|JHunterJ}} (2007)
. When used on User talk:JHunterJ you tried to match onJHunterJ]] (2007)
which would be in the result after transclusion of {{u}}. I have instead matched directly onJHunterJ}} (2007)
.[41] If you want it to work for both transclusion and substitution then you can match on both]]
and}}
. Comments are included by subst so I noincluded the comment. PrimeHunter (talk) 11:54, 2 October 2024 (UTC)- Thanks! I spent way too long trying to figure that out, and would've spent a lot longer without your help! Sdkb talk 15:38, 2 October 2024 (UTC)
Turning on the Calculator gadget as default
As a continuation of this discussion Wikipedia:Village_pump_(technical)/Archive_215#New_gadget_for_doing_user_entered_calculations, I would like to see this gadget turned on by default for pages in the Category:Pages using gadget Calculator. Any concerns? Doc James (talk · contribs · email) 18:32, 26 September 2024 (UTC)
- See this in action on an article using this special url: https://en.wikipedia.org/wiki/Body_roundness_index?withgadget=calculator — xaosflux Talk 20:01, 26 September 2024 (UTC)
- Some feedback:
- As currently written this won't work in the official Wikipedia mobile apps or for anyone with JavaScript disabled or an older browser. This needs better fallback behaviour in my opinion before being enabled. [1] FWIW viewing it without the gadget I thought the page was broken and went to edit it.
- It seems to print NaN if I enter a waist figure but no height - this seems like a basic error that should be fixed.
- Switching between metric and imperial loses the form values - this doesn't seem like a very good user experience.
- Perhaps there should be a clearer way to report bugs and some more context explaining it - that might be a case of simply adding a caption.
- Hope this is helpful.
- [1] Note that anything that uses a template gadget will not work for anyone consuming our content outside English Wikipedia so that's something to bear in mind e.g. Wikiwand, apps, Google etc.. . At minimum I think this should provide some error message saying "This interactive element is not supported by your device." 🐸 Jdlrobson (talk) 00:44, 27 September 2024 (UTC)
- Excellent points Jdlrobson. Will work on building some of these. Doc James (talk · contribs · email) 02:49, 27 September 2024 (UTC)
- Most of that is already supported by the gadget, but needed some small changes to the specific wikipage template to work. [42]. Bawolff (talk) 03:41, 27 September 2024 (UTC)
- User:Jdlrobson does this address your concerns? Doc James (talk · contribs · email) 03:49, 27 September 2024 (UTC)
- A few more thoughts - again hope this is helpful!
- When I disable JavaScript the box is empty - there is no message explaining I am not seeing something. Is that intentional? screenshot.
- I looks like when tabbing through the page, you tab through the widget form as well. This makes it harder to tab to the actual readable content. You could add a tabindex=-1 to remove it from the tab order or make sure editors know to mark the lead paragraph before the infobox (this is not a problem on mobile where the lead paragraph gets moved as a workaround for this very big issue).
- I'm not a designer (FWIW I think this would benefit from some design input) but, in this case, I feel like a call to action button here that loads the widget would be more effective e.g. "Learn what your own body roundness index is!" that when clicked loaded the form. I imagine such a call to action could be generalized in a template which has information on how to load itself. This would also reduce the amount of bytes we add to the page as you could load the code on demand.
- Getting back to your original question about making this default: I do think you might have an easier time if you could ground this decision in data. I think (at least initially) it would be a good idea to instrument this using the statsv increment interface to get an idea of usage and confirm your hypothesis that users will interact with such widgets on a page - counting page views and some kind of interaction (e.g. typing a number in one of the boxes) and comparing the two values. If enabling this gadget was conditional on that data:
- what would success look like? 10% of people who read the page interact? 1%? 0.1%?
- Under what circumstances would you consider it a failure?
- I think too often we (Wikipedia) enable default experiences via gadgets without inspecting our own biases about what is useful and what isn't and framing it in this way may provide a model for success in future experiments and existing features.
- Best of luck! 🐸 Jdlrobson (talk) 02:05, 1 October 2024 (UTC)
- Yes, the box being empty is intentional. Users can add custom fallback text at the template level, but the initial thought was that this is an enhancement to the article but not core content. Its unlikely a user on the app or without javascript is going to change just to view the calculator, so better to just have nothing if we can't show the calculator. In regards to tabbing, I would be concerned that disabling tabbing might have a negative impact on accessibility. Statistics is probably a good idea. I'm a bit nervous though that statsv is being deprecated and its a bit unclear what is happening here medium term (phab:T355837), however presumably there will be some replacement and possibly it will be transparent (for reference, mostly for myself as it was hard to find, i think mw:Gadget kitchen: recording metrics is the appropriate doc) [Edit: Also the rules around what data collection is acceptable are a bit ambiguous. I guess here we would want to track if a user interacted with the gadget on a specific page] Bawolff (talk) 05:02, 1 October 2024 (UTC)
- We certainly have a lower bar for default gadgets that are also using category triggers than ones that are not. Default is really the only way to bring category triggered gadgets to readers. We don't have that many yet, so currently don't hide them allowing for opt-out. — xaosflux Talk 15:39, 2 October 2024 (UTC)
- A few more thoughts - again hope this is helpful!
- User:Jdlrobson does this address your concerns? Doc James (talk · contribs · email) 03:49, 27 September 2024 (UTC)
- Some feedback:
- I noticed that on Firefox (version 130, x64 Linux) the width of the number inputs doesn't seem to account for the stepper arrows, causing e.g. a three-digit height (metric) on Body roundness index to be cut off on all desktop skins except Timeless. Rummskartoffel 09:14, 29 September 2024 (UTC)
- Will take a look when I have a machine I can run Firefox on... Doc James (talk · contribs · email) 14:35, 29 September 2024 (UTC)
- The fact that it differs between skins suggests to me it might be related to which font is used. Bawolff (talk) 20:31, 29 September 2024 (UTC)
- After looking more carefully, it seems like the difference is that timeless uses 15px font vs vector using 13.3px font. This adjusts the size of the input box to be different, but on firefox it appears that the number selector is a more constant size regardless of font (vs chrome where the selector only appears on hover). Bawolff (talk) 03:04, 30 September 2024 (UTC)
Embedded anchors in tables
I've noticed that it's possible to use links to the individual entries at WP:RSP, e.g. WP:RSP#Alexa Internet, even though there's no normal embedded anchor. I'm guessing this has to do with the id="Alexa Internet"
line. I'd like to add similar functionality to {{NRHP row}}, so that it'll be possible to link directly to an entry without its own article. Would the way to do this be to add an id="{{{name|}}}"
line to the template? Is there anything else I should be aware of with this? Sdkb talk 04:30, 2 October 2024 (UTC)
- @Sdkb: See Template:Anchor#Use in tables (paragraph beginning
If it is necessary for an anchor to be in any of these positions
) for examples of theid=
attribute in tables. Please note that the value of anid=
attribute must be unique within the document. This means thatid="{{{name|}}}"
is potentially invalid, since if you use{{NRHP row}}
more than once (a highly likely situation), and two or more of them have no|name=
parameter, you will end up with two different instances ofid=""
. Try something like{{#if:{{{name|}}}|id="{{{name|}}}"}}
to prevent empty ids. --Redrose64 🌹 (talk) 09:33, 2 October 2024 (UTC)- https://html.spec.whatwg.org/multipage/dom.html#global-attributes says: "When specified on HTML elements, the id attribute value must be unique amongst all the IDs in the element's tree and must contain at least one character. The value must not contain any ASCII whitespace." ASCII whitespace includes a normal space but I would ignore this rule. It means some features cannot reference the id but if it's only intended for links then it shouldn't be a problem. I would be surprised if any browser refuses to jump to an id which breaks the rule. The issue can be avoided by placing id inside the content of a cell which doesn't count as a HTML element. But links work better if id is in the row declaration like WP:RSP and many other tables where we break the rule. This ensures the browser jumps to the top of the row. If id is at the start of cell content with vertical centering then the browser may jump to the start of the displayed content in that cell, and the top of the row may not be visible. PrimeHunter (talk) 11:22, 2 October 2024 (UTC)
- Not sure what you mean by the content of a cell doesn't count as an HTML element. Table cells are either
<td>
or<th>
HTML elements. isaacl (talk) 16:49, 2 October 2024 (UTC)- I was thinking of
<td>something with id="foo bar"</td>
, but you need something to apply the id to and if you do<td><span id="foo bar"></span></td>
then it's just another HTML element so my comment was probably wrong or irrelevant. PrimeHunter (talk) 19:55, 2 October 2024 (UTC)
- I was thinking of
- @PrimeHunter: Whilst the HTML spec does say that, the MediaWiki software replaces any spaces in the
id=
value with underscores before the page is served (see also Template talk:Anchor#Underscores with substitution). It does something similar with the URL fragment, which is why a link to https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Embedded%20anchors%20in%20tables works. --Redrose64 🌹 (talk) 18:54, 2 October 2024 (UTC)- Thanks for the info. PrimeHunter (talk) 19:55, 2 October 2024 (UTC)
- Not sure what you mean by the content of a cell doesn't count as an HTML element. Table cells are either
- Note also that it is possible for multiple NRHP rows (in the same page) to have the same name, which would also result in duplicate ids. I'm virtually certain such a situation exists somewhere in the several thousand NRHP list pages. (It is less likely that the name field in a row is in fact blank.) A more likely candidate to use for an anchor id would be the refnum, which should be unique across all of the rows in a given page. Magic♪piano 18:31, 2 October 2024 (UTC)
- https://html.spec.whatwg.org/multipage/dom.html#global-attributes says: "When specified on HTML elements, the id attribute value must be unique amongst all the IDs in the element's tree and must contain at least one character. The value must not contain any ASCII whitespace." ASCII whitespace includes a normal space but I would ignore this rule. It means some features cannot reference the id but if it's only intended for links then it shouldn't be a problem. I would be surprised if any browser refuses to jump to an id which breaks the rule. The issue can be avoided by placing id inside the content of a cell which doesn't count as a HTML element. But links work better if id is in the row declaration like WP:RSP and many other tables where we break the rule. This ensures the browser jumps to the top of the row. If id is at the start of cell content with vertical centering then the browser may jump to the start of the displayed content in that cell, and the top of the row may not be visible. PrimeHunter (talk) 11:22, 2 October 2024 (UTC)
Automatic citation generation isn't working?
Is it just me or has automatic citation generation often not been working for the past couple of days? E.g. I just tried adding a citation to https://x.com/fbirol/status/1727552771715395655 and got the dreaded " We couldn't make a citation for you. Try another source or create one manually using the "Manual" tab above" message. But when I add the same source to Zotero and then export a Wikipedia citation from Zotero, Zotero creates a well-formatted wikitext citation. The same thing is happening with citations to the New York Times. What makes this more odd is that I can't duplicate the problem if I try to cite a source that is already used on the page. Clayoquot (talk | contribs) 17:55, 2 October 2024 (UTC)
- This is an ongoing issue. Near as we can tell there's a number of popular sources that wind up blocking our citation-generation service. Probably automatically, based on rate limiting when enough people have requested citations within a short enough time window.
- There's an umbrella ticket for this: T362379: Several major news websites (NYT, NPR, Reuters...) block citoid. DLynch (WMF) (talk) 19:21, 2 October 2024 (UTC)
- Good to know. Thanks! Clayoquot (talk | contribs) 19:56, 2 October 2024 (UTC)
Village pump permalinks?
Is there a way to provide a permalink to Village pump topics which will survive the topic being archived? Thisisnotatest (talk) 00:14, 28 September 2024 (UTC)
- Permalinks always survive archiving, as they are links to a specific revision, for example this this is the permalink to the revision prior to my response. — xaosflux Talk 00:24, 28 September 2024 (UTC)
- This question actually calls out one of the problems with organization of talk pages and any other kind of page that effectively tries to track multiple topics on a single page, particularly when they are used for the purpose of "cases" which have their own individual "lives". When you get a permalink, that lets you view the state of the page at some point in time. So if you get a permalink for such a page at some instant in time, you can see the case of interest at that point in time. You can link forward to the following version of that page, but there may have been no change to the case you're interested in. You might need to go through large numbers of versions for which the case you're interested in hasn't change. To find it just before it got migrated to an archive could have involved hundreds of versions. Of course, you can check the archive, but there could have been versions where content which was added but subsequently deleted, so you wind up having to look at numerous versions that did not affect the topic you're interested in. This is just an inherent limitation of the way that talk pages are managed. — Preceding unsigned comment added by Fabrickator (talk • contribs) 00:42, 28 September 2024 (UTC)<diff>
- Confirmed. I'm looking for a link which will always link to the current state of the topic without regard to whether the topic has been archived or had subsequent updates. Thisisnotatest (talk) 02:45, 28 September 2024 (UTC)
- @Thisisnotatest: It is presently in place, but relies on several factors. First, people must always make links to the thread using normal Wikilinks (i.e.
[[Wikipedia:Village pump (technical)#Village pump permalinks?]]
) and not external links (i.e.[https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Village_pump_permalinks%3F]
), regardless of the page where those links are made. Second, the VP page must be set up for archiving by ClueBot III (talk · contribs) (this is the case for WP:VPM and WP:VPW but not for VPI, VPP, VPR or VPT which all use lowercase sigmabot III). Third, other forms of archiving (whether manual, script or bot) must not be used on the VP page. If all of these are observed, ClueBot III will fix inward links to threads as and when they are archived, see for example these edits. --Redrose64 🌹 (talk) 10:02, 28 September 2024 (UTC)- @Redrose64: Thank you! Thisisnotatest (talk) 23:06, 28 September 2024 (UTC)
- @Thisisnotatest: It is presently in place, but relies on several factors. First, people must always make links to the thread using normal Wikilinks (i.e.
- Confirmed. I'm looking for a link which will always link to the current state of the topic without regard to whether the topic has been archived or had subsequent updates. Thisisnotatest (talk) 02:45, 28 September 2024 (UTC)
- This question actually calls out one of the problems with organization of talk pages and any other kind of page that effectively tries to track multiple topics on a single page, particularly when they are used for the purpose of "cases" which have their own individual "lives". When you get a permalink, that lets you view the state of the page at some point in time. So if you get a permalink for such a page at some instant in time, you can see the case of interest at that point in time. You can link forward to the following version of that page, but there may have been no change to the case you're interested in. You might need to go through large numbers of versions for which the case you're interested in hasn't change. To find it just before it got migrated to an archive could have involved hundreds of versions. Of course, you can check the archive, but there could have been versions where content which was added but subsequently deleted, so you wind up having to look at numerous versions that did not affect the topic you're interested in. This is just an inherent limitation of the way that talk pages are managed. — Preceding unsigned comment added by Fabrickator (talk • contribs) 00:42, 28 September 2024 (UTC)<diff>
- If you click on the timestamp for any comment, such as the first comment in a section, a link to that comment will be copied to the clipboard. When in future this section is archived, then when the link is followed, MediaWiki will display a popup message, with a link to the new location of the comment in the archive. See mw:Help:DiscussionTools § Talk pages permalinking for more details. (If you would like the link in wikitext format rather than an URL, you can try my user script to copy comment links to the clipboard to save you the work of adjusting the URL.) isaacl (talk) 05:02, 28 September 2024 (UTC)
- @Isaacl: Thank you, that's perfect, especially as I would ususally be linking to my first comment. Thisisnotatest (talk) 06:04, 28 September 2024 (UTC)
- Keep in mind, those such links are much more fragile than actual permalinks. — xaosflux Talk 09:50, 28 September 2024 (UTC)
- It's a tradeoff. A link to an actual page version won't get affected by subsequent edits, while the new talk page comment permalink feature relies on the content not being deleted without being moved, and the relevant signatures not being modified, to gain the benefit of linking to a specific comment with later responses also being shown. isaacl (talk) 17:24, 28 September 2024 (UTC)
- Not much more fragile, and there's the very useful benefit over linking to the revision of being able to see the responses.
- It's actually possible to make a permalink to a comment that doesn't rely on the "visit the page and see the popup banner if the topic has been archived" behavior: the pages Special:FindComment and Special:GoToComment exist and facilitate this. E.g. this is a link to this topic that will always immediately redirect to wherever it currently lives.
- (@Isaacl if you wanted to use these in your above-mentioned script, feel free -- they should be stable. You just need the ID from the fragment of the link you copy via the timestamp.) DLynch (WMF) (talk) 19:35, 2 October 2024 (UTC)
- Thanks for the info! I'll give it some thought. On the one hand, I like having the original page name in the link, so those who can see the link by hovering will get a quick preview of where the link is going. On the other hand, skipping the popup banner is great for getting right to where you want to go. isaacl (talk) 21:09, 2 October 2024 (UTC)
- I've updated my script to generate a Special:GoToComment permalink and copy it to the clipboard. I'm actually retrieving the IDs from the
<span>
elements with a data-mw-comment-start attribute. There is a<span data-mw-comment-start id="...">...</span>
element nested within the<h2>
element for the heading; is this something intended to provide permalinks to section headers? It seems to work with the Special:GoToComment page. isaacl (talk) 22:03, 2 October 2024 (UTC)- Yeah, if you're already looking at the data in the DOM then you might as well use the header ID. It's slightly less reliable, because it doesn't include the username of the person who posted it, so it's technically more possible to have a collision where the exact same heading is posted at the exact same moment on multiple pages.
- The main practical difference for you might be aesthetic -- the highlight when you follow the link winding up on the heading versus on the entire first comment. DLynch (WMF) (talk) 22:28, 2 October 2024 (UTC)
- So far I've used either the link to an individual comment, or the link to the header using the table of contents ID (which my script also provides a quick way to copy in wikilink format). I didn't really know what to make of the ID that I asked you about. Thanks for the info about it! isaacl (talk) 22:54, 2 October 2024 (UTC)
- Keep in mind, those such links are much more fragile than actual permalinks. — xaosflux Talk 09:50, 28 September 2024 (UTC)
- @Isaacl: Thank you, that's perfect, especially as I would ususally be linking to my first comment. Thisisnotatest (talk) 06:04, 28 September 2024 (UTC)
Making this script a gadget on enwiki
I worked on this script years ago and it seems as if it has reached a mostly stable state. The script removes the "action=edit" from redlinks which essentially prevents the editor from auto-loading when clicking on non-existent pages that one has permission to create. I think this should be available as a gadget to allow for more configuration. Something like: Do not immediately enter editing mode when clicking on a red link.
Thoughts? Awesome Aasim 15:29, 24 September 2024 (UTC)
- It's hard to see why anyone would want it, even setting aside the fact it goes through every link on the page every tenth of a second. Nardog (talk) 12:45, 25 September 2024 (UTC)
- Not sure if the numbers at Wikipedia:User scripts/List are current, but if so it doesn't look like it has been picked up by many so far, so I don't expect many would opt-in. In general, we want people following a redlink to start a page. — xaosflux Talk 13:07, 25 September 2024 (UTC)
- Yeah, I am aware. This is so that it picks up links in VE previews, etc. Awesome Aasim 14:12, 25 September 2024 (UTC)
- @Awesome Aasim I haven't done much scripting around VE, but it seems like there should be a way to add an event listener to things like the VE preview window and only have it run when the content changes. --Ahecht (TALK
PAGE) 14:52, 25 September 2024 (UTC)- Hmm... I am not sure... maybe someone more experienced with scripts knows... Awesome Aasim 05:55, 26 September 2024 (UTC)
- You wouldn't even need that; you can just attach an onclick listener to "a.new" elements and modify the href to remove &action=edit as they're being clicked, even if they've been dynamically added after page load. Writ Keeper ⚇♔ 06:13, 26 September 2024 (UTC)
- Oh! Let me try this. One second. Awesome Aasim 06:13, 26 September 2024 (UTC)
- Actually, I change my mind. Doing this would cause stuff like "open link in new tab" to not function correctly. I do hope there is something smarter. Awesome Aasim 06:15, 26 September 2024 (UTC)
- No, it works with new tabs just as well as anything else: The URL modification happens before the click, so if you CTRL+click or whatever to open a new tab, it gets the modified URL. Writ Keeper ⚇♔ 06:22, 26 September 2024 (UTC)
$("#mw-content-text").on("click","a.new", function(event){ $(this).attr("href", $(this).attr("href").replace("&action=edit", "")); })
- What about links that are not in mw-content-text? For example, tabs and navbars? Awesome Aasim 06:24, 26 September 2024 (UTC)
- I'm not sure why you would have redlinks outside of mw-content-text, but if that were a concern, you'd just choose a node higher up than #mw-content-text. Writ Keeper ⚇♔ 06:25, 26 September 2024 (UTC)
- If a subject page has no talk page, the talk page tab appears as a redlink; similarly, if a talk page has no subject page, the subject page tab appears as a redlink. These tabs are outside mw-content-text. --Redrose64 🌹 (talk) 16:28, 26 September 2024 (UTC)
- I'm not sure why you would have redlinks outside of mw-content-text, but if that were a concern, you'd just choose a node higher up than #mw-content-text. Writ Keeper ⚇♔ 06:25, 26 September 2024 (UTC)
- What about links that are not in mw-content-text? For example, tabs and navbars? Awesome Aasim 06:24, 26 September 2024 (UTC)
- No, it works with new tabs just as well as anything else:
- Actually, I change my mind. Doing this would cause stuff like "open link in new tab" to not function correctly. I do hope there is something smarter. Awesome Aasim 06:15, 26 September 2024 (UTC)
- Oh! Let me try this. One second. Awesome Aasim 06:13, 26 September 2024 (UTC)
- You wouldn't even need that; you can just attach an onclick listener to "a.new" elements and modify the href to remove &action=edit as they're being clicked, even if they've been dynamically added after page load. Writ Keeper ⚇♔ 06:13, 26 September 2024 (UTC)
- Hmm... I am not sure... maybe someone more experienced with scripts knows... Awesome Aasim 05:55, 26 September 2024 (UTC)
- @Awesome Aasim I haven't done much scripting around VE, but it seems like there should be a way to add an event listener to things like the VE preview window and only have it run when the content changes. --Ahecht (TALK
- Yeah, I am aware. This is so that it picks up links in VE previews, etc. Awesome Aasim 14:12, 25 September 2024 (UTC)
I am taking a look at the requirements at WP:GADGET and it seems to meet all of them:
Gadgets must work if just included with no further configuration.
: This script requires no configuration at all.Gadgets must be compatible with all major browsers, i.e., they must not terminate with errors.
: Just checked. Works in both Chromium and Firefox based browsers.Gadgets should be functional in most major browsers (cross-browser compatibility). Exceptions must be clearly stated.
: It is. The script works on most not all browsers. It uses the URL library which is supported by practically everyone.Duplication of gadgets should only be made if it is reasonable.
: This does not apply.Collections of scripts should be split if they have disparate functions.
: This does not apply.Gadgets requiring permissions must be marked and must fail gracefully if the permissions aren't present.
: This requires no permissions at all as it only affects the behavior of red links.Gadgets only working in some skins must be marked as such if that data is available.
: Irrelevant as it works on all skins, not just Vector and Timeless.
I don't see any requirement that the script needs to see widespread usage. I am not seeking to have this turned on by default at all. Those that want it can enable it in preferences. Awesome Aasim 18:42, 29 September 2024 (UTC)
- Consider this: either it's bug reports before you turn it on or it's bug reports after. Are you planning to fix them at all? Then we just have an unmaintained gadget instead. Izno (talk) 19:31, 29 September 2024 (UTC)
- The last verified bug report I received was about interwiki links being broken by my script. That was fixed thanks to work by Matma Rex which I then implemented right after. The one after that complains that "action=delete" links are being removed, which does not sound right because this only touches red links. Not enough information was given for me to figure out where this was happening.
- There definitely is some room for optimizations, especially since having three instructions on one line is... not ideal. But those are formatting and style fixes, not functionality fixes. Awesome Aasim 19:52, 29 September 2024 (UTC)
- I mean, personally, I wouldn't support adding a gadget that runs a javascript function ten times a second on every page on the wiki, especially for such a minor change. Writ Keeper ⚇♔ 12:57, 2 October 2024 (UTC)
- I kind of see the issue as well. The trouble is either it is run once and then it never works for when other stuff adds red links, or it is continuously updated. There is probably a way to execute this function as soon as the DOM is changed, without resorting to a thread set by setInterval. Awesome Aasim 13:02, 2 October 2024 (UTC)
- MutationObserver sounds like what you want. Anomie⚔ 23:30, 2 October 2024 (UTC)
- I kind of see the issue as well. The trouble is either it is run once and then it never works for when other stuff adds red links, or it is continuously updated. There is probably a way to execute this function as soon as the DOM is changed, without resorting to a thread set by setInterval. Awesome Aasim 13:02, 2 October 2024 (UTC)
- I mean, personally, I wouldn't support adding a gadget that runs a javascript function ten times a second on every page on the wiki, especially for such a minor change. Writ Keeper ⚇♔ 12:57, 2 October 2024 (UTC)
- What problem does this solve? What is the problem people have with red links leading to the creation form? Nardog (talk) 13:41, 2 October 2024 (UTC)
- Not everyone wants every red link to open the editor. What this would do is it would give people the option to avoid opening the editor when clicking on a red link. I do not think this should be enabled by default, but I do think it should be an option. Awesome Aasim 15:23, 2 October 2024 (UTC)
Can someone not a maintainer read a file on toolforge?
ChristieBot (which maintains GAN) is crashing, and I'm not going to be at a computer where I can get to toolforge till Sunday. This is particularly frustrating because there is a GAN backlog drive going on at the moment, and until this is fixed no updates to the GAN page can take place. The problem is probably caused by a malformed template on a GAN page (at least that's usually been the cause of unexplained errors in the past), but I've no way to see the error file on toolforge. I don't know if toolforge files are visible to people who are not maintainers, but if anyone here has access, please take a look at the log file christiebot-gan.err in tool ganfilter and email me or post here the last fifty or so lines. I'm hoping there will be an error message indicating what page it was working on when the crash occurred. It's likely that the crash is due to an uncaught exception as I'm not a very experienced Python coder, but with luck the preceding log messages will help identify the page so it can be cleaned up, which should let the bot run. Thanks for any help. Mike Christie (talk - contribs - library) 03:16, 3 October 2024 (UTC)
- Sure Mike. Hawkeye7 (discuss) 03:29, 3 October 2024 (UTC)
christiebot-gan.err
|
---|
CRITICAL: Exiting due to uncaught exception OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template Sleeping for 9.1 seconds, 2024-10-03 02:40:05 Page [[User talk:ChristieBot/GAN errors]] saved Page [[Talk:Luochahai City]] saved Traceback (most recent call last): File "/data/project/ganfilter/www/python/src/GANbot.py", line 307, in <module> nom.add_a_review(gan_conn) File "/data/project/ganfilter/www/python/src/GA.py", line 882, in add_a_review GAN.notify_error("GANbot: add_a_review","counting reviews", "found prior review for " + str(self.title) + '/' + str(self.page_num) + " by " + str(row['reviewer']), False) File "/data/project/ganfilter/www/python/src/GA.py", line 2284, in notify_error page.save("Reporting an error in " + location) File "/data/project/ganfilter/www/python/venv/lib/python3.11/site-packages/pywikibot/page/_basepage.py", line 1273, in save raise OtherPageSaveError( pywikibot.exceptions.OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template CRITICAL: Exiting due to uncaught exception OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template Sleeping for 9.1 seconds, 2024-10-03 03:00:09 Page [[User talk:ChristieBot/GAN errors]] saved Page [[Talk:Holzwarth gas turbine]] saved Traceback (most recent call last): File "/data/project/ganfilter/www/python/src/GANbot.py", line 307, in <module> nom.add_a_review(gan_conn) File "/data/project/ganfilter/www/python/src/GA.py", line 882, in add_a_review GAN.notify_error("GANbot: add_a_review","counting reviews", "found prior review for " + str(self.title) + '/' + str(self.page_num) + " by " + str(row['reviewer']), False) File "/data/project/ganfilter/www/python/src/GA.py", line 2284, in notify_error page.save("Reporting an error in " + location) File "/data/project/ganfilter/www/python/venv/lib/python3.11/site-packages/pywikibot/page/_basepage.py", line 1273, in save raise OtherPageSaveError( pywikibot.exceptions.OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template CRITICAL: Exiting due to uncaught exception OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template Sleeping for 9.0 seconds, 2024-10-03 03:20:17 Page [[User talk:ChristieBot/GAN errors]] saved Page [[Talk:Holzwarth gas turbine]] saved Traceback (most recent call last): File "/data/project/ganfilter/www/python/src/GANbot.py", line 307, in <module> nom.add_a_review(gan_conn) File "/data/project/ganfilter/www/python/src/GA.py", line 882, in add_a_review GAN.notify_error("GANbot: add_a_review","counting reviews", "found prior review for " + str(self.title) + '/' + str(self.page_num) + " by " + str(row['reviewer']), False) File "/data/project/ganfilter/www/python/src/GA.py", line 2284, in notify_error page.save("Reporting an error in " + location) File "/data/project/ganfilter/www/python/venv/lib/python3.11/site-packages/pywikibot/page/_basepage.py", line 1273, in save raise OtherPageSaveError( pywikibot.exceptions.OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template CRITICAL: Exiting due to uncaught exception OtherPageSaveError: Edit to page [[User talk:ChristieBot/Bug messages]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template |
Hawkeye7 (discuss) 03:29, 3 October 2024 (UTC)
- I can see the problem. I will leave it to you though. Hawkeye7 (discuss) 03:33, 3 October 2024 (UTC)
- Thanks, Hawkeye7; I've fixed the issue, and I really appreciate you posting this so quickly. Mike Christie (talk - contribs - library) 07:23, 3 October 2024 (UTC)
Can't close maps (firefox 130, Windows 10)
Hi everyone, recently I've been having an issue where I can't close fullscreen maps when I click them in articles. Any ideas? I can't click the cross and can't use escape, literally the only way to get back to the article is to refresh it. Tested on firefox safe mode without extensions. It works fine on Chrome. And Also, I can close maps on Wikivoyage, specifically GPX maps, instead of GeoJSON as on Wikipedia. </MarkiPoli> <talk /><cont /> 13:25, 30 September 2024 (UTC)
- I've noticed this occasionally in Chrome as well, but have never found a consistent way to reproduce it. the wub "?!" 11:59, 1 October 2024 (UTC)
- I think I've found it (or one of them at least):
- Click on an image, which launches the Media Viewer
- View the next or previous image by clicking "<" or ">"
- Close the Media Viewer
- Open a map
- You can't close the map
- Nardog (talk) 18:57, 1 October 2024 (UTC)
Which article did you use to do these steps?I was able to reproduce these steps (only on Firefox, *not Chrome) in the article Brooklyn Bridge, I didn't even need the second step. Though the bug only happens if I haven't opened the map and closed it before opening an image. – 2804:F1...ED:16CD (talk) 02:43, 2 October 2024 (UTC) *edited 03:48, 2 October 2024 (UTC)- I've investigated some (I say some because this seems more of an overview of the cause, though I witnessed it happening with the browser's debugger):
- The Media Viewer extension adds a new route handler for what function to call when the page navigates to an empty hash like
//en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#
- Unfortunately the button to close the Kartographer map is an html anchor element (<a>) to an empty hash (#), and expects this function to be called when that navigation to an empty hash happens.
- The Media Viewer extension adds a new route handler for what function to call when the page navigates to an empty hash like
- So, presumably, if the Media Viewer sets its route handler first (when you open an image) then that's what gets called when the Kartographer close button is clicked - and it doesn't close - but if you open the Kartographer map first, it sets it's own handler that closes it properly. – 2804:F1...ED:16CD (talk) 04:10, 2 October 2024 (UTC)
- Hmmmmm, intriguing. However I have sometimes been to a page and not clicked an image at all before I've clicked a map. Could someone create a Phabricator ticket? I haven't used it before. </MarkiPoli> <talk /><cont /> 11:09, 2 October 2024 (UTC)
- I've investigated some (I say some because this seems more of an overview of the cause, though I witnessed it happening with the browser's debugger):
- I think I've found it (or one of them at least):
Pageviews of wiki.phtml
Yesterday's topviews list (1 October 2024) has an unusual item I haven't seen before: with 96,959 views, the 24th-most-viewed page is supposedly wiki.phtml, a page that's apparently never existed. It was the 124th-most-viewed the day before. Wondering what's driving traffic (the Internet Archive has saved the URL a few times over the years) and how views are tracked for a non-existent page. Hameltion (talk | contribs) 22:04, 2 October 2024 (UTC)
- Not an answer as to why it's listed, but instead of for example w/index.php?title=Pete_Rose, you can do w/wiki.phtml?title=Pete_Rose. – 2804:F1...93:F040 (talk) 22:27, 2 October 2024 (UTC)
- It may be irrelevant but as an admin I can see two deleted revisions from July 2004. The first only said
[[Wikipedia:Dewey Decimal System/103|103]]
. The second a minute later added{{delete}}
. The oldest entries at Special:Log/delete are from December 2004. PrimeHunter (talk) 23:18, 2 October 2024 (UTC)- Interesting about now-unlogged deletions ... 2 Oct recorded another 90,551 views yesterday, but massviews based on wikilinks (using the redlink here at
https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)/Archive_215
) sees only 3 views all-time. Can't seem to reproduce any views at all for other redlinks this way, though. Hameltion (talk | contribs) 17:20, 3 October 2024 (UTC)
- Interesting about now-unlogged deletions ... 2 Oct recorded another 90,551 views yesterday, but massviews based on wikilinks (using the redlink here at
- Just sounds like a bot that needs to be told to find something else to hit. Izno (talk) 23:23, 2 October 2024 (UTC)
- Yeah it was the old URL before index.php; see a random example of its use. @PrimeHunter:, it's listed in the first july 2004 deletion log. Graham87 (talk) 01:01, 3 October 2024 (UTC)
- Thanks. I have linked Wikipedia:Historical archive/Logs/Deletion log in MediaWiki:Dellogpagetext which is displayed at Special:Log/delete.[43] PrimeHunter (talk) 01:48, 3 October 2024 (UTC)
- @PrimeHunter: Thanks but sorry, as the person who restored the old deletion logs back in 2016 (see below), I'm not comfortable with that page being linked so prominently (it actually never has been linked in that system message until now). My two main reasons are that (a) the number of people who'll need to make use of it will be vastly lower than the number of people who will misunderstand it and/or try to mess up related links (I have personal experience with this sort of thing from way back in 2007 with a similar situation relating to the old block log ) and (b) the deletion reasons often quoted the original text of the page, meaning that they contain a lot of personal information and general nastiness. The latter point is the reason many of the deletion logs were deleted between 2006 and 2016; it's quite a story how I came to restore them. I'll therefore partially revert your edit to the MediaWiki namespace page, citing this comment. Graham87 (talk) 06:17, 3 October 2024 (UTC)
- As a compromise, I'm going to add a note about the old deletion logs to an interface message that appears when undeleting pages, MediaWiki:Undeletehistory, as you'd only see a list of deleted edits without a deletion log if you're an admin ... and then only for pages deleted on or after 8 June 2004. Graham87 (talk) 06:53, 3 October 2024 (UTC)
- @Graham87: OK. The search box on Wikipedia:Historical archive/Logs/Deletion log fails because the prefix is wrong after page moves. Do you want it fixed or should the search box be removed to make the logs less accessible? PrimeHunter (talk) 11:53, 3 October 2024 (UTC)
- @PrimeHunter: Thanks for pointing that out ... I've fixed it. Graham87 (talk) 12:20, 3 October 2024 (UTC)
- @Graham87: OK. The search box on Wikipedia:Historical archive/Logs/Deletion log fails because the prefix is wrong after page moves. Do you want it fixed or should the search box be removed to make the logs less accessible? PrimeHunter (talk) 11:53, 3 October 2024 (UTC)
- As a compromise, I'm going to add a note about the old deletion logs to an interface message that appears when undeleting pages, MediaWiki:Undeletehistory, as you'd only see a list of deleted edits without a deletion log if you're an admin ... and then only for pages deleted on or after 8 June 2004. Graham87 (talk) 06:53, 3 October 2024 (UTC)
- @PrimeHunter: Thanks but sorry, as the person who restored the old deletion logs back in 2016 (see below), I'm not comfortable with that page being linked so prominently (it actually never has been linked in that system message until now). My two main reasons are that (a) the number of people who'll need to make use of it will be vastly lower than the number of people who will misunderstand it and/or try to mess up related links (I have personal experience with this sort of thing from way back in 2007 with a similar situation relating to the old block log ) and (b) the deletion reasons often quoted the original text of the page, meaning that they contain a lot of personal information and general nastiness. The latter point is the reason many of the deletion logs were deleted between 2006 and 2016; it's quite a story how I came to restore them. I'll therefore partially revert your edit to the MediaWiki namespace page, citing this comment. Graham87 (talk) 06:17, 3 October 2024 (UTC)
- Thanks. I have linked Wikipedia:Historical archive/Logs/Deletion log in MediaWiki:Dellogpagetext which is displayed at Special:Log/delete.[43] PrimeHunter (talk) 01:48, 3 October 2024 (UTC)
- Yeah it was the old URL before index.php; see a random example of its use. @PrimeHunter:, it's listed in the first july 2004 deletion log. Graham87 (talk) 01:01, 3 October 2024 (UTC)
More link appearance issues on mobile
The issues with links that shouldn't be blue being blue are thankfully fixed, but now there is a new problem. All categories, links in talk page banners, and links in maintenance banners are now underlined at all times. This is not the case on the desktop version. Is this intended, or is it another visual bug? Thanks, QuicoleJR (talk) 14:10, 3 October 2024 (UTC)
- I've just seen this, appears to be a new development today. AusLondonder (talk) 17:28, 3 October 2024 (UTC)
- It looks like one aspect of this is covered by phab:T376146. I'll followup with the devs to see if that task covers these other aspects, or if they need separate tasks. Thanks for reporting. Quiddity (WMF) (talk) 17:37, 3 October 2024 (UTC)
Interlang bug
So I'm not going to need a photo for this bug since it's on my user page. When going on my user page, do you see an interlanguage link in French? If so, then click on it and it'll go to a random French bombing article. The issue is that my user page isn't on the wikidata, which is normally how you link languages. I was translating that article, and for some reason it thinks my user page is the article I translated. SirMemeGod 14:34, 3 October 2024 (UTC)
- @Sir MemeGod You had one of the old-style of interlanguage links on your user page. To include a normal link to a page on another language, you have to precede it with a colon i.e. [[:fr:Attentat du 25 juillet 1995 à la gare de Saint-Michel du RER B]]. I fixed it for you. the wub "?!" 14:53, 3 October 2024 (UTC)
- @Sir MemeGod: It's not a bug, it's described at WP:LOCALLINK, and there are times when it's desirable. For example, see the languages list for User:Redrose64 - this is all the Wikis that I have edited over the last fifteen years. If I had added these to Wikidata, the same long list would be shown on my home pages at dozens of other Wikis - but I don't want that, I only want one to be shown - the link back to my homepage here. See for example cy:Defnyddiwr:Redrose64 or fr:Utilisateur:Redrose64. In this way, I prevent people at French Wikipedia looking in vain on German Wikipedia, and trying Wiki after Wiki until they reach the right one. --Redrose64 🌹 (talk) 18:26, 3 October 2024 (UTC)
- Oh, okay. It seemed like a bug to me, but I guess I was wrong. SirMemeGod 18:28, 3 October 2024 (UTC)
Watchlist icon issue on Mobile
Hey, I am facing an issue with mobile editing. I am unable to see the ‘Star’ icon after adding an article to my watchlist. The spot where it used to be is now just a blank white space. When I click there, it works and removes the article from the watchlist, and the star appears. However, when I add the article to the watchlist again, the star disappears. This issue is not occurring on desktops. Can anyone else editing through mobile confirm this? GrabUp - Talk 12:27, 3 October 2024 (UTC)
- I was just going to post a question about this. I would be interested in an answer about the 'invisible' watchlist star. Thanks for posting this @GrabUp:. Knitsey (talk) 17:31, 3 October 2024 (UTC)
- @Knitsey: Also, my notification icon is getting invisible whenever someone like you tags or mentions me. What’s going on, lol? GrabUp - Talk 17:34, 3 October 2024 (UTC)
- I've just noticed that. I was tagged in a post and my icon was red but disappeared after I looked at it, another blank space. Knitsey (talk) 17:37, 3 October 2024 (UTC)
- Correction, when I have a notification, it shows up as white background with slighty off white mumber of notifications. (The red notification has gone). Knitsey (talk) 17:40, 3 October 2024 (UTC)
- Yes, same. GrabUp - Talk 17:44, 3 October 2024 (UTC)
- Correction, when I have a notification, it shows up as white background with slighty off white mumber of notifications. (The red notification has gone). Knitsey (talk) 17:40, 3 October 2024 (UTC)
- I've just noticed that. I was tagged in a post and my icon was red but disappeared after I looked at it, another blank space. Knitsey (talk) 17:37, 3 October 2024 (UTC)
- @Knitsey: Also, my notification icon is getting invisible whenever someone like you tags or mentions me. What’s going on, lol? GrabUp - Talk 17:34, 3 October 2024 (UTC)
- @Jon (WMF) Izno (talk) 17:36, 3 October 2024 (UTC)
- It looks like this is tracked at phab:T376359. Thanks. Quiddity (WMF) (talk) 18:09, 3 October 2024 (UTC)
- New task created (phab:T376414) for the Notification background color bug. Quiddity (WMF) (talk) 18:29, 3 October 2024 (UTC)
Why are the buttons glitched out/distorted
The delete template (while editing an article), wikitext (while viewing a revision) and edit template (while editing an article) buttons are glitched out and/or distorted. How do I fix this?? Susbush (talk) 15:12, 3 October 2024 (UTC)
- I think this is the same problem as T376226, which is being fixed. Matma Rex talk 18:24, 3 October 2024 (UTC)
- Yes it is Susbush (talk) 18:56, 3 October 2024 (UTC)
Some Wayback Machine/Internet Archive links now failing?
I was doing some cleanup on Lockheed Martin shooting and came across an situation that I have never encountered before. The Internet Archive links at least on this article now seem to be failing. When I went to the saved URLs, the content that had been saved in the past came up in passing but then a different link/usurped content? for widgetbox(dot)com came up/took over. Has anyone else come across a similar issue? Is this just The Meridian Star news articles? And hey, for any of the lurkers around here who knows what's what etc, apologies in advance if I've possibly posted this issue in the wrong place, I just couldn't figure out where this might belong. No snark please, I just figured I better ask somewhere around here. - Thanks, Shearonink (talk) 18:02, 29 September 2024 (UTC)
- Shearonink, are you referring to this? — Qwerfjkltalk 19:51, 29 September 2024 (UTC)
- A couple of things happen.
- When I click though the link that you posted above I get a result saying the "page doesn't exist..."
- BUT when I click on Ref #7/"Three years later" in the Lockheed Martin shooting from the Meridian Star ->>https://web.archive.org/web/20120314014942/http://meridianstar.com/local/x681061768/Lockheed-Martin-Three-years-later?keyword=leadpicturestory I get THIS wacky "widgetserver" result-->>>https://web.archive.org/web/20120327105127/http://cdn.widgetserver.com/
- Hope i've explained it...I'm kind of flummoxed by all this. I even tried to do a search for both of the Meridian Star articles at Newspapers.com and also at the paper's website but couldn't get any results. - Shearonink (talk) 22:04, 29 September 2024 (UTC)
- Looks like a widget that the page included forces a redirect for some reason. Anyway I've changed the reference to use an archive from a different date, that doesn't seem to have that issue. --Chris 08:22, 30 September 2024 (UTC)
- Thanks Chris G. I had never seen a redirect like that, basically hidden within a webarchive URL. Seems like a usurpation... I'll remove the dead link template. I was vaguely thinking it had something to do with recent news about the Wayback Machine being sued?... - Shearonink (talk) 14:33, 30 September 2024 (UTC)
- Wayback Machine itself @Shearoninkwas not relevant in the lawsuit. Rather Internet Archive was sued for its book lending program, so completely unrelated. Based on above discussions, rate limits are issue with Google itself. ~ 🦝 Shushugah (he/him • talk) 22:12, 3 October 2024 (UTC)
- Thanks Chris G. I had never seen a redirect like that, basically hidden within a webarchive URL. Seems like a usurpation... I'll remove the dead link template. I was vaguely thinking it had something to do with recent news about the Wayback Machine being sued?... - Shearonink (talk) 14:33, 30 September 2024 (UTC)
- Looks like a widget that the page included forces a redirect for some reason. Anyway I've changed the reference to use an archive from a different date, that doesn't seem to have that issue. --Chris 08:22, 30 September 2024 (UTC)
We need to rethink the extended confirmed user right.
Either have a user right that is given only to trusted people without any additional rights attached to it (and with a matching level of protection) or make extended confirmed be given manually. There are too many people gaming the system to be hateful pricks on editors' user pages or to push a POV on CTOPs. LilianaUwU (talk / contributions) 21:59, 30 September 2024 (UTC)
- That's more of a policy/proposal type question, not a technical one. Izno (talk) 22:01, 30 September 2024 (UTC)
- @LilianaUwU You don't need to have extended confirm to edit someone elses user page. You can do that logged out. Trust me. I know. My user page was vandalized repeatedly before it was semi'd indefinitely. I dream of horses (Hoofprints) (Neigh at me) 22:01, 3 October 2024 (UTC)
- I'm talking about my own user page, which is ECP'd and yet gets gamers all the time. LilianaUwU (talk / contributions) 23:08, 3 October 2024 (UTC)
- There can't be that many of them, according to Wikipedia:User access levels there are only 72,041 extended confirmed users total. Compare that to the 2.38 million autoconfirmed users and it already looks like a pretty severe standard. In terms of the few hateful jerks who game the system... Whatever the system is they're going to game/abuse it, but that doesn't mean why shouldn't try to make their lives harder. On the technical side we could go to one year and 1,000 edits without too much disruption, thats probably enough to keep the jerks at bay. Horse Eye's Back (talk) 22:11, 3 October 2024 (UTC)
Wikisource & HTTP 429
There is an issue with Wikisource and error 429 which could use more technical eyes. Please see this commons discussion and this WS discussion. Thanks for any help or advice you can give. Cremastra (talk) 23:44, 4 October 2024 (UTC)
- Production system errors should be reported via this phabricator form. Has a ticket been opened there yet? — xaosflux Talk 00:00, 5 October 2024 (UTC)
- I don't believe so. A WMF employee said they would file a phabricator task, so we should probably wait so a duplicate doesn't get created by accident. Cremastra (talk) 01:20, 5 October 2024 (UTC)
Template Data report for talk page usage
Adding Template Data to a template makes a parameter usage report available. Here's one for {{cite archive}}: [44] Is there a way to use this on templates that are meant for talk pages? For example, {{Archive}} is used on hundreds of thousands of pages (in the talk namespaces), but its report only shows a couple of uses in the Portal namespace: [45] Rjjiii (talk) 03:21, 5 October 2024 (UTC)
How do title bar colors get into an infobox?
I'm trying to track down where to flag inaccessible colors in an infobox.
For example, the page Oakland Coliseum station has a station infobox in which titles have insufficient contrast with their background. But if I look at the infobox code on that page, I only find the parameter:
style = BART
and no color coding. So apparently the BART style is stored somewhere else. And so it doesn't make sense for me to flag Oakland Coliseum station but rather wherever the BART style is stored. But I have no idea how to track that down. In fact, if I read the {{Infobox station#External_style_template}} documentation, it says that the above code should correspond to an existing {{BART style}} template. But that template doesn't seem to exist.
How do I find the problematic code? Thisisnotatest (talk) 01:34, 5 October 2024 (UTC)
- Module:Adjacent stations/BART? Nardog (talk) 02:16, 5 October 2024 (UTC)
- Thank you! That was worth checking. Unfortunately, that doesn't seem to be it. Of course, if it was it, the documentation for {{Infobox station#External_style_template}} would need to be updated to allow for other sources than {{BART style}}.
- But it isn't. Module:Adjacent stations/BART is using a light blue of #00aeef while the light blue in the Oakland Coliseum station infobox is a light blue of #0099d8.
- So still looking. Thisisnotatest (talk) 02:38, 5 October 2024 (UTC)
- Oops! Just looked at the source code. That does appear to be it. The documentation for that module doesn't mention the infobox header colors. So the documentation for {{Infobox station#External_style_template}} does need to be updated. I'll post on the talk page of both items, as I'm not Lua-savvy nor infobox savvy. Anyway, major thanks! Thisisnotatest (talk) 02:43, 5 October 2024 (UTC)
- For some years now, the maintainers of Template:Infobox station have had a drive away from separate templates for icons, routes, stops, styles, etc. to modules holding all information for a system: Template:BART style (and some others) was deleted soon after the creation of Module:Adjacent stations/BART more than five years ago, see Wikipedia:Templates for discussion/Log/2019 July 16#BART s-line templates. Unfortunately, if you don't know Lua, these modules can be difficult to understand let alone maintain.
- I see that you have posted to Module talk:Adjacent stations/BART, but that page has very few watchers (5, to be exact); fortunately, Mackensen (talk · contribs) is among them. If you have other similar modules with problems, Template talk:Adjacent stations (which is redirected from Module talk:Adjacent stations) would be a much better place, as it has 32 watchers. --Redrose64 🌹 (talk) 10:05, 5 October 2024 (UTC)
- Oops! Just looked at the source code. That does appear to be it. The documentation for that module doesn't mention the infobox header colors. So the documentation for {{Infobox station#External_style_template}} does need to be updated. I'll post on the talk page of both items, as I'm not Lua-savvy nor infobox savvy. Anyway, major thanks! Thisisnotatest (talk) 02:43, 5 October 2024 (UTC)
Diffs and comment-specific links
Not sure if here or the Help desk is the right place... Anyway, I've two questions, please:
- Is there a way (e.g., a tool) to extract diffs without going through the page history?
- When I click on the timestamp of a signature, I get a comment-specific link (e.g., [46]). I couldn't find any help pages about this kind of link. Is there a reason why we provide diffs instead of these comment-specific links, which seem much easier to obtain?
Thanks, Gitz (talk) (contribs) 09:56, 4 October 2024 (UTC)
- For your question 2, they are described at mw:Help:DiscussionTools § Talk pages permalinking. jlwoodwa (talk) 16:31, 4 October 2024 (UTC)
- The comment links are a fairly new feature, only enabled on English Wikipedia in June (T365974). I suspect many editors haven't warmed up to them yet. Diffs may also be used in some cases if you want to avoid ambiguity as to who wrote what, since anyone can technically edit anything on any page. Comment links are much more convenient for reading or commenting in the linked discussion though. Matma Rex talk 17:19, 4 October 2024 (UTC)
- By extract diffs you mean? Izno (talk) 18:28, 4 October 2024 (UTC)
- Thank you all for your helpful responses - I wasn't aware of that Help page. By "extract diffs" I meant accessing or generating the diffs directly from the talk page, without manually navigating through the page history. When I hover over the timestamp, I see a series of options ("actions", "popups") but none for getting the diff, so I was wondering if there's a tool or shortcut to generate one. Gitz (talk) (contribs) 20:02, 4 October 2024 (UTC)
- No, I don't think there's a tool like that. Izno (talk) 20:46, 4 October 2024 (UTC)
- Diffs between what, from what talk page? Please provide an example. Nardog (talk) 22:56, 4 October 2024 (UTC)
- I assume Gitz6666 means the diff in which that comment was written. jlwoodwa (talk) 23:00, 4 October 2024 (UTC)
- Yes, that's what I meant - a direct way for obtaining this [47] from this [48] without going through the page history. Gitz (talk) (contribs) 23:16, 4 October 2024 (UTC)
- Gitz6666, I think User:Alexander Davronov/HistoryHelper fits that bill. — Qwerfjkltalk 16:33, 5 October 2024 (UTC)
- Thank you. That tool is not exactly what I was looking for (you still need to go on the page history) but is amazing: very helpful indeed!
- There's a minor issue though. It works perfectly for creating "special:diff/ links". Using it, I created this:
- But if I try to create a {{diff2}}, I get this:
- ott 2024, 23:16 - «Diffs and comment-specific links: Reply»
- which is {{diff|prev|1249444013|4 ott 2024, 23:16}} and doesn't work. I have to turn it into a {{diff2}} by adding a "2" and removing "prev", to get this:
- 4 ott 2024, 23:16 - «Diffs and comment-specific links: Reply»
- 4 ott 2024, 23:16 - «Diffs and comment-specific links: Reply»
- which is {{diff2|1249444013|4 ott 2024, 23:16}} and works.
- I ping @Alexander Davronov: with many thanks for the tool. Gitz (talk) (contribs) 18:34, 5 October 2024 (UTC)
- Gitz6666, I think User:Alexander Davronov/HistoryHelper fits that bill. — Qwerfjkltalk 16:33, 5 October 2024 (UTC)
- Yes, that's what I meant - a direct way for obtaining this [47] from this [48] without going through the page history. Gitz (talk) (contribs) 23:16, 4 October 2024 (UTC)
- I assume Gitz6666 means the diff in which that comment was written. jlwoodwa (talk) 23:00, 4 October 2024 (UTC)
- Thank you all for your helpful responses - I wasn't aware of that Help page. By "extract diffs" I meant accessing or generating the diffs directly from the talk page, without manually navigating through the page history. When I hover over the timestamp, I see a series of options ("actions", "popups") but none for getting the diff, so I was wondering if there's a tool or shortcut to generate one. Gitz (talk) (contribs) 20:02, 4 October 2024 (UTC)
- If you use a browser that supports Chrome or Firefox extensions, you can try the mw:Who Wrote That? browser extension. isaacl (talk) 23:28, 4 October 2024 (UTC)
- "WWT only works on article pages (not talk, user, or other pages)." Nardog (talk) 23:30, 4 October 2024 (UTC)
- Sorry; for some reason, the mention of signatures didn't make me think about non-article pages. isaacl (talk) 23:34, 4 October 2024 (UTC)
- "WWT only works on article pages (not talk, user, or other pages)." Nardog (talk) 23:30, 4 October 2024 (UTC)
- There is the "WikiBlame" tool (which is linked on history pages under "External tools: Find addition/removal"): https://wikipedia.ramselehof.de/wikiblame.php?lang=en. For example, we can find the diff of your original post in this topic this way: [49] → [50]. Matma Rex talk 19:56, 5 October 2024 (UTC)
- By the way, the database behind the comment links includes the diff numbers of the revision that added the comment (see docs here), although only for comments that were posted since the comment links were enabled – we weren't able to process all historical revisions, it would have taken forever [I worked on this feature with the Editing team about a year ago]. So you could run a SQL query like this to look it up:
select min(itr_revision_id) from discussiontools_item_revisions left join discussiontools_item_ids on itr_itemid_id=itid_id where itid_itemid='c-Gitz6666-20241004095600-Diffs_and_comment-specific_links' and itr_transcludedfrom is null;
+----------------------+ | min(itr_revision_id) | +----------------------+ | 1249323141 | +----------------------+
- …but we never got around to building a user interface for that (Special:FindComment only shows the latest revisions of pages containing the comment, not the oldest), and we also apparently never got around to setting up replication of those tables to the public replicas (although they could be replicated, as noted in T303295#7850298), so you can't even build a Toolforge tool to do it right now. These things could be done with a bit of effort, though… Matma Rex talk 20:30, 5 October 2024 (UTC)
Auto-creation of a local account failed
When trying to login to another Wikipedia for which I don't have a local account like https://mos.wikipedia.org I get the error:
Auto-creation of a local account failed: Cannot create account: The username is already in use. Please pick another name.
Any workaround? Killarnee (talk) 01:58, 3 October 2024 (UTC)
- @Killarnee: Have you both tried when you were already logged in at another wiki and when you logged out first? PrimeHunter (talk) 02:18, 3 October 2024 (UTC)
- @Dreamy Jazz maybe relevant to your existence given what you're working on. Izno (talk) 03:30, 3 October 2024 (UTC)
- I don't think so AFAIK. It appears to be related to merging wikitech accounts into SUL. Dreamy Jazz talk to me | my contributions 11:57, 6 October 2024 (UTC)
- It works for me. Special:CentralAuth/Killarnee says: "Global group: Two-factor authentication testers". Maybe that causes problems. The error message sounds like something that shouldn't happen but it's apparently a combination where MediaWiki:Authmanager-authn-autocreate-failed is called with MediaWiki:Centralauth-account-unattached-exists. The Killarnee account does not exist at https://mos.wikipedia.org but the bottom of Special:CentralAuth/Killarnee shows an unattached account at wikitech:User:Killarnee. This may be relevant. If it's your account then can you merge it at Special:MergeAccount or wikitech:Special:MergeAccount? PrimeHunter (talk) 04:13, 3 October 2024 (UTC)
- It was the Wikitech account and after the merge it works. Thanks a lot. Killarnee (talk) 12:05, 3 October 2024 (UTC)
Help with string replace in Templates
Hi. Is there somewhere I can ask about using string replacement features in templates? I've been trying things like
strip numbers: {{#invoke:string|replace|source={{{exotic}}}|pattern=%-%d%,|replace=HHH}}
And I've only been able to make very simple substitutions. I'm familiar with regex etc. I must be missing something fundamental. Thanks. Johnjbarton (talk) 20:22, 5 October 2024 (UTC)
- @Johnjbarton: You need
|plain=false
if you use regex. See Module:String#replace (gsub). PrimeHunter (talk) 20:31, 5 October 2024 (UTC)- @PrimeHunter Thanks!
- However something else is very weird. Here I copied some numbers from the 'edit' view in a wiki page:
strip literals copied: {{#invoke:string|replace|source=−4, −2, −1, 0, +1|pattern=%-%d%,|replace=HHH|plain=false}}
- gives
- strip literals copied: −4, −2, −1, 0, +1
- But if I type the characters in:
strip literals typed: {{#invoke:string|replace|source=-4, -2, -1, 0, +1|pattern=%-%d%,|replace=HHH|plain=false}}
- I get
- strip literals typed: HHH HHH HHH 0, +1
- These look the same to me, but somehow no match? I think this is related to my failure when using a parameter for the source. Johnjbarton (talk) 21:58, 5 October 2024 (UTC)
- @Johnjbarton: The string you copied has minus signs in accordance with Wikipedia:Manual of Style/Mathematics#Minus sign. You typed hyphens which is a different character. Some browsers match on both with a browser page search like Ctrl+f but Lua does not. PrimeHunter (talk) 22:11, 5 October 2024 (UTC)
- Thank you. That explains where my morning went ;-) Johnjbarton (talk) 22:14, 5 October 2024 (UTC)
- And one other issue I accidently discovered: AFAICT you can't match on
<ref>...</ref>
because the ref tag is somehow rendered to a<span>...</span>
before the match. Johnjbarton (talk) 22:27, 5 October 2024 (UTC)- Refs get mw:Strip markers and interact oddly with some features. Consider for example
{{#invoke:string|replace|source=<ref>U</ref>|pattern=U|replace=V}}
which produces: '"`VNIQ--ref-00000129-QINV`"'. Huh? The replacement doesn't work inside<ref>...</ref>
but it does work on the strip marker where it changes UNIQ...QINU to VNIQ...QINV. This exposes the now incorrect strip marker. The reference still works in spite of this but there is no link to it. PrimeHunter (talk) 23:47, 5 October 2024 (UTC)- Yes, I stumbled into that one too ;-) I found Template:Strip tags for giving the text other than the refs so I was trying to find a way to get the inverse function, just the content not the refs. I succeeded in part but my solution is not robust, too many ways to fail. I think now I will regroup and plan to edit the input data into a form that is easier to format with templates. Johnjbarton (talk) 00:16, 6 October 2024 (UTC)
- Refs get mw:Strip markers and interact oddly with some features. Consider for example
- @PrimeHunter Can #invoke:string|replace be cascaded, that is input as source= for another #invoke:string|replace? Seems like that would just work, but my out call does not match, just passes through. My attempt: User:Johnjbarton/sandbox/Infobox element/symbol-to-oxidation-state-entry Johnjbarton (talk) 21:53, 6 October 2024 (UTC)
- @Johnjbarton: It works but you were missing a pipe.[51] There is also {{MultiReplace}}. PrimeHunter (talk) 22:19, 6 October 2024 (UTC)
- @Johnjbarton: The string you copied has minus signs in accordance with Wikipedia:Manual of Style/Mathematics#Minus sign. You typed hyphens which is a different character. Some browsers match on both with a browser page search like Ctrl+f but Lua does not. PrimeHunter (talk) 22:11, 5 October 2024 (UTC)
- Lua patterns are not regex, they are closer to C string format patterns. Notably, no logical OR (
(A|BC)
) and no lookaheads/behinds. Izno (talk) 21:31, 5 October 2024 (UTC)
References
- ^ U
Why is our sister link to Kaesong on Wikivoyage starred?
On Wikivoyage, that article is just mediocre quality. There should be no start there. I am not sure how to remove it and what caused the error (could it happen for other articles?). Piotrus at Hanyang| reply here 04:20, 26 September 2024 (UTC)
- It was added to Wikidata in this revision. Not sure why as looking through the history of wikivoyage:Kaesong it was never star quality. novov talk edits 05:58, 26 September 2024 (UTC)
- @Hanyangprofessor2: The star is because of the "badge" (a little rosette) at d:Q109079#sitelinks-wikivoyage. As noted above, this was set by Dexbot (talk · contribs) almost ten years ago; you would need to ask its botop (Ladsgroup) what the mechanism is that triggered this amendment. If it really is wrong, these "badges" appear to be user-editable. --Redrose64 🌹 (talk) 15:15, 26 September 2024 (UTC)
- They aren’t; saving the changes to them is limited to certain user groups. novov talk edits 22:59, 26 September 2024 (UTC)
- @Ikan Kekek FYI, and maybe you know who to ping. Or report this to WV Traveller's Pub, I am not sure how serious this issue is, but I think the star should not be there for 'usuable' articles. Piotrus at Hanyang| reply here 07:21, 27 September 2024 (UTC)
- I don't understand the problem. It's starred on Wikidata? Best to discuss that there, I guess. I don't normally edit Wikidata. You could bring this up in the voy:Wikivoyage:Travellers' pub. Ikan Kekek (talk) 15:35, 27 September 2024 (UTC)
- @Ikan Kekek FYI, and maybe you know who to ping. Or report this to WV Traveller's Pub, I am not sure how serious this issue is, but I think the star should not be there for 'usuable' articles. Piotrus at Hanyang| reply here 07:21, 27 September 2024 (UTC)
- They aren’t; saving the changes to them is limited to certain user groups. novov talk edits 22:59, 26 September 2024 (UTC)
- @Hanyangprofessor2 The bot added the badge ten years ago because at least back then this revision to be exact had voy:Template:Usablecity. Note that the badge was added for "recommended article" [52] hence the silver (not gold). There are many badges. You should be able to see the list of page that have badges in voy:Special:PagesWithBadges Ladsgroupoverleg 10:26, 27 September 2024 (UTC)
- And the current version of voy:Kaesong#Go next still has
{{usablecity}}
. This is therefore a matter for Wikivoyage, and not our problem at all. --Redrose64 🌹 (talk) 18:06, 27 September 2024 (UTC)- @Ikan Kekek @Redrose64 The issue is that usable article on Wikivoyage are just middle-level artices (see voy:Wikivoyage:Article status). A star should denote an equivalent of a Featured article - on Wikivoyage that would be a Star-class article. A Good Article equivalent there would be a Guide (which even uses the GA green cross). Having Featured Article-lookalike barnstars for Wikivoyage usable articles, which are equivalent to our B- or C- class articles, makes no sense and is arguably actively misleading. Piotrus at Hanyang| reply here 03:16, 30 September 2024 (UTC)
- PS. And it is a problem for us (not for Wikivoyage), because it is us (English Wikipedia) that has misleading indicators suggesting that our sister project article is high quality, when it is not. Wikivoyage has correctly identified the article as a middle-level (usuable) article, but we are incorrectly starring them as high-level articles. Piotrus at Hanyang| reply here 03:18, 30 September 2024 (UTC)
- PPS. Compare to Hiroshima, which is a star-level article on Wikivoyage, and is correctly tagged with that project's yellow star in our article. Why are we tagging Wikivoyage usable articles at all, and why are we using Featured Article symbol instead of the Wikivoyage blue circle (which is the symbol for their usable articles)? At minimum, the symbol for usable content should be fixed (from FA star to blue circle), and I'd strongly suggest removing any symbols for that class (which is below GA-level equivalent). I hope the issue is now clearer? Piotrus at Hanyang| reply here 03:21, 30 September 2024 (UTC)
- @Hanyangprofessor2: The stars, discs etc. (of whatever colour) are added by mw:Extension:WikimediaBadges based on settings in Wikidata. If the extension is faulty, file a ticket at phab:. If Wikidata has the wrong settings, fix them, or find out at Wikidata why their bots are using imperfect algorithms. Whatever the problem is, it's still not our fault. --Redrose64 🌹 (talk) 20:14, 30 September 2024 (UTC)
- @Redrose64 But it is our problem, and I don't have time to learn the extension details to fix it. I am just reporting it here, so those more familiar with the issue can investigate it and fix it.
- I will ping editors who have edited the mediawiki extension page you linked: @MarcoAurelio @Eisheeta Piotrus at Hanyang| reply here 06:53, 2 October 2024 (UTC)
- @Hanyangprofessor2: How can it be out problem when (a) there is no fault at English Wikipedia and (b) there is nothing that can be done at English Wikipedia to alter the situation? As for MarcoAurelio and Eisheeta, they will probably tell you exactly what I have already said: that the extension displays a star according to whatever is set on Wikidata. Have you raised any discussions at either Wikidata itself, or at Wikivoyage? --Redrose64 🌹 (talk) 09:47, 2 October 2024 (UTC)
- @Redrose64 It is our problem because we are displaying misleading information to our readers. I am not saying it is our fault, I am not saying it is anyone's fault (we are all well meaning volunteers here), but it is not Wikivoyage of Wikidata problem, because the error (which may be related to some bad tool they use or used) affects us, not them. And as I said, I don't know where else to raise this problem, and it is us who should care the most about it, since we (our readers) are the ones most affected. Piotrus at Hanyang| reply here 07:34, 3 October 2024 (UTC)
- (edit conflict) @Hanyangprofessor2: Two users above have suggested voy:Wikivoyage:Travellers' pub; you have posted there before regarding other matters, so you are aware of its existence. Then there is d:Wikidata:Project chat. Now please stop pretending that this is an English Wikipedia problem when all we are doing is reflecting data that is stored elsewhere. This is like reading in your newspaper about some unpleasant situation in a foreign country and expecting your local newsagent to do something about it. --Redrose64 🌹 (talk) 16:15, 3 October 2024 (UTC)
- As I explained to you, I don't believe it is Wikivoyage problem at all. Wikidata, to a small degree (because some data is hosted there). But this is primarily our problem; it doesn't matter where the data is stored - it is our project which displays misleading information. I do not understand why you are fine with our website displaying errors. Piotrus at Hanyang| reply here 03:57, 4 October 2024 (UTC)
- Our website displays millions of errors. This is a tiny minor detail that in no way compromises the integrity of English Wikipedia. To quote Jonesey95:
The problem is that a silver star is used for both "Good" (second-tier) and "Recommended" (i.e. third-tier, the level below Good quality) in the extension.
Please note those wordsin the extension
. Nothing that Jonesey95 has written demonstrates that it is our problem at all. Jonesey95 has restated - in different words - information that was already provided to you earlier in this thread. Sure, we display that little silver star. But the code to display that star is part of the MediaWiki software, which is shared by all WMF wikis. --Redrose64 🌹 (talk) 07:34, 4 October 2024 (UTC)- Feel free to disagree, but I believe that removing even one error is a good thing. I don't feel that the fact that our website has millions of errors is ok. Piotrus at Hanyang| reply here 03:06, 5 October 2024 (UTC)
- Our website displays millions of errors. This is a tiny minor detail that in no way compromises the integrity of English Wikipedia. To quote Jonesey95:
- As I explained to you, I don't believe it is Wikivoyage problem at all. Wikidata, to a small degree (because some data is hosted there). But this is primarily our problem; it doesn't matter where the data is stored - it is our project which displays misleading information. I do not understand why you are fine with our website displaying errors. Piotrus at Hanyang| reply here 03:57, 4 October 2024 (UTC)
- (edit conflict) @Hanyangprofessor2: Two users above have suggested voy:Wikivoyage:Travellers' pub; you have posted there before regarding other matters, so you are aware of its existence. Then there is d:Wikidata:Project chat. Now please stop pretending that this is an English Wikipedia problem when all we are doing is reflecting data that is stored elsewhere. This is like reading in your newspaper about some unpleasant situation in a foreign country and expecting your local newsagent to do something about it. --Redrose64 🌹 (talk) 16:15, 3 October 2024 (UTC)
- @Redrose64 It is our problem because we are displaying misleading information to our readers. I am not saying it is our fault, I am not saying it is anyone's fault (we are all well meaning volunteers here), but it is not Wikivoyage of Wikidata problem, because the error (which may be related to some bad tool they use or used) affects us, not them. And as I said, I don't know where else to raise this problem, and it is us who should care the most about it, since we (our readers) are the ones most affected. Piotrus at Hanyang| reply here 07:34, 3 October 2024 (UTC)
- @Hanyangprofessor2: How can it be out problem when (a) there is no fault at English Wikipedia and (b) there is nothing that can be done at English Wikipedia to alter the situation? As for MarcoAurelio and Eisheeta, they will probably tell you exactly what I have already said: that the extension displays a star according to whatever is set on Wikidata. Have you raised any discussions at either Wikidata itself, or at Wikivoyage? --Redrose64 🌹 (talk) 09:47, 2 October 2024 (UTC)
- @Hanyangprofessor2: The stars, discs etc. (of whatever colour) are added by mw:Extension:WikimediaBadges based on settings in Wikidata. If the extension is faulty, file a ticket at phab:. If Wikidata has the wrong settings, fix them, or find out at Wikidata why their bots are using imperfect algorithms. Whatever the problem is, it's still not our fault. --Redrose64 🌹 (talk) 20:14, 30 September 2024 (UTC)
- And the current version of voy:Kaesong#Go next still has
I did a bunch of digging to see what might be happening here. So far I have found a page explaining that on en.WikiVoyage, they have Star (=en.WP FA), Guide (=en.WP GA) and Usable (no en.WP equivalent?) articles. Then I found this October 2014 bot request on Wikidata listing those same three article statuses and asking for Dexbot to assign badges based on those statuses. The bot's edit adding the "recommended article" status for en.Wikivoyage to Kaesong on Wikidata happened in that same time frame. So far, it appears that everything is working as designed. Then I found this CSS page, part of the mw:Extension:WikimediaBadges extension, that assigns star images. It assigns a gold star to Featured articles, and a silver star to articles flagged with either "goodarticle" or "recommendedarticle" status.
As far as I know, en.WP does not have a "recommended article" status (I'm not seeing anything comparable in the table at {{Article history}}).
TL;DR: The "recommended" (i.e. third-tier) tag next to en.Wikivoyage on Kaesong on Wikidata appears to be correct, according to the statuses used on en.Wikivoyage. The problem is that a silver star is used for both "Good" (second-tier) and "Recommended" (i.e. third-tier, the level below Good quality) in the extension.
It seems to me that if a "recommended article" is a third tier, it should get a bronze star (to be in line with gold and silver). That might mess up the star color on other WMF wikis, though. Since the extension is not documented well (see T212020), and I haven't found a table or map that shows the different statuses on each monitored site, it is difficult to know whether changing "recommended article" to bronze in the CSS file would fix a problem here but break something on another site. – Jonesey95 (talk) 16:07, 3 October 2024 (UTC)
- It turns out that there is an existing Phabricator feature request at T189374 to make this change. If anyone here wants to make this change happen and knows how to actually upload a proposed change to gerrit/github or whatever site is used, be my guest. – Jonesey95 (talk) 16:24, 3 October 2024 (UTC)
- Pinging Krinkle and Ladsgroup, who have contributed code to this extension. – Jonesey95 (talk) 16:29, 3 October 2024 (UTC)
- Badges to my knowledge are owned by WMDE. Please contact wikidata team. Ladsgroupoverleg 18:01, 3 October 2024 (UTC)
- How? A link to the appropriate discussion page would be helpful. I find Wikidata impenetrable. – Jonesey95 (talk) 21:09, 3 October 2024 (UTC)
- @Jonesey95: d:Wikidata:Project chat, as I mentioned earlier. --Redrose64 🌹 (talk) 22:50, 3 October 2024 (UTC)
- Thanks. I have posted there. We'll see if anyone is able to help from there. – Jonesey95 (talk) 23:33, 3 October 2024 (UTC)
- @Jonesey95 Thank you for investigating it and trying to actually help, rather than brushing this off. I expect some readers of English Wikipedia are confused, but they likely don't even know (or care enough) to report this. Piotrus at Hanyang| reply here 03:55, 4 October 2024 (UTC)
- Thanks. I have posted there. We'll see if anyone is able to help from there. – Jonesey95 (talk) 23:33, 3 October 2024 (UTC)
- @Jonesey95: d:Wikidata:Project chat, as I mentioned earlier. --Redrose64 🌹 (talk) 22:50, 3 October 2024 (UTC)
- How? A link to the appropriate discussion page would be helpful. I find Wikidata impenetrable. – Jonesey95 (talk) 21:09, 3 October 2024 (UTC)
- Do any of the regular (or irregular) watchers at VPT feel that this is an English Wikipedia problem? Or that it is not? Please state one way or the other. --Redrose64 🌹 (talk) 07:53, 4 October 2024 (UTC)
- It's an en.WP problem in that we are affected by it. If my neighbor's car alarm is going off in the middle of the night, it's a problem for me in that I can't sleep, and it's a problem for my spouse in that my spouse has to listen to me complain about it. I would not be surprised if other WMF sites are affected by this doubling-up of second-tier and third-tier article quality indicators; if so, it is a problem on many sites. The origin of the problem appears to be in a Wikimedia (or WMDE, whatever the difference is) extension. Problems that manifest on en.WP are often caused by code that is outside of our immediate control. – Jonesey95 (talk) 12:45, 4 October 2024 (UTC)
- I don't see a star at all, even if I log out and view with a majority desktop browser, or go into mobile mode. Does it need a gadget or preference enabled to see, or am I just missing it? But I agree with Jonesey95 that it's our problem if it's displaying on our site; and we should fix it locally if a global fix is impractical or undesirable. —Cryptic 13:22, 4 October 2024 (UTC)
- so you can either get some earplugs (fix locally) but this just masks the problem, it doesn't make it go away. Or, you go round to your neighbour, tell them they have a problem with their car and ask them to fix their car (global fix). Here, we should be going to the neighbour. Nthep (talk) 14:10, 4 October 2024 (UTC)
- Yes, getting your neighbour to fix it is best, but if the alarm keeps going off night after night, you wear earplugs in the meantime. —Cryptic 15:16, 4 October 2024 (UTC)
- The trouble is, we forget to remove the earplugs after the neighbour fixes the car. Nthep (talk) 17:48, 4 October 2024 (UTC)
- Yes, getting your neighbour to fix it is best, but if the alarm keeps going off night after night, you wear earplugs in the meantime. —Cryptic 15:16, 4 October 2024 (UTC)
- The stars are not visible in Vector 2022 due to a bug. Try forcing Vector Legacy: https://en.wikipedia.org/wiki/Kaesong?useskin=vector and note the silver star next to WikiVoyage in the left-side menus, under "In other projects". That silver star should be bronze, because Kaesong is a "Usable" (third-tier) article on WikiVoyage. This is admittedly a trivial matter, but we are at VPT .... – Jonesey95 (talk) 15:10, 4 October 2024 (UTC)
- Thank you.
.badge-recommendedarticle.badge-recommendedarticle { list-style-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Rekommenderad_gr%C3%B6n.svg/12px-Rekommenderad_gr%C3%B6n.svg.png); }
in your CSS changes it to the green star from the phab ticket. Obviously that isn't usable sitewide as-is - the file needs to be protected, it should be uploaded at the proper size instead of relying on the scaled-down version which will eventually go away, and like you say above bronze is probably a better choice - but it's enough to show we don't have to wait on an upstream fix, which may or may not ever happen. —Cryptic 16:19, 4 October 2024 (UTC)- Sorry for being away from this thread for a while. None of this is a Wikivoyage problem, and there's nothing that we can do about it at Wikivoyage, as far as I can tell. It seems to be a Wikidata problem. Ikan Kekek (talk) 20:30, 6 October 2024 (UTC)
- I'd rephrase it as "it's a Wikipedia problem caused by Wikidata". Piotr Konieczny aka Prokonsul Piotrus| reply here 06:03, 7 October 2024 (UTC)
- Sorry for being away from this thread for a while. None of this is a Wikivoyage problem, and there's nothing that we can do about it at Wikivoyage, as far as I can tell. It seems to be a Wikidata problem. Ikan Kekek (talk) 20:30, 6 October 2024 (UTC)
- Thank you.
- so you can either get some earplugs (fix locally) but this just masks the problem, it doesn't make it go away. Or, you go round to your neighbour, tell them they have a problem with their car and ask them to fix their car (global fix). Here, we should be going to the neighbour. Nthep (talk) 14:10, 4 October 2024 (UTC)
- I don't see a star at all, even if I log out and view with a majority desktop browser, or go into mobile mode. Does it need a gadget or preference enabled to see, or am I just missing it? But I agree with Jonesey95 that it's our problem if it's displaying on our site; and we should fix it locally if a global fix is impractical or undesirable. —Cryptic 13:22, 4 October 2024 (UTC)
- It's an en.WP problem in that we are affected by it. If my neighbor's car alarm is going off in the middle of the night, it's a problem for me in that I can't sleep, and it's a problem for my spouse in that my spouse has to listen to me complain about it. I would not be surprised if other WMF sites are affected by this doubling-up of second-tier and third-tier article quality indicators; if so, it is a problem on many sites. The origin of the problem appears to be in a Wikimedia (or WMDE, whatever the difference is) extension. Problems that manifest on en.WP are often caused by code that is outside of our immediate control. – Jonesey95 (talk) 12:45, 4 October 2024 (UTC)
How to delete from talk page
How do I delete a section (blank entire section) from my personal user talk page? I used to do it with a script from times before the software upgraded to include new stuff (e.g. subscribe button, 'Latest comment: 22 minutes ago | 1 comment | 1 person in discussion' and the like. Gryllida (talk, e-mail) 07:46, 7 October 2024 (UTC)
- @Gryllida: Edit the section, click anywhere in the edit box, then do: Ctrl+A ← Backspace Alt+⇧ Shift+S. You can use Delete instead of ← Backspace if that's easier for you. --Redrose64 🌹 (talk) 09:45, 7 October 2024 (UTC)
- My script used to do it in one click. Gryllida (talk, e-mail) 14:14, 7 October 2024 (UTC)
- Do you mean that you want another archiving script? I use (a fork of) https://en.wikipedia.org/wiki/User:Elli/OneClickArchiver.js Note that it possible to disable that new stuff. Polygnotus (talk) 09:49, 7 October 2024 (UTC)
- Yes I will check it out thanks. Gryllida (talk, e-mail) 14:16, 7 October 2024 (UTC)
- Your script stopped working likely due to mw:Heading HTML changes. Nardog (talk) 14:43, 7 October 2024 (UTC)
Problem to sort data
There is problem in this list (section "Minimum wages by country" and "Minimum wages by country (other countries)") to sort data by "Net (EUR)" and "Net (PPP)". What to do? Eurohunter (talk) 15:07, 6 October 2024 (UTC)
- What is the problem? It seems to work for me. – Ammarpad (talk) 17:07, 6 October 2024 (UTC)
- @Eurohunter you have described everything BUT the 'problem'. Never assume that others are seeing or experiencing the same thing as you, and make full and extensive descriptions of the problem that you are encountering. —TheDJ (talk • contribs) 19:04, 6 October 2024 (UTC)
- @@Ammarpad: @TheDJ: Sort it by lowest or highest value, a few times. Eurohunter (talk) 20:35, 6 October 2024 (UTC)
- @Eurohunter: I did and see no issue. WHAT IS THE PROBLEM? It's hard to help when you refuse to reveal what you think is wrong. PrimeHunter (talk) 21:26, 6 October 2024 (UTC)
- The third click on EUR sort buttons takes you back to the initial sorting, which is a sorting by country name. It is not a bug, it is a feature. Uwappa (talk) 09:35, 7 October 2024 (UTC)
- @TheDJ: @PrimeHunter: @Uwappa: Looks like I was wrong, but just noticed it's impossible to sort by "Gross (EUR)". Eurohunter (talk) 16:55, 7 October 2024 (UTC)
- @Eurohunter: The "Gross (EUR)" column has an image before the number. You can for example use
data-sort-value
at Help:Sortable tables#Specifying a sort key for a cell. PrimeHunter (talk) 17:08, 7 October 2024 (UTC) - The column header has the attribute
data-sort-type="number"
but the data cells in that column all begin with either{{steady}}
,{{increase}}
or{{decrease}}
, none of which are numeric. --Redrose64 🌹 (talk) 18:21, 7 October 2024 (UTC)
- @Eurohunter: The "Gross (EUR)" column has an image before the number. You can for example use
- @TheDJ: @PrimeHunter: @Uwappa: Looks like I was wrong, but just noticed it's impossible to sort by "Gross (EUR)". Eurohunter (talk) 16:55, 7 October 2024 (UTC)
- @@Ammarpad: @TheDJ: Sort it by lowest or highest value, a few times. Eurohunter (talk) 20:35, 6 October 2024 (UTC)
Tech News: 2024-41
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Weekly highlight
- Communities can now request installation of Automoderator on their wiki. Automoderator is an automated anti-vandalism tool that reverts bad edits based on scores from the new "Revert Risk" machine learning model. You can read details about the necessary steps for installation and configuration. [53]
Updates for editors
- Translators in wikis where the mobile experience of Content Translation is available, can now customize their articles suggestion list from 41 filtering options when using the tool. This topic-based article suggestion feature makes it easy for translators to self-discover relevant articles based on their area of interest and translate them. You can try it with your mobile device. [54]
- View all 12 community-submitted tasks that were resolved last week.
Updates for technical contributors
- It is now possible for
<syntaxhighlight>
code blocks to offer readers a "Copy" button if thecopy=1
attribute is set on the tag. Thanks to SD0001 for these improvements. [55] - Customized copyright footer messages on all wikis will be updated. The new versions will use wikitext markup instead of requiring editing raw HTML. [56]
- Later this month, temporary accounts will be rolled out on several pilot wikis. The final list of the wikis will be published in the second half of the month. If you maintain any tools, bots, or gadgets on these 11 wikis, and your software is using data about IP addresses or is available for logged-out users, please check if it needs to be updated to work with temporary accounts. Guidance on how to update the code is available.
- Rate limiting has been enabled for the code review tools Gerrit and GitLab to address ongoing issues caused by malicious traffic and scraping. Clients that open too many concurrent connections will be restricted for a few minutes. This rate limiting is managed through nftables firewall rules. For more details, see Wikitech's pages on Firewall, GitLab limits and Gerrit operations.
- Five new wikis have been created:
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:38, 7 October 2024 (UTC)
Bug in Template:Infobox musical artist
The parameter "associated_acts" doesn't work, see Orelsan. --BigBullfrog (talk) 08:19, 7 October 2024 (UTC)
- @BigBullfrog: Well, no, because it's deprecated to the point of removal. See Template talk:Infobox musical artist/Archive 16#Associated acts confusion and Category:Pages using infobox musical artist with associated acts. --Redrose64 🌹 (talk) 09:51, 7 October 2024 (UTC)
- Oh I see, thanks. --BigBullfrog (talk) 01:09, 8 October 2024 (UTC)
Refill down
This is not a new issue (see previous discussions here and here for example), and I don't frequent the technical pump often, but the extremely valuable Refill tool has been non-functional for months (years?). Any updates? And, if it's broken/abandoned for good, is there a similar tool that can quickly convert bare URLs into formatted citations, and/or combine duplicate citations? Furthermore, is there a clear list of handy editing tools somewhere on Wikipedia? I've been a regular editor for well over a decade, so if there is one, I've overlooked or forgotten about it. There are a lot of problems on Wikipedia: prioritizing tools, and making them easily visible to editors who don't have a computer science degree, should be a top priority. Cheers, --Animalparty! (talk) 00:29, 8 October 2024 (UTC)
- https://refill.toolforge.org/ng for some reason. – Muboshgu (talk) 00:39, 8 October 2024 (UTC)
- I use reFill2 and something called RefRenamer but I don't know the link. Johnjbarton (talk) 00:42, 8 October 2024 (UTC)
"Add A Fact" LLM browser extension
After reading [62] and the post and ensuing discussion here, I don't think this browser extension is ready for article talk pace on en.wiki. I'm not exactly sure where to voice a concern about this, so please move this feedback if appropriate. @Chemipanda, Ita140188, and Avatar317: VQuakr (talk) 20:04, 3 October 2024 (UTC)
- @VQuakr Feedback should probably go to meta:Talk:Future_Audiences/Experiment:Add_a_Fact. --Ahecht (TALK
PAGE) 21:05, 3 October 2024 (UTC)- That would be fine for feedback to them; I guess here I'm more looking to see if there's agreement this shouldn't be used on en.wiki yet. VQuakr (talk) 21:20, 3 October 2024 (UTC)
- @VQuakr For reference, here is a list of all the edits made using this tool: https://hashtags.wmcloud.org/?query=addafact&project=en.wikipedia.org&startdate=&enddate=&search_type=or&user= 86.23.109.101 (talk) 21:59, 3 October 2024 (UTC)
- That is a helpful link, thanks!! I glanced at ~10 random ones, and they all looked fine; They were a sentence directly copied from the source with the text listed in the quote parameter for the cite. Maybe Chemipanda didn't use it properly (highlighted the title) or is running an outdated browser version? Editors should at least look at their generated posts to see whether they are normal/valid/coherent and revert them if not; this tool is still experimental.
- If this were to work as promised, I see this as more helpful than people simply posting new sources in the Talk pages. (which is always helpful). ---Avatar317(talk) 22:39, 3 October 2024 (UTC)
- @Avatar317 Yes, Looking through the edits my impression is that most of them are fine.
- According to the page on meta the person using the tool has to select which part of the source to use, so the "adding the title of a paper rather than it's content" is user error, rather than an issue with the tool. There is still the issue of using the wikipedia page in the citation template that needs to be investigated though. 86.23.109.101 (talk) 11:54, 4 October 2024 (UTC)
- I asked a developer and they suggested that the original error was likely due to the user switching browser-tabs while the extension is scanning the page. Quiddity (WMF) (talk) 00:38, 8 October 2024 (UTC)
- @VQuakr For reference, here is a list of all the edits made using this tool: https://hashtags.wmcloud.org/?query=addafact&project=en.wikipedia.org&startdate=&enddate=&search_type=or&user= 86.23.109.101 (talk) 21:59, 3 October 2024 (UTC)
- That would be fine for feedback to them; I guess here I'm more looking to see if there's agreement this shouldn't be used on en.wiki yet. VQuakr (talk) 21:20, 3 October 2024 (UTC)
- Thanks everyone for the insight and especially @Quiddity (WMF): for the follow up! VQuakr (talk) 04:44, 8 October 2024 (UTC)
Earwigs copyvio tool is down
What it says on the tin. The Earwig is aware of this. Whenever anyone tries to use the tool, they get this message most of the time: An error occurred while using the search engine (Google Error: HTTP Error 429: Too Many Requests). Note: there is a daily limit on the number of search queries the tool is allowed to make. You may repeat the check without using the search engine.
Obviously, there's a bit of tomfoolery around hitting the limit, which is apparently shared by all users of Wikipedia. There was some discussion in the WMF section of the pump a few weeks back about what the WMF can do about it. I'm mostly interested in what we can do in the meantime while it gets fixed. I dream of horses (Hoofprints) (Neigh at me) 00:56, 29 September 2024 (UTC)
- You could do your own search engine search for snippets of text from the article. One sentence from each paragraph should give an indication of problems. And you can tick the box on the tool to limit the check. Graeme Bartlett (talk) 05:49, 29 September 2024 (UTC)
- This is the message I get every time I try to use Earwig check tool since early 2024. It's always over the limit. I've asked Earwig about it multiple times and I think the problem is that bots can use it and they are causing it to hit its daily limit pretty early in the day. I wish bots could get booted of so that regular editors would have access to the tool but I have yet to see any change. I don't even try to use it any more. Liz Read! Talk! 22:43, 29 September 2024 (UTC)
- It does work for me quite often, probably as I am in a different time zone. You may have to await the end of the "day", and try again. Graeme Bartlett (talk) 22:47, 29 September 2024 (UTC)
- @Liz: There's a message from Chlod saying The Right People are aware and working on a way to authenticate. I'm sure that'll boot the bots off.
- @Graeme Bartlett: I was thinking more of an alternative tool that we can use instead? Like, how does CopyPatrol work? I dream of horses (Hoofprints) (Neigh at me) 04:57, 2 October 2024 (UTC)
- Perhaps the bot behind this tool is what is exhausting Google? I don't know/ https://meta.wikimedia.org/wiki/CopyPatrol It also uses turnitin, and you can tick that box on earwig. But its findings show less than Google search. Graeme Bartlett (talk) 06:07, 2 October 2024 (UTC)
- There is some documentation that indicates that a bot is going through recent changes and marking the likely copyright cases to copypatrol. Looking at a single page, surfacing results for that page like that is less traffic than letting several users query that same page. I would say Copypatrol should be used for english wikipedia and other supported projects, but earwigs tool when copypatrol does not support the project. Snævar (talk) 01:15, 3 October 2024 (UTC)
- @Graeme Bartlett and @Snævar: CopyPatrol uses TurnItIn, not google (unlike Earwig, which uses both Google and TurnItIn). Probably why it shows less (which is a bit of a problem), but perhaps it is a stop gap measure. My main concern about CopyPatrol is that it's more useful for individual edits and not an entire article. I dream of horses (Hoofprints) (Neigh at me) 22:07, 3 October 2024 (UTC)
- Sigh... Where is this guesswork coming from? meta:CopyPatrol says it uss User:EranBot that uses both google trough Earwin and Turnitin. Read both links. Could you stop this guesswork nonesence and stick to facts? You are starting to annoy me. Also if you put an diff into earwigs tool it checks the whole article, not just the diff in question. Do not just repeat nonesence when proven otherwise. Snævar (talk) 09:37, 8 October 2024 (UTC)
- @Graeme Bartlett and @Snævar: CopyPatrol uses TurnItIn, not google (unlike Earwig, which uses both Google and TurnItIn). Probably why it shows less (which is a bit of a problem), but perhaps it is a stop gap measure. My main concern about CopyPatrol is that it's more useful for individual edits and not an entire article. I dream of horses (Hoofprints) (Neigh at me) 22:07, 3 October 2024 (UTC)
- There is some documentation that indicates that a bot is going through recent changes and marking the likely copyright cases to copypatrol. Looking at a single page, surfacing results for that page like that is less traffic than letting several users query that same page. I would say Copypatrol should be used for english wikipedia and other supported projects, but earwigs tool when copypatrol does not support the project. Snævar (talk) 01:15, 3 October 2024 (UTC)
- Perhaps the bot behind this tool is what is exhausting Google? I don't know/ https://meta.wikimedia.org/wiki/CopyPatrol It also uses turnitin, and you can tick that box on earwig. But its findings show less than Google search. Graeme Bartlett (talk) 06:07, 2 October 2024 (UTC)
- It does work for me quite often, probably as I am in a different time zone. You may have to await the end of the "day", and try again. Graeme Bartlett (talk) 22:47, 29 September 2024 (UTC)
- This is the message I get every time I try to use Earwig check tool since early 2024. It's always over the limit. I've asked Earwig about it multiple times and I think the problem is that bots can use it and they are causing it to hit its daily limit pretty early in the day. I wish bots could get booted of so that regular editors would have access to the tool but I have yet to see any change. I don't even try to use it any more. Liz Read! Talk! 22:43, 29 September 2024 (UTC)
Global.css not affecting mobile
My global.css appears to not be working on mobile web (Firefox Nightly on Android) all of a sudden - the changes just aren't applied. It works fine on desktop. Is this a known issue? Suntooooth, it/he (talk/contribs) 21:57, 7 October 2024 (UTC)
- Suntooooth, could you please test in non-nightly version of Firefox for Android? —andrybak (talk) 09:01, 8 October 2024 (UTC)
- Just tried it, still not working. Suntooooth, it/he (talk/contribs) 13:30, 8 October 2024 (UTC)
- Something that may be related - there are also some icons in the interface that aren't showing up on mobile (Firefox Nightly and Firefox). The two I've noticed are the "watch" icon on pages I'm watching, and the red alert circle that displays in the top bar if there's notifications. Suntooooth, it/he (talk/contribs) 13:43, 8 October 2024 (UTC)
- The icon issue is being discussed at Wikipedia:Village pump (technical)#Watchlist icon issue on Mobile. See also phab:T376359, phab:T376414. —andrybak (talk) 13:59, 8 October 2024 (UTC)
- Got it, thanks! :] Suntooooth, it/he (talk/contribs) 14:07, 8 October 2024 (UTC)
- The icon issue is being discussed at Wikipedia:Village pump (technical)#Watchlist icon issue on Mobile. See also phab:T376359, phab:T376414. —andrybak (talk) 13:59, 8 October 2024 (UTC)
how to add geojson map to Infobox protected area
I'm trying to add https://commons.wikimedia.org/wiki/Data:Coconino_National_Forest.map to Coconino National Forest but it is unclear to me how to do so. I tried:
| image_map = {{maplink-road|from=Coconino National Forest.map}}
But it's not showing up. I also tried to delete the old `map` entry and then adding this:
| map = {{maplink-road|from=Coconino National Forest.map}}
But that got me this error:
Lua error in Module:Location_map at line 526: "?'\"`UNIQ--mapframe-0000000E-QINU`\"'?" is not a valid name for a location map definition.
Any ideas? TerraFrost (talk) 10:35, 8 October 2024 (UTC)
- I previously struggled with a maplink situation where the answer was to wait a few days for Kartographer to sort itself out. CMD (talk) 12:32, 8 October 2024 (UTC)
- The template's documentation suggests using embedded=. The map probably still needs a caption, but it's in the article. – Jonesey95 (talk) 14:31, 8 October 2024 (UTC)
Database error, write duration exceeded
Just got the following error message dropping three See-alsos from a Draft, in this edit:
Database error To avoid creating high replication lag, this transaction was aborted because the write duration (5.3958411216736) exceeded the 3 second limit. If you are changing many items at once, try doing multiple smaller operations instead. [bf82d77e-9cdf-4b96-a5b2-5ac9cab8969a] 2024-10-03 15:00:40: Fatal exception of type "Wikimedia\Rdbms\DBTransactionSizeError"
The edit seems to have gone through fine, despite the message. Could this happen if I inadvertently hit Publish twice or something? I don't have any recollection of doing so, and I really don't know what happened. Everything is fine on my end, I don't need any action, just reporting this in case it's a first sign of something going on that needs to be watched. Mathglot (talk) 15:11, 3 October 2024 (UTC)
- *I unarchived this to reply*. @Mathglot: Sorry I didn't see this earlier, but your description reminded me of a recurring (possible) bug affecting the abusefilter - I checked and it does seem like your edit is related: your edit triggered the monitoring filter 9 times separately from the edit.
- I'm unsure how active @Suffusion of Yellow is, the testing filter ("possible abusefilter bug") was added to help debug things from Wikipedia:Edit_filter_noticeboard/Archive_12#Filter_1253:_False_positive_ratio, where @ToBeFree created phab:T348237, about it.
- I'm just noting this here, and pinging, in case either this Database error helps with the phab-reported abuse filter problem (or the other way around). – 2804:F14:80E1:2001:2DF4:42B2:8C4D:C416 (talk) 18:22, 8 October 2024 (UTC)
- Thanks for the ping and Mathglot for the report – I have now added this as a comment to the year-old task. ~ ToBeFree (talk) 19:44, 8 October 2024 (UTC)