Jump to content

Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia
(Redirected from Wikipedia:VP(T))
 Policy Technical Proposals Idea lab WMF Miscellaneous 
The technical section of the village pump is used to discuss technical issues about Wikipedia. Bug reports and feature requests should be made in Phabricator (see how to report a bug). Bugs with security implications should be reported differently (see how to report security bugs).

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.

List-defined refs

[edit]

Hi, can anyone explain to me why this edit does not fix the ref name error at ref 507? Thanks, DuncanHill (talk) 19:02, 28 December 2024 (UTC)[reply]

@DuncanHill The ref name is "Gaza genocide CNN_22_October_2024" you'd just named it "CNN_22_October_2024" Nthep (talk) 19:29, 28 December 2024 (UTC)[reply]
@Nthep: Thanks, I hadn't realised that excerpt changed the refnames. Anyway, as I've been told by an admin not to proceed I won't fix any of the other errors in the article. I don't want an ARBPIA block for fixing refs. Obviously better to leave them broken. Nobody else seems to care anyway. DuncanHill (talk) 20:10, 28 December 2024 (UTC)[reply]
Please do not make claims about me unless you can prove them. Nobody mentioned ARBPIA, and I certainly didn't play the admin card: my edit at Gaza genocide was made as an ordinary WP:XC user, a threshold that I passed way back in July 2009, more than two years before I became an admin. --Redrose64 🦌 (talk) 20:20, 28 December 2024 (UTC)[reply]
You, an admin, quoted CITEVAR at me telling me not to add LDR to an article I was editing. One I've edited several times to mend reference errors. Anyway, I won't try to fix the article again. DuncanHill (talk) 20:25, 28 December 2024 (UTC)[reply]
Yes, I'm an admin; but where did I mention that? Did I do anything that might be construed as "I'm an admin so my edit trumps yours"? Also, I didn't quote CITEVAR, I linked it. It's an editing guideline that we are all expected to follow. --Redrose64 🦌 (talk) 20:32, 28 December 2024 (UTC)[reply]
Your sig is highlighted in blue like all the other admins. DuncanHill (talk) 20:36, 28 December 2024 (UTC)[reply]
It's not a MediaWiki default feature, you probably have some gadget installed that does that (possibly User:Amalthea/userhighlighter.js); these gadgets cannot distinguish between edits made using admin permissions (such as editing a fully-protected page) and those which anybody, even the total newbies, can make (such as this post). I certainly don't have any special tool that marks some edits as admin edits and not others. In any case, my sig here is exactly the same as all the other sigs that I have left on any other discussion page since 00:01, 25 December 2024 (UTC), whether I have my admin hat on or not. --Redrose64 🦌 (talk) 21:17, 28 December 2024 (UTC)[reply]
And your name is highlighted in blue on my watchlist, like all other admins. I wasn't talking about "edits made using admin permissions". You, an admin, told me "do not add WP:LDRs to articles that previously had none, this goes against WP:CITEVAR". DuncanHill (talk) 21:25, 28 December 2024 (UTC)[reply]
(edit conflict) But I didn't do so with my admin hat on, I did so as a watcher of WP:VPT. That's what I'm saying here. I can't turn the admin bit off and on at whim (that's a WP:CRAT action), not even according to whether I need to use admin rights or not. The rights are just there, all of the time, and have been since 2011. For example, on a fully-protected page, I get an "Edit" tab and not a "View source" tab, but I also get a pink box stating "Note: This page is protected so that only users with administrative rights can make edits." It's like a WP:30/500 page: you and I both get the pink box stating "Note: This page is extended-confirmed protected so that only users with extended confirmed rights can make edits." When I edit such pages, I do so with my WP:XC hat on; and when I edit VPT, I do so hatless. One thing the admin right does not do is give my edits any greater weight. Any XC user could have made the fix that I did, and given the explanation that I did. If you feel that I am guilty of a misuse of the rights that come with the admin bit, you know what to do. --Redrose64 🦌 (talk) 21:53, 28 December 2024 (UTC)[reply]
When an admin says "do not do x" to a non-admin, then THEY ARE WEARING THEIR ADMIN HAT. It's not about "using your admin rights", it's about the fact that you are an admin. DuncanHill (talk) 22:16, 28 December 2024 (UTC)[reply]
This page is unprotected, anybody (who has read that guideline) could have written a post similar (if not identical) to mine. If I had preceded my post with a phrase such as "As an administrator, I must warn you that ...", you might have a point. But I didn't. This page has more than 3,600 watchers; I can't find out who they are (except for myself), but I suspect that some are admins and some not. The rights of a person making a post shouldn't make any difference to how that post is interpreted. Unless, of course, somebody posts in a manner that implies that they have a right that in reality, they don't. --Redrose64 🦌 (talk) 22:48, 28 December 2024 (UTC)[reply]
But not anybody wrote it, an admin wrote it. You can't tell people "do not" and then pretend you weren't an admin when you said it. If it really upsets you that people know you are an admin then resign. DuncanHill (talk) 23:00, 28 December 2024 (UTC)[reply]
I'm not pretending not to be an admin; I'm saying that the edit was done without recourse to the admin toolkit. It doesn't upset me that people know I'm an admin (it's right there on my user page), but apparently it upsets you. You can't expect an admin to do nothing but block, delete and protect: at some point admins will want to make a perfectly ordinary edit. If you are upset that you have found out that some editors also happen to be admins, uninstall that gadget that you seem to be using. Then we'll all look the same again. --Redrose64 🦌 (talk) 23:20, 28 December 2024 (UTC)[reply]
This isn't about you using the toolkit or not. It's the fact that you are an admin so when you give an instruction it is an instruction given by an admin. An admin - you - told me "do not add WP:LDRs to articles that previously had none, this goes against WP:CITEVAR". I folowed the instruction the admin had given me. DuncanHill (talk) 00:07, 29 December 2024 (UTC)[reply]
AN report filed. --Redrose64 🦌 (talk) 00:26, 29 December 2024 (UTC)[reply]
@DuncanHill and Nthep:That's not it at all. The problem is that almost the whole of the "Genocide" section is transcluded from the lead section of Gaza genocide, except for that article's infobox (and certain other preliminary matter); and the ref concerned was defined inside the infobox. Moving it outside the infobox fixes it.
BTW: please do not add WP:LDRs to articles that previously had none, this goes against WP:CITEVAR. --Redrose64 🦌 (talk) 19:43, 28 December 2024 (UTC)[reply]
@Redrose64: How else do I fix the broken refnames? That wasn't the only one. DuncanHill (talk) 19:49, 28 December 2024 (UTC)[reply]
(edit conflict) You brought one specific issue to this problem board, which I fixed, and this is the thanks that I get for that. So, despite your claim that they are responsible for all that remain, I don't see why I should fix any more for you. Please note that you have not been forbiddedn from fixing refname errors in this article by Redrose64. If there is any responsibility, it should lie with those who introduced the error in the first place, which certainly was not me. In short: problems should be fixed at source, not somewhere down the chain. --Redrose64 🦌 (talk) 20:13, 28 December 2024 (UTC)[reply]
@Redrose64: You told me not to use list-defined refs, even though this seems to be the only way of fixing the refname errors in the article. I am not going around looking for fucking horrible referencing systems to add to random articles for the hell of it, all I am trying to do is fix problems when I see them. Can you do me a favour? Next time I ask for help just ignore me. We'll both be happier, and probably things will get fixed faster. DuncanHill (talk) 20:20, 28 December 2024 (UTC)[reply]
Please read what I wrote. I didn't tell you not to use list-defined refs, I directed you to a guideline that says not to change the article's established referencing style. In my edit to Gaza genocide (linked above), I demonstrated that LDRs are not the only way of fixing the refname errors in the article. If you have other problems of a similar nature, please list them and the watchers of this page will endeavour to help, but don't expect them to do so if you are going to treat them the way that you treat me.
In short: if you don't want help from the people who hang around a help desk, don't ask at that help desk. --Redrose64 🦌 (talk) 20:29, 28 December 2024 (UTC)[reply]
I want help from helpful people. I didn't ask you to fix anything, I asked why my edit hadn't worked. I intended, having sorted the first one out, to go ahead an fix the other errors myself. You came down on me with "do not add WP:LDRs to articles that previously had none, this goes against WP:CITEVAR". So are you now saying I can ignore that? DuncanHill (talk) 20:35, 28 December 2024 (UTC)[reply]
To quote from my very first reply here: The problem is that almost the whole of the "Genocide" section is transcluded from the lead section of Gaza genocide, except for that article's infobox ... and the ref concerned was defined inside the infobox. Moving it outside the infobox fixes it. There you go: an explanation of what the problem was, plus directions on how to fix. Now, what else have I omitted to provide you with? --Redrose64 🦌 (talk) 21:21, 28 December 2024 (UTC)[reply]
Will that work for all the others in the article? DuncanHill (talk) 21:28, 28 December 2024 (UTC)[reply]
No, scrub that, Redrose64 - PLEASE STOP TRYING TO HELP ME. It's really unpleasant now. DuncanHill (talk) 21:30, 28 December 2024 (UTC)[reply]
OK, shall I take myself to WP:AN? --Redrose64 🦌 (talk) 22:06, 28 December 2024 (UTC)[reply]
  • This is a bit ridiculous, especially as that article still has citation errors caused by faulty transclusion. Adding list defined refs to solve the citation error it better than having a citation error. Yes CITEVAR, but this is a perfect case to remember IAR. Having large red error messages is obviously worse than not having large red error messages. If another editor wants to fix the issue by editing the article being transcluded fine, but that is not always possible as some articles are transcludsd multiple times. Fixing it in the original article may then break it in others. Ultimately the responsibility to make sure these errors don't exist is on those setting up the transclusion, rather an editor trying to make the encyclopedia better by removing obvious large error messages. -- LCU ActivelyDisinterested «@» °∆t° 13:12, 29 December 2024 (UTC)[reply]
    Also per WP:CITEVAR fixing errors in citation coding isn't a CITEVAR violation. If the fix isn't to your liking then per CITEVAR Do not revert someone else's contribution merely because the citation style doesn't match. If you know how to fix it, then fix it. -- LCU ActivelyDisinterested «@» °∆t° 13:20, 29 December 2024 (UTC)[reply]
    I did fix it, and also fixed it in a manner that does not change the citation style in either the thranscluding article or the transcluded article; nor will it break any other articles that transclude it. In so doing I am not aware that I reverted anybody. Please show which edit I reverted. --Redrose64 🦌 (talk) 14:43, 29 December 2024 (UTC)[reply]
    I don't say you revertex. The bit I highlighted was that if you don't like the fix that has been done then do it another way, fixing the issue is more important than how the source code looks. Criticising someone for making a fix is counterproductive, even if you dislike how they fixed the issue. -- LCU ActivelyDisinterested «@» °∆t° 15:04, 29 December 2024 (UTC)[reply]
    @ActivelyDisinterested: I'm confused, Did I make the right fix, or not? --Redrose64 🦌 (talk) 01:21, 1 January 2025 (UTC)[reply]

Why does the account go out?

[edit]

Why is my Wikipedia account getting kicked out every hour or every day or every minute? (Strait WikiN (talk) 11:30, 28 December 2024 (UTC))[reply]

Do you allow cookies on your device? 331dot (talk) 11:50, 28 December 2024 (UTC)[reply]
Yes. I gave permission. To delete cookies or not to delete t Strait WikiN (talk) 14:48, 28 December 2024 (UTC)[reply]
Possibly related to phab:T372702? @Strait WikiN please confirm. NightWolf1223 <Howl at meMy hunts> 00:35, 29 December 2024 (UTC)[reply]
What do I confirm? Thank you. (Strait WikiN (talk) 02:31, 29 December 2024 (UTC))[reply]
They were asking you to confirm whether or not the recent bug fix linked above had resolved your issue. --SarekOfVulcan (talk) 18:46, 30 December 2024 (UTC)[reply]

I'm trying to use {{Album chart}} at Draft:So Medieval. The album charted on the UK Official Record Store Chart (link to the specific week), but I can't see that in the documentation anywhere, and the docs don't say how to specify a custom chart in manual mode. Using "UK" as the identifier in automatic mode instead links to ...artist/_/Blue Bendy instead of the actual page for the artist, ...artist/blue-bendy. I'd just do the table manually, but I honestly don't know how tables work in wikitext, and I don't feel like learning unless I have to. Could I get some help formatting the template to get this to work? Suntooooth, it/he (talk/contribs) 03:24, 30 December 2024 (UTC)[reply]

Hi Suntooooth. Apologies to all for the unindented response. Four things:

  1. If you know you're having trouble with a template like {{Album chart}}, you can ask for help at that template's talk page
  2. For help with tables, you could start at Help:Table, but you said you don't want to learn about that. Unfornately, the template you're trying to use (or get help with) is intended for use in a table, so you'll probably want some proficiency sometime. I've included a sample Charts section below.
  3. The real problem isn't so much technical; it's that you are trying to cite a position on a not-too-notable chart. That is, we have no article for it, and it's not listed at WP:GOODCHART, so it's not too surprising it's not currently supported by {{Album chart}}.
  4. To resolve the content problem, the place to seek consensus is Wikipedia talk:Record charts. You'll need to explain your intention and maybe why that chart is more (or as) worthy as UK Albums Chart (which is supported by {{Album chart}}). I looked in the talk page's archive for Record Store Chart and didn't find anything. Possibly it's not been discussed before.

Here's that sample section I mentioned, for illustration only. It uses (1) the Album chart template with |UK2=, giving a fictitious citation. It also uses (2) a manual citation which provides a citation to a non-notable chart. I recommend you use neither of these; this is just so you can see how it would look.

Charts

[edit]
2024 weekly chart performance for So Medieval
Chart (2024) Peak
position
UK Albums (OCC)[1] not 33
UK Official Record Store Chart (OCC)[2] 33

References

Good luck and happy editing. — JohnFromPinckney (talk / edits) 23:38, 2 January 2025 (UTC)[reply]

Thanks for the detailed response! Per this and a concurrent discussion at WP:ALBUMS, I've brought this up over at the talk page for WP:CHARTS in order to gauge if the chart would be suitable for articles. Suntooooth, it/he (talk/contribs) 12:19, 3 January 2025 (UTC)[reply]

Source editing

[edit]

Hey can we stop having the source html diffs intermix removed text with added thereby making it impossible to read or copy/paste?

It makes it really difficult when a ref gets broken, and we need to get it from the previous edit, but we can’t copy from the visual and the source text is yellow mixed inseparably with blue. Snokalok (talk) 17:44, 30 December 2024 (UTC)[reply]

Go into desktop mode rather than using the mobile view while on a mobile device. You can find the choice for this at the very bottom of the screen. StarryGrandma (talk) 19:43, 30 December 2024 (UTC)[reply]

Update Help pages as "Search" button changed in Vector Skin 2022

[edit]
 – Pointer to relevant discussion elsewhere. Neutral advertising as there has been little response.

In the desktop version, the magnifying glass "Go" button to click to search link has been replaced by the "Search" button at the top of every page in the default Vector skin (2022). But most help pages have not reflected this change. Please see Help talk:Contents#"Search" button changed in Vector Skin 2022. waddie96 ★ (talk) 09:00, 31 December 2024 (UTC)[reply]

How to get technical help if requested but not replied to

[edit]

Around the 14th of this month, I asked for help in a request entitled "Cursor jumping" but never got a reply. Around that same time, I had some medical issues and was eventually hospitalized. The request was archived. I'd like to follow up on it now because it's extremely time-consuming when writing and responding to messages in Wikipedia when I'm on my computer. The problem doesn't happen on my cell phone or anywhere else on my computer except in Wikipedia.

There were two other help requests that are similarly in need of continued help ("Mystery sticky notes" and "Another mystery"), but let's start with this one. Augnablik (talk) 11:22, 31 December 2024 (UTC)[reply]

Well, it's been said that the best way to get an answer to a question on the Internet is, not to ask the question, but to post the wrong answer to the question. Uporządnicki (talk) 11:48, 31 December 2024 (UTC)[reply]
@Augnablik: Please visit this link, try writing something, and let me know if you are still facing this issue. – DreamRimmer (talk) 12:01, 31 December 2024 (UTC)[reply]
@DreamRimmer, the link goes to my sandbox (???). If that's what you intended, then no, what I described doesn't happen there. It's only when I'm writing or replying to messages. Augnablik (talk) 12:47, 31 December 2024 (UTC)[reply]
Yes, this was intended to check if the issue occurs in safe mode. Please try resetting your preferences. – DreamRimmer (talk) 13:05, 31 December 2024 (UTC)[reply]
Resetting my preferences to what? I surely didn’t set any preferences to do these annoying things! Augnablik (talk) 13:33, 31 December 2024 (UTC)[reply]
Could be the same issue as Wikipedia:Village pump (technical)/Archive 208#When editing, pressing shift causes cursor to jumps to start of edit text box. If you have enabled the Google translate gadget, try disabling it. Nardog (talk) 13:40, 31 December 2024 (UTC)[reply]
Oh, yikes — I’d hate to do that because I use Translate often. 😓
But it’s not just the Shift key that makes the cursor jump; it’s also still other keys like “ ‘ — plus a few more I wrote about in my original message several weeks ago. Augnablik (talk) 15:39, 31 December 2024 (UTC)[reply]
Well, @Nardog, it turns out that I don't have Google Translate on my computer, only my phone. So that's not the culprit affecting my jumpy cursor when working on messages in Wikipedia. Any other ideas? Augnablik (talk) 16:26, 31 December 2024 (UTC)[reply]
I'm talking about the "GoogleTrans" gadget. You can't have it only on your phone and not on your computer, unless you log into different accounts on those devices. Nardog (talk) 04:21, 1 January 2025 (UTC)[reply]
@Nardog, I'm beginning to get a glimmer of an idea of what you're talking about. I still don't quite understand what a gadget is, but here's what I do know: that on my computer, when I'm on Google Drive or in a Google-driven e-mail account, I see Google Translate in what I think is called the "dot menu" as one of a number of available programs I can use (I forgot it was there because I guess I haven't used it much on my computer) ... but when I'm on my cell phone, I see a separate icon for Google Translate. And you want me to do something to un-enable Google Translate on my computer. How do I do that?
I translate a lot on my cell phone, but if I want to use the program on my computer is it really necessary not to have access to Google Translate in order to use Wikipedia in peace? There are some other weird things going on when I write or edit messages in Wikipedia besides the jumpy cursor that I described in one of the earlier messages I also submitted some weeks back here at the Village Pump technical question place. — Preceding unsigned comment added by Augnablik (talkcontribs) 05:00, 1 January 2025 (UTC)[reply]
Follow this link and locate the fifth item "(E) (U) GoogleTrans: open a translation popup for the selected text or the word under the cursor when pushing the shift button". If it's checked, uncheck it and click "Save". I'm not talking about translation feature or extension on your devices and those have likely nothing to do with your symptom, even if the GoogleTrans gadget (which isn't on your devices) wasn't the culprit either. Nardog (talk) 06:58, 1 January 2025 (UTC)[reply]
@Nardog, Did that, although the "(E) (U) GoogleTrans: open a translation popup for the selected text or the word under the cursor when pushing the shift button" item was third on my screen. It had been checked, so I unchecked it and saved the change.) At first, I thought what you asked me to do had worked because there was no more cursor jumping for maybe 7 or 8 sentences. But now it's still going on.  : 0
I forgot to mention that sometimes, like in the short last sentence I wrote, the initial capital letter also jumps back to the beginning of another sentence, not always the previous one. Other times, like in this sentence, that doesn't happen. Augnablik (talk) 08:11, 1 January 2025 (UTC)[reply]

Free High Quality PDFs of Wikipedia Articles

[edit]

Hi,

on

https://mediawiki2latex.wmcloud.org/

you can get high quality PDF versions of Wikipedia articles for free in seconds. EPUB, ODT and LaTeX versions are also possible.

For more details on the underlying open source project see b:de:Benutzer:Dirk Hünniger/wb2pdf or the presentation File:Wb2pdfTalk.ogv

Merry Christmas and a happy new year!

Yours Dirk Hünniger (talk) 11:58, 31 December 2024 (UTC)[reply]

Group changes by page in contributions

[edit]

Is there a way of grouping changes by page in contributions (in the same way this works in my watchlist)? If there is, this would greatly help me in checking for any unfinished editing tasks that I have meant to come back to, but have not. (With the impending New Year, this is a standard housekeeping task for me.) ThoughtIdRetired TIR 19:35, 31 December 2024 (UTC)[reply]

@ThoughtIdRetired: It's not part of the MediaWiki software, so is not available as a preference. But it should be possible for a JavaScript expert to write a gadget that will do what you want. --Redrose64 🦌 (talk) 01:17, 1 January 2025 (UTC)[reply]
Wikipedia:User scripts/List#Contributions gives you User:BrandonXLF/ContribsByPage. Aaron Liu (talk) 03:41, 1 January 2025 (UTC)[reply]

citation needed tag with year 2025

[edit]

I tried adding citation needed tag for 2025 and it shows up as ".Category:Articles with unsourced statements from January 2025[citation needed]" in the article. Am I missing something or is it because something is missing if we use year 2025. Asteramellus (talk) 13:26, 1 January 2025 (UTC)[reply]

Issue on Bhagavad Gita fixed, looks like from where copied the template, category already exists as required. Indagate (talk) 13:38, 1 January 2025 (UTC)[reply]
Oh ok. Thanks! I have always used the Template for Citation needed - e.g. when I use that template, it has subst:CURRENTMONTHNAME subst:CURRENTYEAR and I usually change the month/year. Wonder why it didn't work now. Asteramellus (talk) 13:44, 1 January 2025 (UTC)[reply]
@Asteramellus: If you changed it manually then I guess you just wrote it wrong. Your edit [1] saved {{Citation needed|date=January {{subst:2025}}}}. I see you used VisualEditor. You don't have to change anything there when you add {{citation needed}}. Just add the template and the subst code will automatically be transformed to the current month and year when you save the edit. I guess you accidentally changed {{subst:CURRENTYEAR}} to {{subst:2025}} without removing {{subst:}}. That would produce the code in your edit. PrimeHunter (talk) 14:24, 1 January 2025 (UTC)[reply]
yes thanks! Asteramellus (talk) 14:49, 1 January 2025 (UTC)[reply]
Each year someone creates a template like Template:2025 to DWIM for people who get confused in that manner. No one had created the 2025 template yet; now I have. Anomie 16:38, 1 January 2025 (UTC)[reply]
I didn't know such templates were created. I see we also have {{January}} to {{December}} for the same reason. So Asteramellus did as usual and never discovered it was wrong because we compensate for the error. It reminds me of Category:Wikipedia magic word templates with various templates like {{DEFAULTSORT}} to compensate for users who incorrectly use template syntax instead of magic word syntax. PrimeHunter (talk) 17:32, 1 January 2025 (UTC)[reply]

Can we do something about the ridiculous message displayed whenever syntax highlighting is taking "too long"?

[edit]

Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 22ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn't work, try a different web browser, and if that doesn't work, try a faster computer.

The threshold is probably set too low to being with, and most people couldn't care less about it taking 0.03s vs 0.02s, so to tell them that a mere 2/1000 sec difference is "not allowed" is pretty ridiculous. If someone really does have a slow computer, that's hardly by choice, and to tell them to try a faster one is like Captain Obvious rubbing salt into their wound. More often than not, it's not even the fault of the computer, but rather some background crap (thanks, MS!), or the browser, or simply a very large and complex page (and possibly even the (gasp) wiki JS code). Ideally this should be a pref configurable by the user. Or, they could click a button if they don't care about things being slightly slower on the current page as long as they can still get the highlighting (the way browsers pop up slow JS abort/continue messages; in this case it wouldn't be modal, of course). But I think mostly it's about the overly low threshold, because when a large page is taking a number of seconds to load anyway, a few extra thousandths for this hardly make a difference. 61.84.123.149 (talk) 16:26, 1 January 2025 (UTC)[reply]

This seems to come from the Gadget mw:User:Remember the dot/Syntax highlighter. This is a user gadget and is not enabled by default here (but available for users to enable). You should report the issue to the author. But also see mw:User:Remember the dot/Syntax highlighter#TimeoutAmmarpad (talk) 16:58, 1 January 2025 (UTC)[reply]
Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. 61.84.123.149 (talk) 17:36, 1 January 2025 (UTC)[reply]
Well there is a standard feature as well. You might even be using multiple. See WP:HILITE. —TheDJ (talkcontribs) 09:57, 2 January 2025 (UTC)[reply]

How does VisualEditor know to classify a site as "News"?

[edit]

How does the VisualEditor know to classify a site as News for the purposes of using {{cite news}} instead of {{cite web}}? I have noticed that for, say, The New York Times it'll classify it with {{cite news}} but for Politico it'll do {{cite web}}. I have wondered for some time and did a string search of the repo for VE but can't find any reference to "nytimes". Does anyone know where this list that dictates the outcome exists? TheSandDoctor Talk 17:26, 1 January 2025 (UTC)[reply]

I'm not sure which software is currently used but https://github.com/zotero/translators/ has the large NYTimes.com.js to process url's from nytimes.com in various ways. It involves a lot more than adding the url to a list. PrimeHunter (talk) 18:36, 1 January 2025 (UTC)[reply]
There is no list. Visual Editor uses a tool called Zotero (trough Citoid). Websites specify themselves as being an newsite through metadata on their own pages. There are several metadata formats that websites use, one of those was made by Facebook. Some websites have website specific instructions made by Zotero called translators that specificly say that that website is a newssite, repo here. A website that does not have metadata that defines itself as a newssite or a translator is defined as an webpage.
As for your specific example, New York has its own translator, where as Politico does not. Politico actually defines itself in it's own metadata as a webpage (<meta property="og:type" content="website">). Snævar (talk) 18:37, 1 January 2025 (UTC)[reply]
And once that definition is found it is mapped to the configs, see mw:VisualEditor/Citation tool for more on that part. — xaosflux Talk 18:46, 1 January 2025 (UTC)[reply]

Different assets for light and dark mode?

[edit]

Is there any way to tell Wikipedia to display different images / media for Light vs Dark mode users? If not, could this be added in the form of a template, something like this?

{{adaptive|lightmode=[[File:Diagram (light mode).svg]]|darkmode=[[File:Diagram (dark mode).svg]]}}

Due to transparency, some SVG and PNG images have bad contrast when viewed in Dark mode.

(repost from WP:TH as they said would be better here)

CrushedAsian255 (talk) 04:38, 2 January 2025 (UTC)[reply]

It would have to be hardcoded in CSS. Dark mode is configured on CSS pages through templatestyles. In order to specify a dark and light mode image in a template like that, Phab:T320322 would have to be fixed first. Snævar (talk) 05:07, 2 January 2025 (UTC)[reply]
Have you tried using class=skin-invert-image already ? —TheDJ (talkcontribs) 09:55, 2 January 2025 (UTC)[reply]
{{If dark}} can be used to select what wikitext to display based on whether or not dark mode is enabled. isaacl (talk) 23:19, 2 January 2025 (UTC)[reply]
Usage of which really should be avoided though. —TheDJ (talkcontribs) 10:33, 4 January 2025 (UTC)[reply]
I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to trigger colour inversion by the dark mode feature simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. isaacl (talk) 17:02, 4 January 2025 (UTC)[reply]

Editnotice help

[edit]

I'm trying to create an editnotice that checks if I'm on a JavaScript or CSS file in my userspace that doesn't begin with "User:JJPMaster/Scripts", in order to warn me that scripts should go to that page's subpages instead of just being willy-nilly in my userspace. However, I got a little carried away and made this monstrosity, which always returns false. Could anyone help explain what I did wrong? JJPMaster (she/they) 18:09, 2 January 2025 (UTC)[reply]

Note: I haven't yet added the message that actually warns me. So far, it just is supposed to return "yes" if the conditions apply, and "no" if they don't. JJPMaster (she/they) 18:10, 2 January 2025 (UTC)[reply]
Never mind, I figured it out. See Special:Permalink/1266891366. JJPMaster (she/they) 18:20, 2 January 2025 (UTC)[reply]
Yikes, you should use a Lua module for complex computation like that. – SD0001 (talk) 22:00, 2 January 2025 (UTC)[reply]

Google Indexing Issue for Camdenmusique

[edit]

Hi, I’m seeking help with the "Camdenmusique" article, which isn’t appearing in Google search results. Could someone please review the article or provide insights on why it might not be indexed? Thank you! GD234 (talk) 05:24, 3 January 2025 (UTC)[reply]

This page is currently in draft space, which is why it is not being indexed. Search engines only index pages in the article space that are marked as patrolled by a new page reviewer, or those that are unpatrolled but are 90 days old. – DreamRimmer (talk) 07:37, 3 January 2025 (UTC)[reply]
Ah I see thank you for your help! The article was previously in main space but was recently converted to draft space by an editor. GD234 (talk) 08:26, 3 January 2025 (UTC)[reply]

I am posting this here in hopes of getting more eyes. I am using this on my user page—specifically, {{current time|UTC-8}}—and the way it's set up, it displays Current time for UTC-8 is 22:52. And, of course, if daylight savings is in effect, I make that UTC-7. Is there a way to use 12-hour format instead and change it to only show the time instead of the whole "current time for..." such as 10:52 PM? Because the infobox parameter is already called current time, having "current time for..." is superfluous, and since in my case I already list my time zone above, the "...for UTC-7/8" is also superfluous. Is there a way to do this, and if not with this template, with another one? Thanks. Amaury06:52, 3 January 2025 (UTC)[reply]

@Amaury: You can customize this template in your userspace and use it. I can set it up for you if you'd like. – DreamRimmer (talk) 07:14, 3 January 2025 (UTC)[reply]
It's a long time since I thought about it, but if someone doesn't provide the #time magic syntax, {{extract}} seems to work: {{extract|currentdatetime|add=-8h|show=%X}} → 11:42 am. Johnuniq (talk) 07:22, 3 January 2025 (UTC)[reply]
(edit conflict) @DreamRimmer: Thank you for the reply. If you could just show me how so I can learn, that would be appreciated. I took a look at the template page, and it doesn't show any way to customize it, like other template pages do, so I thought maybe it would require some coding on my common.js page: User:Amaury/common.js. All I want it to show is the time in 12-hour format: 11:38 PM. I'm also possibly looking at a way to add the current date parameter and template. I think I could use a custom field for the parameter and Template:Currentdate for the template. While I don't see it on the page, I'm sure there's a way to customize it so the month comes first. Amaury07:38, 3 January 2025 (UTC)[reply]
@Johnuniq: Thank you also for the reply. That would work as well. Is there a way to make the AM/PM capitals? Amaury07:38, 3 January 2025 (UTC)[reply]
@Amaury: I have created User:Amaury/Time. You can now use {{User:Amaury/Time|UTC-8|d=n}} to display the time, like 08:03 AM. If you set the 'd' parameter to 'y' ({{User:Amaury/Time|UTC-8|d=y}}), it will show both the time and date, like 08:03 AM, January 3, 2025. – DreamRimmer (talk) 08:15, 3 January 2025 (UTC)[reply]
@DreamRimmer: Thank you. I'll take a look through it when I can, as it's late here, and follow up on your talk page with any questions. Amaury08:34, 3 January 2025 (UTC)[reply]
You could also try this: {{#time: g:i A|now-8 hours}} → 11:42 AM. Johnuniq (talk) 08:51, 3 January 2025 (UTC)[reply]

This isn't specifically related to this, but it is semi-related and also applies to the template mentioned here. I also don't want to create another section just for this. I've always had problems with anything related to time for as long as I can remember. Is there a way to have my user page and talk page automatically constantly purge the page cache? Because, at least on my user page, I've been having to constantly manually purge the page cache in order to make the time actually show the current time. So, in theory, I would have to do this every single minute. For example, it is currently 1:47 PM here, and my user page is still stuck on 12:31 PM, which is when I temporarily went back to what I was using before creating this section, while my talk page did eventually update at 1:27 PM, but has gotten stuck again and is still saying that. Amaury21:47, 3 January 2025 (UTC)[reply]

You would need a Javascript user script to update the time periodically. Regenerating the page on the server is a bit of overkill; it would be more efficient for the script to just update the time displayed on your user page. Just curious: is your workflow facilitated by looking at your user page for the current time rather than using another method? isaacl (talk) 22:49, 3 January 2025 (UTC)[reply]
@Isaacl: Are you asking if I use it specifically for the work I do on Wikipedia? If so, no. I just have it on there just to have it there. Basically just as an interesting piece of info. Amaury22:52, 3 January 2025 (UTC)[reply]
@Amaury: I have created a userscript to automatically purge your userpage and talk page. You can copy the code from User:DreamRimmer/test.js and paste it into your common.js file or create a separate script page and install it. The script will purge these pages every minute while they are loaded in your browser, and you can customize it to include additional pages or adjust the purge interval to suit your needs. – DreamRimmer (talk) 07:14, 4 January 2025 (UTC)[reply]
Pages don't auto-purge for a reason, namely that Wikipedia is designed to do as much caching as possible. One user doing a purge every minute won't be noticed, but people sometimes ask for a particular page to be purged regularly and they are told that it's not going to happen. Johnuniq (talk) 08:09, 4 January 2025 (UTC)[reply]
Noted! – DreamRimmer (talk) 08:13, 4 January 2025 (UTC)[reply]
@Amaury: You can add ({{purge|refresh}}) after the time to make a purge link saying (refresh) for all viewers of the page. {{current time}} is rather misleading without a purge link and should add it as an option. PrimeHunter (talk) 09:33, 4 January 2025 (UTC)[reply]
@DreamRimmer, Johnuniq, and PrimeHunter: Thank you all for the help. You've all been incredibly helpful. :) Amaury09:48, 4 January 2025 (UTC)[reply]
We should really have a template gadget for times and countdowns. – SD0001 (talk) 10:27, 4 January 2025 (UTC)[reply]
MediaWiki:Gadget-UTCLiveClock ? Snævar (talk) 11:47, 4 January 2025 (UTC)[reply]
I think most people prefer having their notifications unified as much as possible. Thus I can see a better case for building a notification feature in a Wikipedia app than into the web-based interface (as the web interface has no access to the underlying platform notification/timer APIs). isaacl (talk) 17:19, 4 January 2025 (UTC)[reply]
Not sure if you got the indentation wrong or if this is actually a response to my comment. What I meant is to have a gadget loaded on use of a template which is controlled by its parameters to show live time for any given time zone (enhancing the wikitext output of {{time}}, {{current time}}, {{current time in time zone}}, etc), to show live countdowns (enhancing the output of {{countdown}}), and so on. Apart from userspace use cases, it could be used on datetime-related articles like (eg. Eastern Time) where the live time seems more appropriate than one lagged by the parser cache and containing a refresh link. – SD0001 (talk) 17:41, 4 January 2025 (UTC)[reply]
I was responding to your comment, but a different use case more along the lines of the original post (user-customized timers and countdowns). I'd suggest that the live update capability be togglable, with the default being no extra moving text or client resource usage. Although personally I don't think a live up-to-the-second (or even minute) countdown is needed, I appreciate there is an audience for it. isaacl (talk) 18:34, 4 January 2025 (UTC)[reply]

LFP Template Els broken

[edit]

From what I see, {{LFP Ligue 1}} and {{LFP Ligue 2}} (and the corresponding wikidata properties) produce broken links, likely happened due to the new website. {{LFP}} still works since it uses archive links, but the ~700 links from the other two are all broken. Nobody (talk) 13:49, 3 January 2025 (UTC)[reply]

From what I see, you're right! But, as you say, it's probably not the templates' fault; apparently the LFP has changed its sites and left out the fun bits about the players. Therefore, there's not currently (AFAICS, on either the English or French versions) anything to which the templates can link.
I don't have a solution for you, except to maybe wait a bit and see if the LFP adds the players sections again. Was the site changed very recently? Maybe they're still working on it, and the players' stats pages will appear soon. Or not. Sorry! — JohnFromPinckney (talk / edits) 18:16, 3 January 2025 (UTC)[reply]
Pretty sure the new website came with the sponsor change. It's likely that it won't come back. Nobody (talk) 08:45, 4 January 2025 (UTC)[reply]
WP:URLREQ if the URL changed, WP:TFD if the templates are useless now. Izno (talk) 20:29, 3 January 2025 (UTC)[reply]
The URL is gone, but some can still be found using Internet Archive, probably needs to be discussed at TfD if we want to change the templates or just remove them. Nobody (talk) 08:51, 4 January 2025 (UTC)[reply]

Log in

[edit]

I'm trying to log in to https://meta.wikimedia.org/ so I can use the Wikipedia Library. The error I see is "Incorrect username or password entered. Please try again." I tried changing my password, no luck. Then I logged out of Wikipedia and back in with the same credentials and everything's fine. What's wrong with the Wikimedia Meta-Wiki? -SusanLesch (talk) 16:22, 3 January 2025 (UTC)[reply]

So it is working now? Likely had something wrong with a session cookie. — xaosflux Talk 18:02, 3 January 2025 (UTC)[reply]
Thank you, yes meta-wiki says I'm logged in. -SusanLesch (talk) 18:35, 3 January 2025 (UTC)[reply]

Why are my userpage colors inverted?

[edit]

There seems to be a problem with my userpage, and all my colors are inverted. I looked for a high contrast setting in Wikipedia, but there was none. And I don't have the high contrast setting activated on my computer. Can someone help?

Thanks, Tenebre_Rosso_Sangue, Editing with SSStyle! (talk) 20:06, 3 January 2025 (UTC)[reply]

@Tenebre.Rosso.Sangue995320: You probably enabled the dark mode gadget without realizing. Try checking in Special:Preferences JJPMaster (she/they) 20:07, 3 January 2025 (UTC)[reply]
Just checked, it was already off, meaning it cant be that. Tenebre_Rosso_Sangue, Editing with SSStyle! (talk) 20:09, 3 January 2025 (UTC)[reply]
Probably phab:T382701. Izno (talk) 20:32, 3 January 2025 (UTC)[reply]

Unanswered and not archived comments for a project

[edit]

Is there any way to get a feed of the above onto a pageWakelamp d[@-@]b (talk) 03:57, 4 January 2025 (UTC)[reply]

Appending ?safemdode=1 alters infobox layout

[edit]
with safemode
Without safemode

I've tested this logged out and the problem persists. Are we testing a new infobox style or something? JayCubby 19:16, 4 January 2025 (UTC)[reply]

It is because infobox styling comes from MediaWiki:Common.css. There is currently a project to convert to infoboxes to use TemplateStyles, but that requires cleaning thousands of pages manually (see MediaWiki talk:Common.css/to do#Description of work). HouseBlaster (talk • he/they) 19:42, 4 January 2025 (UTC)[reply]