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.
|
XTools Edit Count down?
editSince yesterday, when I bring up my Edit Count from XTools, nothing has updated in two days. Specifically, the Actrion, Patrol figure. On the Basic information, it says "Latest edit 2024-08-03 03:11" which is in error. It also lists "Latest logged action" as 2024-08-03 03:06. Something on the stats end not working? — Maile (talk) 18:48, 4 August 2024 (UTC)
- High replag means that all sorts of stuff that should update will not update until the replication lag goes back to zero. – Jonesey95 (talk) 20:42, 4 August 2024 (UTC)
- Yes, there has been a high replag on both English Wikipedia and the Commons for two days now. It seems to have something to do with this. It's lasting longer than it was expected to take. Liz Read! Talk! 00:21, 5 August 2024 (UTC)
- Yup. I noticed this one too, today. Ktin (talk) 00:38, 5 August 2024 (UTC)
- Thanks for the input. It's been so many years since I've seen this happen, that I forgot the possibility of it. — Maile (talk) 01:39, 5 August 2024 (UTC)
- Actually, it seems to happen fairly frequently, I'd guess monthly or every other month. It usually happens on Thursdays or Fridays. It becomes very evident if your editing relies on bot reports. They seem the most directly affected by these system lags. Liz Read! Talk! 01:50, 5 August 2024 (UTC)
- So the replication lag has reached three and a half days. Is this situation normal or has something gone wrong and needs to be attended to? Can an end date be predicted or is it indeterminate? Nurg (talk) 22:25, 6 August 2024 (UTC)
I poked around and was unable to find a phabricator bug report, but my searching on phabricator does not work well.It looks T367856 accounts for this outage, but there has been no communication from WMF explaining why it is taking longer than the expected 26 hours and when it might be over. Maybe there is chatter on an e-mail list. Does anyone know if the WMF has uptime targets for their servers, including replag? With this one outage, currently at 92 hours, they will be below 99% uptime for the year. We had a 3+ hour outage in May 2024, a 4+ hour outage in June 2024, a 4+ hour outage in September 2023, and probably more. That's a good four and a half days of known downtime in the last twelve months for this valuable service. Not ideal. – Jonesey95 (talk) 06:34, 7 August 2024 (UTC)- There is no guarantees for replag. It is a best effort. We are seeing a lot of this over the last 2 years because Wikimedia are doing major rearchitecting of various database tables to enable them to keep scaling, and unlike the production environment the tools environment does not have the same level of support that would allow to execute these changes without impact. —TheDJ (talk • contribs) 09:32, 7 August 2024 (UTC)
- According to a post at https://phabricator.wikimedia.org/T367856 nothing is broken. A process is running that may take 6 days – or maybe longer, or maybe not so long. Nurg (talk) 00:42, 8 August 2024 (UTC)
- They're obviously working on Valve Time - X201 (talk) 07:11, 9 August 2024 (UTC)
- Hooray, we are over 168 hours (one full week)! (175 hours at this writing.) That's more than a full week of database reports being out of date. It's going to be fun to mop up over a week's worth of mess when this outage finally gets sorted. – Jonesey95 (talk) 17:15, 10 August 2024 (UTC)
- It's not a record. I seem to recall that about four or five years back replag hit two or perhaps three weeks. --Redrose64 🌹 (talk) 18:18, 10 August 2024 (UTC)
- Yay! Quarry queries working, up-to-date again! wbm1058 (talk) 14:27, 13 August 2024 (UTC)
- It's not a record. I seem to recall that about four or five years back replag hit two or perhaps three weeks. --Redrose64 🌹 (talk) 18:18, 10 August 2024 (UTC)
- Hooray, we are over 168 hours (one full week)! (175 hours at this writing.) That's more than a full week of database reports being out of date. It's going to be fun to mop up over a week's worth of mess when this outage finally gets sorted. – Jonesey95 (talk) 17:15, 10 August 2024 (UTC)
- They're obviously working on Valve Time - X201 (talk) 07:11, 9 August 2024 (UTC)
- According to a post at https://phabricator.wikimedia.org/T367856 nothing is broken. A process is running that may take 6 days – or maybe longer, or maybe not so long. Nurg (talk) 00:42, 8 August 2024 (UTC)
- There is no guarantees for replag. It is a best effort. We are seeing a lot of this over the last 2 years because Wikimedia are doing major rearchitecting of various database tables to enable them to keep scaling, and unlike the production environment the tools environment does not have the same level of support that would allow to execute these changes without impact. —TheDJ (talk • contribs) 09:32, 7 August 2024 (UTC)
- So the replication lag has reached three and a half days. Is this situation normal or has something gone wrong and needs to be attended to? Can an end date be predicted or is it indeterminate? Nurg (talk) 22:25, 6 August 2024 (UTC)
- Actually, it seems to happen fairly frequently, I'd guess monthly or every other month. It usually happens on Thursdays or Fridays. It becomes very evident if your editing relies on bot reports. They seem the most directly affected by these system lags. Liz Read! Talk! 01:50, 5 August 2024 (UTC)
- Thanks for the input. It's been so many years since I've seen this happen, that I forgot the possibility of it. — Maile (talk) 01:39, 5 August 2024 (UTC)
- Yup. I noticed this one too, today. Ktin (talk) 00:38, 5 August 2024 (UTC)
- Yes, there has been a high replag on both English Wikipedia and the Commons for two days now. It seems to have something to do with this. It's lasting longer than it was expected to take. Liz Read! Talk! 00:21, 5 August 2024 (UTC)
AfD Statistics not updating either
editAfD Statistics https://afdstats.toolforge.org/afdstats has not updated since at least yesterday. I am assuming this is th same issue as replag — Maile (talk) 13:02, 5 August 2024 (UTC)
- Working again, as of this AM. — Maile (talk) 11:33, 8 August 2024 (UTC)
Wikiproject Assessment tables not updating either
editReported at Wikipedia talk:Version 1.0 Editorial Team/Index. Same root cause? Nurg (talk) 23:48, 5 August 2024 (UTC)
PetScan
editI'm assuming that WP:PETSCAN is affected by the same problem as well, because articles that I fixed a few days ago are still showing in the search results. - X201 (talk) 08:05, 8 August 2024 (UTC)
Delay in global lock on account
edit𝕲𝕵𝕺𝕭𝕬𝕵 𝕺𝕽𝕯𝕰𝕶 𝕺𝕱 𝕾𝕬𝕿𝕬𝕹's account is global locked, even though their name is in title blacklist for only on English Wikipedia.[1] Also, why was their account even given the permission to be created, so that they can make three edits and then get globally locked? Thanks, ExclusiveEditor Notify Me! 16:11, 6 August 2024 (UTC)
- ^
.*[^\0-\x{FFFF}].* <casesensitive> in # Very few characters outside the Basic Multilingual Plane are useful in titles
on local
- What is a "gjobaj ordek" anyway? —Tamfang (talk) 06:04, 12 August 2024 (UTC)
- @Tamfang: Typo for "global order", I think. --Redrose64 🌹 (talk) 17:08, 12 August 2024 (UTC)
- This global account was created on another project, TBL doesn't stop autocreation. — xaosflux Talk 18:58, 6 August 2024 (UTC)
Adding transparency to make templates more dark-mode friendly
editAs someone who has witnessed the transition to Fandom Desktop which had a dark mode included, I want to suggest something that might actually be good for templates, and that is adding transparency to backgrounds (not to the font, just to backgrounds using rgba or hex codes) This could be done automatically but it might be better to do so in wikitext and may be a good addition to the manual of style. This would allow the text to be colored white (or whatever) and we would not have to auto-color stuff with backgrounds black. I wonder what level of transparency would be good for this. I was thinking 0.1 but there isn't a good way to check. Maybe this could be done as a bot task for inline styles and by interface admins for CSS sheets. Awesome Aasim 19:34, 6 August 2024 (UTC)
- Maybe that is useful for the night mode gadget (I would not know), but for the vector-2022/minerva night mode using 'background:transparent' where the light mode color is white is frowned upon per Mw:Recommendations for night mode compatibility on Wikimedia wikis#Avoid using background: none or background: transparent. Snævar (talk) 21:58, 8 August 2024 (UTC)
- No I do not think
background: transparent;
should be used. I think there should be partial transparency. Something like this: - Red
- Yellow
- Green
- Try viewing like this and you should see that the colors should appear fine on both light and dark without any adjustments. Awesome Aasim 22:45, 11 August 2024 (UTC)
- Wait that is so weird. Why is the text color being changed to this black color when background tags are used? I am just testing with safe mode and it is happening. Thoughts? Awesome Aasim 22:48, 11 August 2024 (UTC)
- @Awesome Aasim: The text color is changed to black because a CSS rule was put into MediaWiki that automatically sets the text color to #202122 in dark mode if no text color is specified locally. If you don't want this to happen, you can simply add
color:inherit;
like this: Green. Andumé (talk) 01:06, 12 August 2024 (UTC)- For more information see phab:T358797. Andumé (talk) 01:16, 12 August 2024 (UTC)
- I am still confused why was that task implemented? They probably should have just consulted with communities first as to how they would like templates and whatnot to be implemented. Using a light/dark mode switch would be ideal but having partial transparency would be easier to implement for template designers. Especially for the number of templates that use a combination of inline styles and TemplateStyles. I think there should probably be a task for adding transparency to inline elements. Awesome Aasim 16:09, 12 August 2024 (UTC)
- @Awesome Aasim: I believe this fix was implemented because smaller wiki would likely not have enough technical contributors to fix the affected templates locally in a reasonable amount of time. Once all of the templates affected by the global rule are fixed, it can be disabled using MediaWiki:Wikimedia-styles-exclude. See https://www.mediawiki.org/wiki/Extension:WikimediaMessages#Disabling_styles for more infomation. Hope this helps! Andumé (talk) 22:48, 12 August 2024 (UTC)
- Adding 'display:transparent' is a later stage thing and too soon to do now. Since you are mentioning templates and templatestyles, pages in the template namespace that are not redirects or subpages are 3047 and number of "styles.css" pages in the template namespace are 570. Disabling night mode styles from Wikimedia Messages needs to be done with other changes that make the whole stylesheet unnecessary. Snævar (talk) 02:27, 13 August 2024 (UTC)
- That CSS does not work. There is the
opacity
property but that is not what we should use. We should be adding transparency to just the background colors, like I showed above, not to the entire elements. Awesome Aasim 18:52, 15 August 2024 (UTC)
- That CSS does not work. There is the
- I am still confused why was that task implemented? They probably should have just consulted with communities first as to how they would like templates and whatnot to be implemented. Using a light/dark mode switch would be ideal but having partial transparency would be easier to implement for template designers. Especially for the number of templates that use a combination of inline styles and TemplateStyles. I think there should probably be a task for adding transparency to inline elements. Awesome Aasim 16:09, 12 August 2024 (UTC)
- For more information see phab:T358797. Andumé (talk) 01:16, 12 August 2024 (UTC)
- @Awesome Aasim: The text color is changed to black because a CSS rule was put into MediaWiki that automatically sets the text color to #202122 in dark mode if no text color is specified locally. If you don't want this to happen, you can simply add
- Wait that is so weird. Why is the text color being changed to this black color when background tags are used? I am just testing with safe mode and it is happening. Thoughts? Awesome Aasim 22:48, 11 August 2024 (UTC)
- No I do not think
"Remember me" not working as intended for me
editExactly as title. The checkbox states that it would last a year, yet sometimes I would find myself not logged in even though I am using the same device, same browser, etc. It is just a mild annoyance, but can someone give me pointers on how to fix this? Thanks in advance. —Mint Keyphase (Did I mess up? What have I done?) 01:26, 8 August 2024 (UTC)
- Could happen if you log out on another device in the meantime. hgzh 10:51, 8 August 2024 (UTC)
- But I am only using this one device logged in, and I'm quite sure my account wasn't hacked (hopefully(?)). —Mint Keyphase (Did I mess up? What have I done?) 11:23, 8 August 2024 (UTC)
- Anything that clears or blocks your local storage (cookies) can invalidate your saved logon. Some browser or browser extension updates can cause this. — xaosflux Talk 15:10, 8 August 2024 (UTC)
- FWIW I was logged out unexpectedly under similar circumstances on the day this was posted as well. I use Windows primarily with Chrome; if you also have a similar configuration, that *could* be an explanation. Graham87 (talk) 04:26, 9 August 2024 (UTC)
- Well I am using windows and chrome, but this combination is probably so widespread that I would assume it is not where the problem is, or a lot more people would have reported this already. —Mint Keyphase (Did I mess up? What have I done?) 04:31, 12 August 2024 (UTC)
- @Mint Keyphase: Do you use uBlock Origin like me? That's the only thing I think we could have in common. But even that would be a pretty common combination .... it could've just been bad luck. I suspect a lot of people wouldn't report being unexpectedly logged out, because it's a relatively minor inconvenience; I certainly didn't think to. Graham87 (talk) 12:10, 13 August 2024 (UTC)
- Nope —Mint Keyphase (Did I mess up? What have I done?) 04:13, 14 August 2024 (UTC)
- Using Linux + Chrome: I was logged out today, after a Chrome s/w update. -- Verbarson talkedits 15:38, 14 August 2024 (UTC)
- Nope —Mint Keyphase (Did I mess up? What have I done?) 04:13, 14 August 2024 (UTC)
- @Mint Keyphase: Do you use uBlock Origin like me? That's the only thing I think we could have in common. But even that would be a pretty common combination .... it could've just been bad luck. I suspect a lot of people wouldn't report being unexpectedly logged out, because it's a relatively minor inconvenience; I certainly didn't think to. Graham87 (talk) 12:10, 13 August 2024 (UTC)
- Well I am using windows and chrome, but this combination is probably so widespread that I would assume it is not where the problem is, or a lot more people would have reported this already. —Mint Keyphase (Did I mess up? What have I done?) 04:31, 12 August 2024 (UTC)
- FWIW I was logged out unexpectedly under similar circumstances on the day this was posted as well. I use Windows primarily with Chrome; if you also have a similar configuration, that *could* be an explanation. Graham87 (talk) 04:26, 9 August 2024 (UTC)
- How often does this happen? Every time you close the browser? Shut down the computer? Can you log in to other websites with the same browser and they persist just fine? Nardog (talk) 15:59, 14 August 2024 (UTC)
- Well, other websites like Fandom don't seem to be affected. But a similar thing happens on Edge for the website of a tutoring service, which may or may not be related(?) —Mint Keyphase (Did I mess up? What have I done?) 10:46, 15 August 2024 (UTC)
- And the first question? Nardog (talk) 23:36, 15 August 2024 (UTC)
- Kinda random, to be honest, at first it was like twice a week, now it is once every two weeks or so. —Mint Keyphase (Did I mess up? What have I done?) 02:18, 16 August 2024 (UTC)
- Does your device have any kind of storage problem; if there is cookies are likely to be auto-deleted. Vestrian24Bio (TALK) 04:48, 16 August 2024 (UTC)
- Kinda random, to be honest, at first it was like twice a week, now it is once every two weeks or so. —Mint Keyphase (Did I mess up? What have I done?) 02:18, 16 August 2024 (UTC)
- And the first question? Nardog (talk) 23:36, 15 August 2024 (UTC)
- Well, other websites like Fandom don't seem to be affected. But a similar thing happens on Edge for the website of a tutoring service, which may or may not be related(?) —Mint Keyphase (Did I mess up? What have I done?) 10:46, 15 August 2024 (UTC)
Add A Fact experimental tool from Future Audiences
editThe Future Audiences team at the foundation is launching Add A Fact, an experimental tool for adding information to English Wikipedia from outside the website. You can download the extension from the Chrome store here: Add A Fact. For now, an (auto)confirmed English Wikipedia account is required to submit facts with this extension.
The idea was developed and workshopped with Wikipedians at WCNA 2023, demoed and tested with Wikipedia community members as part of our team’s regular monthly community calls.
Here is a short demo video on the extension:
A quick how-to —
- While reading any secondary source on the web (a news item, a scholarly article, etc.), you can open Add A Fact and highlight a short claim that you may want to add to Wikipedia.
- An LLM will check if the selected claim is related to any existing Wikipedia articles, and will present information about whether the fact is fully, partially, or not present in these articles. You may also search for an article of your choosing.
- Once you select a Wikipedia article to add your fact to, Add A Fact will give you the option of sending a pre-filled template message to the talk page of the article, which includes the selected text, any additional comments you’d like to add, and a structured citation. This message will be signed under your Wikipedia username.
- If the URL of the source you are on appears on WP:Reliable_sources/Perennial_sources, you will receive a warning message about your source’s reliability (but will still be able to add a suggested fact from this source). If the URL of the source you are on appears on the spam blocklist, you will not be able to add a suggested fact from this source.
- To limit any potential misuse/spam, Add A Fact users will be limited to sending a maximum of 10 facts per day during this early experimental period.
We've answered some common questions on our FAQ.
Add A Fact seeks to prove or disprove a hypothesis about how we might continue to sustain and grow Wikimedia projects in a changing online knowledge landscape. In this case, we’re seeking to understand how people can make editorial contributions off-platform (that is, without going directly to Wikipedia.org), and if generative AI can support or hinder this process.
If you use the tool, please give us your thoughts anonymously via the feedback form on the extension, in this VP thread or on my subpage. DErenrich-WMF (talk) 16:09, 9 August 2024 (UTC)
- No Firefox support? Why not? Which APIs are you missing? Polygnotus (talk) 20:49, 9 August 2024 (UTC)
- @Polygnotus: FF doesn't support service workers in manifest v3 but I actually think there's a way I can work around this (looking into this today). FF support is on our radar. DErenrich-WMF (talk) 21:06, 9 August 2024 (UTC)
- Thank you. The tool looks interesting but I strongly dislike Chrome. Polygnotus (talk) 21:20, 9 August 2024 (UTC)
- If its a chrome extension then, It would work in Microsoft Edge as well. Vestrian24Bio (TALK) 00:19, 10 August 2024 (UTC)
- I dislike Edge even more strongly, for very similar reasons. Polygnotus (talk) 00:30, 10 August 2024 (UTC)
- If it's a a chrome extension, it will work on Vivaldi, which is better than all previously mentioned browsers, imho. Another possibility is Opera, which can also use the extension, but Vivaldi is better. (We can take this offline to my UTP, or yours, if you wish to go into more detail about browsers.) Mathglot (talk) 00:01, 13 August 2024 (UTC)
- I dislike Edge even more strongly, for very similar reasons. Polygnotus (talk) 00:30, 10 August 2024 (UTC)
- If its a chrome extension then, It would work in Microsoft Edge as well. Vestrian24Bio (TALK) 00:19, 10 August 2024 (UTC)
- Thank you. The tool looks interesting but I strongly dislike Chrome. Polygnotus (talk) 21:20, 9 August 2024 (UTC)
- @Polygnotus: FF doesn't support service workers in manifest v3 but I actually think there's a way I can work around this (looking into this today). FF support is on our radar. DErenrich-WMF (talk) 21:06, 9 August 2024 (UTC)
- It is unfortunate that the video demo shows someone suggesting a press release for a source on a medical topic, which would surely not pass WP:MEDRS. MrOllie (talk) 21:33, 9 August 2024 (UTC)
- That's a good point. We tried to have the tool warn you about unacceptable sources but encoding all the nuances of the rules is hard. But doing this better is something we should look more into. DErenrich-WMF (talk) 23:05, 9 August 2024 (UTC)
- Having the demo advertise a kind of edit that should never be done is hardly a "nuance". Wikipedia got a good reputation for how it handled the COVID crisis precisely because editors stuck to standards that your demo tells people to avoid. XOR'easter (talk) 21:11, 11 August 2024 (UTC)
- That's a good point. We tried to have the tool warn you about unacceptable sources but encoding all the nuances of the rules is hard. But doing this better is something we should look more into. DErenrich-WMF (talk) 23:05, 9 August 2024 (UTC)
- The message left on the talk page, will that include some template or tracking category, so that editors can easily find a list of facts to be added, and act upon them? Otherwise, especially if the facts are posted on lesser-watched talkpages, it'll be like shouting into the void. --rchard2scout (talk) 06:30, 10 August 2024 (UTC)
- It doesn't currently use a tracking template but that's planned for the next minor release. For now you can find the relevant edits by using hashtags DErenrich-WMF (talk) 17:21, 10 August 2024 (UTC)
- Will we be able to find out how many facts posted to talk pages have been reviewed and used in articles, as opposed to rejected, and how many have not been considered at all (eg because of being on a less-watched page)? In what other ways will this tool be evaluated? For example, how might we detect an increase in, as the close of Wikipedia:Administrators' noticeboard/IncidentArchive1160#User:Drbogdan, persistent low-quality editing, and WP:NOTSOCIALNETWORK issues put it,
mass-adding content based on low-quality popular science churnalism to our science articles, expecting that other editors will review it and determine whether to improve or remove it
, leading to an indefinite community block? NebY (talk) 01:56, 11 August 2024 (UTC)- Once the experiment is complete (probably in a few months) we will put together a report with our findings. See for example the report for the last project we did. The metrics we're looking at are the kind of things you'd expect: number of users, number of edits, number of reverts, etc. But probably more importantly we're also collecting qualitative evidence (e.g. discussions like this one, feedback forms or by manually looking at the edits being made). DErenrich-WMF (talk) 04:09, 11 August 2024 (UTC)
- @DErenrich-WMF Reverts aren't a meaningful metric for this tool. The tool will post on the talk page and talk page posts are rarely reverted. The only revert metric that would be useful would be the number of resulting additions to the article that are reverted, but that would be very difficult to collect.
- Instead, a viable metric would be the proportions of talk page facts that were implemented, rejected, or not acted on. If tool postings used a format similar to {{Edit semi-protected}}, this might be feasible. It would also be immediately helpful to reviewing editors.
- It is a bit surprising that the experiment hasn't been designed to allow meaningful reporting and evaluation. Is there some need to to start the experiment regardless, or can you build suitable metrics into it before release? NebY (talk) 14:45, 13 August 2024 (UTC)
- Once the experiment is complete (probably in a few months) we will put together a report with our findings. See for example the report for the last project we did. The metrics we're looking at are the kind of things you'd expect: number of users, number of edits, number of reverts, etc. But probably more importantly we're also collecting qualitative evidence (e.g. discussions like this one, feedback forms or by manually looking at the edits being made). DErenrich-WMF (talk) 04:09, 11 August 2024 (UTC)
- Let's please find a way to make this tool avoid good and featured articles. The last thing we need is to be experimenting with new users and our content that has actually gone through some sort of content peer review. Hog Farm Talk 21:21, 11 August 2024 (UTC)
- And, more generally, there should be a way to say "we don't want add a fact here" on a specific page. This is similar to {{no newcomer task}} which already exists for Growth Team edits. * Pppery * it has begun... 21:24, 11 August 2024 (UTC)
- I concur with these suggestions. XOR'easter (talk) 21:42, 11 August 2024 (UTC)
- And, more generally, there should be a way to say "we don't want add a fact here" on a specific page. This is similar to {{no newcomer task}} which already exists for Growth Team edits. * Pppery * it has begun... 21:24, 11 August 2024 (UTC)
Flip the script in your next project
editYes, that's interesting; I have it installed (on Vivaldi) and will be trying it out.
But I have a proposal for you, that imho, would be far more useful that I would like to bring to your attention. Basically, it means flipping the script on Find-A-Fact and doing it in the other direction. That is, finding an assertion on Wikipedia (possibly with the aid of the Category populated by {{cn}} tags), highlighting it, opening your next extension, which goes to AI and tries to find a reliable source to verify it. (It would possibly use WikiProjects listed on the Talk page to better target its search, and would be aware of perennial sources, as well as the WP blacklist, WP mirror sites, and other helpful exclude- or include-criteria.) It would read the source(s) (up to max-sources
maybe?) and then pop up or fill a box with the citations, optionally augmented with better wording (Reword (y/n)
?) for the assertion that currently exists in the article. At that point, there could be two paths (Talk or Article
?): if user wants to go the Talk page route (default) then you do something similar to what Find-a-Fact does, and compose something for the talk page. If they want to go the Article page route, then you open the article in Preview mode, add the citation(s), optionally replace the existing assertion if AI was able to compose a better one and user selected that option, and show a Diff of the new version you are proposing, along with a canned edit summary. (Note that this flow, i.e., OpenPage-AddChanges-Preview-Diff-and-Wait, is similar to what some user scripts do currently, such as Nardog's RefRenamer script.) Then, user either accepts the change, optionally modifies the edit summary, and hits Publish, or they Cancel, or they go back to the extension box, altering options and checkboxes and hit Apply to try again with a different set of options. How does that sound? Mathglot (talk) 00:35, 13 August 2024 (UTC)
- No one should even contemplate working on this until the tools for automatically generating citations are actually fixed. The damage that just one editor was able to do affected thousands of pages and was so thankless and dispiriting to repair that the volunteers gave up. XOR'easter (talk) 00:04, 14 August 2024 (UTC)
Some of the entries are referring to historic/stale accounts. It's hard to gauge. I was thinking add a column, "Page last edited". Is this information available somehow, given the name of a page, return the date of last edit? It's not a perfect solution but some information is better than none, recent activity will be more visible. -- GreenC 04:19, 11 August 2024 (UTC)
- I believe it is mw:API:Revisions: example. In my limited experience, it can foul up if strange things occur. I forget exactly what but it was something like the user had been renamed, or maybe a revision deletion? Johnuniq (talk) 05:59, 11 August 2024 (UTC)
- @GreenC:
given the name of a page, return the date of last edit
- yes, see Help:Magic words#Page revision data. Let's assume that the LTA habitually targets pages in Category:Civil parishes in Oxfordshire. We might have this partial list:- List of civil parishes in Oxfordshire Crouch, Swale 20240805195559
- Abingdon-on-Thames Murgatroyd49 20240717065044
- Adderbury Martinevans123 20240608221415
- Adwell Redrose64 20240527201450
- Alvescot GoingBatty 20220123234127
- Ambrosden 86.182.168.130 20240601130830
- Appleford-on-Thames Legolag 20240705160708
- Appleton-with-Eaton Jonesey95 20240811134932
- --Redrose64 🌹 (talk) 09:51, 11 August 2024 (UTC)
- User:Redrose64: Thanks! Special:Diff/1239727454/1239797852 .. surprisingly most are recent 2024-2024. -- GreenC 16:20, 11 August 2024 (UTC)
- @GreenC:
Tool limits on mobile version
editWhat's the technical or by design reason for the limitations of the editing tools on the mobile version? Many of the tools that you can add through code particularly don't seem to show up in any form in the mobile format. Is there any features pipeline to introducing this functionality? Iskandar323 (talk) 10:47, 11 August 2024 (UTC)
- Countervandalism, Twinkle and a few other tools work recently on mobile. I would recommend making a wish entry at Meta:Community Wishlist/Wishes. In short I agree that mobile lags behind desktop which is concerning considering the future of editors is mobile. ~ 🦝 Shushugah (he/him • talk) 12:18, 11 August 2024 (UTC)
- In large degree this is due to having to make very conscious decisions about where to provide such options, as space per page is limited. As very few people think about this, there is also very little progress on it. —TheDJ (talk • contribs) 09:02, 12 August 2024 (UTC)
Strange behaviour for en embedded infobox
editI just copy-edited the article on Philip Noel-Baker, which had a separate infobox (actually the {{MedalTableTop}}) with Olympic medals, which I embedded into the main infobox.
A rectangle now appears below the medals. What have I done wrong? HandsomeFella (talk) 15:48, 11 August 2024 (UTC)
- The answer is in the template documentation: "Do not use
{{MedalTableTop}}
or{{MedalTop}}
inside an infobox." – Jonesey95 (talk) 17:06, 11 August 2024 (UTC)- It's possible to embed a medal table in an infobox without using those templates but there were other problems. A separate medal table looks OK to me. PrimeHunter (talk) 21:26, 11 August 2024 (UTC)
- If there's bad code in MedalTableTop, shouldn't that be fixed? HandsomeFella (talk) 01:21, 12 August 2024 (UTC)
- There isn't bad code in MedalTableTop as far as I know, you just used it wrong. It was never intended for infoboxes but for stand-alone tables. It adds a table start
{|
but an infobox is already a table. PrimeHunter (talk) 01:33, 12 August 2024 (UTC)- @HandsomeFella: OK, I worked it out. In this edit, you were trying to stuff the whole medal table into the caption of an embedded infobox, viz. the
|name=
parameter of the{{infobox sportsperson}}
, and a<caption>...</caption>
element may not contain tables as descendants. Instead, you should have used the|medaltemplates=
parameter, and omitted the{{MedalTableTop}}
, as inThis does still create a double-border situation, but the spurious empty box is gone. --Redrose64 🌹 (talk) 15:37, 12 August 2024 (UTC)| awards = [[Nobel Peace Prize]] | module = {{infobox sportsperson | embed = y | name = Philip Baker | medaltemplates = {{Medal|Sport|[[Athletics (sport)|Athletics]]}} {{Medal|Country|{{GBN}}}} {{Medal|Competition|[[Athletics at the Summer Olympics|Olympic Games]]}} {{Medal|Silver|[[1920 Summer Olympics|1920 Antwerp]]|[[Athletics at the 1920 Summer Olympics – Men's 1500 metres|1500 m]]}} }} }} '''Philip John Noel-Baker, Baron Noel-Baker''', {{post-nominals|country=GBR|PC}} (1 November 1889 – 8 October 1982),
- It needs
embed = yes
. PrimeHunter (talk) 17:41, 12 August 2024 (UTC)- Thanks. That fixed the problem that I mentioned below. Now my problem is that the sportsperson box ignores the name= parameter. Like so many other people, peers included, he competed under another name, so it's needed. HandsomeFella (talk) 17:46, 12 August 2024 (UTC)
- The main
name
parameter is for display above the infobox but that doesn't work for an embedded infobox so it's omitted there. The other name parameters can be used but the field label displays as Native name, Birth name, Full name, or Nickname. The label cannot be changed and none of them apply here. I see no good option and would just omit it. PrimeHunter (talk) 18:04, 12 August 2024 (UTC)- Thanks. But if the Native name, Birth name, Full name, and Nickname parameters are available in embedded mode, surely the Name parameter could be made available too, couldn't it? HandsomeFella (talk) 19:04, 12 August 2024 (UTC)
- It could be suggested at Template talk:Infobox sportsperson. Native name, Birth name, Full name, and Nickname are treated the same in embedded and non-embedded: As fields inside the infobox. Name is outside the box in non-embedded so it's not possible to treat it the same in embedded. It would be possible to place it inside the box instead of skipping it, or to introduce another parameter. What should the field label be? I think "Name" alone is a little confusing when the whole infobox is already named. Is there any common term like "Athlete name", "Competing as", or something? What if they competed under two names, e.g. new surname after marrying? And if the name is a variation of an already shown name then is it really necessary to show it? Your example article is called Philip Noel-Baker, the infobox says "Born Philip John Baker", and you want to add "Philip Baker" to his sports career in the infobox. That seems a little redundant to me. PrimeHunter (talk) 02:52, 13 August 2024 (UTC)
- Thanks. But if the Native name, Birth name, Full name, and Nickname parameters are available in embedded mode, surely the Name parameter could be made available too, couldn't it? HandsomeFella (talk) 19:04, 12 August 2024 (UTC)
- The main
- Thanks. That fixed the problem that I mentioned below. Now my problem is that the sportsperson box ignores the name= parameter. Like so many other people, peers included, he competed under another name, so it's needed. HandsomeFella (talk) 17:46, 12 August 2024 (UTC)
Thank you. I have tested it now (in preview), and it seems that the "sportsbox"- 1) does not "fill out" the main infobox – in this case infobox officeholder – to its full width, and
- 2) aligns to the right within the main infobox.
Is there any way to fix that? I found no align parameter in either infobox. In the sportsperson box, the width parameter goes to the image. The double-border situation feels like a minor problem. HandsomeFella (talk) 17:43, 12 August 2024 (UTC)
- It needs
- @HandsomeFella: OK, I worked it out. In this edit, you were trying to stuff the whole medal table into the caption of an embedded infobox, viz. the
- There isn't bad code in MedalTableTop as far as I know, you just used it wrong. It was never intended for infoboxes but for stand-alone tables. It adds a table start
Search error with <𐀍>
editFYI, if I search for Linear B <𐀍> on a page, I get a hit for all ASCII spaces. — kwami (talk) 00:05, 12 August 2024 (UTC)
- How are you searching? If you search a viewed page with a browser menu or a shortcut like Ctrl+f then you are using a browser feature and not a MediaWiki feature. The browser will determine what happens. I get the same result in Firefox. If you search a source edit box with the magnifying glass icon to the far right after clicking "Advanced" in the default toolbar then it's a MediaWiki feature. It works for me, e.g. when editing Linear B. There are also other tools which can make searches. PrimeHunter (talk) 01:25, 12 August 2024 (UTC)
- Thanks. Something screwy with Firefox then. — kwami (talk) 01:35, 12 August 2024 (UTC)
- Can confirm, it's a bug in Firefox. And checkbox "Match Diacritics" doesn't help (it usually does). —andrybak (talk) 12:26, 12 August 2024 (UTC)
- Thanks. Something screwy with Firefox then. — kwami (talk) 01:35, 12 August 2024 (UTC)
What's with the look of Special:PendingChanges?
editI'm begging whoever is in charge of this to revert to the previous look. LilianaUwU (talk / contributions) 00:25, 12 August 2024 (UTC)
- Do you mean the the changes described in T191156, which were deployed around the end of June/early July? --rchard2scout (talk) 07:13, 12 August 2024 (UTC)
- Yes, specifically this. LilianaUwU (talk / contributions) 16:29, 14 August 2024 (UTC)
Enabling mw-no-invert in navbox headers
editI cannot seem to use the titleclass
parameter in {{Navbox}} to ensure that the headers of Template:Shades of color navboxes are preserved in dark mode. A {{colored link}} instance in the header will also need to have noinvert enabled using the new parameter noinvert=yes
. –LaundryPizza03 (dc̄) 04:04, 12 August 2024 (UTC)
Harv warning issues...
editReba McEntire has 13 "Harv warnings" in its references. (I have Wikipedia:User_scripts/Requests/Archive_4#HarvErrors.js installed.) All the warnings are coming from the multi-reference sources - Ref #205, #210, #211, #214, #216, #222, and #224. The sfn/Harvard cite system can be tricky to get the coding right...
I have run into this issue before on another article and I still cannot figure out how to fix it. Could some of you technical/referencing/wikicoding wizards take a look at the article and respond here with what is wrong and how to fix it. I would very much appreciate learning 1) exactly what is going wrong and 2)learning (and then remembering) how to fix the issue so 3) please let me fix the problem at the Reba article myself. Thanks, Shearonink (talk) 16:28, 12 August 2024 (UTC)
- It appears to have been the asterisk (*) inside <ref>...</ref>. I removed the asterisks and added a line break between the two cites in one place, which cleared the problem. See the Medley citation. I didn't fix the other cases. Donald Albury 17:05, 12 August 2024 (UTC)
- That is not the correct fix. The warning message is telling you that the citation is notlinked from an
{{sfn}}
or{{harv}}
-family template. If you want to suppress the messages, in the cs1|2 template set|ref=none
:{{cite web |last=... |first=... |title=... |date=... |url=... |ref=none}}
- —Trappist the monk (talk) 18:36, 12 August 2024 (UTC)
- But why then is "ref=none" necessary for the second citation below, but not for the first?
- *Reba in Concert (1992)Sources for 1992 tour:
- *{{cite magazine|date=February 22, 1992|title=Reba in Concert|magazine=Billboard|volume=104|issue=8|page=31|location=Nashville, Tennessee|publisher=BPI Communications|issn=0006-2510|access-date=October 23, 2020|url=https://worldradiohistory.com/Archive-Billboard/90s/1992/Billboard-1992-02-22.pdf|archive-url=https://web.archive.org/web/20200808083051/https://worldradiohistory.com/Archive-Billboard/90s/1992/Billboard-1992-02-22.pdf|archive-date=August 8, 2020}} :::*{{cite news |last1=Pareles |first1=Jon | title=Taking the Country Out of the Country Singer |url=https://www.nytimes.com/1992/10/26/news/review-music-taking-the-country-out-of-the-country-singer.html |newspaper=[[The New York Times]] |location=[[New York City]], [[New York (state)|New York]] |date=October 26, 1992 |access-date=October 23, 2020|archive-url=https://archive.today/20201023023153/https://www.nytimes.com/1992/10/26/news/review-music-taking-the-country-out-of-the-country-singer.html |archive-date=October 23, 2020|ref=none}}
- Donald Albury 18:59, 12 August 2024 (UTC)
- Each cs1|2 template creates a
CITEREF
anchor id as a link target for{{sfn}}
etc templates. The anchor id is listed in the warning message, for example, the anchor id for your second example is:CITEREFPareles1992
. TheCITEREF
anchor id is created from author names (only the first four) and the year portion of the date. The Billboard template does not have any authors so aCITEREF
anchor id is not created. The warning script is smart enough to recognize that nothing can link to a cs1|2 template that does not have aCITEREF
anchor id. Because there is noCITEREF
anchor id, it is not necessary to suppress it with|ref=none
. - —Trappist the monk (talk) 19:20, 12 August 2024 (UTC)
- Each cs1|2 template creates a
- That is not the correct fix. The warning message is telling you that the citation is notlinked from an
OK. So there are fixes that will take care of the "Harv warning" issues. I'll puzzle my way through and fix stuff. But can someone again explain, as if to a non-coder - lol which I certainly *am* - 1) exactly why the bundled cites are not working as intended and 2)why this issue isn't discussed and explained as if to a non-coder in the Help:References and page numbers#Shortened footnotes & in Help:Shortened footnotes#Bundling citations & in Wikipedia:Citing sources#Bundling citations. If I've noticed - and I am certainly not one of the most prolific editors around here - at least 2 instances where the bundled citations are throwing Harv warnings then there have to be many, many more. Thanks, Shearonink (talk) 01:38, 13 August 2024 (UTC)
- I mean, I've used "ref=none" quite a bit but I guess I don't understand, in these cases why it is necessary... Shearonink (talk) 01:47, 13 August 2024 (UTC)
- Answers:
- What do you mean by:
the bundled cites are not working as intended
? What about those cites is not working? Are you claiming that they don't work because the user script is marking them with warning messages? (this version (permalink) of the article) - Likely because these messages are only available to those editors who have included a user script in their common.js that emits such messages. In your common.js you have installed User:Trappist the monk/HarvErrors.js. That script has a documentation page (current version not authored by me so perhaps more understandable than what I might write).
- What do you mean by:
- When the warning message appears, it is generally not necessary to do anything except to look for typos in the surnames and dates. If
{{sfn|Green|2024}}
is supposed to link to{{cite book |last=Greene |date=2024 |title=...}}
and these are the only pair for Green(e) 2024 you will get three messages:- For the sfn: sfn error: no target: CITEREFGreen2024 (help) Harv error: link from CITEREFGreen2024 doesn't point to any citation.
- For the full citation: Harv warning: There is no link pointing to this citation. The anchor is named CITEREFGreene2024.
- All because of a simple misspelling. When there really isn't Greene 2024 (with an 'e') short-form citation linking to a long-form citation, the script doesn't know that so it prompts editors to check. This same applies to the date; Green 2023 will cause the script to emit the same basic messages. If a short-form is not needed, editors can set
|ref=none
to suppress the warning message. It is notnecessary
, but is a courtesy to editors coming after you so they don't waste their time trying to find a matching short-form citation. - —Trappist the monk (talk) 13:37, 13 August 2024 (UTC)
- Answers:
Why is Wikipedia going backwards?
editFirst, you removed the article title when you hover a link, now when you click a link while previewing or close a tab/window when editing there's no more warning message. Can they please be restored? Nearly but not perfect (talk) 20:01, 12 August 2024 (UTC)
- Works for me. Perhaps you inadvertently altered your Preferences? Or forgot to log in, so you have only default preferences? Mathglot (talk) 20:18, 12 August 2024 (UTC)
- @Mathglot: Both work for you? Can you please tell me how to enable both things that I listed? Nearly but not perfect (talk) 20:20, 12 August 2024 (UTC)
- For the first, try: Appearance > Reading preferences > Enable page previews. Or, are you talking about the page url appearing in the status bar of your browser (often at the bottom border)? That would be a browser preference, I believe. Mathglot (talk) 20:32, 12 August 2024 (UTC)
- @Mathglot: The URL appears, but if an article links to "Page" then I want to see the text "Page" when I'm hovering over the link. Nearly but not perfect (talk) 20:48, 12 August 2024 (UTC)
- @Mathglot: It worked. But how can I get the warning before I close the tab to come back? If you don't know, I hope omeone else can do it. Nearly but not perfect (talk) 20:50, 12 August 2024 (UTC)
- The text when hovering rarely appears. Nearly but not perfect (talk) 20:56, 12 August 2024 (UTC)
- (edit conflict) I don't quite understand the other question, about closing a tab. It sounds like it might be a browser question, but I don't know for sure what you are seeing. Can you explain step-by-step what you are doing, using a concrete example? E.g.: 1. open the NameOfArticle article in (name of my browser) on (type of my device). 2. (do this) 3. (then do that) 4. ... . RESULTS: Expected: (what you expected to happen) Result: (what happened instead). Thanks, Mathglot (talk) 21:01, 12 August 2024 (UTC)
- For some years now, Windows has had a feature where the taskbar shows icons for currently-running applications, and if you hover over one of them it shows you what is currently displayed by that application, in miniature - scaled at a ratio of approx. 6:1.
- The latest release of Firefox (129.0) has added a similar feature: if you have two or more tabs open, and hover over a tab that doesn't have the current focus, it shows you what is currently in that tab - but scaled at approx. 4:1. --Redrose64 🌹 (talk) 22:45, 12 August 2024 (UTC)
- (edit conflict) I don't quite understand the other question, about closing a tab. It sounds like it might be a browser question, but I don't know for sure what you are seeing. Can you explain step-by-step what you are doing, using a concrete example? E.g.: 1. open the NameOfArticle article in (name of my browser) on (type of my device). 2. (do this) 3. (then do that) 4. ... . RESULTS: Expected: (what you expected to happen) Result: (what happened instead). Thanks, Mathglot (talk) 21:01, 12 August 2024 (UTC)
- If "Enable page previews" is enabled at Special:Preferences#mw-prefsection-rendering or "Navigation popups" is enabled at Special:Preferences#mw-prefsection-gadgets then you are supposed to get a preview of the page content when you hover over a link to an article. If they are both disabled then you are supposed to see the page name. Or more accurately, the html for the link has a title attribute which is the page name, and most browsers will display the title attribute when you hover over a link. Are both preview preferences disabled? If you still don't see the page name then what is your browser? PrimeHunter (talk) 22:56, 12 August 2024 (UTC)
- @Mathglot: When I'm editing something, I would make a change. Before I save it, especially when I'm previewing, when I close the tab, there used to be a warning on Chrome (I'm using Chrome on Windows 10) "Leave page? Changes may not be saved" or something. That disappeared. Nearly but not perfect (talk) 04:23, 13 August 2024 (UTC)
- What is your setting at Preferences → Editing → Warn me when I leave an edit page with unsaved changes? --Redrose64 🌹 (talk) 06:55, 13 August 2024 (UTC)
- @PrimeHunter: Enable page previews is enabled. Navigation popups is disabled. Is that's what's causing the text to not appear when hovering above a link? Nearly but not perfect (talk) 04:23, 13 August 2024 (UTC)
- It's a possible cause. You can just try to disable it if you want the page name but not a preview of the page content. PrimeHunter (talk) 11:57, 13 August 2024 (UTC)
- @Mathglot: When I'm editing something, I would make a change. Before I save it, especially when I'm previewing, when I close the tab, there used to be a warning on Chrome (I'm using Chrome on Windows 10) "Leave page? Changes may not be saved" or something. That disappeared. Nearly but not perfect (talk) 04:23, 13 August 2024 (UTC)
Various anomalies involving contrib history of IP-like usernames ending in -xxx
editOn a CIDR-range contribs search for Special:Contributions/193.133.134.0/24, I happened to find contribs for two "IP addresses", namely:
- 193.133.134.178 (talk · contribs) – about 18 edits in 2002
- 193.133.134.xxx (talk · contribs) – couple hundred edits, 2001–2002; but if you click that contribs link, no edits are listed
The anomalies/question:
- why is CIDR search even picking up the second one, if that's just a normal, registered username, which to my understanding, it should be?
- Otoh, maybe it isn't, because the link User:193.133.134.xxx doesn't do what I expect, namely going to a user page or to a create-page preview, but it does neither, instead going to the Contributions page. Huh??
- Clicking the contribs link Special:Contributions/193.133.134.xxx shows an empty page, but the CIDR/24 link shows a couple hundred edits; wtf? Following any of the links shows they really did make early edits to those pages, such as:
- It's not just that one IP-xxx: the early history of Alfred Hitchcock shows a bunch of them: 152.163.195.xxx (talk · contribs), 152.163.197.xxx (talk · contribs), 62.253.64.xxx (talk · contribs), 205.188.197.xxx (talk · contribs), 193.133.134.xxx (talk · contribs), 205.188.198.xxx (talk · contribs), 64.12.101.xxx (talk · contribs), 64.12.104.xxx (talk · contribs). Clicking any of the contrib links for those goes to an empty Contribs page, despite their all having at least one edit at Alfred Hitchcock.
- Bonus question: that rev id for Motorcycle above has a lot more digits than I would expect for an early edit. What's up with that?
- If you go to the contribs link for 193.133.134.xxx and click Search (link) the result shows a red warning complaining about invalid username. But if you replace 'xxx' with 'yyy' and Search, it is valid. udpated to add #6; by Mathglot (talk) 22:09, 12 August 2024 (UTC)
What's going on here? Mathglot (talk) 20:25, 12 August 2024 (UTC)
- Some very old versions of the software stored IP addresses with the last octet replaced by .xxx, and the current software still recognizes them as IP addresses. I don't know why they aren't showing up in contributions, though. The reason the Motorcycle revision has so many digits is because it was manually imported in 2011. * Pppery * it has begun... 20:42, 12 August 2024 (UTC)
- Thanks. Either someone fixed #2 super-quick, or something else is going on, because now the red link in #2 goes to a create-page preview, as I expect, but it didn't before. Mathglot (talk) 20:51, 12 August 2024 (UTC)
- I would guess the temporary accounts work has potentially caused a problem here. Izno (talk) 21:18, 12 August 2024 (UTC)
- That makes a lot of sense. Do you know someone from that project we could ping to solicit a comment? Mathglot (talk) 21:21, 12 August 2024 (UTC)
- Temporary accounts aren't enabled here yet, so they shouldn't be doing anything relevant. * Pppery * it has begun... 21:54, 12 August 2024 (UTC)
- The accounts aren't, but that doesn't mean there haven't been refactorings to support them that are live. Izno (talk) 22:02, 12 August 2024 (UTC)
- Redacted addition point #6 might support that, as IP-xxx seems to be supported in some places (CIDR contribs) but not others (point 6). Mathglot (talk) 22:12, 12 August 2024 (UTC)
- The accounts aren't, but that doesn't mean there haven't been refactorings to support them that are live. Izno (talk) 22:02, 12 August 2024 (UTC)
- Temporary accounts aren't enabled here yet, so they shouldn't be doing anything relevant. * Pppery * it has begun... 21:54, 12 August 2024 (UTC)
- That makes a lot of sense. Do you know someone from that project we could ping to solicit a comment? Mathglot (talk) 21:21, 12 August 2024 (UTC)
- I created T370413 about the inability to display contribs from addresses stored with xxx; I can't get them from the /24 range though. Graham87 (talk) 07:15, 13 August 2024 (UTC)
- @Graham87: Thanks. The CIDR/24 link will show, if you go to Preferences > Gadgets > Advanced, and check "Allow /16, /24 and /27 – /32 CIDR ranges on Special:Contributions forms". Mathglot (talk) 07:23, 13 August 2024 (UTC)
- @Mathglot: Oh yeah that gadget; I used to use it but no longer do so because Wikipedia supports range contributions natively now. Graham87 (talk) 07:39, 13 August 2024 (UTC)
- So, you do see the contributions for the range, now? If not, maybe this is a case where the native support doesn't match the gadget in one circumstance? Mathglot (talk) 07:55, 13 August 2024 (UTC)
- I did not see it before, but enabling the gadget allows it to be seen. CMD (talk) 08:06, 13 August 2024 (UTC)
- Indeed. Graham87 (talk) 12:06, 13 August 2024 (UTC)
- How does that gadget work? Perhaps it is just doing a prefix search? If so, it would find 193.133.134.xxx and that would be a problem in the gadget. Johnuniq (talk) 08:22, 13 August 2024 (UTC)
- I did not see it before, but enabling the gadget allows it to be seen. CMD (talk) 08:06, 13 August 2024 (UTC)
- So, you do see the contributions for the range, now? If not, maybe this is a case where the native support doesn't match the gadget in one circumstance? Mathglot (talk) 07:55, 13 August 2024 (UTC)
- @Mathglot: Oh yeah that gadget; I used to use it but no longer do so because Wikipedia supports range contributions natively now. Graham87 (talk) 07:39, 13 August 2024 (UTC)
- @Graham87: Thanks. The CIDR/24 link will show, if you go to Preferences > Gadgets > Advanced, and check "Allow /16, /24 and /27 – /32 CIDR ranges on Special:Contributions forms". Mathglot (talk) 07:23, 13 August 2024 (UTC)
get amount of revisions via API
editIs there no way to get the amount of revisions of a specific page from the API (except to use the continue parameter, which could take a while)? List of WWE personnel has 58k revisions according to Special:MostRevisions and a non-bot can request 500 via the continue method so that is 116 API calls to know how many revisions there are... Or I can use the rendered history page with limit=5000 instead of the API which would still take 12 calls (each of them taking ages). This information must be stored somewhere, right, cuz Special:MostRevisions and Special:FewestRevisions exist. The REST api gives me 20 max so that would require 2900 calls. Polygnotus (talk) 22:59, 12 August 2024 (UTC)
- It's not available in an official API. In the meantime, you may use the XTools API. Nardog (talk) 23:18, 12 August 2024 (UTC)
- We don't deserve Nardogs; thank you! Polygnotus (talk) 23:28, 12 August 2024 (UTC)
Tech News: 2024-33
editLatest 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
- AbuseFilter editors and maintainers can now make a CAPTCHA show if a filter matches an edit. This allows communities to quickly respond to spamming by automated bots. [1]
- Stewards can now specify if global blocks should prevent account creation. Before this change by the Trust and Safety Product Team, all global blocks would prevent account creation. This will allow stewards to reduce the unintended side-effects of global blocks on IP addresses.
Project updates
- Nominations are open on Wikitech for new members to refresh the Toolforge standards committee. The committee oversees the Toolforge Right to fork policy and Abandoned tool policy among other duties. Nominations will remain open until at least 2024-08-26.
- One new wiki has been created: a Wikipedia in West Coast Bajau (
w:bdr:
) [2]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Remove redirects and redlinks from my watchlist
editIs there an easy way to remove redirects and redlinks from my (long) watchlist? Bubba73 You talkin' to me? 06:01, 13 August 2024 (UTC)
- Do you mean when viewing Special:Watchlist? Here's a CSS rule that hides both: It goes in your CSS. --Redrose64 🌹 (talk) 07:23, 13 August 2024 (UTC)
/* hide edits to redirects and redlinked pages from watchlist */ li.mw-changeslist-line:has(a.mw-redirect), li.mw-changeslist-line:has(a.mw-changeslist-title.new) { display: none; }
- You can also use Special:EditWatchlist to check all the titles you no longer want, and remove them entirely. — xaosflux Talk 08:49, 13 August 2024 (UTC)
- If you install User:BrandonXLF/GreenRedirects then redirects will be green at Special:EditWatchlist and elsewhere. Redlinks are already red there. PrimeHunter (talk) 11:52, 13 August 2024 (UTC)
- I want to remove them entirely. My list is so long that I don't want to go through them looking for ones in italiacs. Bubba73 You talkin' to me? 15:07, 13 August 2024 (UTC)
- If you are willing to copy-paste Special:EditWatchlist/raw to a public wiki page like User:Bubba73/Watchlist then I can look at trimming it with some regex, ifexist and Module:Redirect#IsRedirect, probably 500 or 250 pages at a time due to a MediaWiki limit. Then you can copy it back. I may not have time today. If there are pages you watch with a time limit then I don't know whether the limit will be remembered. PrimeHunter (talk) 15:28, 13 August 2024 (UTC)
- @Bubba73 My User:Ahecht/Scripts/watchlistcleaner script does exactly that. --Ahecht (TALK
PAGE) 16:46, 13 August 2024 (UTC)
- Thanks, that sounds like what I'm looking for.. Bubba73 You talkin' to me? 18:04, 13 August 2024 (UTC)Resolved
- Thanks, I did that and it removed 34 pages for me. Bubba73 You talkin' to me? 03:55, 17 August 2024 (UTC)
- Thanks, that sounds like what I'm looking for..
TOC not displayed for non-logged in users
editI know this must be an extremely dumb question, but please bear with me.
I have just finished drafting a long article (7,000 words readable prose) in my User space. I asked a friend for comments and was told there is no Table of Contents (TOC). This seems to be the case: unless you are logged in (which my friend wasn't), an article displays with no TOC. This seems to hold for any article, in mainspace or otherwise.
Can this really be true? It makes long articles very difficult to read for readers who are not logged in (i.e. most of them). I have tried forcing a Table of Contents with but it makes no difference.
It seems kind of difficult to believe that the average, casual reader of Wikipedia articles doesn't see a Table of Contents (unless he/she knows to force the display).
Am I missing something obvious, or is there a way of fixing this problem? Ttocserp 23:27, 13 August 2024 (UTC)
- @Ttocserp I'm guessing the page is User:Ttocserp/Slave-owning slaves? The TOC works on that page. The person viewing it may have a narrow screen, and in the default vector-2022 skin the TOC will collapse in to the icon to the left of the page title. Have them check there. — xaosflux Talk 23:30, 13 August 2024 (UTC)
- If they are on mobile, the contents may be between the lead paragraph and the first section. — xaosflux Talk 23:31, 13 August 2024 (UTC)
- Thank you, I believe you are right that it has to do with the default vector-2022 skiin. That said, it doesn't fix the basic problem i.e. the Average Joe doesn't get to see a TOC. My friend has a big, wide laptop. Ttocserp 23:37, 13 August 2024 (UTC)
- The TOC does appear in Vector 2022. Nardog (talk) 23:42, 13 August 2024 (UTC)
- Then I am totally bewildered. Is there any kind of technical fix? — Preceding unsigned comment added by Ttocserp (talk • contribs) 00:00, 14 August 2024 (UTC)
- For what? Nardog (talk) 00:02, 14 August 2024 (UTC)
- The non-display of the TOC in what must be quite common circumstances.Ttocserp 00:07, 14 August 2024 (UTC)
- Can you provide a screenshot of the page with no TOC appearing? Anomie⚔ 00:10, 14 August 2024 (UTC)
- Does this help? The TOC is viewed by clicking the symbol made up of three dots and three lines, to the left of the page name.
To show the Table of Contents in the Vector 2022 closed state (not logged in) - NebY (talk) 00:32, 14 August 2024 (UTC)
- Ok, I now see that the problem is not what I thought it was. A TOC does display down the left-hand side, but only a rudimentary one (only level 2 headings). So I guess to fix that I have some learning to do.Ttocserp 00:36, 14 August 2024 (UTC)
- Some of the headings, for example the one for Add A Fact experimental tool from Future Audiences on this page, should have > symbols beside them. Clicking the symbol opens the further levels. NebY (talk) 00:47, 14 August 2024 (UTC)
- The lower-level headings are there too, just collapsed. Nardog (talk) 00:48, 14 August 2024 (UTC)
- The TOC is collapsed on that page because there are more than the number of headings that allow for an automatically expanded TOC (I think 19). See T333801, T317818, T333017, and probably more tasks. – Jonesey95 (talk) 01:08, 14 August 2024 (UTC)
- Thank you. I have reduced the number of headings, and it works. Ttocserp 00:33, 15 August 2024 (UTC)
- The TOC is collapsed on that page because there are more than the number of headings that allow for an automatically expanded TOC (I think 19). See T333801, T317818, T333017, and probably more tasks. – Jonesey95 (talk) 01:08, 14 August 2024 (UTC)
- Can you provide a screenshot of the page with no TOC appearing? Anomie⚔ 00:10, 14 August 2024 (UTC)
- The non-display of the TOC in what must be quite common circumstances.Ttocserp 00:07, 14 August 2024 (UTC)
- For what? Nardog (talk) 00:02, 14 August 2024 (UTC)
- Then I am totally bewildered. Is there any kind of technical fix? — Preceding unsigned comment added by Ttocserp (talk • contribs) 00:00, 14 August 2024 (UTC)
- The TOC does appear in Vector 2022. Nardog (talk) 23:42, 13 August 2024 (UTC)
Message About Unfamiliar Device
editAbout 24 hours ago, I accessed Wikipedia on my cell phone from a car for hire, but was logged out. I went through the process of entering my password for my mobile account, and was logged back on. I then received an email saying that I had accessed Wikipedia from a device that I had not used recently. That wasn't accurate; it was the same cell phone as I have been using for about six months. My question is whether that message really means that I logged on to Wikipedia from an IP address in an unfamiliar IP address range, because I was using a satellite connection. Or was my device unfamiliar because I hadn't logged on in a few months because I had stayed logged on?
I do not have a security issue. I am just wondering whether it really means that I accessed Wikipedia from an unfamiliar IP address range, or whether it means that my device is unfamiliar because I haven't logged on from it for months because I have been continuously logged on. Robert McClenon (talk) 17:29, 14 August 2024 (UTC)
- These notices are based on the IP address but the message is less technical written for accessibility reasons. Sjoerd de Bruin (talk) 18:24, 14 August 2024 (UTC)
- Okay. A retired IT engineer can figure out that it really means the IP address range. Robert McClenon (talk) 23:20, 14 August 2024 (UTC)
My Wikiscan stats stopped updating in 2023
editHi, I have noticed that my contributions stats on English Wikipedia haven't updated on Wikiscan since November 2023. [3] However, they still update for my contributions on other projects, like French Wikipedia. [4] Is there anything I can do to fix this? Thanks! – Odjob16 Talk 17:40, 14 August 2024 (UTC)
- That is a project that is completely a third party. We cannot help you. Izno (talk) 18:17, 14 August 2024 (UTC)
Interface change
editIs this possible to hide "From Wikipedia, the free encyclopedia" description at the very top of each article? Also is this possible to hide description "This page was last edited on 10 August 2024, at 23:16." at the very bottom of the each page? #f-list #lastmod {display: none;}
doesn't works. Eurohunter (talk) 18:25, 14 August 2024 (UTC)
- Put this in your common.css:
#siteSub { display: none; } #footer-info-lastmod { display: none; }
- It works for me, anyway. The first one is the "From Wikipedia..." and the second one is the footer. – Jonesey95 (talk) 18:44, 14 August 2024 (UTC)
- @Jonesey95: Looks like footer-info-lastmod also doesn't works. Eurohunter (talk) 21:04, 14 August 2024 (UTC)
- The first selector (
#siteSub
) is correct. The second selector should be#lastmod
--Redrose64 🌹 (talk) 21:47, 14 August 2024 (UTC)- Not in Vector 2022. If you ask interface questions then please always reveal if you use another skin. Try this if it's MonoBook:
#lastmod {display:none !important;}
- PrimeHunter (talk) 21:52, 14 August 2024 (UTC)
- The first selector (
- @Jonesey95: Looks like footer-info-lastmod also doesn't works. Eurohunter (talk) 21:04, 14 August 2024 (UTC)
Can a Lua script on wikipedia contain Javascript and run it?
editCan a Lua script on wikipedia contain Javascript and run it? If so, how? Polygnotus (talk) 01:32, 15 August 2024 (UTC)
- No. * Pppery * it has begun... 01:35, 15 August 2024 (UTC)
- But we could potentially extract the JavaScript into a template gadget if there's a really good reason you need to run custom JavaScript. * Pppery * it has begun... 01:36, 15 August 2024 (UTC)
- @Pppery: Thank you. My idea is:
- We have {{verify spelling}} which allows you to mark a potential typo you are unsure about (if it is a typo and if so, how to fix it).
- In javascript its not too hard to turn
{{verify spelling|tyop|suggestion=typo}}
- which currently renders as:
- [spelling?]
- into, for example: tyop [replace with: typo ✓ x]
- Clicking the cross would remove the template and clicking the checkmark would implement the change and remove the template and then reload the page.
- But the downside of a javascript is having to convince everyone to put it in their common.js. If I write the javascript, do you think it could be turned into a gadget? How does that procedure (if any) work? Polygnotus (talk) 01:47, 15 August 2024 (UTC)
- @Pppery: Script is here: User:Polygnotus/verify.js (I am abusing the
|reason=
because there is no suggestion parameter yet). I've tested it on my userpage withPolygnotus (talk) 02:20, 15 August 2024 (UTC){{verify spelling|reason=typo=>typo}}
- This seems silly - when would one ever use that template if one knew the typo fix, rather than fixing the typo themselves. If the template adder wasn't sure enough to fix the typo then driveby JavaScript users won't be either. Yes, this is close to an argument to delete {{verify spelling}}. * Pppery * it has begun... 04:37, 15 August 2024 (UTC)
- @Pppery: Au contraire mon frère:
- Take the most frequently used words
- generate possible misspellings. The result looks like this:
- description,deescription
- description,desscription
- description,desccription
- check if those misspellings occur in the latest dump and delete all lines that occur 0 or more than 50 times.
- check them against the Action API to see if they still exist and which articles they are on.
- category|catgeory|David F. Walker
- category|cateogry|Natasha Bedingfield
- category|cateogry|Giovanni Falcone
- I then use a seriously unhealthy amount of regex to see if they should be fixed or not (e.g. they are not in a comment, certain templates, certain parameters and the article does not use stuff like {{nobots}} or [sic] et cetera.
- I end up with an insane amount of possible typos.
- I can fix em myself with my AWB module or turn them into wikilinks and solve em with my javascript (see User:Polygnotus/typos) or I can use my homebrew AWB-like thing based on Selenium and ducttape. But there are simply too many for me myself and I to fix.
- In some cases I have no clue if something is a typo and if so, how to fix it. Figuring that out can take a decent amount of time. No problem for one or two, but if you have tens of thousands it becomes a bit much, you know? Polygnotus (talk) 04:55, 15 August 2024 (UTC)
- And we have things like WP:Correct typos in one click which do that much better than the implied maintenance tag bot you are suggesting. * Pppery * it has begun... 04:56, 15 August 2024 (UTC)
- @Pppery: Possible typo detected. Arming missile launchers. Polygnotus (talk) 04:58, 15 August 2024 (UTC)
- LOL. * Pppery * it has begun... 04:59, 15 August 2024 (UTC)
- @Pppery: Aaah you fixed it. Anyway, while Correct typos in one click is super cool, I can still find tens of thousands of typos. So the problem hasn't been solved yet by its existence.
- This is a different approach; Correct typos in one click hinges on luring people to an external website to do a pretty boring task. You could improve that model by offering them barnstars at certain levels of achievement and gamifying it and the like. But attracting people to an external website without an advertising budget is always gonna be hard. And typofixing is not sexy. There will be some hardcore users who return, but who is gonna make a calender event to return monthly when the new dump has been parsed?
- External tools will always have a huge discoverability and user retention problem. People adopt bots when their owners disappear so that would also increase the bus factor. Polygnotus (talk) 05:01, 15 August 2024 (UTC)
- LOL. * Pppery * it has begun... 04:59, 15 August 2024 (UTC)
- @Pppery: Possible typo detected. Arming missile launchers. Polygnotus (talk) 04:58, 15 August 2024 (UTC)
- And we have things like WP:Correct typos in one click which do that much better than the implied maintenance tag bot you are suggesting. * Pppery * it has begun... 04:56, 15 August 2024 (UTC)
- @Pppery: Au contraire mon frère:
- This seems silly - when would one ever use that template if one knew the typo fix, rather than fixing the typo themselves. If the template adder wasn't sure enough to fix the typo then driveby JavaScript users won't be either. Yes, this is close to an argument to delete {{verify spelling}}. * Pppery * it has begun... 04:37, 15 August 2024 (UTC)
Smileys
editThese smileys look fine in light mode, but they look weird and vaguely racist in dark mode. Does someone know how to fix that?
😀😀😀🤠
I am using Vector legacy and Wikipedia:Dark mode (gadget) and FF and Pop OS.
Thanks, Polygnotus (talk) 12:01, 15 August 2024 (UTC)
- I doubt the gadget has any easy way to recognise emoji and exclude them from being inverted. Sjoerd de Bruin (talk) 12:04, 15 August 2024 (UTC)
- Hm, good point. Polygnotus (talk) 12:06, 15 August 2024 (UTC)
- I'm pretty sure that the appearance (including the colouring) is browser-specific. What I mean is, if I view this page in Firefox and also in Edge, those emojis look different in colour and also in other ways, such as the shape of the teeth. --Redrose64 🌹 (talk) 18:55, 15 August 2024 (UTC)
- Hm, good point. Polygnotus (talk) 12:06, 15 August 2024 (UTC)
- This is exactly the reason why the foundation didn't end up using tha method of the Gadget to provide dark mode, and it is listed in Wikipedia:Dark_mode_(gadget)#Limitations. —TheDJ (talk • contribs) 20:15, 15 August 2024 (UTC)
- @TheDJ: Does the official dark mode only work on Vector2022? Can I use it on Vector2010? I was pretty confused by that. Polygnotus (talk) 20:30, 15 August 2024 (UTC)
- Official dark mode is supported on Vector 2022 and on Minerva. It is not supported/provided elsewhere today, but like all the software deployed, the skins are open source. Izno (talk) 20:44, 15 August 2024 (UTC)
- Thank you. I hope official dark mode support comes to Vector2010 soon but that appears to be unlikely (if I understand Phabricator correctly, haven't done much digging). Polygnotus (talk) 21:12, 15 August 2024 (UTC)
- Official dark mode is supported on Vector 2022 and on Minerva. It is not supported/provided elsewhere today, but like all the software deployed, the skins are open source. Izno (talk) 20:44, 15 August 2024 (UTC)
- @TheDJ: Does the official dark mode only work on Vector2022? Can I use it on Vector2010? I was pretty confused by that. Polygnotus (talk) 20:30, 15 August 2024 (UTC)
Conditional expressions bolding?
edit{{#ifeq:
and {{#if:
bolding text after having added a param to a template. What am I doing wrong? Qwerty284651 (talk) 14:10, 15 August 2024 (UTC)
- The leading semicolon? See MOS:DEFLIST.
- —Trappist the monk (talk) 14:26, 15 August 2024 (UTC)
- Qwerty284651: Look at the workaround right after if:slam in the code. That's probably what you want. – Jonesey95 (talk) 14:30, 15 August 2024 (UTC)
- Got it. Thanks. Qwerty284651 (talk) 14:36, 15 August 2024 (UTC)
- The general problem and some workarounds are described at "If the first character of a template expansion is one of four wiki markup characters" at Help:Template#Problems and workarounds. PrimeHunter (talk) 16:26, 15 August 2024 (UTC)
- Got it. Thanks. Qwerty284651 (talk) 14:36, 15 August 2024 (UTC)
- Qwerty284651: Look at the workaround right after if:slam in the code. That's probably what you want. – Jonesey95 (talk) 14:30, 15 August 2024 (UTC)
Can't save edit due to blacklisted link, but edit doesn't contain blacklisted link
editI'm unable to save an edit due to the error "Your edit was not saved because it contains a new external link to a site registered on Wikipedia's blacklist or Wikimedia's global blacklist."
"The following link has triggered a protection filter: about.com"
I haven't added any external links. I can't share the text that's triggering the apparently erroneous alert, since that text is triggering the blacklist filter. If there is in fact a link to about.com, I can only think it would be due to a typo or some kind of technical issue with a template transclusion, but I have exhausted my own ability to troubleshoot the issue.
How can I get assistance in troubleshooting this? Thanks! —danhash (talk) 17:26, 15 August 2024 (UTC)
- @Danhash: It's about User:Danhash/Film project and not a live article so you can wrap the whole page in
<nowiki>...</nowiki>
before saving. Then we can see your code and track down the cause. I suspect you are transcluding blacklisted links from 3D film and Hearing loss. PrimeHunter (talk) 17:45, 15 August 2024 (UTC)
- @PrimeHunter: I have been working with the {{get short description}} template to pull Short Descriptions of pages in my project into a table for easy reference. I removed the transclusion of the Short Descriptions of those two articles, and the page saved. I don't know why either of those Short Descriptions would trigger the blacklist for "about.com" though, as the transcluded text is "Film that gives an illusion of three-dimensional depth" and "Partial or total inability to hear" respectively. Is there a technical issue with those descriptions or with the template itself?
- Also, when in Edit Source mode, I'm getting the message "Warning: Post-expand include size is too large. Some templates will not be included." How do I resolve this?
- In Edit Source mode I'm also getting multiple messages about {{Cite Web}}, {{Cite Journal}}, and {{Citation}} templates, which are not present in the page I'm editing. I'm assuming that the {{get short description}} template is transcluding them somehow, though they aren't showing up when viewing the page. —danhash (talk) 18:15, 15 August 2024 (UTC)
- The cs1|2 messaging is likely because of this. The code fetches the article wikitext and then calls
frame:preprocess()
on it which renders the wikitext into html (same as happens when you click the publish button). Converting to html causes all cs1|2 templates in whatever article is being preprocessed to be rendered. If there is anything in the cs1|2 templates that creates an error or maintenance message, those messages will show up in the preview message box. - Once converted to html, Module:get short description looks for the
<div>...</div>
tags that wrap the short description. Not at all obvious that such a complicated mechanism is required. Pinging the author who can perhaps explain. - —Trappist the monk (talk) 18:37, 15 August 2024 (UTC)
- This peculiar mechanism may also explain the inability to publish. The preprocessed page that holds the blacklisted item triggers the filter.
- —Trappist the monk (talk) 18:40, 15 August 2024 (UTC)
- @Trappist the monk: That seems awfully complex as well as resource-intensive for what seems like could be a simple database call. Is there an easier way to query for Short Descriptions (such as querying Wikidata)? —danhash (talk) 18:50, 15 August 2024 (UTC)
- I expect that there is. Wikidata is possible, but I think that I've seen editors overriding the wikidata short description so, if they are doing that, wikidata won't be very reliable (if it ever was). Let us see what the module author has to say.
- —Trappist the monk (talk) 19:07, 15 August 2024 (UTC)
- Maybe the confusingly named Module:GetShortDescription (not the same as Module:Get short description) would work better for this purpose. You might also look at {{Annotated link}}. – Jonesey95 (talk) 19:52, 15 August 2024 (UTC)
- Apparently not reliable for 3,959,819 articles. CMD (talk) 20:00, 15 August 2024 (UTC)
{{get short description}}
is very expensive on the 2 MB limit for Help:Template limits#Post-expand include size. For example,{{get short description|Sign language}}
uses 485K (23%) of the limit even though the whole wikitext of Sign language is only 124K. It doesn't help to invoke the used module directly with{{#invoke:Get short description|main|Sign language}}
. But{{annotated link|Sign language}}
only uses 0.2K. PrimeHunter (talk) 20:42, 15 August 2024 (UTC)
- I have hacked a lightweight version of Module:Get short description in its sandbox. This version recognizes all to the
{{Short description}}
redirects in addition to its canonical name. - To test it, copy the ~/sandbox to your clipboard, and then edit Module:Get short description. Replace its contents with the contents of your clipboard. Put
User:Danhash/Film project
in the Preview page with this template textbox and then click the attached Show preview button. And yeah, do not click Publish changes. - —Trappist the monk (talk) 22:47, 15 August 2024 (UTC)
- This would be a fine addition to Module:Template redirect regex, if you choose to use it. ~ Tom.Reding (talk ⋅dgaf) 10:16, 16 August 2024 (UTC)
- @Trappist the monk: That seems awfully complex as well as resource-intensive for what seems like could be a simple database call. Is there an easier way to query for Short Descriptions (such as querying Wikidata)? —danhash (talk) 18:50, 15 August 2024 (UTC)
- The cs1|2 messaging is likely because of this. The code fetches the article wikitext and then calls
- In Edit Source mode I'm also getting multiple messages about {{Cite Web}}, {{Cite Journal}}, and {{Citation}} templates, which are not present in the page I'm editing. I'm assuming that the {{get short description}} template is transcluding them somehow, though they aren't showing up when viewing the page. —danhash (talk) 18:15, 15 August 2024 (UTC)
Danhash, I made a quick test on your subpage and undid it back to your version. Please see revision 1240520247 of 20:35, 15 August 2024, and see if that does what you want. Mathglot (talk) 20:39, 15 August 2024 (UTC)
Implementing category editnotices
editJust today, it became possible for Lua to read out the categories used on a specific page. See phab:T50175. You can see how this works in this sandbox module and in testwiki:Module:Editnotice load and [5].
I want to see if we can implement category editnotices here. Other improvements I have made to this module include page ID-specific editnotices, useful because it allows the page to move around without having to move the editnotice around to match the title. There is probably some cleanup that can be done with this module, for example using Lua functions instead of preprocessing {{replace}}, but I think it is a good start. Awesome Aasim 20:19, 15 August 2024 (UTC)
- I wish this existed two months ago when I wrote Module:Engvar/detect. Would've been so much easier to grab categories rather than trying to capture the name of every redirect to every template. --Ahecht (TALK
PAGE) 22:36, 15 August 2024 (UTC)- Actually, never mind, looks like it's expensive (unlike getContent(), which grabs the entire contents of the page). --Ahecht (TALK
PAGE) 00:09, 16 August 2024 (UTC)- How is grabbing the entire contents of the page not expensive? --Redrose64 🌹 (talk) 18:19, 16 August 2024 (UTC)
- Because it doesn't require much compute, and because it stays with tables of the database, that we are already accessing while parsing anyways. Things are only marked as expensive if they cause potential exponential increases of load. Crossing from parsing one article to parsing many articles or dependencies of the article is such a case, as this creates a spiderweb of parsing dependencies that have to be accessed. Accessing a blob of text we already have in memory is much less expensive. —TheDJ (talk • contribs) 18:29, 16 August 2024 (UTC)
- More specifically, my thinking back when I was working on Scribunto was that
getContent()
is the same thing from a data-loading perspective as transcluding a page (and, IIRC, it uses the same underlying data-fetching functions), and since transcluding a page isn't considered an expensive operation sogetContent()
shouldn't be either. On the other hand, most other parser functions that have to make a separate database query to load some data are considered expensive, and so Scribunto functions that make database queries are marked as expensive for that reason. Whoever implemented the new feature likely followed the same reasoning. Anomie⚔ 19:05, 16 August 2024 (UTC)
- More specifically, my thinking back when I was working on Scribunto was that
- Because it doesn't require much compute, and because it stays with tables of the database, that we are already accessing while parsing anyways. Things are only marked as expensive if they cause potential exponential increases of load. Crossing from parsing one article to parsing many articles or dependencies of the article is such a case, as this creates a spiderweb of parsing dependencies that have to be accessed. Accessing a blob of text we already have in memory is much less expensive. —TheDJ (talk • contribs) 18:29, 16 August 2024 (UTC)
- How is grabbing the entire contents of the page not expensive? --Redrose64 🌹 (talk) 18:19, 16 August 2024 (UTC)
- Actually, never mind, looks like it's expensive (unlike getContent(), which grabs the entire contents of the page). --Ahecht (TALK
editing in the dark
editThe site recently began darkening its countenance at night. I don't have a personal preference one way or another, but it benefits those around me, so I don't want to use hacky methods to undo it. The editing window's colouration has fluctuated several times (see Wikipedia:Village pump (technical)/Archive 214#Dark mode issues), but has settled recently. Unfortunately, mine is still showing dark-grey text against a black editing-window-background; I'm typing this in a separate program and will copy/paste it when done, hoping it'll save properly. I assume this isn't widespread, else there'd be a rapid fix, but I'd really like to find a solution soon. Anybody know what and why I'm experiencing? Much obliged, — Fourthords | =Λ= | 01:47, 16 August 2024 (UTC)
- @Fourthords If you are seeing normal text in dark-grey but wiki-syntax like double-square-brackets in colors (e.g. like this screenshot), then this is a bug related to the extension which powers that syntax-highlight feature, phab:T365311. That bug is being worked on and should be fixed soon (next week or two I'd guess, from the latest comments there), but for now you can toggle off the syntaxhighlight with the 7th button in the toolbar (a marker-pen shape). I hope that helps. Quiddity (WMF) (talk) 18:48, 16 August 2024 (UTC)
- Note that the above behaviour only happens in the "automatic" color mode, light and dark are unaffected. Sjoerd de Bruin (talk) 18:56, 16 August 2024 (UTC)
- Yeah, that's exactly what I'm seeing! I thought the colour-coding behaviour had been the default for... I don't know, a decade or more? Is this not affecting an outsized amount of the editing community? Regardless, at least that'll let me edit within the browser again (and it's not like I have those color-indicating features in the word processor I've been using during the nighttime hours, anyway!). I'll test it in the next couple of days. Thanks for the heads-up! — Fourthords | =Λ= | 19:08, 16 August 2024 (UTC)
Deleted contributions invisible
editI'm having a weird admin problem and that is that Deleted Contributions don't show up when I know that an editor has them. For example, I deleted Draft:Peter Bianca as a hoax article by User:Borris Lana but nothing shows up on Special:DeletedContributions/Borris Lana (sorry only visible to admins). I thought it was just a weird glitch, I just moved on. But I was investigating an edit by User:Abdullah Hill Mahin and in the blocking rationale on Special:Contributions/Abdullah_Hill_Mahin it states Spam / advertising-only account; see also deleted contribs
. But when I look at Special:DeletedContributions/Abdullah Hill Mahin, the page is blank, no deleted contributions appear. Luckily, looking at these pages is a small part of what I do as an admin but I do check Deleted Contributions while I'm editing and if there is a problem, I'd like it to get fixed.
Any admins facing similar problems or have an idea what might be going on? Thanks. Liz Read! Talk! 02:28, 16 August 2024 (UTC)
- This is phab:T372444 as mentioned at WP:AN#DeletedContributions broken. Workaround in the meantime: Go to Special:DeletedContributions and put the user's name in the form; you'll get something like this. —Cryptic 02:36, 16 August 2024 (UTC)
- User:PrimeHunter/Deleted contribs.js adds a working "Deleted contribs" link under "Tools" in userspace. PrimeHunter (talk) 11:26, 16 August 2024 (UTC)
- These work:
- but replacing that plus sign with an underscore breaks it, as does replacing the
&target=
with a slash. --Redrose64 🌹 (talk) 18:08, 16 August 2024 (UTC)
"Prompt me when entering a blank edit summary (or the default undo summary)" preference did not work for me just now
editI have had the "Prompt me when entering a blank edit summary (or the default undo summary)" option selected in my Preferences for years. Until just now, it has always prompted me when the edit summary (a) was blank, (b) consisted of only a section header because I was editing a section, or (c) consisted of the default undo summary. Just now, I responded to a talk page section and clicked Publish, forgetting to add custom text to the summary. I was not prompted to add an edit summary. Can anyone reproduce this problem?
I am using Vector 2022 and the old wikitext editor (I don't know what it's called anymore, but in my Editing Preferences, the "editing toolbar", "Visual Editor, and "wikitext mode" checkboxes are empty). – Jonesey95 (talk) 13:29, 16 August 2024 (UTC)
- Replicated, bug phab:T372643 opened. — xaosflux Talk 13:52, 16 August 2024 (UTC)
- Seems to only be in namespace 2. Samples in other namespaces welcome. — xaosflux Talk 13:58, 16 August 2024 (UTC)
- @Jonesey95: do you recall the last time this worked as you expected, in "User talk:" space? — xaosflux Talk — xaosflux Talk 14:11, 16 August 2024 (UTC)
- No, I don't remember, as the tool has conditioned me to put in a comment nearly every time (18 misses in 30,000 edits in 2024; thanks, clever tool!). I probably get prompted by the tool once every few weeks when I click Publish accidentally, so I wouldn't remember what namespace I was in. – Jonesey95 (talk) 17:20, 16 August 2024 (UTC)
- @Jonesey95: there is a very old special case on that preference, it does not apply to your own user or usertalk page. The documentation has been updated. — xaosflux Talk 22:18, 16 August 2024 (UTC)
- Fascinating; the description of the Preferences option does not indicate this strange exception. I was surprised to encounter it after 300,000+ edits, including many to my own User Talk page. Thanks for the info. – Jonesey95 (talk) 22:28, 16 August 2024 (UTC)
- How odd. I tested just now and did get prompted
Reminder: You have not provided an edit summary....
on my user page and my talk page - which is fine. NebY (talk) 03:22, 17 August 2024 (UTC)
- @Jonesey95: do you recall the last time this worked as you expected, in "User talk:" space? — xaosflux Talk — xaosflux Talk 14:11, 16 August 2024 (UTC)
interface message 'Vector-toc-beginning'
editAt en.wiki I can write:
local title_obj = mw.title.new ("MediaWiki:Vector-toc-beginning"); local content = title_obj:getContent();
and it returns the content of MediaWiki:Vector-toc-beginning: '(top)'
If I write the same thing at fr.wiki, it does not work. The page appears to be there: fr:MediaWiki:Vector-toc-beginning. My code should set content
to 'Début'. I'm guessing that the content of the fr.wiki page comes from translatewiki. I can also write:
content = mw.getCurrentFrame():callParserFunction('int', {'Vector-toc-beginning'})
That, at least, returns a value: 'Beginning'. Yay, but not what I want. Changing my interface language at fr.wiki from English to French gets me the result that I want: 'Début'.
Is there any way to get the French interface message without it gets translated to the reader's interface language? There is a move afoot to internationalize Module:Section sizes. The content of MediaWiki:Vector-toc-beginning (at en.wiki) is used to name the unnamed lede section in the module's output table. That lede section name should always render in the same language as the local wiki regardless of the user's interface language setting.
—Trappist the monk (talk) 16:45, 16 August 2024 (UTC)
- Try
mw.message.new( 'vector-toc-beginning' ):inLanguage( mw.language.getContentLanguage() ):plain()
. Thetitle_obj:getContent()
method only works when the message has been locally customized; if it's using the MediaWiki default, it doesn't work because the page doesn't exist. P.S. Doing justmw.message.new( 'vector-toc-beginning' ):plain()
is much like theint
method, using the user's interface language. Anomie⚔ 17:08, 16 August 2024 (UTC)- I believe that does it, thank you.
- —Trappist the monk (talk) 17:46, 16 August 2024 (UTC)
Preloading text
editIt is possible to preload a template, but how can I preload specific text? Preloading a template is useful, but sometimes you don't know the text you want to preload in advance.
mw:Manual:Creating pages with preloaded text
I want something like https://en.wikipedia.org/wiki/User_talk:Polygnotus?action=edit§ion=new&preload=This%20is%20just%20some%20text
Polygnotus (talk) 02:28, 17 August 2024 (UTC)
- You can use preloadparams[]= while preloading a suitable page. User:PrimeHunter/$1 (not protected) only contains
$1
. https://en.wikipedia.org/wiki/User_talk:Polygnotus?action=edit§ion=new&preload=User:PrimeHunter/$1&preloadparams%5b%5d=This+is+just+some+text. PrimeHunter (talk) 02:48, 17 August 2024 (UTC)- @PrimeHunter: Thank you, that is way better than my workaround! Polygnotus (talk) 02:53, 17 August 2024 (UTC)
No favicon on Google
editI know this is probably out of our remit, but does anyone have any idea why Google currently shows a placeholder instead of the "W" as the favicon for en.wikpiedia.org (example)? It seems to be occurring only for some subdomains (en, fr, la, nn, no). Is there anything WMF can do about it? Nardog (talk) 05:27, 17 August 2024 (UTC)