Wikipedia:Village pump (technical)/Archive 187

From Wikipedia, the free encyclopedia

Help needed to make a query more efficient

I'm trying to create a query to find non-existent templates which have at least one transclusion. I'd like to filter out userspace .css/.js pages from the results as well. I tried with quarry:query/51274 and quarry:query/51273, but both run very slowly and/or end up getting killed. Does anyone know how I can improve the efficiency of these queries? Thanks in advance. -FASTILY 09:10, 14 January 2021 (UTC)

You may be looking for Special:WantedTemplates. If that isn't what you want, it's probably at least a good starting point. It's only updated occasionally though. The last update was at 01:13, 20 December 2020. davidwr/(talk)/(contribs) 18:24, 14 January 2021 (UTC)
Fastily is trying to replicate wanted templates precisely because the last report was almost a month ago. --Izno (talk) 18:58, 14 January 2021 (UTC)
Wait, that was Fastily? *trouts self* *gets caffeine* Sorry Fastily, if I'd paid attention to the who not just the what I would've known this wasn't a "low-hanging-fruit" question. davidwr/(talk)/(contribs) 22:56, 14 January 2021 (UTC)
No worries, I appreciate the effort to help :) -FASTILY 01:15, 16 January 2021 (UTC)
page_content_model = "wikitext" or page_conent_model not in ("javascript", "css") may be quicker than page_title not like "%.js". Modules have their own content model, "scribunto".--Snaevar (talk) 18:51, 14 January 2021 (UTC)
Indeed, querying against the content model is a much better way to find not-JavaScript/CSS. --Izno (talk) 18:57, 14 January 2021 (UTC)
Thanks for the suggestions everyone. I've revised the query and it succeeds without getting killed roughly 1/3 of the time. I suspect this has to do with caching of previous runs. Needless to say, this isn't ideal. Is there anything else I could try or am I out of luck? -FASTILY 01:15, 16 January 2021 (UTC)
Fastily, WP:RAQ folks may be able to help (I know there's one or two over there who I think don't check this forum too often). --Izno (talk) 02:28, 16 January 2021 (UTC)
Okay, I'll give that a try. Thanks again! -FASTILY 04:51, 16 January 2021 (UTC)

Hopefully an easily answered question, is there a tool or script that can count the number of red links in a particular article? I've searched the archives of this and other project pages, thanks. Nimbus (Cumulus nimbus floats by) 17:10, 12 January 2021 (UTC)

@Nimbus227: you may be able to do this in your browser for casual use, view the page source and use your browser's find/count utility to look for: class="new". You certainly could create a userscript to count these if you wanted to. — xaosflux Talk 17:31, 12 January 2021 (UTC)
That works thanks, 'page does not exist' is another search term that works. It is counting red links in navboxes so I guess the way to get a true picture is to place the article text minus the navboxes in a sandbox. For Firefox the steps are Tools>Web Developer>Page Source. Great stuff, thanks. Nimbus (Cumulus nimbus floats by) 17:47, 12 January 2021 (UTC)
@Nimbus227: Open the "console" tab of developer tools, and run $('.mw-parser-output > *:not(.navbox) .new').length This will give you the count of all red links in the page content but excluding navboxes. – SD0001 (talk) 08:29, 16 January 2021 (UTC)
Thanks, works well. Nimbus (Cumulus nimbus floats by) 10:27, 16 January 2021 (UTC)

Is there a substitute for Dispensers dablinks tool? The tool seems to be unavailable even via the links given at {{dablinks}}. Nthep (talk) 10:40, 16 January 2021 (UTC)

User compare report

While filing a SPI today, I observed that the "User compare report" link that is produced for case pages is a deadlink (presumably due to being a Betacommand tool...). The link should possibly be removed, I think, unless the tool has been moved (in which case it needs to be updated)? - The Bushranger One ping only 01:51, 15 January 2021 (UTC)

@The Bushranger: that is coming from Template:SPI report - you can request an edit or discuss the deadlink on that template's talk page. — xaosflux Talk 11:56, 16 January 2021 (UTC)

Query, or feature request: UI in my own language

Is there currently a way, when guest-starring on other-language projects, to have the UI in my native language so that I can actually navigate? I appreciate that it's fun to learn new languages and attempt to navigate by touch and feel in, say, Arabic or Belorussian, but ain't nobody got time for dat, I would typically prefer to edit using an interface in a language that I understand, even if the content is cast in a completely unintelligible tongue. Is there currently a preference for this, or a phab that I can glom onto? Thanks! Elizium23 (talk) 06:05, 17 January 2021 (UTC)

Have you tried the Google Translate extension? -FASTILY 06:41, 17 January 2021 (UTC)
Actually I won't bother! I just found out that there is a global preference to set language and once it's set, the UIs are all translated. It might not be entirely consistent or there may be a propogation lag effect, but I've successfully edited in Azerbaijani and much more now. Thanks for the pointer, anyway! Elizium23 (talk) 06:48, 17 January 2021 (UTC)

Mystery ping

I received a ping notification related to this edit - but I cannot see my name mentioned? GiantSnowman 22:49, 16 January 2021 (UTC)

The edit accidentally transcluded User:Cupper52 instead of linking to it. Your username is mentioned on that page, in the "Fact file" section, and that got picked up as a mention of you. * Pppery * it has begun... 22:57, 16 January 2021 (UTC)
OK, thanks! GiantSnowman 08:38, 17 January 2021 (UTC)

user device and OS stats

are there any stats available on wiki websites, indicating number (or percentage) of users on mobile vs desktop..also any info on operating systems in use..many thanks Gfigstalk 07:38, 17 January 2021 (UTC)

See for mobile vs desktop on Wikimedia wikis. https://pageviews.toolforge.org has data on individual pages. PrimeHunter (talk) 08:25, 17 January 2021 (UTC)
thank you Gfigstalk 09:10, 17 January 2021 (UTC)

Restoring musical score functionality

Due to phab:T257066, musical scores through LilyPond have been partially disabled since last summer. However, for the moment it's possible to restore the display of the scores at least by commenting out the "vorbis=1" argument with percent signs. Since it does not look like the matter is close to being resolved, I'd like to propose creating a bot that will do such commenting out on all pages that use the extension, and then un-comment it once the functionality has been restored. I want to sound out the idea here before writing and requesting approval for such a bot, because it would involve making a large number of trivial edits, so I don't know what the community support would be for this. --Ipatrol (talk) 21:04, 16 January 2021 (UTC)

The thing is, that would only display it until someone changes the score, as has been confirmed on phabricator. It gives people an false sense that scores work, when they do not. Personally, I would say no to the proposal.--Snaevar (talk) 13:00, 17 January 2021 (UTC)

Editing toolbar - display only one button?

Hi. Can the editing toolbar ("This is sometimes called the '2010 wikitext editor'") be customised so it only shows the redirect button? I have no use for the other editing tools, but do use the redirect syntax a lot. Grateful for any help or code I can drop into my custom .css. Thanks. Lugnuts Fire Walk with Me 14:57, 16 January 2021 (UTC)

Yes, you would replicate the code at mw:Extension:WikiEditor/Toolbar_customization#Removing_things for each element you don't want and add to your javascript page. The reference toolbar, which is active by default, should be disabled in your gadget settings.--Snaevar (talk) 15:46, 16 January 2021 (UTC)
Thanks. I disabled the toolbar in my preferences years ago. IIRC the javascript was giving me issues with my web browser, and I'd forgotten about it until today. I had a play with turning it back on. How would I find out the names/properties of all the other buttons? Lugnuts Fire Walk with Me 17:49, 16 January 2021 (UTC)
The names/properties can be looked up in the page source, but I listed them below.
More information section, group ...
sectiongrouptool
mainformatbold
italic
maininsertlink
file
reference
template-wizard
maincodemirrorCodeMirror
Close
and then you can just remove the whole menus (sections), their names are advanced, characters and help, like so:
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
	'section': 'characters'

});
Personally I would readd the redirect button to the top (main section). No reason to open up an menu for one button. On the mediawiki page I linked, higher up on that page is some documention how to do that.--Snaevar (talk) 19:49, 16 January 2021 (UTC)
Thanks for the reply, but this is beyond my expertise. Lugnuts Fire Walk with Me 13:26, 17 January 2021 (UTC)

Watch pages issue

Hello, I usually edit pages, and they are auto saved to my watchlist. This stopped happening for some reason? Also, I'm not getting certain on-wiki notifications such as reverts. I checked these settings, and they appear to be set correctly. Also, the email notifications are going through, just not the on-wiki ones. Huggums537 (talk) 14:46, 17 January 2021 (UTC)

@Huggums537: Is "Add pages and files I edit to my watchlist" enabled at Special:Preferences#mw-prefsection-watchlist? Is "Edit revert" enabled in the "Web" column at Special:Preferences#mw-prefsection-echo? Please post an example of a revert you think should have notified you. Always include an example if possible when you report any issue. Were you notified of this post? PrimeHunter (talk) 15:20, 17 January 2021 (UTC)
Yes, all the settings are correct as I stated. I even checked my global settings. The last two reverts are in fact showing up in my notification list, but they are appearing as read, and I never saw them when they came in. The only way I knew about them was from my email. I used to get a "red light indicator button" at the top of the page near my username when this type of notification comes in, but now it works for everything else except reverts I guess. Weird. Huggums537 (talk) 15:50, 17 January 2021 (UTC)
Ok, so it turns out the watchlist issue did have something to do with my settings. I'm getting it ironed out. I'll have to wait it out on the revert issue to see if it was just something I might have overlooked when someone eventually reverts me. Thanks for your help. Huggums537 (talk) 16:10, 17 January 2021 (UTC)
@Huggums537: I have reverted you as a test and then restored your post. Did you click the link in the email while you were still logged in and before viewing any other Wikimedia page since the revert was made? The link includes a markasread part. PrimeHunter (talk) 17:02, 17 January 2021 (UTC)
HA! Thanks. It worked! And, yes I think I might have done that. So that would explain it I guess... Huggums537 (talk) 17:04, 17 January 2021 (UTC)

tech problem (stalled) ?

what is to be expected (or done) with a tech problem, that seems to have stalled..?

Gfigstalk 12:33, 16 January 2021 (UTC)

The example in phab:T271288 works for me with Google Chrome 87.0.4280.141, paper size A1. I tried other sizes, margens and scales but didn't find any problem. PrimeHunter (talk) 13:13, 16 January 2021 (UTC)
PrimeHunter ok thanks, will check this on the browser..Gfigstalk 13:26, 16 January 2021 (UTC)
am having this problem on Mobicel X4 phone. Chrome 87.0.4280.141 browser. PDF Page Sizes ISO A0-A3..is anyone else experiencing this? Gfigstalk 04:51, 17 January 2021 (UTC)

Template formatting issue

I apologize for posting with such a minute issue, but I didn't receive a response at the help desk and this has been bothering me for a while now! Wondering if anyone knows how to solve a formatting oddity at some of the medieval music templates I've been maintaining, such as {{Ars nova}}, {{Ars subtilior}} and {{Medieval music}}, where the bottom of the template is unable to center consistently, while also including the navigational arrows. The Medieval music one for example pushes the Category, Portal and WikiProject to the left when the "Renaissance music →" is put on the same line, though I'm unsure how to resolve this, even after much experimentation. Any help would be appreciated. Aza24 (talk) 08:50, 16 January 2021 (UTC)

A crude solution would be to put something blank with similar width at the other side, e.g. {{align|left|{{spaces|10|em}}}}. If there is already something there but it's shorter then add something like {{spaces|5|em}} to it. PrimeHunter (talk) 11:02, 16 January 2021 (UTC)
  • I seem to have fixed it by setting the style to "position:absolute" here. It would cause overlap on extremely narrow screens, but that shouldn't be an issue as navboxes don't show up on mobile. {{u|Sdkb}}talk 13:37, 16 January 2021 (UTC)
    • Thank you both, these ideas are very helpful! Aza24 (talk) 20:33, 16 January 2021 (UTC)
      • PrimeHunter the adjustment to the {{Medieval music}} you just made off centered it for me still; I'm just using chrome on a mac desktop, and I checked what it looked like on a macbook air with chrome and it still wasn't centered. Sdkb, your method on {{Ars nova}} works perfect, but I'm not sure how to transmit it to {{Ars subtilior}} or {{Ars antiqua}}; when I tried it, it made the right aligned ones go far left. Aza24 (talk) 23:10, 16 January 2021 (UTC)
