Wikipedia:Village pump (technical)
Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk. Discussions are automatically archived after remaining inactive for five days.
Frequently asked questions (see also: Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
Question about threads at DRN
This is a question about the opening of threads at the Dispute Resolution Noticeboard. In particular, exactly where is the specification that sets the Do Not Archive Until date in a new thread that is opened by what appears to be WP:Dispute resolution noticeboard/request and WP:Dispute resolution noticeboard/Header? It appears that the Do Not Archive date is being set to two weeks after the case opening date. This means that cases that have been open for more than two weeks and have no activity for 48 hours are being archived. I am planning to change the archival parameter so as to wait 72 hours rather than 48 hours, but I would also like to set the Do Not Archive Until date to start out three weeks rather than two weeks after filing. Active cases often do not get resolved in two weeks, and do not always have activity in 48 hours. So can someone please tell me where the Do Not Archive Until date comes from? That is, where is the computation done? Robert McClenon (talk) 18:20, 6 April 2024 (UTC)
- @Robert McClenon: It's in Template:NewDRNsubmission, essentially as
{{subst:Do not archive until|30}}
, and is 30 days from the time of filing. --Redrose64 🌹 (talk) 19:28, 6 April 2024 (UTC)- Thank you, User:Redrose64. That is interesting and puzzling. Then why was Do Not Archive set to 1 April 2024 in Wikipedia:Dispute_resolution_noticeboard/Archive_244#Climate_change, which appears to have been filed on 18 March 2024? The thread was archived because there was no activity for 48 hours and it was after 1 April, so the bot was honoring the parameters. I will look at the template in more detail in a while, but I am puzzled. I thought that there might be a technical answer. I am still sure that there is a technical answer, but it is even more complicated than I would have thought. Robert McClenon (talk) 19:52, 6 April 2024 (UTC)
- This is the filing edit. It rules out one theory of mine, viz. that the DNAU timeetamp was modified after filing. --Redrose64 🌹 (talk) 22:11, 6 April 2024 (UTC)
- So the DNAU timestamp was indeed "wrong" for some reason. Thank you for doing the research. Robert McClenon (talk) 04:38, 7 April 2024 (UTC)
- If someone used the clickable button at the top of the DRN page to make a request, the report text is defined by the javascript behind it, which has the DNAU set to 14 days. You can see the wikitext it creates at MediaWiki:DRN-wizard.js#L-189. Aidan9382 (talk) 07:49, 7 April 2024 (UTC)
- Thank you, User:Aidan9382. So that is indeed setting the DNAU timestamp to 14 days after filing. Whoever thought that disputes would normally be resolved in two weeks was being very optimistic, maybe because they thought that there would be dozens of volunteers, one working each dispute. How do I request that the 14 be changed to 28? Robert McClenon (talk) 15:16, 8 April 2024 (UTC)
- Attempt to edit the Javascript page, see the button that says "submit edit request", click that, then make the request. An interface admin will be along Soonly. Izno (talk) 16:44, 8 April 2024 (UTC)
- If you look at MediaWiki talk:DRN-wizard.js, you'll see that at the top there is a request from August 2012 to set it at 14 days. --Redrose64 🌹 (talk) 18:39, 8 April 2024 (UTC)
- Change requested as discussed, and made by interface admin. Thank you for the information. Robert McClenon (talk) 04:36, 10 April 2024 (UTC)
- Thank you, User:Aidan9382. So that is indeed setting the DNAU timestamp to 14 days after filing. Whoever thought that disputes would normally be resolved in two weeks was being very optimistic, maybe because they thought that there would be dozens of volunteers, one working each dispute. How do I request that the 14 be changed to 28? Robert McClenon (talk) 15:16, 8 April 2024 (UTC)
- If someone used the clickable button at the top of the DRN page to make a request, the report text is defined by the javascript behind it, which has the DNAU set to 14 days. You can see the wikitext it creates at MediaWiki:DRN-wizard.js#L-189. Aidan9382 (talk) 07:49, 7 April 2024 (UTC)
- So the DNAU timestamp was indeed "wrong" for some reason. Thank you for doing the research. Robert McClenon (talk) 04:38, 7 April 2024 (UTC)
- This is the filing edit. It rules out one theory of mine, viz. that the DNAU timeetamp was modified after filing. --Redrose64 🌹 (talk) 22:11, 6 April 2024 (UTC)
- Thank you, User:Redrose64. That is interesting and puzzling. Then why was Do Not Archive set to 1 April 2024 in Wikipedia:Dispute_resolution_noticeboard/Archive_244#Climate_change, which appears to have been filed on 18 March 2024? The thread was archived because there was no activity for 48 hours and it was after 1 April, so the bot was honoring the parameters. I will look at the template in more detail in a while, but I am puzzled. I thought that there might be a technical answer. I am still sure that there is a technical answer, but it is even more complicated than I would have thought. Robert McClenon (talk) 19:52, 6 April 2024 (UTC)
Can we make AfD notification smart enough to notify the editor who turned an existing redirect into an article, rather than notifying the editor who merely created the redirect?
As a redirect-happy editor, I get these all the time. I make a redirect somewhere because the subject is mentioned, but not independently notable. Some other editor comes along and turns the redirect into an article. A third editor nominated the article for deletion, and who get's the notification? The editor who turned the redirect into an article? No, it's me. How hard is it to make the obvious fix to this? BD2412 T 23:16, 7 April 2024 (UTC)
- @BD2412 can you be more specific about this "notification" you are referring to? echo doesn't have a trigger that fires when someone discusses deleting a page. — xaosflux Talk 23:51, 7 April 2024 (UTC)
- @Xaosflux: I mean the actual notice sent to the talk page when an AfD is initated, as with User talk:BD2412#Deletion discussion about Armen Kazarian. BD2412 T 00:00, 8 April 2024 (UTC)
- I believe that'd be part of WP:Twinkle. Not entirely sure who maintains the scripts/how to fix this though Soni (talk) 00:13, 8 April 2024 (UTC)
- @BD2412 thanks. Mediawiki doesn't do this in core, and there are many many ways someone could be notified similar to that. In your specific case you seem to be referring to this edit, and that the editor made (possibly unknowingly) a bad edit - correct? That edit claims that it was made with the help of the PageTriage extension, so you may want to report a bug about it. — xaosflux Talk 00:13, 8 April 2024 (UTC)
- @Xaosflux: (do I need to ping you, by the way? Are you watching the discussion already?) The editor didn't make a mistake; the notice is sent automatically from the editor's account when the editor uses certain tools to nominate an article for deletion. BD2412 T 00:29, 8 April 2024 (UTC)
- (yes please use ping I don't use "subscribe" echo notifications) As I noted above, based on the edit tag this user appeared to use an extension to help them make this edit; if this isn't the desired behavior for that extension it can be reported to the extension maintainers using the link I provided above. (Had this been a different tool, such as Twinkle, there would be a different set of volunteers to look in to it). — xaosflux Talk 00:48, 8 April 2024 (UTC)
- Could this possibly be already open issue phab:T225009? — xaosflux Talk 00:53, 8 April 2024 (UTC)
- @Xaosflux: Not 100% sure, but it looks like it. That has been unactioned for a long damned time, though. BD2412 T 01:05, 8 April 2024 (UTC)
- That happens a lot. And when it is something in software, it needs to be addressed by a limited number of developers for that software (there are currently over 200 open tasks for that extension alone). This is not something that we can fix here on the English Wikipedia. — xaosflux Talk 01:28, 8 April 2024 (UTC)
- @Xaosflux: Not 100% sure, but it looks like it. That has been unactioned for a long damned time, though. BD2412 T 01:05, 8 April 2024 (UTC)
- Could this possibly be already open issue phab:T225009? — xaosflux Talk 00:53, 8 April 2024 (UTC)
- (yes please use ping I don't use "subscribe" echo notifications) As I noted above, based on the edit tag this user appeared to use an extension to help them make this edit; if this isn't the desired behavior for that extension it can be reported to the extension maintainers using the link I provided above. (Had this been a different tool, such as Twinkle, there would be a different set of volunteers to look in to it). — xaosflux Talk 00:48, 8 April 2024 (UTC)
- @Xaosflux: (do I need to ping you, by the way? Are you watching the discussion already?) The editor didn't make a mistake; the notice is sent automatically from the editor's account when the editor uses certain tools to nominate an article for deletion. BD2412 T 00:29, 8 April 2024 (UTC)
- I have long had a similar annoyance, which I have mostly ignored. As an AFC reviewer, I sometimes move a sandbox draft that has been submitted for review into draft space. This creates a redirect from the sandbox to the draft, and I appear to be the originator of the draft. Either six months later, or much later, I get a notice that "my" draft has been deleted as G13, an expired draft. I think that this is the same issue, in which the creation of a redirect confuses Twinkle. Is this the same issue as User:BD2412 is reporting? Robert McClenon (talk) 15:10, 8 April 2024 (UTC)
- @Robert McClenon is this an example of what you are describing? The resultant page appears to maintain the original creator. If the new page is being made by copy/paste you would be listed as the author. — xaosflux Talk 15:55, 9 April 2024 (UTC)
- Yes, User:Xaosflux, that is what I was describing. If a page that I moved from a sandbox to draft space is ignored for six months, I then get a G13 notice that it was deleted. Yes, I don't consider myself to have been the draft creator, but I do get the notice. No, I do not create the draft by copy-paste. I dislike copy-pastes as much as the admins who have to do history-merge to correct for them. Yes, there is a persistent minor problem with who Twinkle thinks is the author. Robert McClenon (talk) 16:15, 9 April 2024 (UTC)
- Yes, I see that this was first reported five years ago. There is a persistent minor problem that has been around for so long that the bug has the status of a naturalized citizen. Robert McClenon (talk) 16:20, 9 April 2024 (UTC)
- @Robert McClenon thank you, from your notes above this specific error is only coming from Twinkle, correct? Twinkle issues can generally be addressed on-wiki, it just takes someone to write patch for the script. — xaosflux Talk 17:08, 9 April 2024 (UTC)
- User:Xaosflux - Yes, to the best of my knowledge this is a Twinkle issue. Robert McClenon (talk) 04:34, 10 April 2024 (UTC)
- @Robert McClenon thank you, from your notes above this specific error is only coming from Twinkle, correct? Twinkle issues can generally be addressed on-wiki, it just takes someone to write patch for the script. — xaosflux Talk 17:08, 9 April 2024 (UTC)
- @Robert McClenon is this an example of what you are describing? The resultant page appears to maintain the original creator. If the new page is being made by copy/paste you would be listed as the author. — xaosflux Talk 15:55, 9 April 2024 (UTC)
- @Xaosflux: I mean the actual notice sent to the talk page when an AfD is initated, as with User talk:BD2412#Deletion discussion about Armen Kazarian. BD2412 T 00:00, 8 April 2024 (UTC)
- I don't believe that any notification is technically required, the obvious fix would be to get rid of notifications... But I don't think thats what you mean. Horse Eye's Back (talk) 15:59, 9 April 2024 (UTC)
- Actually, if I am the one who turns a redirect into an article, I would want to be notified if that article is nominated for deletion. BD2412 T 16:23, 9 April 2024 (UTC)
- The watchlist seem to fill that role for most, personally I almost always hit the little star when making a redirect or unredirecting. Horse Eye's Back (talk) 17:00, 9 April 2024 (UTC)
- Some editors don't use watchlists, and would still like to be notified that their work is being tagged for deletion. Templates on user talk pages are the "gold standard" for notices to editors, and so are required for noticeboards, where pinging is not a substitute. Some editors may not care about these notifications, but other editors either want them or should receive them, so that editors who do not care for them can ignore them. Editors who receive misdirected notifications, as are being discussed here, sometimes ridicule them. Robert McClenon (talk) 04:34, 10 April 2024 (UTC)
- Thank you for mansplaining Templates to me... Including the completely irrelevant information about templates related to noticeboards when we're discussing AfD notification. Next time resist the urge. Horse Eye's Back (talk) 16:17, 12 April 2024 (UTC)
- Some editors don't use watchlists, and would still like to be notified that their work is being tagged for deletion. Templates on user talk pages are the "gold standard" for notices to editors, and so are required for noticeboards, where pinging is not a substitute. Some editors may not care about these notifications, but other editors either want them or should receive them, so that editors who do not care for them can ignore them. Editors who receive misdirected notifications, as are being discussed here, sometimes ridicule them. Robert McClenon (talk) 04:34, 10 April 2024 (UTC)
- The watchlist seem to fill that role for most, personally I almost always hit the little star when making a redirect or unredirecting. Horse Eye's Back (talk) 17:00, 9 April 2024 (UTC)
- Actually, if I am the one who turns a redirect into an article, I would want to be notified if that article is nominated for deletion. BD2412 T 16:23, 9 April 2024 (UTC)
Bug with Special:Search or just me?
I'll preface by saying this is minor, since you can just search again without going back.
I am using Google Chrome, desktop, and today I noticed some odd behaviour with search:
- I went to Special:Search (technically an archive search, but it is happening with just the base one too);
- I typed a search term and successfully searched it;
- I clicked back on my browser (it took me to the search page, with the search term I typed in the box - this is expected);
- I then cleared the box and typed a new search term and clicked search again;
- The term that was searched was the one I had searched the first time around, not the new one I typed in.
So, in short, if I search for something from Special:Search and then navigate back to before that search happened and then try to search for something else, it will always just repeat the first search. – 2804:F14:8090:C501:686B:E2D5:C69E:9592 (talk) 02:07, 8 April 2024 (UTC)
- I see the same with with Edge, which is based on Chromium, so it has some commonality with Chrome. I'd guess its browser caching or some cookie wierdness. RudolfRed (talk) 03:21, 8 April 2024 (UTC)
- I can't reproduce this for some reason (the input is empty for me after I press "Back"), but this is very similar to phab:T354107, just with the "Back" button. Jack who built the house (talk) 03:06, 9 April 2024 (UTC)
- And it searches fine when you try?
- By the way I looked at the inspect element, and it does look like the image shared([1]) in that bug report - in fact, if I go back and try searching and repeat that a few times, there will be a new element for each of my new searches (though it always searches the first one).
- So yeah, I think that is the same bug. – 2804:F14:8090:C501:E8D8:2D74:117E:F93D (talk) 03:55, 9 April 2024 (UTC)
- When I press "Back", the search input is clear for me. So the state of this page is not cached. This is probably why it works for me to search again. Jack who built the house (talk) 04:55, 10 April 2024 (UTC)
- It does the same thing for me - Win11, Firefox 124.0.1 Black Kite (talk) 04:01, 9 April 2024 (UTC)
I think I understand what is causing this bug:
- When clicking search it calls the setSearchSubmitTrigger function in
modules/ext.advancedSearch.init.js
; $searchField
is the actual searchbox element you type in, in line 60 that text is processed and saved to a variable, and in the next lines that value is put in a new, hidden,<input>
element. This new element is created with aname
attribute copied from the searchbox element (this hidden element is the one withname="search"
in the image in that bug report);- In line 65 the value of the searchbox's
name
attribute ("search") is then cleared, the search then proceeds using the hidden element; - The bug then, is that when you navigate back on Chrome (and I guess Firefox), the page doesn't get (down)loaded again (browser cache?). The searchbox and this hidden element are still in the page and in this post-search state.
- When you search again, it creates a new hidden element with a name attribute set to an empty string (because it's copying from the searchbox one and that one was cleared). When the search proceeds it then reuses the hidden element that has the name attribute set to "search", which is the one created in the original search.
If you stop the browser after this function is done (the bug report), these same conditions will be there when you try searching again. – 2804:F14:8090:C501:E8D8:2D74:117E:F93D (talk) 05:51, 9 April 2024 (UTC)
- I'll copy this your message to the task. Jack who built the house (talk) 04:54, 10 April 2024 (UTC)
Database error
While attempting to view Special:Log/ST47ProxyBot, the page times out with a "Database error", and gives the following error message: To avoid creating high database load, this query was aborted because the duration exceeded the limit. If you are reading many items at once, try doing multiple smaller operations instead.
[247f86cf-0f14-41fd-8158-179e904f9c6d] 2024-04-08 08:03:05: Fatal exception of type "Wikimedia\Rdbms\DBQueryTimeoutError"
Not sure if this is an issue that's just inconvenient or one that could be abused, if the latter, feel free to delete/redact my comment. —Locke Cole • t • c 08:23, 8 April 2024 (UTC)
- This may be a bug (for users with many logs, Special:Logs always fails) - waiting a bit to see if it clears or if someone has more information. In the meantime @Locke Cole you can view that accounts logs if you specify the log type first (here are the "block" logs) — xaosflux Talk 10:28, 8 April 2024 (UTC)
- This is already reported (for this very use case) in phab:T325062. — xaosflux Talk 10:30, 8 April 2024 (UTC)
- At least it's not an urgent issue. =) Thanks! —Locke Cole • t • c 17:18, 8 April 2024 (UTC)
Is there any way to get pageviews statistics for a Media Viewer page on Wikipedia?
Hi all
Does anyone know if there is any way to know how many times an image was viewed in Media Viewer? It looks like from the URL that Wikipedia has a separate URL for each location on each language Wikipedia an image is viewed. E.g
https://en.wikipedia.org/wiki/Potato#/media/File:Patates.jpg
I'd like to know this information for all images in a Commons category but I realise that this may be difficult.
Thanks very much
John Cummings (talk) 09:10, 8 April 2024 (UTC)
- See also phab:T235588 which could encompass this. — xaosflux Talk 10:24, 8 April 2024 (UTC)
- Thanks very much Xaosflux, do you happen to know any other way of getting the info? Even just for individual pages would be really helpful. John Cummings (talk) 11:39, 8 April 2024 (UTC)
- There are server logs, but they are not readily available for public review. — xaosflux Talk 13:05, 8 April 2024 (UTC)
- Thanks very much Xaosflux, do you happen to know any other way of getting the info? Even just for individual pages would be really helpful. John Cummings (talk) 11:39, 8 April 2024 (UTC)
- https://pageviews.wmcloud.org/mediaviews/?project=en.wikipedia.org&platform=&agent=user&referer=all-referers&start=2024-02-01&end=2024-04-06&files=Patates.jpg
- But we don't track the mediaviewer specifically as far as I know. —TheDJ (talk • contribs) 14:11, 8 April 2024 (UTC)
- Hi TheDJ thanks so much, can you tell me exactly what this is measuring, is it all views of the image on all articles its used on + media viewer or something else? John Cummings (talk) 20:53, 8 April 2024 (UTC)
- its all views of an image, in any size in any form. —TheDJ (talk • contribs) 07:41, 9 April 2024 (UTC)
- Hi TheDJ thanks so much, can you tell me exactly what this is measuring, is it all views of the image on all articles its used on + media viewer or something else? John Cummings (talk) 20:53, 8 April 2024 (UTC)
Tech News: 2024-15
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- Web browsers can use tools called extensions. There is now a Chrome extension called Citation Needed which you can use to see if an online statement is supported by a Wikipedia article. This is a small experiment to see if Wikipedia can be used this way. Because it is a small experiment, it can only be used in Chrome in English.
- A new Edit Recovery feature has been added to all wikis, available as a user preference. Once you enable it, your in-progress edits will be stored in your web browser, and if you accidentally close an editing window or your browser or computer crashes, you will be prompted to recover the unpublished text. Please leave any feedback on the project talk page. This was the #8 wish in the 2023 Community Wishlist Survey.
- Initial results of Edit check experiments have been published. Edit Check is now deployed as a default feature at the wikis that tested it. Let us know if you want your wiki to be part of the next deployment of Edit check. [2][3]
- Readers using the Minerva skin on mobile will notice there has been an improvement in the line height across all typography settings. [4]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 9 April. It will be on non-Wikipedia wikis and some Wikipedias from 10 April. It will be on all wikis from 11 April (calendar). [5][6]
- New accounts and logged-out users will get the visual editor as their default editor on mobile. This deployment is made at all wikis except for the English Wikipedia. [7]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:34, 8 April 2024 (UTC)
Draft:Ardenza Enormous image
I have just created this draft, but the image is highly oversized. I have tried both default image size and then 250px manual. What's the problem? Kind regards 14 novembre (talk) 🇮🇹 18:45, 9 April 2024 (UTC)
- Answered at WP:THQ, please don't ask same question in multiple venues. RudolfRed (talk) 19:28, 9 April 2024 (UTC)
Compare select revisions
Don't know if this is quite the correct forum to be posting this:
When one views 'edit history' on any given article, selects the different versions, and then clicks on Compare select revisions, the pale yellow used to highlight deleted mark up is barely visible. Esp when only one character in a sentence or paragraph has been deleted, which is virtually impossible to discern sometimes. Is there any way to change the (very) pale yellow used to highlight deleted characters to a more visible tone or color, perhaps orange or gold? — Thanx. -- Gwillhickers (talk) 17:34, 9 April 2024 (UTC)
- You can define any colour you like in your personal CSS, e.g. add to User:Gwillhickers/common.css this line:
.diffchange background-color: orange;Uwappa (talk) 20:16, 9 April 2024 (UTC)- That won't work at all. This should work: it goes in your CSS. --Redrose64 🌹 (talk) 22:48, 9 April 2024 (UTC)
.diff-deletedline .diffchange { background: orange; }
- Redrose64's CSS suggestion is correct. Uwappa (talk) 11:20, 10 April 2024 (UTC)
- That won't work at all. This should work:
Number of watchers
If you go to ?action=info
for any page, you will see a table with various statistics, including two lines about how many people are watching the page, e.g.:
Number of page watchers | 375 |
Number of page watchers who visited recent edits | 12 |
For example, https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?action=info for this page.
I am finding that the ratio shown here is not at all unusual for older articles, but the first line gets more attention from editors. They think "hundreds of editors are watching this page", when they should be thinking "almost nobody is watching this page". Is there a way we could remove/hide the irrelevant number from this info page? Or should we just change MediaWiki:Pageinfo-watchers to something like "Total number of watchlists (includes inactive editors)"? WhatamIdoing (talk) 04:53, 10 April 2024 (UTC)
- I don't think we should localize that message. This topic was recently more broadly discussed in meta:Community Wishlist Survey 2023/Notifications, Watchlists and Talk Pages/Change information about the number of watchers on a page. — xaosflux Talk 09:38, 10 April 2024 (UTC)
- phab:T336250 is open about this. — xaosflux Talk 09:40, 10 April 2024 (UTC)
- @WhatamIdoing: It's certainly possible, the system message is MediaWiki:Pageinfo-watchers. We haven't created this, so we presently use the MW default message. --Redrose64 🌹 (talk) 16:17, 10 April 2024 (UTC)
- I’m one of those who ‘think "hundreds of editors are watching this page", when they should be thinking "almost nobody is watching this page"’ ... I think we should have that “second line” added to these pages (or replaced the “first line”):
- --Dustfreeworld (talk) 18:30, 11 April 2024 (UTC)
- I bet someone here could write a .css script that would blank that out, or rename it to something like "This is the wrong line – ignore it". I checked a bunch of Special:Random pages, and most of them showed no data, due to there being too few people watching the pages. WhatamIdoing (talk) 21:11, 11 April 2024 (UTC)
- For hiding that row on the page information page on Wikipedia, try
#mw-pageinfo-watchers { display: none; }
in one of the .css files. –Novem Linguae (talk) 22:43, 11 April 2024 (UTC)- Thanks, @Novem Linguae. That seems to have worked for me. That suggests that iff we ever decided that we wanted to do that globally, it could be done in (e.g.,) global.css. I'm going to try this out for a while. I suspect that I'll like it. WhatamIdoing (talk) 22:32, 12 April 2024 (UTC)
- For hiding that row on the page information page on Wikipedia, try
- I bet someone here could write a .css script that would blank that out, or rename it to something like "This is the wrong line – ignore it". I checked a bunch of Special:Random pages, and most of them showed no data, due to there being too few people watching the pages. WhatamIdoing (talk) 21:11, 11 April 2024 (UTC)
- @WhatamIdoing: It's certainly possible, the system message is MediaWiki:Pageinfo-watchers. We haven't created this, so we presently use the MW default message. --Redrose64 🌹 (talk) 16:17, 10 April 2024 (UTC)
- phab:T336250 is open about this. — xaosflux Talk 09:40, 10 April 2024 (UTC)
- #til:
- If it's on <30 watchlists, no number is given for either item (the second item is simply suppressed).
- If it's on ≥30 watchlists, an exact number is given for both items.
- If the second number is zero, it says "There may or may not be a watching user visiting recent edits" instead of a second number. WhatamIdoing (talk) 23:53, 10 April 2024 (UTC)
Is there a way we could remove/hide the irrelevant number from this info page?
I would not support removing this. Presenting both numbers, and letting the user decide which they want or need, seems like an acceptable status quo here. The less than 30 thing for non admins is for security reasons. Admins can see both numbers at all times. The linked phab ticket mentions changing the second message to mention 30 days explicitly. I could get behind a change like that. –Novem Linguae (talk) 02:05, 11 April 2024 (UTC)- Under what circumstances do you think it would it be useful for to you to know that the watchlists associated with 1,991 mostly inactive (and sometimes actually dead) include the defunct Wikipedia:WikiProject Contents?
- The number of active editors presently watching that page is a single-digit number. I can understand why that number would be useful to know, but not why the first has practical value. WhatamIdoing (talk) 02:56, 11 April 2024 (UTC)
- As far as I can tell, pages can be watched actively, without the user being considered active there - such as through email or syndication. — xaosflux Talk 08:45, 11 April 2024 (UTC)
- Or by looking at the watchlist but not visiting the links. Nardog (talk) 09:43, 11 April 2024 (UTC)
- I suspect that the scenario Nardog describes is far more common than the one Xaosflux describes. WhatamIdoing (talk) 18:32, 11 April 2024 (UTC)
- That was an argument against hiding the total number of watchers. I was echoing Xaosflux. Nardog (talk) 05:58, 13 April 2024 (UTC)
- I suspect that the scenario Nardog describes is far more common than the one Xaosflux describes. WhatamIdoing (talk) 18:32, 11 April 2024 (UTC)
- Or by looking at the watchlist but not visiting the links. Nardog (talk) 09:43, 11 April 2024 (UTC)
- As far as I can tell, pages can be watched actively, without the user being considered active there - such as through email or syndication. — xaosflux Talk 08:45, 11 April 2024 (UTC)
You are invited to join the discussion at Module talk:Wd § Getting Template:Update tracker working with qualifiers. Sdkb talk 14:03, 10 April 2024 (UTC)
Anchor
I am having trouble putting an anchor at a specific row in List of cover versions of Led Zeppelin songs. In particular, I want an anchor on the song "That's the Way". I tried
| rowspan="4" | {{Anchor|"That's the Way"}} "[[That's the Way (Led Zeppelin song)|That's the Way]]"
but loading the page with the anchor in the URL didn't seem to take me there. I looked at the documentation at Help:Tables and locations § Section link or map link to a row anchor which told me to try
|- id="That's the Way"
but I'm getting the same issue (also, I'm not certain how to encode quotation marks if I go the id on the row route). I'm sure I'm missing something obvious here. Kimen8 (talk) 16:31, 10 April 2024 (UTC)
- List of cover versions of Led Zeppelin songs#That's the Way currently takes me to the table entry as expected. The previous revision (with {{Anchor|That's the Way}}, no quotes) also works for me. What are you trying to do? —Cryptic 16:40, 10 April 2024 (UTC)
- This is what I figured. Something with my browser, even caching, who knows. I tried incognito and it didn't work. Good to know the current version works.
- Do you know how to escape quotes using the row id anchor? Or should I just use the anchor template in that situation?
- Thanks for your help.
- Kimen8 (talk) 17:11, 10 April 2024 (UTC)
- The documentation at the first bullet point in Template:Anchor#Limitations says to use
"
, and - without actually having tried either - I'd expect"
to work too. The same is likely true when using id=, which looks better to me since it takes you to the top of the table cell instead of the top of the text in it. But stylistically speaking, List of cover versions of Led Zeppelin songs#That's the Way is more likely correct than List of cover versions of Led Zeppelin songs#"That's the Way" anyway, even if you're piping it as something like "That's the Way". —Cryptic 17:23, 10 April 2024 (UTC)
- The documentation at the first bullet point in Template:Anchor#Limitations says to use
- @Kimen8 and Cryptic: On the matter of anchors in tables, please see Wikipedia:Village pump (technical)/Archive 211#How to create an anchor for a table row?. --Redrose64 🌹 (talk) 18:59, 10 April 2024 (UTC)
- In rowspan="4" the rowspan will be 4, without the quotes.
- Likewise, in id="That's the Way" the anchor will be That's_the_Way, without the quotes (underscores replace the blanks).
- So List_of_cover_versions_of_Led_Zeppelin_songs#That's_the_Way works well, as it should do
- but List_of_cover_versions_of_Led_Zeppelin_songs#"That's_the_Way" does not work.
- You were doing fine putting an anchor. The misunderstanding was in referring to the anchor. Uwappa (talk) 04:49, 11 April 2024 (UTC)
Table of Contents can't display some statistics symbols
(I'm posting it here since this place gets more traffic than Wikiversity). We have a statistical page in Wikiversity which includes statistical symbols in the headings. While there's no issue with those symbols shown in the body of the page, the Table of Contents is bugged whenever these symbols are used. Does anyone have the solution to this problem? OhanaUnitedTalk page 21:16, 10 April 2024 (UTC)
- This is likely to be T295091, an unresolved bug from November 2021. – Jonesey95 (talk) 21:24, 10 April 2024 (UTC)
- @OhanaUnited: The first problem heading is
==== Haphazard weights with estimated ratio-mean (<math>\hat{\bar{Y}}</math>) - Kish's design effect ====
which contains<math>...</math>
markup. The problem that you observe is why our MOS:HEADINGS saysFor technical reasons, section headings should ... Not contain <math> markup.
--Redrose64 🌹 (talk) 22:33, 10 April 2024 (UTC)
Why doesn't this code work?
I have a script at User:TheTechie/tut.js. The function getText
is supposed to return something, but it returns undefined. Even alert
ing the returned wikitext returns something, but returning it or assigning it to a variable and using it in arcTo
still returns undefined.
Browser: Chrome 122.0.6261.137 (either stable or LTS)
Can someone help me here? Thanks --- thetechie@wikimedia: ~/talk/ $ 01:34, 11 April 2024 (UTC)
- First off, are you calling getPage from somewhere? I don't see a call to it in the code currently.
- Second, have you tried step debugging it in Chrome Dev tools? Press f12, ctrl shift f to search for getpage, place some breakpoints inside by clicking on the line number, then run the code. Hover over variables and hit f10 to see what the code is doing. –Novem Linguae (talk) 02:14, 11 April 2024 (UTC)
- @Novem Linguae Sorry, I meant that
getText
stores value in a variable calledwikitext
, which when used inarcTo
, is equal toundefined
. When the wikitext got ingetText
isalert
ed, it returns something, but when the wikitext is assigned to a variable and used inarcTo
it is undefined. As for the dev tools thing, I'm currently kinda busy and can't use devtools right now, I will when I get the chance. Sorry for the confusion. thetechie@wikimedia: ~/talk/ $ 15:36, 11 April 2024 (UTC)- I installed your script just now and took a closer look. The
getText
codepath never runs because nothing calls it. Are you saying you needgetText
to run so you can set the wikitext variable to something other than undefined? If so you need to putgetText( title );
somewhere. –Novem Linguae (talk) 16:07, 11 April 2024 (UTC)- No, when gettext runs it returns undefined. Thanks --- thetechie@wikimedia: ~/talk/ $ 17:01, 11 April 2024 (UTC)
- @Novem Linguae I fixed the call issues, but it still returns undefined. (Hint: To run the offending function, click the TUT in the menu and select "Arc" and enter a page name). Thanks --- thetechie@wikimedia: ~/talk/ $ 17:13, 11 April 2024 (UTC)
- Unrelated tip: it's hard for other developers to read your code if you abbreviate. I'd suggest expanding TUT, arc, arch, arcTo, sm, etc. to use their full names. –Novem Linguae (talk) 22:52, 11 April 2024 (UTC)
- I installed your script just now and took a closer look. The
- @Novem Linguae Sorry, I meant that
getText
doesn't have a return statement, so it won't return anything. If you want to make it return Promise<string>, it needs return statements on line 16 and line 31. See promise chaining. – SD0001 (talk) 16:20, 11 April 2024 (UTC)- @SD0001 As stated above, if I try to return it, it just returns undefined. thetechie@wikimedia: ~/talk/ $ 16:45, 11 April 2024 (UTC)
- What is
Promise<string>
and how do I make it return it? thetechie@wikimedia: ~/talk/ $ 16:46, 11 April 2024 (UTC)
- @SD0001 and Novem Linguae: update: if I run the function the second time, it gets the variable and it isn't undefined. I'll be looking into this, just wanted to update you both though. thetechie@wikimedia: ~/talk/ $ 17:25, 11 April 2024 (UTC)
- Also I appear to have done something on accident which causes the portlet to not appear, even though the function to add a portlet is called. Any help is appreciated. thetechie@wikimedia: ~/talk/ $ 21:54, 11 April 2024 (UTC)
- Try changing lines 118 and 119 to...
- –Novem Linguae (talk) 22:57, 11 April 2024 (UTC)
arc = mw.util.addPortletLink( 'p-ttut', '#', 'Arc', 'ttut-arc' ); smil = mw.util.addPortletLink( 'p-ttut', '#', 'TBD2', 'ttut-sm' );
- I see, thank you! thetechie@wikimedia: ~/talk/ $ 00:05, 12 April 2024 (UTC)
Is there anyway to change the clock in preferences so it shows BST?
Right now it shows UTC so it is an hour behind real time in the UK. Thanks. Doug Weller talk 09:21, 11 April 2024 (UTC)
- Special:Preferences#mw-prefsection-rendering scroll down to Time offset, Time zone. Uwappa (talk) 09:26, 11 April 2024 (UTC)
- Thanks, but although I see it I don't see a way to get it to change what I see. Doug Weller talk 10:06, 11 April 2024 (UTC)
- Click the "Time zone" field and select Europe/London. PrimeHunter (talk) 11:39, 11 April 2024 (UTC)
- Thanks, but although I see it I don't see a way to get it to change what I see. Doug Weller talk 10:06, 11 April 2024 (UTC)
- Which "clock" are you referring to?
- Uwappa and PrimeHunter above are talking about the display of times in the watchlist, page history, and other special pages.
- If you're talking about the UTCLiveClock gadget ("(S) Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page (documentation)"), docs at the top of mw:MediaWiki:Gadget-UTCLiveClock.js specify what to add to your common.js or skin.js to change the timezone.
- If you're talking about the timestamps shown on comments in discussion pages like this one, there's a CommentsInLocalTime gadget ("(U) Change UTC-based times and dates, such as those used in signatures, to be relative to local time (documentation)") to adjust the display, but I believe you'll have to live with UTC in the editor like the rest of us around the world do.
- HTH. Anomie⚔ 11:56, 11 April 2024 (UTC)
- @Anomie Thanks. @PrimeHunter@Uwappa Apologies for not being more specific. Doug Weller talk 12:06, 11 April 2024 (UTC)
Show edits by edit summary?
Is there a way to show all edits by edit summary? Via a web interface. For example, show all edits that contain the string "WP:URLREQ#herbaria4.herb.berkeley.edu" such as Special:Diff/1165643139/1218392247. -- GreenC 13:26, 11 April 2024 (UTC)
- GreenC, you mean other than a SQL query? If it's just for one user you can use this tool. — Qwerfjkltalk 15:04, 11 April 2024 (UTC)
- User:Qwerfjkl: That's perfect, thanks. It works. -- GreenC 16:23, 11 April 2024 (UTC)
- @GreenC: That tool is in the box at the bottom of your contribs page, fifth from the left as "Edit summary search". --Redrose64 🌹 (talk) 17:00, 11 April 2024 (UTC)
- I should have known about this a long time ago. -- GreenC 17:41, 11 April 2024 (UTC)
- @GreenC: That tool is in the box at the bottom of your contribs page, fifth from the left as "Edit summary search". --Redrose64 🌹 (talk) 17:00, 11 April 2024 (UTC)
- User:Qwerfjkl: That's perfect, thanks. It works. -- GreenC 16:23, 11 April 2024 (UTC)
Contributions link dropdown
Is there a .css or .js way to disable the dropdown ? - FlightTime (open channel) 14:09, 11 April 2024 (UTC)
- You can disable Content Translation in Preferences → Beta features if you don't use it. Nardog (talk) 15:14, 11 April 2024 (UTC)
- @Nardog: Should of looked there :P Thanks. - FlightTime (open channel) 15:40, 11 April 2024 (UTC)
Weird behavior with PAGELANGUAGE and ifeq
You are invited to join the discussion at mw:topic:Y2o9jrgkmckm2hv4. Aaron Liu (talk) 17:18, 11 April 2024 (UTC)
"Template parameters changed" appearing on every template on page when "review your changes" clicked
Hi there, I started having this issue today that's making it nearly impossible to edit.
When I click "review your changes" after editing a page, "template parameters changed" appears for EVERY template on the page, even if I have not changed any of them. Here is a screenshot I took (uploaded to Imgur). I tried disabling all my user scripts, and I am still having the issue.
I am using Firefox version 124.0.2, on desktop, and my browser is up to date.
I would really really appreciate any help with this. Thank you so much for any help. HeyElliott (talk) 19:13, 11 April 2024 (UTC)
- Also, it's not an issue with any of my extensions, as I'm still having the issue without extensions. HeyElliott (talk) 19:21, 11 April 2024 (UTC)
- Am I right in thinking that today is thursday? --Redrose64 🌹 (talk) 20:54, 11 April 2024 (UTC)
- Same thing happens to me. At first I thought I messed up somehow. (I'm using Chrome, so it's not the browser). Nikolaj1905 (talk) 11:07, 12 April 2024 (UTC)
- Hey all, I've left the results of the investigation in the phab task, but this is a one-off disruption because of changes in contents of data-mw attributes of template content wrappers in Parsoid HTML. When cached HTML (generated by older production code) is compared with new HTML (generated by new production code that went out this week), you will see these noisy diffs reported by the visual diff code which compares HTML (not wikitext). But, you shouldn't run into this in subsequent edits. Sorry about the disruption. SSastry (WMF) (talk) 13:43, 12 April 2024 (UTC)
- @SSastry (WMF): Thanks for the explanation. I thought page diffs are based on Wikitext. Can you explain why in this case it is comparing the output HTML instead of the Wikitext? RudolfRed (talk) 19:54, 12 April 2024 (UTC)
- Thanks so much for your quick fix on this and the reply, I really really appreciate the work y'all do on this site! I've still been having this issue a few times today but I assume that's just because of the cached stuff, and it'll fix itself? (Sorry, I don't know much about caches and HTML and such.)
- Thank you again, and I hope you have a great day! HeyElliott (talk) 19:57, 12 April 2024 (UTC)
- Sorry to reply again, but I'm still getting the error often. Do I need to clear my cache or something? Again, sorry, I'm not super knowledgeable on this stuff. Thank you! HeyElliott (talk) 03:20, 13 April 2024 (UTC)
Missing Article for improvement
This week's Article for improvement seems to have gone missing. There was one last week, and there's one scheduled for next week, but there's none for this week:
Wikipedia:Articles for improvement/2024/15/1
BentSm (talk) 03:50, 12 April 2024 (UTC)
- If I'm understanding MusikBot correctly, it was supposed to have posted the schedule for week 15 to Wikipedia talk:Articles for improvement on the 18th of March at 00:05.
- Doesn't seem like it did that (don't see any sign of why).
- No errors at User:MusikBot/TAFIWeekly/Error log, except for an error on the 8th (which despite that error it seemingly worked anyways? [8]...) – 143.208.238.195 (talk) 05:09, 12 April 2024 (UTC)
citoid not working for some refs that used to work
citoid (VisualEditor automatic citation generator service) is not working for some refs that used to work. including NY Times. see phab:T362379. Jeremyb (talk) 18:02, 12 April 2024 (UTC)
Search function and redirects to anchors
Using the search function at the top of the page for a case with a redirect to an anchor brings the reader to the top of the redirected article, not to the anchor, which is not convenient for the reader. Is this behaviour intended? This seems to be a significant down-side of redirect to anchors for me.
The following example is for illustration (the question is not about this specific example): There is a redirect for Facial expression recognition. The search function will show Affective computing as a result. Clicking on it leads to the beginning of this article, which itself does not contain "Facial expression recognition", because the anchor leads to "Facial affect detection". Kallichore (talk) 19:08, 12 April 2024 (UTC)
- I opened phab:T362442 on this. Feel free to voice support there, good chance some search dev is going to say this is a feature not a bug. — xaosflux Talk 20:55, 12 April 2024 (UTC)
Issue with Search Feature on Wikimedia
I conducted a search for "Solar eclipse of 2024 April 8" on Wikimedia.
Expecting a concise and accurate description of the page, I was disappointed by the search results.
Here is the link to the search results
Upon clicking, I found metadata in Hungarian, which is unusual, as the page is new and not previously associated with Hungarian. Additionally, no image is displayed.
Metadata:
Solar eclipse of 2024 April 8
<nowiki>eclipse solar del 8 de abril de 2024; 2024. április 8-i napfogyatkozás; 2024ko apirilaren 8ko eguzki eklipsea; eclipse solar del 8 d'abril de 2024; Sonnenfinsternis...
Could the search feature generate metadata that accurately describes the page's content and include an image from the page? AceSeeker (talk) 23:53, 12 April 2024 (UTC)
- When you search for that string on the English Wikipedia, you get reasonable results, as far as I can see. It looks like you did this search on Wikimedia Commons, which is different from the English Wikipedia, and which editors here are not responsible for. It appears that the Commons page that is the first result uses a template called {Wikidata Infobox}. The page description that you are seeing appears to be the names of the corresponding page as listed on Wikidata at d:Q2620078. I don't know why that template on Commons pulls in that data, but you could ask about it at commons:Template talk:Wikidata Infobox. – Jonesey95 (talk) 00:07, 13 April 2024 (UTC)
- Thank you for prompt response and clarifying that the issue may be related to the template {Wikidata Infobox} on Wikimedia Commons. I'll follow up on the commons:Template talk:Wikidata Infobox page to address this matter. Appreciate your assistance! AceSeeker (talk) 00:25, 13 April 2024 (UTC)
Section links in mobile edit summaries
I opened a phabricator issue about this but then I realised I should have discussed it here first. So, when using the edit button for the lead section on mobile (I'm on mobile web, I have no idea if the app is different), no section link is included in the edit summary. On the other hand, on desktop when the "Add an [edit] link for the lead section of a page" gadget is used, a section link is correctly added. In my opinion, mobile should be updated to match desktop's behavior. Nickps (talk) 14:09, 13 April 2024 (UTC)
- Desktop uses MediaWiki:Gadget-edittop.js, where the section edit summary was added ten years ago in this edit. --Redrose64 🌹 (talk) 17:51, 13 April 2024 (UTC)
Reset password issues
Not sure if this is the right place, newbie editor.
So I was trying to reset the password for my old account, Lovecodeabc, so I requested password resets. However the resetting of passwords did not work, and it seems that if I send a password reset on Special:PasswordReset for my email, it works, but not for my username. Additionally, the temporary password emailed for the Lovecodeabc account does not work. I just want to have the Lovecodeabc username back. Any suggestions? Lovecodeabc(tm) (talk) 14:12, 13 April 2024 (UTC)
- The only way to reset a password is by email, and only if you had previously registered and confirmed your email to an account before you forgot the password. Special:PasswordReset always requires both a username and a password, and will only send a reset if both of them match. You can also only do one reset per day in most cases. The first username you mentioned does not appear to have an email registered, unless you specifically reconfigured it to be for reset only and not for wikimail. — xaosflux Talk 14:54, 13 April 2024 (UTC)
- Special:PasswordReset only requires one of username and email address. That's why it says "Fill in one of the fields to receive a temporary password via email". User:Lovecodeabc has not specified a valid email address.[9] The message is different if you have a valid address but have chosen to disallow mails from others. @Lovecodeabc(tm): I guess you entered the email address for Lovecodeabc(tm) and the mail says so, not Lovecodeabc. PrimeHunter (talk) 16:30, 13 April 2024 (UTC)
- Oops, forgot that
Send password reset emails only when both email address and username are provided.
is off by default! So yes, it will send you reset links for ALL the accounts you have under an email address - but again if the email address was never confirmed to the account it won't. — xaosflux Talk 16:54, 13 April 2024 (UTC)- Well, I got a password reset email for Lovecodeabc:
- Oops, forgot that
- Special:PasswordReset only requires one of username and email address. That's why it says "Fill in one of the fields to receive a temporary password via email". User:Lovecodeabc has not specified a valid email address.[9] The message is different if you have a valid address but have chosen to disallow mails from others. @Lovecodeabc(tm): I guess you entered the email address for Lovecodeabc(tm) and the mail says so, not Lovecodeabc. PrimeHunter (talk) 16:30, 13 April 2024 (UTC)
Lovecodeabc(tm) (talk) 20:26, 13 April 2024 (UTC)
- @Lovecodeabc(tm): I did a test. "This user has not specified a valid email address." at https://en.wikipedia.org/wiki/Special:EmailUser?wpTarget=Lovecodeabc can both mean the account never saved an email address and never confirmed it (see Help:Email confirmation). A temporary password can be sent to an unconfirmed email address. I don't know why the password didn't work for you. It's also odd that your screenshot says "lovecodeabc" with lowercase "l" (unless it's an uppercase "L" in a weird font). The first character of usernames is automatically capitalized. If you wrote it as "lovecodeabc" when the account was created then I don't know whether the lowercase "l" is stored somewhere and can still be retrieved in some situations. Anyway, the account only has 19 edits and can just be abandoned. Special:Contributions/Lovecodeabc only shows unimportant userspace edits and Special:CentralAuth/Lovecodeabc shows no edits at other wikis. If you really want the username then you could try Wikipedia:Changing username/Usurpations. It's usually only for accounts with no edits but rare exceptions are made. First check several times in different browsers that a temporary password doesn't work. PrimeHunter (talk) 23:41, 13 April 2024 (UTC)
- No, there wouldn't be any record of the original case. That's an uppercase "I" in the screenshot. There is an account called Special:Contributions/iovecodeabc, created seven days after Special:Contributions/Lovecodeabc. Suffusion of Yellow (talk) 23:56, 13 April 2024 (UTC)
- @Lovecodeabc(tm): I did a test. "This user has not specified a valid email address." at https://en.wikipedia.org/wiki/Special:EmailUser?wpTarget=Lovecodeabc can both mean the account never saved an email address and never confirmed it (see Help:Email confirmation). A temporary password can be sent to an unconfirmed email address. I don't know why the password didn't work for you. It's also odd that your screenshot says "lovecodeabc" with lowercase "l" (unless it's an uppercase "L" in a weird font). The first character of usernames is automatically capitalized. If you wrote it as "lovecodeabc" when the account was created then I don't know whether the lowercase "l" is stored somewhere and can still be retrieved in some situations. Anyway, the account only has 19 edits and can just be abandoned. Special:Contributions/Lovecodeabc only shows unimportant userspace edits and Special:CentralAuth/Lovecodeabc shows no edits at other wikis. If you really want the username then you could try Wikipedia:Changing username/Usurpations. It's usually only for accounts with no edits but rare exceptions are made. First check several times in different browsers that a temporary password doesn't work. PrimeHunter (talk) 23:41, 13 April 2024 (UTC)
@Suffusion of Yellow: My account is Lovecodeabc, not Iovecodeabc. Sorry for the confusion! @PrimeHunter: I'll look into Wikipedia:Changing username/Usurpations. I've checked Mozilla Firefox on Ubuntu 22.04 and Safari on iPadOS. Are there any issues with those two browsers? I haven't used Google Chrome to try it yet. (also, isn't Google Chrome based on Chromium/WebKit, same as Safari)? Lovecodeabc(tm) (talk) 00:44, 14 April 2024 (UTC)
- @Lovecodeabc(tm): Is it possible you also created the account User:Iovecodeabc with your email address and wrote Iovecodeabc at Special:PasswordReset but tried to log in as Lovecodeabc with the temporary password in the mail? That would certainly explain why it didn't work. PrimeHunter (talk) 01:33, 14 April 2024 (UTC)
- Oh yeah, it never occured to me to check the user page of Iovecodeabc! Lovecodeabc(tm) (talk) 01:39, 14 April 2024 (UTC)
- @Lovecodeabc(tm): Everything technical appears resolved now. Lovecodeabc hasn't stored an email address (or has an unknown and unconfirmed address) so it doesn't work to write Lovecodeabc at Special:PasswordReset. Iovecodeabc has stored an email address so it works to either write Iovecodeabc or the email address, but it only sends a password for Iovecodeabc. https://en.wikipedia.org/wiki/Special:EmailUser?wpTarget=Iovecodeabc indicates the email address is not currently confirmed but that can be done as described at Help:Email confirmation. Zzyzx11 wrote there [10] that you need a confirmed email address to reset your password but an unconfirmed stored address is apparently enough for that. Confirmation is required for other email features. PrimeHunter (talk) 02:27, 14 April 2024 (UTC)
- Oh yeah, it never occured to me to check the user page of Iovecodeabc! Lovecodeabc(tm) (talk) 01:39, 14 April 2024 (UTC)
- @Lovecodeabc(tm): Is it possible you also created the account User:Iovecodeabc with your email address and wrote Iovecodeabc at Special:PasswordReset but tried to log in as Lovecodeabc with the temporary password in the mail? That would certainly explain why it didn't work. PrimeHunter (talk) 01:33, 14 April 2024 (UTC)
Changing "input element" to "anchor element" and then making anchor elements unselectable
Hi, after the title of articles, and after final rendering, an expression appears as "translate links from en to fa". Bug scenario is that when we want to select the title, if we suddenly extend the selected region, for example for Wikipedia article, the texts of "Toggle the table of contents" and "en" and "fa" would be in our clipboard. So after pasting the clipboard, the total clipboard text would be:
Toggle the table of contents
Wikipedia
en
fa
To solve this problem, we should apply these styles:
.vector-page-titlebar-toc .translator-equ-wrapper {
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
But the element type for "en" and "fa" is "input" and we can not make "input elements" unselectable, so please convert "input element" to "anchor element" for "en" and "fa" and then apply the above styles. Thanks, Hooman Mallahzadeh (talk) 16:46, 13 April 2024 (UTC)
- I guess this is related to a userscript, not part of the standard user interface. Without that script installed I don't see quite what you're talking about. I suggest asking at fa:MediaWiki talk:Tofawiki.js or consulting Ebrahim. --Jeremyb (talk) 02:46, 14 April 2024 (UTC)
- Hooman Mallahzadeh: This was proposed here User talk:Ebrahim/ArticleTranslator.js#user-select but was making breakage in some other browser so I applied another solution which supposed to not have the issue which apparently isn't imperfect in your case
though I couldn't reproduce your issue. Guess the best way forward is to add your username to a blacklist for the tool so you can develop your own version and after that if your version covers all the use cases on all the different browsers we can merge the versions. Does that sound good? Just please keep your changes to minimum possible for the ease merging back the versions. Thanks −ebrahimtalk 06:27, 14 April 2024 (UTC)- Ok, I can reproduce this, it only happens on double clicks (and not in triple clicks?), and only happens in Chrome and not in Safari and Firefox. Changing those input elements to editable anchor elements isn't that easy, in fact it initially was like that before this edit and some users weren't able to edit them when needed and having that with user-select: none makes users not able to select the text inside to modify the actual language code. −ebrahimtalk 06:56, 14 April 2024 (UTC)
- Hooman Mallahzadeh: Should be fixed now by this. Thanks! −ebrahimtalk 07:22, 14 April 2024 (UTC)
.replace('$3','<a class="translator-from" href="#">en</a>')
.replace('$4', '<a class="translator-to" href="#">fa</a>')
- @Jeremyb-phone The problem for the "Toggle the table of contents" persists for all users, this code makes that unselectable.
.vector-page-titlebar-toc {
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
- Would you please do something to apply this style? Thanks, Hooman Mallahzadeh (talk) 08:47, 14 April 2024 (UTC)
- Oh, regarding the user script (not toggle part), unfortunately that solution will disturb the tool on other browsers than you are testing and things like this will happen on double/triple clicks on Safari. I'm testing with all three browsers (Chrome, Firefox and Safari) but solutions that so far have given to me were fixing one making the other worse so maybe I can add you to the blocklist of the tool so you copy the script and use your version, then if your solution could work on other browsers on my testing I can apply it to main script also. −ebrahimtalk 09:23, 14 April 2024 (UTC)
- Would you please do something to apply this style? Thanks, Hooman Mallahzadeh (talk) 08:47, 14 April 2024 (UTC)