@Aza24: Your version pushed "Category Portal WikiProject" so far to the right of the center that it doesn't fit on the same line as "Renaissance music" in a narrow window. If it jumps to the next line for you then it may be centered there but not for others who see it on the line where it belongs. My version seems better. The idea is something of about the same width as "Renaissance music →". That's definitely not 45 em (typography). PrimeHunter (talk) 23:35, 16 January 2021 (UTC)
Ah I see, well perhaps Skdb will be able to alter his solution to help with that one. Aza24 (talk) 23:38, 16 January 2021 (UTC)
Aza24, hmm, I just took a look but I'm afraid I can't figure out anything. BrandonXLF is pretty good with this kind of thing, so he might know. {{u|Sdkb}}talk 02:41, 18 January 2021 (UTC)
Sdkb, I went ahead and replaced the floated elements with ones using the "position: absolute" trick. The one that had to be aligned to the right, using "right: 0" moves them 0px away from the right side of their positioned parent. I also added a positioned parent so they would use the padding that contents of the below area have. BrandonXLF (talk) 03:38, 18 January 2021 (UTC)
Your solution seems to work perfectly, thank you Brandon! Aza24 (talk) 03:44, 18 January 2021 (UTC)

Header feature

I use to have a feature at the top of my page that showed when a page was created, by whom, and a few stats such as its length. Now, I don't see this info.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 23:45, 16 January 2021 (UTC)

Preferences - Gadgets - XTools: dynamically show statistics about a page's history under the page heading. Is that what you are looking for? It's working for me. – Jonesey95 (talk) 01:50, 17 January 2021 (UTC)
Yes, that would be the one. Either a) Xtools was down at the time Tony looked, or b) he has another script that is broken and needs fixing. --Izno (talk) 04:16, 17 January 2021 (UTC)
That is a good script, but the one that seems to be down use to also show the latest diff summary and time, which is often quite handy.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 05:28, 17 January 2021 (UTC)
I have an educated guess. In User:TonyTheTiger/vector.js, you have a link to User:Eizzen/LastEditor.js and another script by the same user. On 4 Jan 2021, those scripts were moved to match the user's new username, e.g. User:Eizen/LastEditor.js. If you remove the extra "z" from each of the user names in your vector.js file, and then reload or purge an article a few times, I suspect that your script will start working again. If that works, we may want to notify 1997kB, who moved those pages, to say that editors who use those .js scripts may need to be notified about the page moves. – Jonesey95 (talk) 00:19, 18 January 2021 (UTC)
Jonesey95, This was result of a account rename and as of I know rename extension set a redirect from old script to new, so that people using old one don't have any issues. So I don't think the script is issue here. 1997kB (talk) 02:42, 18 January 2021 (UTC)
I put the old (now a redirect) script name (with User:Eizzen) in my vector.js, and it did not work. I changed the script name to User:Eizen/LastEditor.js, and it works. It appears that moving the script, even with a redirect in place, broke the script's use, at least for me, and presumably for TonyTheTiger and about 18 other editors. Can you please notify them, or possibly fix the redirect so that it works, if possible? Thanks. – Jonesey95 (talk) 06:07, 18 January 2021 (UTC)
Jonesey95, I don't have permission to fix them, but I'll open a phab task as hundreds of users get renamed every day, so hundreds of such redirect. 1997kB (talk) 12:48, 18 January 2021 (UTC)

Tech News: 2021-03

16:09, 18 January 2021 (UTC)

Goal: Transclude all the links returned by wikidata call.

I got some help on the Module: wd help page that got me part way to a solution.

I'm using: {{#invoke:wd|properties|linked|Q151973|P26|format=\{\{:%p\}\} }}

To give me this list of Richard Burton's spouses:

{{:Elizabeth Taylor}} {{:Sybil Christopher}} {{:Suzy Miller}} {{:Elizabeth Taylor}} {{:Sally Burton}}

And I can kinda make it transclude them by doing this:

{{subst:#invoke:wd|properties|Q151973|P26|format=\{\{:%p\}\} }}

But, upon saving, subst will do what it does and replace the wikitext with its substituted translusion links, which is what I'm trying to avoid.

Is there a way to achieve the same result, without using subst? Because if a new spouse were added to Richard Burton, I want my page to automatically capture that and take it into account and transclude the new spouse's page too.

Been trying workarounds like recursive subst through a template but nothing seems to manage this. Any help would be appreciated. El Dubs (talk) 00:25, 19 January 2021 (UTC)

You already asked this at Help talk:Transclusion#Transclusion instead of substitution for multiple links and (in slightly different form) at Module talk:Wd#Fetch link and transclude linked page; please observe WP:MULTI. --Redrose64 🌹 (talk) 08:37, 19 January 2021 (UTC)
My apologies, I was asking for more general information than I did at Module:wd, and I realised the Transclusion help page is not a very active one, so thought this the best place. Let's consider this the main one. El Dubs (talk) 19:10, 19 January 2021 (UTC)

How to template an article that uses public domain sources?...

I am working on a historical biography that's kind of a mess MOS-wise and reference-wise. It contains content copied wholesale from a book (published in 1850 and now public-domain). I have searched for an appropriate somewhat generic public-domain source template to use, similar to the Encyclopedia Brittanica {{EB1911}} & {{EB1922}} Templates but have been unsuccessful. Help please! Thanks, Shearonink (talk) 19:23, 19 January 2021 (UTC)

@Shearonink: I don't think this is really a technical problem, but you could use templates such as Template:PD-old-text or Template:PD-notice. Category:Attribution templates contains most of the attribution templates if your source is a popular one it may have a special template as well. — xaosflux Talk 19:50, 19 January 2021 (UTC)
Xaosflux - It might not technically be a "technical" problem but I thought I'd ask those more technically knowledgeable than myself about the answer and this place seemed like an appropriate venue to forestall my wandering in the Wiki-wilderness of ohsoMANYtemplates. I don't *think* it's a popular source but I'll continue poking around to see what I can find on that score. Thanks for your response - Shearonink (talk) 20:20, 19 January 2021 (UTC)
@Shearonink: oh sure no worries, I meant I couldn't see a tech problem - so that if you had one we'd need more to go on. Hope those help! — xaosflux Talk 20:25, 19 January 2021 (UTC)

Number of edits not available via API?

Page information shows you "Total number of edits", but is this not available via a MediaWiki API? API:Info doesn't seem to cover it. Nardog (talk) 00:46, 20 January 2021 (UTC)

Tag reverted 2

Regarding fourth and fifth comment, here is the example that proves that tag should not be there: Special:Diff/1001276030/1001368163, Special:Diff/1001368163/next. Kalimoun's contribution line should not have (Tag: Reverted) at the end because that is not related to his/her contribution as other user reverted that edit indeed; other user's contribution can have (Tag: Undo) because it is describing the contribution in question. Solution can be to alter (Tag: Reverted) so that it is (Tag: Reverted by other user) and (Tag: Reverted by contrib user) or something like that, and when accompanied with tag Undo – e.g. (Tags: Undo, Reverted previous or one of previous contribs). Contributions in View history need to be clean. Also, by that line, '(cur | prev)' should be separated from the line some way, as well as (talk | contribs)‎ and total page size and (undo) function. I know this is kind of talkable matter but I see it consistent that way or something similar to that way. --5.43.83.177 (talk) 13:57, 19 January 2021 (UTC)

The "Reverted" tag is behaving exactly as intended. There is no technical problem, just dislike of a feature. Others like it. "(Tag: Reverted by other user)" seems long once you have seen a few hundred, and many editors will see thousands. The message is made by MediaWiki:Tag-mw-reverted. PrimeHunter (talk) 00:49, 20 January 2021 (UTC)

Hiding a specific list item label in Ordered list

Resolved

Consider this ordered list:

  1. Introduction
  2. Luttes ("Struggles")
  3. Voluptés ("Delights")
  4. Jeu divin ("Divine Play")

I'd like to hide the "0." (without breaking the indentation), but the rest of the labels should stay. How can I achieve that? Cheers, intforce (talk) 00:59, 20 January 2021 (UTC)

  1. Introduction
  2. Luttes ("Struggles")
  3. Voluptés ("Delights")
  4. Jeu divin ("Divine Play")
  • Thanks a bunch! :) intforce (talk) 01:31, 20 January 2021 (UTC)

Ordered list not correctly indented on mobile

I've raised this issue here; perhaps someone can shed a light on this issue. Thanks, intforce (talk) 12:49, 20 January 2021 (UTC)

lost my sandbox new article

Hi,

I just finished creating my first article and when I came back from a break, I discovered that the page was empty. As if someone close it and erased everything. What happened? Can I recover my text? Please help.

Many thanks, Jessica Wein  Preceding unsigned comment added by Jwein101 (talkcontribs) 04:00, 20 January 2021 (UTC)

Jwein You can always look in your contributions...but I think you're referring to Draft:MaestroVision? Shearonink (talk) 06:48, 20 January 2021 (UTC)
Courtesy ping User:Jwein101 (on behalf of Shearonink) Mathglot (talk) 19:31, 20 January 2021 (UTC)

Expensive parser function count max

When I look at the Parser profiling data on a particular page on en-wiki, I see (among other things), "Expensive parser function count: 15/500". But when I look at mw:Manual:$wgExpensiveParserFunctionLimit I see "99" listed as the maximum. Is "500" some kind of max limited by Mw software, and "99" is the configurable limit it has been set to on en-wiki? Or how exactly should I interpret each of those? Put another way: why doesn't the first one say, "15/99"? Thanks, Mathglot (talk) 19:25, 20 January 2021 (UTC)

It's the other way around. 99 is the MediaWiki default, but it's set to 500 on WMF wikis. Suffusion of Yellow (talk) 19:42, 20 January 2021 (UTC)
@Suffusion of Yellow:, Thanks! With a 500 limit, that makes the following question moot at this point, but for future reference: can I interrogate the expensive parser tally at run-time in a template, so that I could, for example, see if I'm getting "too close to the max", and then skip a bunch of low-priority expensive function calls in the middle part of the template, and save up my remaining allocation for the important ones which I won't get to till later on in the template expansion? I'm assuming the answer to that is a "no", but hoping I'm wrong. What about in Lua? And if "no" to either or both, would it be an impossible task or unreasonable request to have it added to next years wish list, as an option I'd like to have as a template writer, e.g. something like, {{#ifexpr: {{REMAININGEXPENSIVE}} < 5 | just do the important stuff | do everything}} ? Thanks, Mathglot (talk) 20:11, 20 January 2021 (UTC)
No to both. I don't see a reason you couldn't request it offhand, but I doubt it will make it through the community wish list, which tends away from the Technical wishes. (Might as well file a phab task anyway.) --Izno (talk) 20:43, 20 January 2021 (UTC)
The problem of course is then, how does a template decide which are the important exspenive things and which are not? How about when it can't control how sub-templates execute (and those don't have sufficient context to know they are in a limited environment)? --Izno (talk) 20:45, 20 January 2021 (UTC)
You are able to catch the "expensive expansion" error in Lua with mw.incrementExpensiveFunctionCount(), (if pcall(mw.mw.incrementExpensiveFunctionCount()) then over the limit else not) but there is no number of current expensive expansion errors, that is phab:T177567. Your best bet is just to use as few functions that are expensive as you can.--Snaevar (talk) 20:55, 20 January 2021 (UTC)
Are templates defined to be evaluated in any specific order? — GhostInTheMachine talk to me 21:40, 20 January 2021 (UTC)
Izno, It couldn't on its own, of course; as the template writer, I would choose ahead of time, and code the stuff that was important in the second clause (the "else") and the less important stuff in the "then". Snaevar, your response gave me an idea how to reduce them, without losing functionality. Thanks to you both for good feedback on this. Mathglot (talk) 23:07, 20 January 2021 (UTC)

Citing a database query

Please see Wikipedia:Teahouse#Archival databases as sources where SacKate needs help on how to reference information extracted from a database. Roger (Dodger67) (talk) 06:20, 21 January 2021 (UTC)

Lost "inspect diff" today in Chrome on Windows 10

Both have updated this week. On my iPad Chrome shows "inspect diff". Doug Weller talk 15:38, 20 January 2021 (UTC)

@Doug Weller:, context? Mathglot (talk) 19:40, 20 January 2021 (UTC)
@Mathglot: good question - I've replaced the section heading I used but must have erased with my fumble fingers before I saved. Doug Weller talk 19:50, 20 January 2021 (UTC)
@Doug Weller: "inspect diff" is made by this in meta:User:Doug Weller/global.js:
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript");
It loads User:Writ Keeper/Scripts/commonHistory.js. I added it to my own global.js and it works for me in Windows 10, both in Google Chrome 87.0.4280.141 before updating, and 88.0.4324.96 after updating. What is your skin at Special:Preferences#mw-prefsection-rendering? Do you see "inspect diff" at WikiNews? I see it. PrimeHunter (talk) 09:13, 21 January 2021 (UTC)
@PrimeHunter: thanks, but now I'm even more confused. It came back on its own for enwiki, but I don't see it at wikinews. Doug Weller talk 09:23, 21 January 2021 (UTC)

ReFill down again?

It's not worked for me this morning - is there a wider problem or is it just me? GiantSnowman 10:05, 20 January 2021 (UTC)

Reflinks is working fine. The C of E God Save the Queen! (talk) 14:32, 20 January 2021 (UTC)
Nice to know that reflinks is back but refill is still down. If someone who has access to phab would file a new request to get it going again that would be great. MarnetteD|Talk 14:58, 20 January 2021 (UTC)
many thanks, I'll use Reflinks for now. GiantSnowman 15:41, 20 January 2021 (UTC)
FYI GiantSnowman and The C of E as far as I can tell the current version of reflinks (unlike the one that was deactivated last year) only adds a bot generated title to the bare url. It does not actually put the url into a cite template. IMO that is not useful as it doesn't help with linkrot. You may feel differently but I wanted you to be aware of what I found. Regards. MarnetteD|Talk 18:45, 20 January 2021 (UTC)
That is what Reflinks has always done (or has for as long as I have done). Whenever this situation arises I always go back and re-convert properly using ReFill whenever it is fixed... GiantSnowman 18:47, 20 January 2021 (UTC)
@MarnetteD: Have you tried switching it to interactive? That does put the link in a cite template. I always use Reflinks and (barring a few it can't connect with), it does most of the work for you, you just have to trim the loose threads. The C of E God Save the Queen! (talk) 19:00, 20 January 2021 (UTC)
Thank you so much The C of E. Of course it would be something so simple that I was unaware of since I had never activated it before. Gosh it is nice to have this tool working again - now if we can just get reflinks back to working it'll be like the old days (all of two years ago) formatting bare urls. Thanks again. MarnetteD|Talk 19:07, 20 January 2021 (UTC)
Wow, that's great, thanks! GiantSnowman 20:08, 20 January 2021 (UTC)

Any idea why it is adding a 1970 date to websites published earlier today, such as this? I've manually remedied. GiantSnowman 22:33, 20 January 2021 (UTC)

My guess is that it's obtaining a null value for the date, and instead of recognising that it's not valid, it's instead applying a standard function to extract the year; and if you have a zero value (i.e. treated as 00:00:00 UTC Thursday, 1 January 1970), the year is 1970. --Redrose64 🌹 (talk) 13:02, 21 January 2021 (UTC)

Local display of WikiData edits

On my en.wikipedia watchlist I noticed:

  • "MØ (Q10670047) (diff | hist) . . Btcprox (talk | contribs) (Created claim: Property:P6935: m, connected with Wikidata for Firefox 🦊; Added reference to claim: Property:P6935: m, added with Wikidata for Firefox 🦊)"

The 'Wikidata for Firefox 🦊' leads there to https://www.wikidata.org/wiki/Tools/Wikidata_for_Firefox because of it, on WikiData, being a Wikilink 'WikiData:Wikidata for Firefox'. It should lead to https://www.wikidata.org/wiki/Wikidata:Tools/Wikidata_for_Firefox but because it is displayed here, the 'Wikidata:' is being interpreted as an interwiki, not as a namespace on WikiData. Is there any way to change this so that the links lead to the right place? --Dirk Beetstra T C 11:37, 21 January 2021 (UTC)

The edit summary is made by a tool by Shisma. If they change the link to [[d:Wikidata:Tools/Wikidata for Firefox|Wikidata for Firefox]] then it will work both at Wikidata and other wikis. Here it gives Wikidata for Firefox. [[wikidata:Wikidata:Tools/Wikidata for Firefox|Wikidata for Firefox]] would give Wikidata for Firefox which works here but not at Wikidata where the first wikidata: would be interpreted as the namespace. PrimeHunter (talk) 11:57, 21 January 2021 (UTC)
if I format the link like [https://www.wikidata.org/wiki/Wikidata:Tools/Wikidata_for_Firefox Wikidata for Firefox 🦊] (with single brackets), it should always lead to where it's supposed to lead, right? Is it a good idea to do so? How can I reproduce this bug?--Shisma (talk) 17:50, 21 January 2021 (UTC)
@Shisma: External link syntax doesn't render as a link in edit summaries. It has to be a wikilink. As I said, this will work: [[d:Wikidata:Tools/Wikidata for Firefox|Wikidata for Firefox]]. To reproduce the problem: Enable "Show Wikidata edits in your watchlist" at Special:Preferences#mw-prefsection-watchlist here at enwiki. Watch an enwiki page which had a recent edit with the tool at its Wikidata item, e.g. . (I don't know whether all Wikidata edits appear in enwiki watchlists but the MØ edit does). View Special:Watchlist. The edit summary in had a link to Wikidata:Tools/Wikidata for Firefox.. Viewed in an enwiki watchlist it gives the same wrong result as in my post. The Wikidata target does say: "There is a page at Wikidata:Tools/Wikidata for Firefox". That link works at Wikidata. Here at enwiki I had to pipe it with d: in front to get it to work. But the link only shows at Wikidata if the user has the default language "en - English" at wikidata:Special:Preferences. That's because it's made by a customized message at wikidata:MediaWiki:Wikibase-noentity which includes: {{#ifexist:Wikidata:{{FULLPAGENAME}}|*There is a page at [[Wikidata:{{FULLPAGENAME}}]].}}. The customized message has not been translated to any other languages at Wikidata according to wikidata:Special:PrefixIndex/MediaWiki:Wikibase-noentity. Unregistered users also get the English message but that's nearly irrelevant since unregistered users don't have watchlists. The problem can also occur at other wikis, e.g. the German Wikipedia where some users will have set German at Wikidata, or have a global preference for German. PrimeHunter (talk) 20:54, 21 January 2021 (UTC)

Why is Wikipedia logging me out?

It could be because of WP's 20th anniversary. But why is Wikipedia logging me out when I load a page? Sometimes even if I log back in it won't stay logged in. And I do have cookies enabled! Nearly but not perfect (talk) 05:23, 15 January 2021 (UTC)

No issues here. Amaury • 06:48, 15 January 2021 (UTC)
I had the same issue, but it seems to have stopped now. Whatever the reason was, it wasn't too cool. I didn't catch it at first and made one edit while logged out. If it was something that affected lots of people, then lots of people got their IP addresses revealed. -- Marchjuly (talk) 07:02, 15 January 2021 (UTC)
@I'm not perfect but I'm almost: Even if you have cookies enabled, the act of logging in does not guarantee that you will be served pages that indicate that you are still logged in. A number of factors are at work together: every time your browser requests a page, it sends the cookie at the same time, this is checked against the cookie table on the Wikimedia servers; only if this is present and valid are you treated as being logged in. So any of the following can cause you to be treated as logged out:
  • your browser sends the wrong cookie, a corrupt cookie, or no cookie at all
  • you have a dodgy internet connection causing the cookie to be damaged, received late, or lost altogether
  • the Wikimedia servers might be out of synchronisation (if the server that receives your cookie has a table that is different from the table on the server that first sent you the cookie)
For any given rendered page, several requests are sent to the server - one for the page content; one each for the various style sheets and Javascript files; one each for every single image. Even for a modest page like HTTP cookie that's a lot of requests (my browser sends 48), and each needs to be accompanied by your login cookie. There are lots of points of potential failure; the surprise is that it works well virtually all of the time. --Redrose64 🌹 (talk) 10:30, 15 January 2021 (UTC)
After logging in today, I started to get logged out just like I'm not perfect but I'm almost described. I stayed logged in after disabling JS. It seems to be related to one of the Gadgets, as it stopped after I disabled them. However, I'm not sure which one causes the problem yet. - Flori4nK tc 12:48, 19 January 2021 (UTC)
Nevermind, I reenabled all gadgets one-by-one and the problem seems to be gone. - Flori4nK tc 12:58, 19 January 2021 (UTC)
So I'm not the only one? This happened just a bit ago, and the only way for me to stay logged in was checking "keep me logged in" which I normally don't like doing. Sro23 (talk) 16:38, 20 January 2021 (UTC)
@I'm not perfect but I'm almost, Marchjuly, Flori4nK, and Sro23: Does WP:COOKIES help? Particularly the "I get logged out just after logging in" bit. --Redrose64 🌹 (talk) 23:30, 20 January 2021 (UTC)
@Redrose64: Cookies are enabled and I have been using the exact same (containerized, regularly reinstalled using a script) setup for 1.5 years. The cookies could only have been blocked by one extension, uMatrix, but *.wikimedia.org and *.wikipedia.org are whitelisted. Local caching can't be the cause either; it's disabled. Date and time are set correctly, they're automatically synchronized at startup by Ntpd. As the issue hasn't persisted, I probably can't provide any more information. - Flori4nK tc 21:57, 21 January 2021 (UTC)
@Redrose64: I've used Google Chrome for years. I've had cookies enabled for years. I've had adblockers for years. I've never had a problem with Wikipedia keeping me logged in until January 2021. Nearly but not perfect (talk) 02:35, 21 January 2021 (UTC)

Template:Redirect2/doc is an example of template documentation that contains links to PAGE1, which is an actual article. These should probably appear as redlinks like PAGE2, PAGE3, PAGE4 for the purpose in this usage. I think there are around 40 doc pages that link to PAGE1. Is there any way to fix this short of manually editing them all? MB 15:30, 21 January 2021 (UTC)

Don't we have foobar-style pages (analogous to Template:Foo) dedicated for this purpose? – Jonesey95 (talk) 15:39, 21 January 2021 (UTC)
Page1 is create-protected, so we could convert all the placeholder names to lower-case. — The Earwig talk 21:10, 21 January 2021 (UTC)
There are only 15 doc pages at but I don't see a need to "fix" this. Page1 is red (deleted 10 times but not create-potected), but I think PAGE1 is easier to understand in documentation as something you have to edit in a real call. And Page3 is blue (or green if you color redirects). PrimeHunter (talk) 21:22, 21 January 2021 (UTC)
You are supposed to only make blue links with hatnotes and you can se the code works when they hit a target while the mix of red and blue may be a little distracting. I suggest we make them all blue by redirecting PAGE2 to ESPN.com (like Page 2), keep PAGE3 a redirect to Page 3, and redirect PAGE4 to Page Four (like Page 4). PAGE5 is not used in doc pages. PrimeHunter (talk) 21:33, 21 January 2021 (UTC)
Oops, I saw it had been create-protected but did not notice the protection expired (threw me off as salting is frequently permanent). — The Earwig talk 23:26, 21 January 2021 (UTC)

Notifications for WP Projects

I understand how to manage my own Watchlist, linking to pages I have personally edited.

But if I join one of the many Wikipedia Projects, some of which have their own Watchlists (associated with the Project, and not a specific User), how do I get alerted of changes to one of the watched pages?

I could, I suppose, place a ghost edit on each article within the category, but that would be tedious. One project I follow has 1,500 pages on its watchlist. Or is this somehow automatic, if I add my name to the participants list? Sorry I couldn't find this on the help FAQ. Jax MN (talk) 22:31, 21 January 2021 (UTC)

@Jax MN: See Help:Watchlist for many other features of the watchlist, including how to watch by a click, and Special:Watchlist/raw where you can insert a list of pages to watch them all. Be careful not to delete the existing entries and save. The watchlist has no page history. You cannot get notified of changes to a WikiProject watchlist without watching each page but there may be a link you can click to see recent edits like at Wikipedia:WikiProject Fraternities and Sororities/Watchlist#Instructions. PrimeHunter (talk) 23:29, 21 January 2021 (UTC)

What does unified login cover?

I went to upload something to wikisource just now and was surprised to discover I wasn't logged in automatically with my wikipedia account. Does unified login not include wikisource? -- RoySmith (talk) 22:48, 21 January 2021 (UTC)

Unified login does include wikisource. I'm not sure why you weren't logged in, but you should be able to log in with the same username and password you use at Wikipedia. * Pppery * it has begun... 23:02, 21 January 2021 (UTC)
You may need to disable any browser option which says "Block third party cookies". -- zzuuzz (talk) 23:14, 21 January 2021 (UTC)
Pppery, Yup, I was able to manually log in with my enwiki credentials (including being asked for 2FA). The log shows my wikisource account was created a couple of years ago. Well, anyway, I'm in, so thanks for the help. zzuuzz, I've never had to do that on other WMF projects (commons, wikidata, etc). -- RoySmith (talk) 23:17, 21 January 2021 (UTC)
@RoySmith: Try v:Wikiversity, which works the same as Wikisource. I guess it's something to do with the domain names, but never looked into it too closely. -- zzuuzz (talk) 23:24, 21 January 2021 (UTC)
Zzuuzz, Interesting, that worked automatically. Well, I'm not going to worry about it too much. Thanks. -- RoySmith (talk) 23:28, 21 January 2021 (UTC)
I sometimes have to click any link or reload a page before being logged in at another wiki. PrimeHunter (talk) 23:32, 21 January 2021 (UTC)
This has happened to me a time or two. It's rare, but it does happen. In fact, it happened just right now. I was fine clicking on Wikisource and Commons, but Wikidata had me logged out. When I tried to log in, I got a message that my login was "invalid or expired". I clicked on Commons (where I was logged in), then came back to Wikidata, and I was already logged in at Wikidata. — Maile (talk) 23:53, 21 January 2021 (UTC)

Problems rendering mathematical symbols

There can be problems displaying the equal sign (=) and the minus sign (-).

  • Example:
<math>\frac{dM}{dt} = Q - S = Q - \frac{M}{\tau}</math>

sometimes renders correctly and sometimes does not:

and in some contexts, such as here, always fails to display the minus sign.

  • Another example:
{{center|size bar: 30 µm}}

displays as expected, while

{{center|size bar = 30 µm}}

does not display at all. That is, the presence of the equal sign suppresses the display altogether — Epipelagic (talk) 21:48, 21 January 2021 (UTC)

@Epipelagic: It's two unrelated issues. I guess your browser is Google Chrome. See phab:T269222: "Minus signs not displaying in Math formulas (on certain zoom levels in Chrome browsers)". The minus displays for me at all zoom levels in Google Chrome 88.0.4324.96. The other issue is that {{center|size bar = 30 µm}} is interpreted as assigning the value 30 µm to a template parameter called size bar. You can get around it by writing {{center|1=size bar = 30 µm}} or {{center|size bar {{=}} 30 µm}}. See Help:Template#Usage hints and workarounds. PrimeHunter (talk) 23:16, 21 January 2021 (UTC)
Many thanks — Epipelagic (talk) 02:38, 22 January 2021 (UTC)

Background color

Hi, could anyone tell me is there an option/setting to change the (white) background color of WP (if yes, and what options are available)? Thank You!(KIENGIR (talk) 17:06, 10 January 2021 (UTC))

@KIENGIR: there are a few ways to go about this, first can you tell us how you normally view wikipedia? (Desktop, Tablet, Mobile, or Mobile App) — xaosflux Talk 17:24, 10 January 2021 (UTC)
There is no simple on/off option that will do that for you, but a simple user script can let you change the colour of any part of the page. What do you want changed? — GhostInTheMachine talk to me 18:20, 10 January 2021 (UTC)
Xaosflux,
Destop (which inludes as well laptop).
GhostInTheMachine, I consider watching too much bright white component would be not the best, I'd consider a less warm color which may work good with the black text color without having a visual interlace harming (= sorry I cannot phrase it better, it's like you'd put a bright purple text on a black background). So what I want to change is not the color of WP margins (headlines and sidelines), but the rest which serves the background of anything else, which is white.(KIENGIR (talk) 08:30, 11 January 2021 (UTC))
If it bothers you in Wikipedia, then I presume it bothers you equally on other websites that are not Wikipedia, and that also have bright white backgrounds? If this is the case, you can find the answer by googling change Chrome default color scheme (change "Chrome" to the name of the browser you use). Or try this search. Mathglot (talk) 09:13, 11 January 2021 (UTC)
@KIENGIR: Desktop "dark mode" is hard (see phab:T199634 for progress on the effort). You may customize your standard desktop background my updating this page: Special:MyPage/vector.css, and can request styling of many elements, for example putting:
.mw-body {
    background-color: #ccc;
}
on that page will change the main article body from whitish to grayish. — xaosflux Talk 11:59, 11 January 2021 (UTC)
Mathglot,
especially I considered just in WP, and I don't use Chrome but Firefox. However, I managed to scale the exact background and text parameters, and I've found a good composition, however, the problem is then I don't see properly the diff marker color adjustment (= opening a diff, in which the changes are covered with a slightly bluish box, in which the text color became as well marked more darker)...
Xaosflux,
before analyzing in more details your suggestion - which may have been solved meanwhile as mentioned above, could you suggest the solution the newly mentioned emerging issue? Thank You(KIENGIR (talk) 12:23, 11 January 2021 (UTC))
@KIENGIR: just as you may use a personal style for most any element, you can also style those - just look at the source to find what the identifier is, then add the styling to adjust it; my example above was very simple for just the ".mw-body" id - but you can use it for most anything. — xaosflux Talk 15:30, 11 January 2021 (UTC)
Thanks your recommendation works, this green is fine (but still only if I put brightness & contrast to nil and Gamma to the minium allowed - 0.5 by this constellation). In this case the adjustment markers are as well ok. However I should dig in more into the issue on the browser examiner/console to locate all needed parameters and test their adjustments alltogether. Maybe I'll go ahead when having more time. Thanks for now!(KIENGIR (talk) 16:25, 11 January 2021 (UTC))
You're welcome KIENGIR - for your use case you may be better off with a browser extension, they may be more robust. The benefit of using the vector.css file is that it will follow you to other browsers and computers you may use (while logged in). — xaosflux Talk 16:28, 11 January 2021 (UTC)
@KIENGIR: I recommend you take a look at Dark Reader, a browser extension that automatically generates a dark theme from a site's normal colour scheme. It doesn't work perfectly 100% of the time – for example, it rarely produces unreadable yellow-on-yellow text –, but Wikipedia is normally usable very nicely with it. – Rummskartoffel (talk contribs) 23:05, 16 January 2021 (UTC)
@Rummskartoffel:,
thank you I will test it!(KIENGIR (talk) 23:14, 16 January 2021 (UTC))
There is Preferences|Gadgets/Appearence - Use a black background with green text. DuncanHill (talk) 23:26, 16 January 2021 (UTC)
@KIENGIR:, addressing only your point about the difficulties with DIFF, I entirely agree; that you can easily fix however. It's especially difficult to see differences that consist only of white space, which prompted me to alter the DIFF program style I see. I thought this was in my common.css, but it's not; now I'm not sure where I made that change. Maybe someone else can tell you (and remind me, at the same time!). Cheers, Mathglot (talk) 05:34, 21 January 2021 (UTC)
@Mathglot: No, it's the third of these lines in User:Mathglot/vector.css:
/* Per [[MediaWiki talk:Monobook.css/Archive 4#Better rendering for .diffchange in diff's...]] */
/* See also: Wikipedia:Catalogue of CSS classes, Wikipedia:Village_pump_(technical)/Archive_37#Diff coloring again */
.diffchange {padding: 0px 2px 0px 2px; border: 1px dotted red; margin: 0px 1px 0px 0px}
so see MediaWiki talk:Monobook.css/Archive 4#Better rendering for .diffchange in diff's... and Wikipedia:Village pump (technical)/Archive 37#Diff coloring again. --Redrose64 🌹 (talk) 21:32, 21 January 2021 (UTC)
@Mathglot:,
Redrose already reminded you, I also applied, it gives a little dotted border, however, regardless how many clues gave Redrose, I could not change the diffcolors (or I thought I did not but had no effect, you may check my vector.css edit history, I have been to lame and missed something?). Btw. I tried Rummskartoffel's suggestion and installed darkreader, seems work quite fine in total dark, even with diff markering, however if it is conflated with my vector.css set backgound color set know (kinda green), diffs would be again a problem. Anyway, I wish to successfully parametrize addeddifchange and "deletediffchange" cover color...what did I wrong? Thank You(KIENGIR (talk) 02:40, 22 January 2021 (UTC))
[Fixed with Infobox OS parameter website special value of hide ] Lent (talk) 03:33, 22 January 2021 (UTC)

The "Official Website" for SUPER-UX (this version) is no longer valid. The displayed information is retrieved from Wikidata via Template:Infobox OS, as the website parameter is blank. The Wikidata information allows other language Wikipedia projects to use, and in this case provide, the website URL and have the information consumed and displayed by each of the Wikipedia projects.

I asked and updated the information as no longer valid, per a project chat over on Wikidata.

See: (On Wikidata) Best way to deal with link rot on "Official Website"

The Wikidata solution of setting the end time (P582) qualifier to the Wikidata statement(data) has been done. The rationale, I gather, is that old Wikidata information can be tagged with the end time (P582) to say the statement(data) was valid, up to and including the end time value. This implies, I gather, that some time after the specified end time value, the statement(data) should be treated as no longer valid.

As the Official Website still is rendered by the Infobox OS, I'm assuming that the official website (P856) value from SUPER-UX (Q2665351) is being used anyway.

What is the best way to resolve this?

  1. Set some other qualifier on the wikidata information that Infobox OS recognizes
  2. Wait/Request some bot to set things or note things properly, like Citation bot does for broken doi's
  3. Request a change to Infobox OS (or the parent/superclass template) to not display an Official Website if a P582 end time qualifier exists and the value is not in the future
  4. Workaround the Infobox OS to eliminate/modify the displayed value
  5. Workaround the Infobox OS to display URL for the last valid snapshot of the site cached at archive.org
  6. Something else

Or a mixture of the preceding?

Enquiring minds want to know :) Lent (talk) 12:39, 17 January 2021 (UTC)

Template:Infobox OS#Parameters mentions the option |website=hide. PrimeHunter (talk) 13:23, 17 January 2021 (UTC)
 Done THANKS! I missed that special value. I guess I'm spoiled by emphasis like bold and <code> in documentation. Lent (talk) 21:34, 17 January 2021 (UTC)
[Fixed with Infobox OS parameter website special value of hide ] Lent (talk) 03:33, 22 January 2021 (UTC)

Selectable date format in a userbox, coding help needed

Please see WT:20th anniversary#A celebratory userbox I need help on how to allow users to select between two different versions of either just the date, or perhaps the entire text, whichever is simplest. Roger (Dodger67) (talk) 08:30, 22 January 2021 (UTC)

Hide the phrase From Wikipedia, the free encyclopedia shown below title

Resolved

Is it possible for me to Hide the phrase "From Wikipedia, the free encyclopedia" , written below every article title. Perhaps some change into the commons.css or my skin ? Thank you. --Walrus Ji (talk) 10:40, 22 January 2021 (UTC)

@Walrus Ji: just put the following code snippet in Special:MyPage/common.css and it will hide it for you:
#siteSub {display: none;}
xaosflux Talk 11:35, 22 January 2021 (UTC)
Xaosflux, Thank you. Worked like a charm. Walrus Ji (talk) 11:49, 22 January 2021 (UTC)

Fonts too small

Resolved

Has the EN.Wikipedia reading font been recently changed? I find it to be too small and hard to read. Fonts on other websites are OK including those on FR.Wikipedia, DE.Wikipedia and NL.Wikipedia. Is there a way to increase the font size just for EN.Wikipedia? Changing the Chrome (Version 87.0.4280.141) font setting makes the EN.Wikipedia font better but makes the font too large for all other sites. I use Windows 10 Version 2004 (OS Build 19041.746). Thanks. TheTrolleyPole (talk) 15:53, 22 January 2021 (UTC)

Just use Ctrl + or Ctrl - on the page to enlarge or reduce and it will keep the setting for that website. That's how Firefox does it and I think Chrome is the same. Also try Ctrl 0 to reset the font size and that might restore your normal Wikipedia size. —  Jts1882 | talk  16:48, 22 January 2021 (UTC)
Thanks. The tip works on Chrome. I suspect I may have accidentally pressed Ctrl - causing my reading problem. TheTrolleyPole (talk) 17:06, 22 January 2021 (UTC)

Editing news 2021 #1

Read this in another languageSubscription list for this newsletter

Reply tool

Graph of Reply tool and full-page wikitext edit completion rates
Completion rates for comments made with the Reply tool and full-page wikitext editing. Details and limitations are in this report.

The Reply tool is available at most other Wikipedias.

  • The Reply tool has been deployed as an opt-out preference to all editors at the Arabic, Czech, and Hungarian Wikipedias.
  • It is also available as a Beta Feature at almost all Wikipedias except for the English, Russian, and German-language Wikipedias. If it is not available at your wiki, you can request it by following these simple instructions.

Research notes:

  • As of January 2021, more than 3,500 editors have used the Reply tool to post about 70,000 comments.
  • There is preliminary data from the Arabic, Czech, and Hungarian Wikipedia on the Reply tool. Junior Contributors who use the Reply tool are more likely to publish the comments that they start writing than those who use full-page wikitext editing.
  • The Editing and Parsing teams have significantly reduced the number of edits that affect other parts of the page. About 0.3% of edits did this during the last month. Some of the remaining changes are automatic corrections for Special:LintErrors.
  • A large A/B test will start soon. This is part of the process to offer the Reply tool to everyone. During this test, half of all editors at 24 Wikipedias (not including the English Wikipedia) will have the Reply tool automatically enabled, and half will not. Editors at those Wikipedias can still turn it on or off for their own accounts in Special:Preferences.

New discussion tool

Screenshot of version 1.0 of the New Discussion Tool prototype.

The new tool for starting new discussions (new sections) will join the Discussion tools in Special:Preferences#mw-prefsection-betafeatures at the end of January. You can try the tool for yourself. You can leave feedback in this thread or on the talk page.

Next: Notifications

During Talk pages consultation 2019, editors said that it should be easier to know about new activity in conversations they are interested in. The Notifications project is just beginning. What would help you become aware of new comments? What's working with the current system? Which pages at your wiki should the team look at? Please post your advice at mw:Talk:Talk pages project/Notifications.

Whatamidoing (WMF) (talk) 01:02, 23 January 2021 (UTC)

Fixing the refs in this article...what am I doing wrong?...

So...I have stumbled upon this article - It's Only a Play. While refs are present with good/correct information, none of them use the Citation Style 1 templates - cite web/news/journal etc. What tool should I be using to fix the refs? I have tried to run my ref tools on the article but either I get a message back that all is well or (literally) nothing happens. I think I need to update my tools - like Reflinks/reFill2/etc on my common etc pages - but am not sure what needs to be fixed. If some of you wonderful tech-wizards could figure out what I am doing wrong and tell me what I need to do to get it right, that would be awesome and a big help. Cheers & thanks - Shearonink (talk) 17:58, 22 January 2021 (UTC)

Hi Shearonink—per WP:CITEVAR, I don't think anything needs to be done. "To be avoided: adding citation templates to an article that already uses a consistent system without templates". — The Earwig talk 18:34, 22 January 2021 (UTC)
The first step is to get consensus on the article's talk page to change the established citation style. The second step would be to manually convert the citations to use {{cite web}} and similar templates, which would improve the display of the references, which have minor formatting errors (I see at least a half dozen errors in spacing) that are taken care of by the CS1 templates. – Jonesey95 (talk) 19:23, 22 January 2021 (UTC)
Manual conversion...btdt. Not my favorite housekeeping chore but I guess I'll do it again. If, of course, there's consensus for such a change. Shearonink (talk) 07:11, 23 January 2021 (UTC)

Server problems?

Anyone else getting 503 varnish backend errors? I just lost an edit I was trying to save from classic source editor. And VE has slowed to a crawl. Pelagic ( messages ) – (20:04 Sat 23, AEDT) 09:04, 23 January 2021 (UTC)

Embedded video insist downloading rather than playback (on iOS mobile)

A Webm video. iPhone refuses playback, while Android insists to play from the beginning, ignoring the command to play from 41'
An ogv video. iPhone refuses playback, while Android plays perfectly from 1:52, as instructed

On iOS mobile device (Safari and Chrome), while playing Webm and ogv embedded in an Wikipedia article, it directs users to download the file rather than a simple playback (which is ridiculous for a >100Mb video). On Android (Chrome), while ogv works perfectly, Webm could only be played from the beginning, ignoring the time tag commands (Note: most users specify a starting time of the video so that it corresponds to relevant content to the article). The above issues does not happen on desktop computers. Is there a fix? -- love.wh 04:23, 19 January 2021 (UTC)

Try the same thing on testwiki:, especially the playback part. There is an different audio/video player there (video.js, instead of Kaltura here). There is an ogv file at testwiki:Equivalence_principle, for example.--Snaevar (talk) 17:31, 19 January 2021 (UTC)
Also, are you using the mobile app or the mobile website to access these? (If both, is it the same experience?) — xaosflux Talk 17:38, 19 January 2021 (UTC)
For me, the sample Webm played from 41" and Ogv plays but from 0:00. Then I retried the Webm and it was at 0:00. *scratches head* Desktop site, Timeless skin, iPad Air, Safari, iOS12. Pelagic ( messages ) – (20:32 Sat 23, AEDT) 09:32, 23 January 2021 (UTC)

I was wondering how you can get an automatically updated featured content section by the JL-Bot to Wikipedia:WikiProject_Zimbabwe/Rhodesia_task_force similar to what WP:WikiProject YouTube and WP:X/showcase have please? The C of E God Save the Queen! (talk) 14:41, 20 January 2021 (UTC)

The C of E, it looks like it's done through the template on JL-Bot's user page here. BlackcurrantTea (talk) 13:16, 23 January 2021 (UTC)
Thank you @BlackcurrantTea: How would that work for a subproject like Rhodesia as that's a task force? The C of E God Save the Queen! (talk) 13:22, 23 January 2021 (UTC)
That's a bit above my pay grade, The C of E. Try the bot's talk page. Cheers, BlackcurrantTea (talk) 14:01, 23 January 2021 (UTC)

The MediaWiki namespace

I found something strange, every page that starts with "MediaWiki:Bad image list/" exists, and its specific text is

The format is as follows: Only list items (lines starting with *) are considered. The first link on a line must be a link to a bad file. Any subsequent links on the same line are considered to be exceptions, i.e. pages where the file may occur inline.

The more strange thing: none of these pages even actually exist: . For example: MediaWiki:Bad image list/Archive 6, MediaWiki:Bad image list/MediaWiki:Bad image list, MediaWiki:Bad image list/hexuhv8o7d4ghfxg3sjiuyvh4s7dihrt876wtghf7.

I have no idea how this happened, but could someone please explain it to me? JJP...MASTER![talk to] JJP... master? 23:45, 23 January 2021 (UTC)

Bonus question: why does editing MediaWiki:Hello/xyz show "Hello"? Johnuniq (talk) 23:51, 23 January 2021 (UTC)
Johnuniq, so does MediaWiki:Hello/h4rdughnmjvf4cthedui4ngyhuckverhn. JJP...MASTER![talk to] JJP... master? 23:52, 23 January 2021 (UTC)
Johnuniq, Wait literally EVERY page in the MediaWiki namespace, even on my own private wiki, does this same thing! JJP...MASTER![talk to] JJP... master? 23:57, 23 January 2021 (UTC)
The subpage only shows content if the parent page is a system message in the software. For example, MediaWiki:Introduction is not a system message so it's not listed at Special:AllMessages, and MediaWiki:Introduction/XYZ is red. PrimeHunter (talk) 08:02, 24 January 2021 (UTC)

Text alignment in infoboxes

On Alexei Navalny, is anyone else having an alignment issue with the "Leader of the Russia of the Future Party" in the infobox? For me (Safari 14.0.2, OS 11.1), "Russia of the Future" is rendering slightly below the rest of the text; the problem goes away if you get rid of the link or the footnote at the end. Esszet (talk) 02:39, 24 January 2021 (UTC)

I see it in Safari 13.1.1 on Mac OS 10.14.6 (desktop) as well. It looks fine in Chrome and Firefox. The "Russia of the Future" link is below the black text, and the efn footnote in inline with the black text instead of superscripted. Strange. – Jonesey95 (talk) 04:44, 24 January 2021 (UTC)
You're right, I didn't notice that, it isn't superscripted at all. Esszet (talk) 15:25, 24 January 2021 (UTC)

Categorizing cross- and same-namespace redirects

Please see Template talk:R to project namespace#RfC: Should we categorize redirects to the same namespace? There have been some late comments. WhatamIdoing (talk) 20:20, 24 January 2021 (UTC)

ContentSub margins

For some reason, the ContentSub text style, used for things like short descriptions, has a much taller bottom margin. I'm using the legacy Vector skin and, to me, it looks off, having gotten used to the original spacing. -BRAINULATOR9 (TALK) 03:21, 25 January 2021 (UTC)

Category count?

Counting the categories via {{PAGESINNAMESPACE:14}} does not work here – the PAGESINNAMESPACE magic word is expensive and so is disabled on this wiki. Is there a statistics page somewhere that will say (roughly) how many pages exist here in each namespace? — GhostInTheMachine talk to me 20:53, 24 January 2021 (UTC)

Is Wikipedia:Database reports/Page count by namespace what you are looking for? – Jonesey95 (talk) 01:02, 25 January 2021 (UTC)
Perfect! thanks — GhostInTheMachine talk to me 09:23, 25 January 2021 (UTC)

MediaWiki:Blockedtext-composite

Blocked users currently see this text when they try to edit: MediaWiki:Blockedtext. However, if a blocked user is subject to multiple blocks (for example, they're directly blocked and their IP address is also hardblocked), they instead see this default text: MediaWiki:Blockedtext-composite. This is a wholly useless message, especially in comparison to the carefully designed MediaWiki:Blockedtext. It's worse than it looks on first glance; when I was testing, I found that "$2" is always replaced with something generically useless like "there are multiple blocks affecting your account". Could someone look into replacing it with a modified copy of MediaWiki:Blockedtext, especially by adding links to WP:AAB and WP:GAB? I would do it but unfortunately I don't have the time right now. Best, KevinL (aka L235 · t · c) 21:06, 24 January 2021 (UTC)

L235, I replaced it with a modified version of Blockedtext. However it still probably needs further work, I'm not sure of a clever solution for the $2, besides perhaps just omitting it altogether and putting something generic. Unless MediaWiki itself changes, I can't forsee a way to list out all the block reasons, but I hope someone more techy than I can give it a go. CaptainEek Edits Ho Cap'n! 07:07, 25 January 2021 (UTC)
There are explainations of the parameters at translatewiki:MediaWiki:Blockedtext-composite/qqq. I would look into using $5 instead of $2, it is after all not just an simple block ID number. Maybe count the number of ID's, in order to know the number of blocks?--Snaevar (talk) 14:03, 25 January 2021 (UTC)

Tech News: 2021-04

18:29, 25 January 2021 (UTC)

MediaWiki userspace and User Contribution special search for IPv6 broken?

The Special:Contributions seems broken when processing IP6 addresses. It cannot accept the format used by [&action=history] links. Special:Contributions requires upper case IP6 while [&action=history] generates lower case IP6. If you enter one into the other it comes up null. Special:Contributions should accept any miniscule/majiscule mix-and-match. (a regexp for recognizing an IPv6 entry and then either upcasing or downcasing the input to further process seems like a solution). This is a problem when manually adding {{unsigned}}. Also, this is a MediaWiki problem when accessing user pages. Could real user could masquerade as an IP address by using a different case or mixed case name? Where do we leave talk messages to such a user, since they appear to be different usernames with different userspace/usertalkspace pages?

Example:

-- 70.31.205.108 (talk) 13:57, 25 January 2021 (UTC)

Yes, usernames are case sensitive. Impersonation should not be an issue, as we do not allow username selection that looks like an ip address. — xaosflux Talk 14:08, 25 January 2021 (UTC)
Regarding that template, post some examples at Template talk:Unsigned and someone may look in to the module that powers it to improve it (Module:Unsigned). — xaosflux Talk 14:09, 25 January 2021 (UTC)
Special:Contributions failing on lowercase IPv6 is a recent bug phab:T272225: "Special:Contributions no longer accepts display form of IPv6 addresses". PrimeHunter (talk) 17:38, 25 January 2021 (UTC)
Indeed, I was sure that lowercase worked, hence this edit. --Redrose64 🌹 (talk) 22:21, 25 January 2021 (UTC)

A workaround is probably needed. I started with a suggestion at Template talk:IPvandal#IPv6 needs to be uppercase. Johnuniq (talk) 00:10, 26 January 2021 (UTC)

Moving of categories

I understood that there are categories about Serres regional unit, of Central Macedonia Region at Greece that have problem to the name. Category "People from Skoutari" refers to municipal unit of Skoutari, however there is the village of Skoutari (the capital of municipal unit), too. Or the category People from Nea Zichni. This category refers to Municipal of Nea Zichni but there are also the municipal unit of Nea Zichni and the village of Nea Zichni (capital of the Municipal and the municipal unit.) Maybe someone user can help to the rename of the categories? BILL1 (talk) 01:01, 26 January 2021 (UTC)

I think that category about the people from Nea Zichni must rename to "People from Nea Zichni (municipal)" (because there is also village and municipal unit with this name. A possible future category about people from Nea Zichni municipal unit can named "People from Nea Zichni (municipal unit) and a possible future category about the people from Nea Zichni village can named "People from Nea Zichni". BILL1 (talk) 01:10, 26 January 2021 (UTC)

Izno can you help me? BILL1 (talk) 03:35, 26 January 2021 (UTC)

BILL1, you should use the requested moves process. --Izno (talk) 03:37, 26 January 2021 (UTC)
Izno ok thank you BILL1 (talk) 03:52, 26 January 2021 (UTC)
Actually, you should use WP:CFD, not RM. —JJMC89(T·C) 07:04, 26 January 2021 (UTC)

Diff heading background on Monobook

When looking at the diff for the only revision of a page (e.g. Special:Diff/1002959183/prev) on Monobook, the background heading is white which stand out from the off-white Monobook background. The culprit is a CSS constraint table.diff, td.diff-otitle, td.diff-ntitle { background-color: white; } but I couldn't find it in the site's common.css or monobook.css so is this a recent change on the parser side? Wug·a·po·des 20:57, 26 January 2021 (UTC)

User:Evad37/rater/app.js, which is loaded via User:Evad37/rater.js, must be the culprit. Nardog (talk) 21:14, 26 January 2021 (UTC)
I can confirm that. --Izno (talk) 21:23, 26 January 2021 (UTC)
@Wugapodes, Nardog, and Izno: Fixed. Rater loads its own diff styles – since MediaWiki doesn't provide them except on diff pages – but it was doing so earlier than needed, before it's dialog was even opened, and wasn't removing them when they were no longer needed. - Evad37 [talk] 00:18, 27 January 2021 (UTC)
@Evad37: Wouldn't using mw.loader.load/* or using */("mediawiki.diff.styles") be simpler and stabler? Nardog (talk) 00:25, 27 January 2021 (UTC)

Captchas and blind people again

I am aware that this has been discussed before since I had a quick search of the archives. But the problem still persists that the captcha shown when you create an account or add a link to an article is not accessible to blind people such as myself.

Yes, you can request that someone creates an account for you, which is what I did when I joined. But many people may be put off by this.

I feel that Wikipedia should provide an audio challenge or use something like reCAPTCHA v2's I'm not a robot tick box. Many website's use either of these methods, and Wikipedia is one of the few I can think of that doesn't.

What are your thoughts on this, and is anyone currently working on a solution?

Many thanks.KaraLG84 (talk) 14:21, 21 January 2021 (UTC)

@KaraLG84: The local English Wikipedia community can not make this change, it would be at the very least a WMF-wide global change as accounts are global. You can follow up on the discussion about this here: phab:T6845. — xaosflux Talk 14:27, 21 January 2021 (UTC)
@Xaosflux: Thanks. Sadly it seems that nothing has been done about it. The last comment was over a year ago.KaraLG84 (talk) 14:42, 21 January 2021 (UTC)
KaraLG84, this is correct. Its a hard/expensive problem to solve. —TheDJ (talkcontribs) 15:54, 21 January 2021 (UTC)
One that has been solved many times by many organisations. DuncanHill (talk) 16:07, 21 January 2021 (UTC)
But not as open source. --Izno (talk) 17:55, 21 January 2021 (UTC)
Indeed, it needs to be open-source. Graham87 07:39, 22 January 2021 (UTC)
Everything I can think of is a pending Amazon patent... *sigh* Enterprisey (talk!) 03:03, 27 January 2021 (UTC)

Template Category U.S. State elections by decade

Hello.

Could someone please do something about {{Category U.S. State elections by decade}}, which doesn't work properly after a category move.

See several subcategories of Category:Elections in Washington, D.C., for instance Category:1970s elections in Washington, D.C..

Thank you.

HandsomeFella (talk) 07:30, 27 January 2021 (UTC)

{{Category U.S. State elections by year}} is also wrong now, e.g. in Category:2000 elections in Washington, D.C.. PrimeHunter (talk) 08:46, 27 January 2021 (UTC)
I think this situation may benefit from a fix that I added to some similar templates and categories. – Jonesey95 (talk) 17:14, 27 January 2021 (UTC)

File:Image page sandbox.png

I reupload this image page sandbox for tests, because my picture is a jpeg, not png. Can I go ahead, upload my file, and then use that as a file sandbox? 54nd60x (talk) 04:22, 27 January 2021 (UTC)

Also how to make a HTML page in my sandbox (not HTML) but hides banners e.g. https://thankyou.wikipedia.org/wiki/Thank_You/sandbox 54nd60x (talk) 05:07, 27 January 2021 (UTC)
@54nd60x: Which image page test do you want to make that requires jpeg instead of png? You can only use a subset of HTML. See Help:HTML in wikitext. I'm not sure where you want to hide banners from whom but don't try to hide them from others. Special:Preferences#mw-prefsection-gadgets has the option "Suppress display of fundraiser banners" for yourself. PrimeHunter (talk) 10:06, 27 January 2021 (UTC)
@PrimeHunter: The image page test is File:Image page sandbox.jpeg not yet uploaded yet. I was only trying to hide the banners because the above thankyouwiki URL looked cool to me, since it didn't show the nstab or the edit control and not the logo on the left. It looked as if it was its own website and I wanted to do so. I tried to copy from the above URL to User:54nd60x/sandbox2 and kept modifying it (by typing spaces before each unindented line) but still doesn't work and I don't understand why it would work on Thank You Wikipedia. 54nd60x (talk) 10:29, 27 January 2021 (UTC)
@54nd60x: Pings only work if the user page link is added in a signed edit so didn't notify me. You didn't address which image page test you want to make but one more file doesn't matter so I suppose you can just go ahead even if the png page might work just as well. https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php sets mw:Manual:$wgRawHtml to true for thankyouwiki so it can use raw unchecked HTML. That is not done here or for any wiki where normal unified accounts work. PrimeHunter (talk) 14:17, 27 January 2021 (UTC)
@PrimeHunter: Ok, thanks for the clarification. I will go ahead and upload the image. 54nd60x (talk) 23:53, 27 January 2021 (UTC)
Resolved

Please see Talk:Free France#Section edit links missing for a summary of a problem at the Free France article, which currently has no section edit links. I've seen this before elsewhere, and it's usually a template problem. I searched back as far as 2017 (e.g., rev 809824702) which also displays the same problem, and it's extremely unlikely it was not noticed at the article this long and furthermore, the history shows plenty of section links auto-generated by the edit section procedure. Most probably, the article is transcluding a template that was recently changed and not fully tested. It's possible the problem is my own, since I do edit templates, but nothing lately, and I don't see it at first glance. Can anyone have a quick look, to see if you can find the culprit? Thanks. Mathglot (talk) 23:43, 27 January 2021 (UTC)

Doing... checking. — xaosflux Talk 23:48, 27 January 2021 (UTC)
@Mathglot: Special:ExpandTemplates spits out
General Leclerc’s second armored division included two units of female volunteers: The Rochambeau Group in the infantry (dozens of women) and the Woman Service of the Naval Fleet in the marines (9 women). Their role consisted of administering first aid to the first line of injured soldiers (often to stop bleeding) before evacuating them by stretcher to ambulances and then driving these ambulances under enemy fire to care centers several kilometers behind the lines.<ref>{{cite web|title=Les Filles de la DB|url=http://www.marinettes-et-rochambelles.com/|website=www.marinettes-et-rochambelles.com|access-date=2018-10-24}}</ref>.<table class="plainlinks metadata ambox ambox-notice" role="presentation"><tr><td class="mbox-image"><div style="width:52px">[[File:Replacement filing cabinet.svg|50x40px|Archive|alt=|link=]]</div></td><td class="mbox-text"><div class="mbox-text-span">This page is an [[Help:Archiving a talk page|archive]]. '''Do not edit the contents of this page'''. Please direct any additional comments to the [[Femmes dans la Résistance intérieure française|current talk page]].</div></td></tr></table>__NOEDITSECTION__ __NONEWSECTIONLINK__
I've fixed the issue now. --Izno (talk) 23:50, 27 January 2021 (UTC)
Bad template was removed. — xaosflux Talk 23:52, 27 January 2021 (UTC)
For the record, old versions never have section edit links. PrimeHunter (talk) 23:59, 27 January 2021 (UTC)
Wow, that was fast! Thank you everybody! I do sometimes look at page source from expand templates for other kinds of things, but didn’t realize it might be a helpful tool in a case like this, so thanks very much for that insight as well. Mathglot (talk) 00:09, 28 January 2021 (UTC)

Comment/request regarding "Display categories" gadget in Safari iOS (mobile)

Greetings and felicitations. I've enabled the "Display categories" gadget in mobile. I use Safari under the latest version of iOS, and the Vector (default) skin (i.e., I'm using a browser, not the Wiki app). I appreciate the option, but IMHO there is one small problem with the appearance: the categories have nothing separating them from external links if an "External links" section is toggled open, and in that browser the link color is the same whether a link is internal or external, so the link(s) and the category/ies are crowded together and difficult to distinguish at first glance. Would it be possible to add a carriage return/line break or other separator to the end of the last section when it's toggled open? —DocWatson42 (talk) 01:13, 28 January 2021 (UTC)

"An attempt to load a user script has failed"

When I'm using mobile I'm getting multiple "An attempt to load a user script has failed" error messages (apparently in my case it seems to involve DYKhelper). Other editors I've talked to on Discord have reported a similar issue. Narutolovehinata5 tccsdnew 23:29, 25 January 2021 (UTC)

It's being thrown by MediaWiki:Mobile.js: diff. — The Earwig talk 23:37, 25 January 2021 (UTC)
Jon (WMF): IMO, this was not handled well. The error says to see the JS console but most mobile users do not have access to a JS console. For most users, it's not clear what the problem is. (We could just say the error in the box instead of telling people to check another thing for the error. Is the concern the error is too technical? Then what are they supposed to do about it anyway?)
Unless we're going to go through thousands of personal JS files and replace peoples' importScript invocations (I assume this is a nonstarter)... rather than leaving things broken, can we copy this shim from Meta? I don't understand the point of forcing people to make their personal JS more verbose. I recognize there are alternate things in the works (phab:T27845 is WONTFIX, but has related tickets). Nevertheless, those things aren't here yet (as far as I know), so an importScript shim seems like the cleanest workaround for the moment. — The Earwig talk 00:01, 26 January 2021 (UTC)
I assume this is a nonstarter Why? That's exactly what we're doing with the globals. It just takes someone doing it. --Izno (talk) 00:33, 26 January 2021 (UTC)
You're right. But I think a shim still makes sense until it is done, so things are not broken. — The Earwig talk 00:36, 26 January 2021 (UTC)
The better shim seems reasonable to me? At any rate, this is all related to error reporting being turned on for enwiki, so I think some version of either of these is basically required ~ Amory (utc) 02:02, 26 January 2021 (UTC)
Directing users to the script that failed to load, rather than where the error is occurring (their common/skin js), results in confusion like this . If a notification is to be shown on every page load, it should link to a tutorial page on how to actually fix the issue and where to ask for help. - Evad37 [talk] 01:08, 26 January 2021 (UTC)
My main goal was to suppress a large amount of errors we're seeing from mobile users trying to load incompatible scripts. How you want to deal with that I leave up to you. Providing a shim would also address the problem, but is just sweeping the issue under the rug adding technical debt to interface admins. I should note the mw.notify technique has been successful on other wikis, (with translation of course) for getting these scripts and gadgets fixed. Perhaps linking to Special:MyPage/common.js and the associated skin.js may help. Jon (WMF) (talk) 02:03, 26 January 2021 (UTC)
Maybe I'm crazy here, but I had no clue that importscript was being deprecated. Why was it first completely removed on mobile - the platform that most people have the least amount of access to identify the problem and resolve it, instead of first being removed/warned-on on desktop where people can actually click through links/etc to identify and fix the issue? And where was this notified to the community prior, because I watch this page and I may have just missed it but I saw no notice that what I presume is literally millions of uses of importScript and importScriptURI will have to be re-done, and presumably from the comments here and elsewhere others didn't either. I'm all for the change (one load instead of 4 separate ones) but jeez, roll it out in a way that lets people 'upgrade' to the new one, and helps people do so - not just throws a ton of errors and removes scripts from many people on mobile. Just my 2 cents, and regards -bɜ:ʳkənhɪmez (User/say hi!) 02:09, 26 January 2021 (UTC)
importScript, like many of its cousins, was deprecated in MediaWiki 1.29. 1.29 was formally released nearly 4 years ago at this point. I am 100% certain we have seen at least one Tech News covering the deprecation.
I agree that we should be less verbose about the issue on mobile and instead be verbose for users on desktop first. On mobile, we should silently fail to load and continue to throw errors in the console (not that will help much since neither Firefox nor Chrome these days provide access to console trivially or at all [I need to go see if Firefox can be configured on]). --Izno (talk) 02:42, 26 January 2021 (UTC)
Oh wow. That's news to me. I assumed once I saw like 2/3 scripts that recommended install using that, it was the proper way. Not to mention that User:Enterprisey's scriptinstaller still uses importScript. Point being, even if it was announced, it obviously wasn't done so well enough if people like Enterprisey who have multiple scripts never updated, and regardless, this rollout of "screw people on mobile with a bunch of useless errors they can't fix at that time" is.. botched. Is there a way to have a bot change all instances of importScript (and its cousins) to the new version? I'm surprised in 4 years of it being deprecated nobody's made one (or if they have, that it doesn't run every so often to catch new uses). -bɜ:ʳkənhɪmez (User/say hi!) 02:48, 26 January 2021 (UTC)
Amory above is working on the deprecated global config variables right now (as is Legoktm, globally, heh). I can't speak for their interest in working on this one, but it's similar niche work (that, yay, requires interface admin hat). It probably will bubble up a lot of scripts that don't work as a result, since importScript assumes synchronous load or something (I think) and mw.loader.load does not, so some dependency declarations may be missing.
I did mention in an offwiki discussion that I too am concerned that our technical documentation and support tools like Enterprisey's installer need to be updated. Even just the fact that {{Iusc}} was not updated to (redirect to) {{Lusc}} is bothersome, because of a 2-person talk page discussion over half a decade ago. But we have to start somewhere, otherwise, as you did, Monkey See, Monkey Do.
The reason no-one has made one is because the problem is essentially invisible. At best we hear about broken scripts, usually on this page (for one reason or another, not necessarily importScript only). At worst, silence as editors go inactive or they miss that their favorite script doesn't work, or.... I'm sure you see the problem. Given how many user Javascript pages there are, a bot is more or less the only feasible way to deal with the problem. I haven't actively inquired before, but it might be a good idea to make a Phabricator task so that we can identify active users with Javascript subpages (using deprecated Javascript if possible) and start by updating those pages instead. Maybe Jon (WMF) can help with that problem. --Izno (talk) 03:11, 26 January 2021 (UTC)
If importScript is deprecated and support is actively being removed soon, it would help those of us who are somewhat technical but need a cookbook if someone here could point to or whip up a page describing the steps to migrate from importScript to whatever is supported. Also, when I look at my vector.js, I see the following warning in a red box: Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript" or "iusc", take note that this causes you to dynamically load a remote script, which could be changed by others. If importScript has long been deprecated, should this text be modified? – Jonesey95 (talk) 03:25, 26 January 2021 (UTC)
Yes, that is an example of documentation that should be updated (at least insofar as it should not mention importScript, not the other part of that sentence, which naturally remains true).
The cookbook is and has been mediawikiwiki:ResourceLoader/Migration guide (users). --Izno (talk) 03:33, 26 January 2021 (UTC)
The larger task here is phab:T130879 created in 2016, but stalled for some time. For the record, the method was soft deprecated on desktop first and the mobile site never inherited the importScript function because the mobile site was built after deprecation began, and at the time the mobile site couldn't even run user scripts so we didn't know it was an error. An error in a JS script on mobile like this basically stops the rest of the script execution. There's a lot of moving parts, but we have better tooling and visibility now, so going forward we're in a much better place, and hopefully this can be sped up, but there's going to be a lot of work to be done, to make up for lost time and fix existing code. user:Izno, User:Ladsgroup has recently got global interface editing rights, and has a bot for fixing related legacy code (see phab:T72470). I imagine he would be a good person to help with enwiki's efforts but right now his focus is on deprecating the wg variables. I'd hope the bot he's been using could also be used for importScript when we get round to it. Jon (WMF) (talk) 04:13, 26 January 2021 (UTC)
I'd prefer either making importScript a wrapper around mw.loader.load, or making a new wrapper ("importScriptAsync"?) and migrating to that; I find the URLs less readable. Should those two options be RfC'd? I'd be happy to do the migration work. The one issue with the former is that people might've been depending on the load order (admittedly unlikely). Enterprisey (talk!) 03:51, 26 January 2021 (UTC)
As I said offline, I'm not a fan, and that the real issue is that users have to edit their Javascript pages is what sucks, not the fact that the API for importing foreign Javascript isn't framed in terms of wiki pages (and the related task on the Phab side was declined). --Izno (talk) 04:19, 26 January 2021 (UTC)

I definitely can help in migrating, just currently busy with thousands of usages of deprecated globals (just counting mediawiki namespace). Once I'm done with that, ping me and I help with this one too User:Jon (WMF) Ladsgroupoverleg 05:59, 26 January 2021 (UTC)

  • In simple terms, how can us relatively non-techie folks fix this? Do we need to swap failing scripts to the "mw.loader" style? Do we need to swap alls scripts to that? Is there another better solution? Plz ping me :) CaptainEek Edits Ho Cap'n! 08:34, 26 January 2021 (UTC)
  • While you’re all figuring this out, whatever this is, can someone disable the stupid warning on mobile devices? It’s sticky, it doesn’t go away, it’s highly annoying and it’s also quite useless... if there’s something to fix here, use a bot, edit the gadgets/templates, add a shim, whatever, but whilst the templates/gadgets are all using the old format it’s way too early to be bugging people to update their own common.js to fix this. ProcrastinatingReader (talk) 11:45, 26 January 2021 (UTC)

Are we talking about a retrospective change to all user scripts that still use the equivalent of {{iusc}} / {{Install user script}} to use {{Lusc}} / {{Load user script}} instead? — GhostInTheMachine talk to me 13:52, 26 January 2021 (UTC)

  • Borrowing words from ProcrastinatingReader can a tech wizard please disable the notice for those using mobile devices? The notice I’m seeing is permanent & just takes up almost all the space on the screen, to say this is upsetting is to put it mildly, it’s even more annoying than the “image greying” problem we mobile phone editors faced last year. And please, like CaptainEek said can one of y’all tech wizards be so kind as to explain to us 'laymen' (which I gladly accept that I am regarding anything related to advanced coding) the simplest manner in which we can fix this error? Please this is a cry for help. @PrimeHunter aren’t you affected by this also? Celestina007 (talk) 15:43, 26 January 2021 (UTC)
  • information Administrator note I've disabled this for now, at the very least some more discussion is warranted as this is disruptive to contributors. — xaosflux Talk 15:54, 26 January 2021 (UTC)
@xaosflux, Many thanks for helping out, all is back to normal. Celestina007 (talk) 18:01, 26 January 2021 (UTC)

From WP:IANB:

Empty function body is fine here for making sure the errors don't flood our logs, but obviously doesn't help with getting this fixed on the long term. For most scripts, the fix is for user scripts to stop running the code on mobile. Do we know how this code even got onto mobile? On other wikis, this has been because users edited Special:MyPage/minerva.js but here it seems that people had no idea how they loaded the code in question. Perhaps we need to review the MediaWiki:Gadgets-definition - it's possible some gadgets have been marked to mobile but don't work there which is why so many people saw the error. Jon (WMF) (talk) 16:36, 26 January 2021 (UTC)

Jon (WMF), it's not gadgets:
  1. User adds script to their common.js subpage
  2. User goes to mobile page
That's all that's needed, yeah? If it never produced a (visible) error or change, no end user would have known until now. ~ Amory (utc) 17:27, 26 January 2021 (UTC)
(this.) I easily suspect this occurs rampantly - mobile view is still loading wiki:User/common.js and meta:User/global.js correct? Because these get polluted by tons of copypasta all the time by users that don't really know what they are doing - often importing scripts that then import more scripts as well. — xaosflux Talk 17:44, 26 January 2021 (UTC)
Indeed, common.js was my first thought. We've even suggested it be preferred for some time now just because most people expect their scripts Just Work Wherever. (Which they should.) --Izno (talk) 18:02, 26 January 2021 (UTC)

No. Mobile does not load common.js subpage. Instead it loads Special:mypage/minerva.js (or perhaps mobile.js - I can't remember the status quo). Perhaps it's originating in global JS from meta.wiki? That does load on mobile? Jon (WMF) (talk) 18:32, 26 January 2021 (UTC)

@Jon (WMF): I put something in my User:Xaosflux/common.js and it loaded on https://en.m.wikipedia.org/wiki/Main_Page as well as https://en.wikipedia.org/wiki/Main_Page?useskin=minerva. — xaosflux Talk 18:54, 26 January 2021 (UTC)
Perhaps you are thinking about the sitelocal common.js, not the sitelocal user:common.js ? — xaosflux Talk 18:55, 26 January 2021 (UTC)
Interesting. I guess we changed this sometime recently, but I can't remember why and when! Okay, well at least that explains this. User common.js runs on mobile. I guess the correct thing for users to do is to move that to their desktop skin JS, as this code throwing errors it definitely not common to all skins. :) Jon (WMF) (talk) 19:03, 26 January 2021 (UTC)

One of the affected users, Celestina007, has 3 Javascript pages locally: User:Celestina007/common.js, User:Celestina007/twinkleoptions.js, User:Celestina007/redwarnConfig.js, and a JSON page User:Celestina007/raterPrefs.json. I'd guess the 'config' pages aren't relevant. --Izno (talk) 18:56, 26 January 2021 (UTC)

Also not a fan of "Move to desktop JS" per my previous statement. This Javascript should just work in both places instead. --Izno (talk) 19:07, 26 January 2021 (UTC)
@Izno: esp as there is no User:USER/Desktop.js and asking someone to abandon that and fork in to every single other skin isn't a good idea. — xaosflux Talk 19:17, 26 January 2021 (UTC)
At any rate, I think we're kind of done here. We should have a targeted discussion/RfC about how to go forward with all the deprecations, mass editing, etc., but for now the empty function is the correct solution. ~ Amory (utc) 19:43, 26 January 2021 (UTC)
Momentum counts for something, so let's figure out what kind of targeted discussion we should have ;).
If we ask the non-technical community about how to deal with importScript and friends, it's going to be "just make it work".
The technical community might have some of the following opinions, just based on here and the various Phab tasks:
  • The API sucks (I basically agree with that, but...)
  • The user JS system sucks and no-one but techies should need to understand it and/or care about it
  • A shim is bad for various reasons (extra Javascript load, not exactly the same function at the end of the day anyway re asynchronicity, etc.) (see also phab:T27845 discussion where a shim was basically rejected)
  • Globals suck (among the reasons for the deprecation in the first place)
  • Other opinions possibly? We should just make a decision.
My experience regarding TemplateStyles migrations is that no one has come to bang my door down, and I'm sure you're seeing similar with your globals removal that you've been hacking at in your free time. So I don't think "what should be done to get to the end state?" is an interesting question. We should just go to the end state.
Is there some other question we need to ask? Maybe "Do we want to emit a similar notice as the one tried of late on desktop so that we can harness the masses first"? --Izno (talk) 00:58, 27 January 2021 (UTC)
(extra Javascript load, not exactly the same function at the end of the day anyway re asynchronicity, etc.) please elaborate ProcrastinatingReader (talk) 01:14, 27 January 2021 (UTC)
I'm not sure what to elaborate with. I understand that loadScript does some things, and assumes a certain execution model, that mw.loader.load/using don't. To make a shim for loadScript (whether we want to replicate it exactly or not) would accordingly require additional Javascript in Common.js or elsewhere; if we replicate it exactly that's more rather than less Javascript, and in both cases versus removal entirely we would be comparing it to no extra Javascript. (I'm not being deliberately evasive on the exact functionality differences; I'm just not sure of the exact distinction and haven't looked at the code. I know one of the differences is that it takes a URL and one takes a wiki page (the API), and I am pretty sure a second is that mw.loader.load doesn't control for when scripts load, whereas importScript does. For 99% of the population, this second case probably isn't relevant. There may be other differences I don't know about....) --Izno (talk) 03:05, 27 January 2021 (UTC)
That's kind of what I think as well — we need to see what the likely end state is.
There are tens of thousands of pages in question here alone. There's importScript, importStylesheet, addOnloadHook, and even addPortletLink that will need doing. I don't see a viable path beyond blanking and botting given the numbers. An RfC or something could determine the dividing line — userspace owner hasn't edited in X years, script not edited in Y years, etc. — but it's either shim forever or blank and bot, no? ~ Amory (utc) 02:18, 27 January 2021 (UTC)
We'd only shim until "user scripts 2.0", whenever that happens, I think. What's "blank and bot"? Enterprisey (talk!) 02:56, 27 January 2021 (UTC)
whenever that happens I mean, on an infinite timescale... One advantage of a shim is, as we've seen, that we can message users through it. Console notices progressing to a weekly/daily message, that sort of thing. Could be handy.
By blank and bot, I mean that there are tens of thousands of unused user scripts and skin pages. One could imagine authorizing a bot to clean up every page as long as the owner had been active within a couple years or the script had been edited lately or something, and blanking otherwise. "Blanking" could even be a "if you see this message it was blanked by RfC, see link and do this fix" kind of thing. Just spitballing, but trying to say that given the scale we're talking about the viable options are limited. ~ Amory (utc) 03:02, 27 January 2021 (UTC)
Blank user Javascript pages (meeting some criteria/on) and swap to loader.load for the rest. Anyway, you mentioned you want importScriptAsync, which doesn't fundamentally fix the problem of shimming either way (i.e. you still have to bot that case away). --Izno (talk) 03:04, 27 January 2021 (UTC)
I agree; I just don't like the look of mw.loader.load and prefer user common.js pages to not look radically different. Enterprisey (talk!) 03:22, 27 January 2021 (UTC)
The third option is "whenever WMF pulls the plug, deal with it then with whoever says everything broke", which I see as essentially "blanking everyone's scripts all at the same time and then active users get to say something (loudly)". There is a fourth option, which is apparently that Gadgets 2.0 supports user-space gadgets in some form (whenever Gadgets 2.0 happens). That option requires some significant rewrites even for the popular scripts. Among those, I think I prefer blanking and botting (to either of the not-shim options): it's in our power, the change is obvious (but may break some things, but will unbreak mobile use), the present API we know will be stable (for some probably non-zero time), and we have you who are willing but have signed yourself up to at least one other deprecation first. ;) Heck, if we really want to have fun today we could just make the deprecated functions no-op on desktop and beat the WMF to it in option 3. (I wouldn't do that without an RFC.) --Izno (talk) 03:02, 27 January 2021 (UTC)
  • Just make it work, please. Shimming is the most sensible thing to do IMO. A few lines of extra JS in Mediawiki:Group-user.js (note that this is the file you want, not Mediawiki:Common.js since unregistered users don't have personal script pages {they could be using stuff like greasemonkey but that isn't our problem}) is not going to have any performance impact. I don't have time to look into this deeply but I don't think there's any functional difference between mw.loader.load or importScript beyond the input format. They're both asynchronous, and neither returns a promise like mw.loader.using does. Correct me if I'm wrong.
I'm pretty sure our largely non-technical userbase prefers
importScript("User:Example user/script.js");
rather than the scary
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Example%20user/script.js&action=raw&ctype=text/javascript");
SD0001 (talk) 06:32, 27 January 2021 (UTC)
I mean, I'm not going to advocate technical gatekeeping, but maybe it should be a little bit scary. I think people underestimate just how dangerous user scripts can be. Writ Keeper  04:43, 28 January 2021 (UTC)

Search problem

If I'm looking for an editor's contribs from date x onwards, I go to their contribs, then "search for contributions", then I add two dates: from date x, to date y.

I can never get the "from" date to work. When, after entering the dates, I go to "oldest", I'm taken to the editor's first edit, not the first edit on the "from" date. What am I doing wrong? SarahSV (talk) 21:08, 26 January 2021 (UTC)

@SlimVirgin: this appears to be a bug, I opened phab:T273112. There is an example of a manual workaround in the description. — xaosflux Talk 20:55, 27 January 2021 (UTC)
Xaosflux, thanks for doing that. I'm afraid I didn't understand your workaround. SarahSV (talk) 21:59, 27 January 2021 (UTC)
@SlimVirgin: manually put in a URL such as this: https://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20190101010000&dir=prev&contribs=user&target=SlimVirgin where the "offset=" is YYYYMMDDhhmm format. — xaosflux Talk 22:59, 27 January 2021 (UTC)

My cheatsheet:

Johnuniq (talk) 01:21, 28 January 2021 (UTC)

@Xaosflux and Johnuniq: thank you both, that's very helpful. SarahSV (talk) 04:51, 28 January 2021 (UTC)

Request: Some way to show on a reliable sources Wikipedia page that it is a reliable source

Finding the connection between two categories

Listeria fails to update a WikiProject Women in Red page from Wikidata

Watching archived pages

That "Reverted" tag is misleading

Article / Page Referral Data

triple parens?

Radio button spacing issue in history view?

Some pending changes edits which should be auto-accepted

Real annoying message about the disabling of syntax highlighting

wikitable width

Wikipedia logs me out when I switch pages

Deleting the main page

Cleaning out deprecated global variables

Need help in desigining Mainpage

Wikipedia:Tools/Navigation shortcuts isn't working because Template:Navshortcuts has been deleted

<syntaxhighlight> paragraph overlaps with image, makes image unclickable

Another problematic user JS page

Possible bug in {{cite book}}

Userbox bug affecting an enclosing table

東京

Allow banned sources in talk pages

Help – Signpost template too large error

Unable to set Pending Changes

editautopatrolprotected level of protection

Sortable tables on mobile

Trouble creating User:54nd60x/skin.css

Animations/gifs don't play

Tech News: 2021-05

“New” skin

Is there a way to make a number count up every week?

Parser string functions not expanding

MediaWiki namespace edit requests

{{Annual readership}} not working on all browsers/OSs

Mystery modification

Need some help building a proforma with sections autofilled based on username

En Dashes on Template:Excerpt

Bug report for Excerpt

Is linking to articles beginning with a slash impossible in summaries?

Judgement Day (Watchlist)

Redirect will be redirected by bot; how to prevent this

Accounts lacking Login Wiki or Meta (or not appearing on CentralAuth at all)

IAbot can't work properly

Hard redirectFish-eye disease Googleable

Wikipedia:Sandbox organiser

Number of rows in edit box

Feature request: Preferences > Gadgets > Strike out usernames that have been blocked

Archive subpages over 20 level deep

2FA

checking screen sizes

Disabling the reply button

Vandalized Article

Tech News: 2021-06

Template determinism

Talk:Hezbollah - Military History Project not showing in mobile view

Textarea not always monospaced

Extra newlines when copypasting

Logins bounced

plugin error message

Temporary watchlist

Did Thursday come early this week?

Mildly irritating orange box

How to add/subtract numbers by column in the table?

Political party color using nowiki

Need some technical help

Last call for projects

RefToolbar and Cite button

Upon creating an article

Is there a way to collapse selected rows of a table?

Reverted tag missing

Uploads disabled vs. Permission error

Wikidata notices

New articles from specific category

User default sandbox

Maintenance categories

There seems to be a problem with your login session...

Minor rendition problem

Wikipedia mobile app keeps logging me out

Wikitable help; space between columns and rows?

resizing parts of an Infobox in mobile view

Extensions

need help making a change to a language code, if that is even possible.

what is the 'postMath' stripmarker?

Unusual width expansion of infobox templates using Ordnance Survey National Grid

Date formatting outside citations

Problem with tables

Time difference

Tech News: 2021-07

Where is this cite web "fetch" markup coming from?

Page Moves Labeled as Minor Edits

Edit description buttons

Temporary watching preference

PDF single full-width column

Template:enroute not working

Technical maintenance planed‬

Incorrect "months ago" info

ApiOutput

Article format issue due to long scripts

Global watchlist - Update 8

Question about user account renames

How to find sleepers?

Wikipedia:Most-wanted articles

Non-displaying characters

The French Wikipedia's birthdate

MLA??

Watched articles

Stub creator tool

Old dumps?

Force template to break onto new line

Unsuccessful Login Attempts

Simplify marking WikiProject status on talk page

Logout

Tech News: 2021-08

Related Articles

Wikiwand AI