Open main menu

Contents

regex

@@@ how to delete article between template and @@@ by regex thanksMonorodo (talk) 21:55, 4 April 2018 (UTC)

Hi @Monorodo:, you will need to be more detailed in what your challenge is. First, only administrators can delete pages. Please see the edit notice above ("Welcome to the village pump for technical issues.") and provide details about what is occurring. Thank you, — xaosflux Talk 22:04, 4 April 2018 (UTC)
{{Infobox football biography
| name = Adam Ståhl
| image = 
| fullname = Adam Mikael Sven Ståhl
| birth_date = {{birth date and age|1994|10|8}}
| birth_place = [[Malmö]], Sweden
| height = {{convert|1.86|m|abbr=on}}
| position = [[Midfielder]]
| currentclub = [[Kardemir Karabükspor]]
| clubnumber = 18
}}
any word
###

how to delete any word between template (Infobox football biography) and ### by regex code thanks Monorodo (talk) 23:24, 4 April 2018 (UTC)

Is "###" a literal string, or it represents any characters following any word ? -- GreenC 04:15, 5 April 2018 (UTC)

regex needed

hi I need :

  • We have the full XML of a Wikipedia article
  • We need just the Infobox and navbox and <title>New France</title>
<page>
    <title>New France</title>
    <ns>0</ns>
    <id>159828</id>
    <revision>
      <id>822862933</id>
{{Infobox former country
|native_name            = ''Nouvelle-France''
|conventional_long_name = New France
|common_name            = New France
}}
'''New France''' ({{lang-fr|Nouvelle-France}}) was the area [[French colonization of the Americas|colonized]] by [[France]] 
{{Navboxes
|title=Articles related to New France
|list1=
{{Canadian colonies}}
{{Canadian history}}
{{Former French colonies}}
{{European Colonization of North America}}
}}
{{DEFAULTSORT:New France}}
[[Category:Colonial United States (French)| ]]

I am use this regex (?=\{Infobox former conuntry)(\{([^{}]|(?1))*\})

this regex select only infobox. now I want select all except navbox and infobox? what is the best regex ? thanksMonorodo (talk) 10:21, 7 April 2018 (UTC)

@Monorodo: If you use a regex, your matching is likely to fail if the order of the parameters changes, or if there is a template inside one of the parameters, etc. The best way to do this is to use an XML parser to get the wikitext of the whole page, and then to use a wikitext parser to get the information from the wikitext. If you're using Python, you can use xml.etree.ElementTree and MWParserFromHell. Best — Mr. Stradivarius ♪ talk ♪ 01:24, 8 April 2018 (UTC)

regex for wikitable in xml file

{| class="wikitable"
|-
!colspan=9|[[Football at the Islamic Solidarity Games|Football at the Islamic Solidarity Games record]]
|-
|-
!Year
!Round
!Position
!{{Tooltip|Pld|Games played}}
!{{Tooltip|W|Won}}
!{{Tooltip|D|Drawn}}
!{{Tooltip|L|Lost}}
!{{Tooltip|GF|Goals for}}
!{{Tooltip|GA|Goals against}}
|-
|{{flagicon|Saudi Arabia}} [[Football at the 2005 Islamic Solidarity Games|2005]]||[[File:Silver medal icon.svg|16px]] ''Silver Medal''||2nd||5||2||2||1||4||2
|-
|{{flagicon|Iran}} [[2010 Islamic Solidarity Games|2010]]||colspan=8|''Cancelled''
|-
|{{flagicon|Indonesia}} [[Football at the 2013 Islamic Solidarity Games|2013]]||[[File:Gold medal icon.svg|16px]] '''Gold Medal'''||1st||4||3||0||1||6||3
|-
|{{flagicon|Azerbaijan}} [[Football at the 2017 Islamic Solidarity Games|2017]]||Group Stage||5th||3||1||2||0||2||1
|-
|{{flagicon|Turkey}} [[2021 Islamic Solidarity Games|2021]]||colspan=8|To Be Determined
|-
!Total||1 Title||3/3||12||6||4||2||12||6
|}

what is the regex to extract wikitable in xml file. thanksMonorodo (talk) 20:26, 10 April 2018 (UTC)

Isn't this a supplementary to your earlier thread Wikipedia:Village pump (technical)#regex needed? --Redrose64 🌹 (talk) 22:45, 10 April 2018 (UTC)

Hi Mr:User:Redrose64.yes

I cant work with python. I need only regex. thanks.Monorodo (talk) 23:38, 10 April 2018 (UTC)

If you can make some assumptions about the input, this can be greatly simplified. regex in itself only matches a pattern, perhaps putting the pieces into variables that can be used later. Do you want to code this in javascript, perhaps using the "replace" function? Then you can run it from your browser on request. I myself have coded this sort of thing by first clearing all variable values when encountering the xml code for the start of an object that is a row in your table, then when matching the codes signalling the start of field values, match everything to the end and putting that into a variable, then at the end xml tag for the structure print out your info in the table format. consider the /m for multiline, or /g for global repeated action on the string. Graeme Bartlett (talk) 00:39, 11 April 2018 (UTC)

@Monorodo: It guess it'll be a lot easier to help you, if you tell use, what exactly you are trying to archive. So:

  • What exactly do you need? Wikitext? HTML? Or just the content?
  • And what for? Another wiki(-article)? HTML? Word? A Database?

Since parsing nested templates in WikiText is a pain, probably the easiest way is not to use the Wikitext at all but it's HTML-representation. Thanks to the Document Object Model it is quite easy to access specific nodes (and there content) via JavaScript (or any other HTML-capable programming language). E.g. the following JS gives you all the tables in the Morocco_national_football_team-Artikel:

$('table.wikitable').each(function(){
  console.log( this.outerHTML );
});

// Martin Kraft (talk) 08:53, 13 April 2018 (UTC)

replace by regex

== See also ==
* [[Wallachia]]
== Gallery ==
<gallery>
File:Curtea de Arges.E.jpg|St. Nicholas Princely Church
File:Catedrala Curtea de Arges.jpg|Curtea de Argeș Cathedral in an 1880 engraving
</gallery>

Hello. How to move galley section above see also section by regex (pcre php). thanksMonorodo (talk) 23:21, 13 April 2018 (UTC)

502 error for a tools.wmflabs.org service

Is tools.wmflabs.org down? I get " Bad Gateway. nginx/1.13.6". Nurg (talk) 01:50, 14 April 2018 (UTC)

This is a link I'm trying - https://tools.wmflabs.org/enwp10/cgi-bin/list2.fcgi?run=yes&projecta=Solar_System&importance=Top-Class. Nurg (talk) 01:55, 14 April 2018 (UTC)
Not affecting all services at tools.wmflabs.org. I have now opened https://phabricator.wikimedia.org/T192192. Nurg (talk) 02:05, 14 April 2018 (UTC)

Bold and italic buttons in edit toolbar obscuring edit window text (Monobook, IE11)

On Monobook (IE11) the bold and italic buttons in the edit toolbar have suddenly started showing up for me as oversized squares that obscure the beginning of the top line of the text in the edit window. On Vector I still see the odd squares around the B and the I, but they don't protrude into the edit window. Is this happening for anyone else? Double sharp (talk) 14:19, 13 April 2018 (UTC)

It works for me. Does it happen if you log out and edit with MonoBook? What about safemode? Try to clear your cache. Do you see the single letters B and I or boxes spelling out "Bold" and "Italics"? I get rectangular hover boxes with the full words when I hover over the buttons but they don't obscure the edit area. PrimeHunter (talk) 15:51, 13 April 2018 (UTC)
It doesn't happen if I log out and edit with MonoBook, or in safemode. I see the single letters B and I. Double sharp (talk) 06:52, 14 April 2018 (UTC)
This code in User:Double sharp/common.css changes your buttons:
.oo-ui-buttonElement-button {
border: 1px solid black !important; 
background-image: linear-gradient(to bottom,#eee,#eee 100%) !important;
border-radius: 0 !important;
padding: 0.5rem !important;
transition: none !important;
}
MediaWiki tweaks may sometimes change the result. If you don't want to remove all of it then you can experiment by previewing User:Double sharp/common.css with variations of it. If you are in a special editor for CSS pages then click the <> icon at the top left to change to the normal editor so you can see the effect during normal editing. PrimeHunter (talk) 10:36, 14 April 2018 (UTC)
@PrimeHunter: Thanks for elucidating the problem! I've removed this code and it's now working properly. I originally added it after a suggestion by SoWhy from Wikipedia:Village_pump_(technical)/Archive_159#Save_changes_buttons_-_accessibility in July 2017, but it seems like Mikhail Ryazanov's solution works by itself already. Double sharp (talk) 12:26, 14 April 2018 (UTC)

Scripts assist

I have enabled some scripts in my custom js and vector js and cleared all cache but some features and functions that was visible at first seem to have disappeared please help what's is the problem and can you fix it please User:DashDog01/common.js User:DashDog01/vector.js — Preceding unsigned comment added by DashDog01 (talkcontribs) 01:27, 14 April 2018 (UTC)

Why you people didnt answer my question on scripts assistDashDog01 (talk) 08:33, 14 April 2018 (UTC)
Because most of us are volunteers (so we have no obligations), and many of us were sleeping during the few hours since you asked your question. --Pipetricker (talk) 12:29, 14 April 2018 (UTC)
Line 10 in the first example was missing a close bracket, and line 10 and 11 were missing semicolons. Line 12 in vector.js had an extra bracket. I've removed/added them, but I can't test it to see if it worked - you'll need to confirm if they were the issues. - Bilby (talk) 08:40, 14 April 2018 (UTC)
just wanted you to know problems fixed thanks for your help 👍 — Preceding unsigned comment added by DashDog01 (talkcontribs) 14:51, 14 April 2018 (UTC)

don't invite people to post messages into archives

If you try to access an archive that doesn't exist, like if I have two talk archive pages and you try to access Archive_3, which would normally be redlinked, Wikipedia says, "Post a message to Nick Levinson/Archive 3." It also says, "No messages have been posted for this user yet." Of course, they have been posted, but to the current talk page, not into the redlinked archive. I'm not sure if any users have nonexistent archives on their watchlists and would ever find out if any message were posted into a nonexistent archive, at least until the recipient tried to create a new archive, perhaps months or years later. (Per instructions, I submitted this to MediaWiki Phabricator, but I was referred back to here, so perhaps the VP(T) instructions should be edited, but that would be a separate issue.) Nick Levinson (talk) 00:26, 8 April 2018 (UTC)

Hi @Nick Levinson:, this is controlled through our template: Template:No article text, you can discuss improvements on its talk page (perhaps some conditional checking if something is a user talk subpage). — xaosflux Talk 00:54, 8 April 2018 (UTC)
Thank you. I opened a discussion at the template talk page. Nick Levinson (talk) 21:01, 14 April 2018 (UTC)

Crazy spike in viewing figures

Hi, any explanation for this?

https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-90&pages=Golden_Earring_discography — Preceding unsigned comment added by 86.191.155.106 (talk) 00:15, 11 April 2018 (UTC)

It was only on browsers identifying as "desktop", and not spiking on mobile. So likely the result of one computer gone crazy reloading, accidentally or deliberately. Maybe some person testing some code let it get out of control in a loop. Or perhaps something slipped on a keyboard,"r" and "ctrl" keys. Graeme Bartlett (talk) 00:47, 11 April 2018 (UTC)
OK, thanks for the suggestions. 86.191.155.106 (talk) 23:25, 14 April 2018 (UTC)

Template:Graph:Chart displays x-axis values in incorrect order

At User:Master of Time/sandbox#Earthquakes in Oklahoma, the x-axis values are displaying in the incorrect order; presumably because the first value is not an actual number, the template for whatever reason puts it at the end instead. Is there any workaround for this issue? Master of Time (talk) 23:25, 14 April 2018 (UTC)

Just to add to what I said earlier, even when I change the x value "'78–'99" to "1978–1999", the issue remains. The bar appears in the correct spot if I simply say "1978" or "1999", but that's not what I want it to say. Master of Time (talk) 23:32, 14 April 2018 (UTC)

Looking at the documentation at {{Graph:Chart}} and mw:Extension:Graph I can't see any notes on how the x values work. One of the demos starts with an example of a simple bar chart. Changing the first x value from 1 to 9 makes the item for 9 appear after the others. That is, the graph extension sorts the (x,y) pairs by the x value, putting strings after numbers. Yurik could explain what is going on. Johnuniq (talk) 00:54, 15 April 2018 (UTC)
Well, since you mentioned it, @Yurik: could you explain? Master of Time (talk) 06:15, 15 April 2018 (UTC)

Template:Connected contributor

Why is it showing people's names twice? See Talk:Jason Scott and Talk:William Connolley for what I'm talking about. The Blade of the Northern Lights (話して下さい) 00:38, 16 April 2018 (UTC)

The instances of the template used on those two talk pages were using the unsupported parameter |2= (a second unnamed parameter). I have created Category:Pages using connected contributor with unknown parameters to track such usages, that should be corrected to match the template's documentation. I have fixed one of them. – Jonesey95 (talk) 00:51, 16 April 2018 (UTC)
Thanks, and thank you also for fixing my autocorrrct misfire in the header (usually this works the other way around with capitalization, of course it'd go this way now!). The Blade of the Northern Lights (話して下さい) 01:02, 16 April 2018 (UTC)

Unable to delete anything

The "delete" functionality seems to have stopped working. I've tried it on a few speedies (example) and get:

"A database query error has occurred. This may indicate a bug in the software.

[Wsx7PgpAAEQAAEII7OoAAACE] 2018-04-10 08:53:14: Fatal exception of type "Wikimedia\Rdbms\DBQueryTimeoutError"

The deletion log appears to have had no activity for 15 minutes, which suggests other admins are having problems too. Ritchie333 (talk) (cont) 08:55, 10 April 2018 (UTC)

Same here. Will file at Phab. BethNaught (talk) 08:57, 10 April 2018 (UTC)
  • I just came over here to report the same thing myself - several deletions I just attempted gave the same error "A database query error has occurred. This may indicate a bug in the software." and "[Wsx78gpAMF0AAEo1QGwAAABE] 2018-04-10 08:56:15: Fatal exception of type "Wikimedia\Rdbms\DBQueryTimeoutError"" (with the "Wsx78gpAMF0AAEo1QGwAAABE" part different in each case). Boing! said Zebedee (talk) 08:58, 10 April 2018 (UTC)
(edit conflict) Was in the process of writing out the exact same message. I've tried deleting different namespaces and with different reasons but to no avail. I'm getting the exact same error message (except the string at the start which is different every time). Anarchyte (work | talk) 09:00, 10 April 2018 (UTC)
  • Huh:) The spammers ought to have a (predictably short) fun-time.....~ Winged BladesGodric 09:16, 10 April 2018 (UTC)

It's been fixed.   Anarchyte (work | talk) 09:26, 10 April 2018 (UTC)

Can confirm - this is fixed now :-) ~Oshwah~(talk) (contribs) 09:29, 10 April 2018 (UTC)
Yup - on one G12 I just looked at, somebody had done a courtesy blanking in the interim to get rid of the copyvio. Ritchie333 (talk) (cont) 09:30, 10 April 2018 (UTC)
Yep, all good here too. Boing! said Zebedee (talk) 09:31, 10 April 2018 (UTC)
It seems some regular database maintenance, that should normally have no impact on edits made deletes fail for 40 minutes. Database administrators will research why this happened and put measures in place to prevent from happening again. Apologies for the problems caused, this was a really bad thing to happen. We will share our findings here, for the time being, you may want to review edits from 9:40 to 10:19 UTCCorrection: 8:40 to 9:19 UTC in case some to-delete pages/editions were missed. --JCrespo (WMF) (talk) 09:36, 10 April 2018 (UTC)
Techie things go wrong, that's just life ;-) Thanks for the quick response. Boing! said Zebedee (talk) 09:37, 10 April 2018 (UTC)
I once discovered the hard way that if you start an OPTIMIZE TABLE on a mysql database, and then kill it with CTRL+C, it leaves the table in an unusable state. As Boing! said, things break, it's just life, and thanks for the prompt investigation. Ritchie333 (talk) (cont) 09:53, 10 April 2018 (UTC)
A preliminary incident report has been published at https://wikitech.wikimedia.org/wiki/Incident_documentation/20180410-Deleting_a_page_on_enwiki Sadly it is not as easy as "a wrong command was sent". The initial research points to a race condition on blocking on delete + blocking on maintenance, but only once we reduce the amount of locking done on delete (T191892) we will see if that prevents the issue in the future (other than monitor an correct earlier the issue). --JCrespo (WMF) (talk) 15:32, 10 April 2018 (UTC)
In a decades-long career as a user of large computer systems in industry, I always found it hard to distinguish between successful hacking and failed maintenance, when maintainers don’t manage to test the effects of their changes, or to note problems and notify users appropriately that the problem has been detected and is being fixed. Edison (talk) 14:30, 16 April 2018 (UTC)

Non-free images in portal

A number of non-free images have been somehow embedded or transcluded into Portal:Amiga which is a problem per WP:NFCC#9. Does anyone know how to tweak the portal's syntax so that it does not include any non-free content? The files are File:HAM6example.png, File:Amiga-90sLogo.gif, File:Amiga Logo 1985.svg and File:Recent Amiga.svg. -- Marchjuly (talk) 07:59, 16 April 2018 (UTC)

  • Reminds me of another problem with portals, that often people copy from articles without attribution. Anyhow, I've fixed it by reverting Legacypac's edit here. Also legacypac, atleast use {{#lsth:Article}} to transclude only the lead - the entire article shouldn't be dumped in the front of a portal lead Galobtter (pingó mió) 08:18, 16 April 2018 (UTC)
Was not aware of that bit of code. I did not like the content as it was presented. I'd rather redirect the entire portal to the associated topic Legacypac (talk) 15:11, 16 April 2018 (UTC)

Tech News: 2018-16

15:20, 16 April 2018 (UTC)

Two factor authentication for all users?

Seeing that account security is a big issue nowadays I was wondering about 2FA for Wikipedia - using either hardware keys or authenticator apps. I was surprised to learn that it is to a subset of users (mostly admin type people). Is there any reason it cannot be offered to regular users? — Preceding unsigned comment added by Master Of Ninja (talkcontribs) 16:19, 12 April 2018 (UTC)

This is proposed quite frequently, but there are scalability issues that prevent it from being rolled out more fully. You may wish to see the discussion from last month about enabling two-factor authentication for more information. --Deskana (talk) 16:35, 12 April 2018 (UTC)
Thank you for the explanation and link. - Master Of Ninja (talk) 17:36, 12 April 2018 (UTC)
The main issue that I see is that the current implementation has no backup. With most 2FA systems, there are other ways to get in to your account if you lose your authenticator software or the seed code (Google has a system that can call you with a login code, banks have customer service people who can ask you security questions or, if worst comes to worst, snail mail you to verify your identity, etc.). Unfortunately, most of those methods wouldn't work for Wikipedia since it would require the WMF storing your personal information, which they don't want to do (Wikipedia could use email as a second factor, but there are security issues with email). Instead, you have to open a bug report on Phabricator, wait for a developer to see it, hope that your IP hasn't changed so a checkuser can verify your ID, and then the developer has to manually edit the database to remove 2FA from your account--Ahecht (TALK
PAGE
) 22:57, 12 April 2018 (UTC)
It's not actually manually editing the database, it's running a maintenance script, but otherwise mostly correct. FACE WITH TEARS OF JOY [u+1F602] 04:00, 17 April 2018 (UTC)

Left-aligned Module:Photo montage

About Module:Photo montage, in using mobile view, all of the montage photos are left-align. For example, Desktop view, Mobile view. Could you change it to align-center? I think it looks nicer than now. How do you think?--126.236.202.216 (talk) 13:41, 13 April 2018 (UTC)

That page doesn't use that module. Also, please always report your exact browser version and your OS version. —TheDJ (talkcontribs) 18:40, 13 April 2018 (UTC)
The page had already been edited from Module:Photo montage to Module:Multiple image. See the former version, this problem is caused by Module:Photo montage. OS/iOS 11.3, brouser/Safari (sorry, version unknown)--126.236.202.216 (talk) 04:39, 14 April 2018 (UTC)
When this was reported, the then version of the article, which used Module:Photo montage, had the montage left-aligned for me when viewed in mobile view in Google Chrome on Mac OS X. Appears Frietjes' change of the module from table to div since then fixed that. --Pipetricker (talk) 21:46, 16 April 2018 (UTC)
  Done Thanks.—126.236.196.246 (talk) 04:28, 17 April 2018 (UTC)

Responsive MonoBook

General question: does anyone know of any particular reasons why making the MonoBook skin responsive for mobile (sidebar moved to bottom, navigation in general a bit collapsed, has proper scaling, looks like this, screenshots: phab:F16577440, phab:F16577439) would be a bad idea? As much as I'd argue that all skins should just work across devices and scale appropriately, it's come up that some people may not want this. Do folks here expect such to be the case, or something that should be considered a blocker? -— Isarra 19:02, 14 April 2018 (UTC)

You want to begin another project? Ruslik_Zero 20:50, 14 April 2018 (UTC)
XD --Izno (talk) 20:52, 14 April 2018 (UTC)
More accurate would be to say I already... did it, really, though it's a fairly small one. The patch exists and just needs some fixes before we merge it, but it also makes sense to verify that it's not likely to be a problem in practice beforehand as well. -— Isarra 21:45, 14 April 2018 (UTC)
I use Timeless presently and if I didn't have at least one sidebar for any medium-size or longer article I would be sad. --Izno (talk) 20:52, 14 April 2018 (UTC)
It'd still have the sidebar at normal resolutions, as the desktop layout is unchanged. The linked example has it live on my personal wiki, so if you make it narrow you can see it collapses into the mobile layout at 850px. -— Isarra 21:45, 14 April 2018 (UTC)
Right, but some people either a) edit on mobile or b) edit with a half-width screen. Actually, this is something about Timeless that bothers me come to think of it. :) --Izno (talk) 22:11, 14 April 2018 (UTC)
(And it bothers me more because I only have access to the tools in one place--the top... maybe I don't need them? --Izno (talk) 22:14, 14 April 2018 (UTC))
We should speak more about this, because it sounds like you might be hitting on something that could well be quite important in general for this stuff. What's the issue, exactly, that's been coming up? That it's just too wide that the layout changes? Is it causing problems specifically for the editing action, or just usage in general as an editor? -— Isarra 12:44, 17 April 2018 (UTC)
Really the idea here is to make ALL the skins work across devices. Timeless, MonoBook, Vector... -— Isarra 21:46, 14 April 2018 (UTC)
Sure. --Izno (talk) 22:11, 14 April 2018 (UTC)
I still see the sidebar at the left side, not at the bottom. Ruslik_Zero 20:28, 15 April 2018 (UTC)
It's only at small resolutions it does that. Under 850px at standard dpi. Otherwise it's exactly the same. -— Isarra 12:44, 17 April 2018 (UTC)

Why did I get a notification about this?

I got a notification that looked like this.

I'm rather baffled, since the linked diff appears to make no mention of me whatsoever. Can anyone explain why I received this notification? Eman235/talk 05:21, 14 April 2018 (UTC)

You probably got pinged because Atsme's user page got transcluded by accident. Probably because of the image with this caption: ""In Memorandum: An Editor's Hand after Scrolling down EEng's Talk Page." User:Eman235/talk 5:40 am, 29 May 2017 (UTC−5)". Anarchyte (work | talk) 06:30, 14 April 2018 (UTC)
@Eman235: Yes, Mr. Daniel Plainview (talk · contribs) wrote {{user:Atsme|Atsme}} presumably as a typo for either {{user|Atsme|Atsme}} or [[user:Atsme|Atsme]]. The first is only one character different, the second four; but whichever it was intended, it makes all the world of difference. So, everybody whose user page is linked from user:Atsme will have been notified for the same edit. --Redrose64 🌹 (talk) 09:11, 14 April 2018 (UTC)
Oh my!! Apologies to all... Atsme📞📧 09:36, 14 April 2018 (UTC)
Haha! That's an amazing mistake... Eman235/talk 02:11, 15 April 2018 (UTC)
LOL well that's a smidgen embarrassing. Sorry about the confusion. Still kind of trying to work out the best way to ping other users without the colon added by default. Mr. Daniel Plainview (talk) 15:08, 16 April 2018 (UTC)
Mr. Daniel Plainview You can use a simple link, as here; or a variety of templates, the simplest of which is {{u}}. --Redrose64 🌹 (talk) 20:53, 16 April 2018 (UTC)
I use {{yo|Example}} for pinging, it's easy enough. Home Lander (talk) 21:26, 16 April 2018 (UTC)
@Home Lander: {{yo}} is merely a redirect to {{reply to}} and as such it includes a colon, which is what Mr. Daniel Plainview doesn't want. --Redrose64 🌹 (talk) 13:54, 17 April 2018 (UTC)
It's pretty janky, but I did write a user script to help with this; it puts a drop-down below the edit box that gives you an option to insert a ping for you for anyone whose name is already linked in the section. Installation is to add mw.loader.load("/w/index.php?title=User:Writ Keeper/Scripts/autoping.js‎&action=raw&ctype=text/javascript"); to your common.js page. Like I said, it's a little janky, though; the user detection isn't perfect, and it doesn't always insert the ping in the right place. Still might be of use though. Writ Keeper  14:07, 17 April 2018 (UTC)
@Writ Keeper: I'm having trouble understanding how it works... presumably it scans for usernames and encloses these in [[User:username|username]]. It's something to do with a variable called this but I can't find where that is set, nor even declared (I guess it's a string?); the first use is as this.selectedIndex but even that isn't set up anywhere. --Redrose64 🌹 (talk) 18:09, 17 April 2018 (UTC)
@Redrose64: Not quite. What it does is it scans for usernames that are already linked in the section (as identified by the regex /\[\[User:([^|#\/\]]+)/g), which will usually be either people's pings or signatures. It then puts those names in a dropdown menu right above the edit summary box; when one of the usernames in the dropdown is chosen, the script will insert a ping, in the form @[[User:<username>|<username>]]: into the edit box at the cursor's last location. (If the cursor hasn't been in the editbox yet, or if the edit box has lost focus, the placement can still get pretty wonky.) The this that you see is the dropdown menu itself, such that this.selectedIndex is a reference to the dropdown entry chosen (i.e. the index that was selected). It's a Java-style this keyword; it refers to the object currently being operated on. In this context, it refers to the DOM object from the jQuery selector $("#pingMenu"), since the code is in that object's "change" event callback. (I spend a loooot of time in the jQuery API.) Writ Keeper  18:49, 17 April 2018 (UTC)
Writ Keeper: In which case, I don't see the point. Notifications are generated by links to a user page, as here. Changing such links to templates will make no difference at all as to whether a notification is sent or not. --Redrose64 🌹 (talk) 19:29, 17 April 2018 (UTC)
@Redrose64: I...think you still might not get how it works? The point is that you don't have to type out a user wiki link or remember a template format or (especially) copy and paste a user who has wacky characters in their name, you just click on a dropdown and the script writes it out for you. It doesn't change anything to anything else, it inserts something. Like, if I was too lazy to type out Redrose64, but wanted to ping you, I just choose the dropdown and the script writes out: @[[User:Redrose64|Redrose64]]: Writ Keeper  20:01, 17 April 2018 (UTC)
This did not notify me. It is fairly well known that the user link and signature must be added in the same post, but it is less well understood that it must all be done be a new post, not as an amendment to an existing post. That is also one of the reasons that I am sceptical about your script. If you link a few examples of where your script has been used, I should be able to determine if a notification would have been sent. --Redrose64 🌹 (talk) 20:43, 17 April 2018 (UTC)
@Redrose64: I mean, that has nothing to do with my script. This is an edit where I used the script, and the ping went through. This very post is another. Writ Keeper  20:48, 17 April 2018 (UTC)

───────────────────────── @Redrose64: Ha, when he wrote about not wanting a colon, I interpreted that as not having to type one, like he did above for the accidental userpage transclusion. LOL. Home Lander (talk) 13:57, 17 April 2018 (UTC)

Delete

Plz delete Module:Compare User:Capankajsmilyo(Talk | Infobox assistance) 12:08, 18 April 2018 (UTC)

  Done
For future tests like that consider using the module sandbox Module:Sandbox
Trappist the monk (talk) 12:13, 18 April 2018 (UTC)

Petscan down

https://petscan.wmflabs.org has been giving a "502 Bad Gateway error" for about the last 40 minutes. William Avery (talk) 20:29, 17 April 2018 (UTC)

It's still giving the same error. What's the best talk place to find out info about this? - X201 (talk) 07:59, 18 April 2018 (UTC)
Still down. Petscan is an invaluable maintenance tool: what is the best way to contact the WMF engineering team about this? -- The Anome (talk) 09:52, 18 April 2018 (UTC)
It's back now. It would still be useful to know where to report problems in future; and interesting to know why it went down for so long. William Avery (talk) 11:49, 18 April 2018 (UTC)
Well some searching often gives you the answer. In this case Wikipedia:PetScan comes up quite quickly, which gives you all the information you need. —TheDJ (talkcontribs)
@TheDJ: - I've got to disagree with you there. While there is reference that this is run by "Wikimedia Foundation's cloud computing environment", the "issues" link goes to the third party bitbucket.org reporting service. That page also says it is an "external tool", and yes it is not part of core, but if it is operated by WMF it is in the enterprise scope. So from just reading the page you referenced, this appears that there is some paid support from the foundation that perhaps should be engaged via phabricator - but like with what I think are too many services, there is no clear direction on how users should intake trouble reports and what to expect once it is submitted; or if after-action reports are going to be produced. This type of confusion is unfortunately common with tooling, especially knowing what aspects of outages are expected to be handled under an SLO by paid staff and which aspects are dependent on volunteers. — xaosflux Talk 14:58, 18 April 2018 (UTC)
Note, I'm really just trying to think of a way forward on issue reporting - perhaps we need some big templates (report an issue) that can be applied to the most popular tools - and they can link to or include specific directions for the bigger apps. — xaosflux Talk 15:04, 18 April 2018 (UTC)
Yeah, i guess a lot of people have trouble distinguish between "run on" and "run by" —TheDJ (talkcontribs) 15:26, 18 April 2018 (UTC)
And most people would have no way to know if something isn't working because an underlying system is malfunctioning. — xaosflux Talk 15:56, 18 April 2018 (UTC)
I found and followed the issues link, but it seemed to be for dev issues, rather than operational problems. William Avery (talk) 18:39, 18 April 2018 (UTC)

Replication lag

The on going replication lag on ToolForge is apparently due to normalization of users and IP addresses in the database. The "analytics" database server replag varies (due to the round-robin DNS?). The "web" server has no secondary, so lag is consistent.

@JCrespo (WMF):, would you like to add anything? — Dispenser 01:58, 19 April 2018 (UTC)

Replication lag should now be fixed on 2 out of 3 servers. We try to keep the web server as updated as possible, but the analytics ones, due to long running queries, sometimes it is simply not possible. If queries are short, you can use the web server. Due to the current topology and the nature of the changes (ROW based replication is more reliable, but also less flexible with schema changes), sometimes replication lag has to happen. The smaller tables that will be introduced will minimize in the future the schema change time. Also, there is ongoing plans to make redundant, not only the servers, as there is now, but the replication channel T190704, that should also minimize (but not make fully disappear) lagging due to maintenance- we are only waiting on new hardware to arrive for it. --JCrespo (WMF) (talk) 07:52, 19 April 2018 (UTC)

Invisible stub category?

For several days the redirect Romani people in Slovenia has been appearing in the list at Category:Stubs. There is no visible stub template or category in the redirect "article", nor anything in the history of the redirect which seems to show either of these. Articles from which the {{stub}} template (or the incorrect Category:Stubs) is removed (usually replaced by a specific stub template) normally disappear from the category listing instantly. Any ideas? I'd just like to stop it appearing when I'm stub-sorting. PamD 07:48, 19 April 2018 (UTC)

It's not there now. That may be because the article was, coincidentally, just edited and that would have purged cached information. Some background is at WP:PURGE but an easy way to purge would be to edit the article then click Publish without making any change and with no edit summary. Nothing will be recorded in the edit history but categories will be updated. Johnuniq (talk) 08:18, 19 April 2018 (UTC)
Thanks: will try to remember that for another time. PamD 11:37, 19 April 2018 (UTC)
A purge updates the page itself but not category pages and WhatLinksHere. A null edit updates all of it. Johnuniq described a null edit but called it a purge. PrimeHunter (talk)

Bluelink RGB color

Can someone link to the (formal) definition of the wikilink RGB colors (for example, the blue of the in blue wikilink)? I want to do contrast checks. - DePiep (talk) 09:58, 19 April 2018 (UTC)

See Help:Link_color. BlackcurrantTea (talk) 10:18, 19 April 2018 (UTC)
  Resolved
- DePiep (talk) 12:31, 19 April 2018 (UTC)

Table isn't working

The Fb cl header navbar template that I use on many of the pages I've created has stopped working, in spite of the fact that it has not yet been deleted. Why is this happening? Also, if it is deleted, what would be the easiest way to replace my tables? Birdsgeek (talk)

Examples:

@Birdsgeek: I moved the <noinclude> code to in front of the TfD tag and purged the cache on one of the articles on which it is used, and it seems to have made a difference. Is it behaving normally now? Home Lander (talk) 15:18, 19 April 2018 (UTC)
Yes, it is. Thank you! Birdsgeek (talkcontribs) 17:35, 19 April 2018

Username should be c/p-able

Hi. About WP:USERNAME. Whatever their fancy colors styling duh, I run into this problem: I cannot copy/paste their username. So I propose: Username must be c/p friendly (css wise). - DePiep (talk) —Preceding undated comment added 20:15, 15 April 2018 (UTC)

What are you referring to? "fancy colors styling" sounds like your issue is with customized signatures and not with the username policy. If you think a signature should display the real username so you can copy-paste from the rendered signature instead of the mandatory wikilink in the source then you can post a suggestion to Wikipedia talk:Signatures. If you see a signature without the username in the source then point the user to WP:SIGLINK. If you enable "Navigation popups" at Special:Preferences#mw-prefsection-gadgets then you can copy-paste the username from a popup when you hover over a signature. PrimeHunter (talk) 21:51, 15 April 2018 (UTC)
I say: Similar to {{DISPLAYTITLE:}}: the username in a sign must be copy/paste-able whatever the formatting (styling). Sure that could require a guideline change. - DePiep (talk) 20:44, 17 April 2018 (UTC)
Or WP:DISPLAYTITLE. Any phab id? - DePiep (talk) 21:04, 17 April 2018 (UTC)
I doubt there would be a phab id; it's not a technical problem, and I don't think there could be a technical solution, short of removing the ability to customize signatures. In what context do you need to copy and paste a user's name?Writ Keeper  21:12, 17 April 2018 (UTC)
hmm, in communication (think talkpage). It helps when the reply-to name is the same as the post-sign-name (duh). For *all* readers of a discussion. Today, one cannot trust searching a sign-name (because the user-name may be different & hidden). - DePiep (talk) 21:19, 17 April 2018 (UTC)
@DePiep: Please clarify. Is your complaint (1) that some rendered signatures do not show the username, or (2) that the usernames in some rendered signatures are not c/p-able? ―Mandruss  21:55, 17 April 2018 (UTC)
All of these, and more: they should be legible too. - DePiep (talk) 22:26, 17 April 2018 (UTC)
  • Examples of bad:
  1. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:41, 14 April 2018 (UTC) (see [6])
[[User:Pigsonthewing|Andy Mabbett]]
  • Primary needs: 1. username should be legible (reader's eye); 2. copy/paste name; 3. page searchable per visible name. 4. "Talk"-link clear. - DePiep (talk) 22:26, 17 April 2018 (UTC)
That's a bad example of bad, since it satisfies all four of your points. ―Mandruss  22:33, 17 April 2018 (UTC)
Userlink copy/pastes to: "Andy Mabbett", so User:Andy Mabbett. What is your question? - DePiep (talk) 22:37, 17 April 2018 (UTC)
Why can't you copy/paste from the source? There are a variety of easy solutions already available for this. Killiondude (talk) 22:40, 17 April 2018 (UTC)
1. Why must I? 2. Does it help reading, searching the talkpage? 3. Username can be hidden in irrelevant but disturbing code. (see source code from example #1; this is a simple example because it has no color & talkpage mixups). My question: did you yourself never met this situation? - DePiep (talk) 22:50, 17 April 2018 (UTC)
Andy gives the username following the userpage link.
Hey I agree with you in principle, I think the signature p&g should be improved and enforced. As a practical matter in the current environment, established editors are not going to change their sigs unless given a choice between that and a block, which is never going to happen. You might have some luck with a few new editors, the ones who haven't been here long enough to know that the community doesn't really care about compliance with signature p&g. Once they learn better, I suspect many of them will simply change back to what they had before. I think any improvement to the p&g is largely a waste of time. ―Mandruss  22:54, 17 April 2018 (UTC)
So now you say like: 'established users won't give up their privilege'. Sure, if that is how Wikipedia works. I repeat: usernames in talkpages should be open&clear this way, because it is a website. - DePiep (talk) 18:14, 19 April 2018 (UTC)

Autoblock detector tool broken?

The autoblock detector tool at https://tools.wmflabs.org/xtools/autoblock/ just seems to list all autoblocks, regardless of the username entered. Surely this is not the intended behavior? Can someone please investigate? -- The Anome (talk) 19:50, 17 April 2018 (UTC)

When you hit submit it's just redirecting to that wiki's Special:AutoblockList. The old tool didn't actually work anyway, at least at the time we retired it. What is the expected behaviour? Would the username pertain to the originally blocked user, or the blocking admin? For privacy reasons we can't reveal the account/IP that was autoblocked. MusikAnimal talk 19:50, 19 April 2018 (UTC)

Mapping content of different language articles to English

I find that Russian articles frequently deviate from English articles - to a point where false or misleading information is disseminated. For example, Echinacea (corn flower) has no reference in English that it may be used to isolate/purge radio-isotopes from the human body, yet this claim is made in the Russian version. So, there should be a simple translation program used (Google) to compare languages of the same article for words used that are not within the English (correct and trustworthy) version. A red flag would be raised and the article should be reviewed by a competent language volunteer to assure the reliability and accuracy of foreign language entries. Thanks! — Preceding unsigned comment added by NM Remote (talkcontribs) 05:13, 12 April 2018 (UTC)

I trust Google Translate even less than I trust a poorly-referenced Wikipedia article. --Redrose64 🌹 (talk) 07:25, 12 April 2018 (UTC)
Just chiming in to support Redrose64's comment; my feeling is the same as theirs. Mathglot (talk) 07:40, 12 April 2018 (UTC)
I'm not surprised by the claim; it's one of hundreds of miraculous-seeming claims for that plant. What you wouldn't find is any WP:MEDRS-qualifying sources that support such a claim. User:Jytdog or User:Alexbrn, do you know any editors who can read Russian and might be interested in looking into this report? The idea of being able to automatically identify significant differences might be a good one (e.g., it could help us find new content, so we could expand our articles), but in the short-term, it's possible that we could find someone to review that article and make sure that it meets that community's standards. WhatamIdoing (talk) 23:24, 19 April 2018 (UTC)
Thanks for the invitation but I don't read Russian and my hands are overfull dealing with woo-pushers here. Sorry. Jytdog (talk) 23:30, 19 April 2018 (UTC)

commons.wikimedia.org Log in problem

"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."

Z75SG61Ilunqpdb (talk) 23:23, 19 April 2018 (UTC)
Fixed: logout, delete all wikipedia and wikimedia cookies, login to wikimedia, login to wikipedia, now OK.
Z75SG61Ilunqpdb (talk) 23:31, 19 April 2018 (UTC)

Updating Good article lists

Hi. I have a few requests relating to maintaining good articles and was hoping I could get some help from the technically minded folk here.

  • Update articles that have been passed as a good article, but do not have the {{good article}} template. Legobot does this after a review, but I have come across a few that do not have it.[7][8][9]
  • Removing the {{good article}} template from articles that do not have it. This occurs usually when editors start a new article and copy paste from an existing good one.
  • Updating pages listed at Wikipedia:Good articles/all. This means removing ones that are no longer good articles and adding those that reviewers forgot to add.

We have Category:Good articles which lists article pages with the GA icon and Category:Wikipedia good articles which lists the talk pages with a passed review {{GA}}. There is a discrepancy of 25 between the two. There are about 2000 entries missing from Wikipedia:Good articles/all so that is where most of the work will lie. If it was possible to do it in petscan or some other tool that would be great as I could then run it myself in the future. Cheers AIRcorn (talk) 22:27, 19 April 2018 (UTC)

@Aircorn: I've created Wikipedia:Good articles/mismatches using AWB's list comparer. — JJMC89(T·C) 04:16, 20 April 2018 (UTC)
@JJMC89: Thanks a lot. That's perfect. I have AWB, but didn't even know about list comparer. I should be able to update the mismatches page myself in the future. AIRcorn (talk) 05:24, 20 April 2018 (UTC)

Aesthetic change

Quick note: The icons in the mw:2010 wikitext editor changed this week. I believe that it's just the latest phase of the years-long UI standardization work. It'll be in the upcoming issue of Tech News. Whatamidoing (WMF) (talk) 19:21, 20 April 2018 (UTC)

Discord

Sometimes References are split up in two or more subsections, each with its own sub-heading, say: ===Notes=== and ==-Citations===. Some editors happen not to like to have these sub-heading visible in the TOC. Which is the correct way to proceed:

  • {{TOC limit|2}}, which of course affects all subsections of the same level,
  • or
  • {{fakeheader|level=3|Notes}}, which has a punctual scope, but maybe also other technical drawbacks?

Thanks. Carlotm (talk) 08:23, 19 April 2018 (UTC)

Just because some editors don't want that doesn't make them right. WP:PSEUDOHEADTheDJ (talkcontribs) 08:49, 19 April 2018 (UTC)
Apparently 227 articles use fake heading template Galobtter (pingó mió) 10:27, 19 April 2018 (UTC)
So, the response is, do whatever you like? Carlotm (talk) 20:50, 19 April 2018 (UTC)
No, the response is DONT use Pseudo headings (like the guidelines tell you). Secondly don't fret so much about what goes into the ToC, it's an automated system, you can't control everything, just because you want to (which is why it's easier to use than LaTeX). And then be prepared for most people just doing whatever they want anyways. —TheDJ (talkcontribs) 22:40, 19 April 2018 (UTC)
Okay, that is the most sensible thing I've read on Wikipedia in a very long time. Thank you for the smile, TheDJ - not to mention the reality check. Risker (talk) 00:38, 20 April 2018 (UTC)
Thanks TheDJ. I'll try to enforce the DONT. Carlotm (talk) 21:04, 20 April 2018 (UTC)

making input box responsive

Is there any way by which one can make the <inputbox></inputbox> responsive to screen size using divs — FR+ 11:13, 20 April 2018 (UTC)

Do you have an example where you would want to apply this ? —TheDJ (talkcontribs) 12:55, 20 April 2018 (UTC)
TheDJ-User:FR30799386/Main Page — FR+ 16:10, 20 April 2018 (UTC)
@FR30799386: the problem is not the inputbox, it's the divs around it. You want a responsive gridlayout, for which you can best use flexbox layouting or display:table-cell —TheDJ (talkcontribs) 22:04, 20 April 2018 (UTC)

Checking "watch" box in edit action box doesn't put article on watch list

For some time now, my checking the "Watch this page" box in the edit action box doesn't accomplish what it used to, and I have to click on the star in the top-of-page tab bar to put an unwatched page on my watchlist. I'm using Firefox 59.0.2 (32-bit) under Windows 7. Dhtwiki (talk) 23:19, 19 April 2018 (UTC)

I have Firefox 59.0.2 (32-bit), but Windows 10. Clicking the "watch" box in the edit action box just worked for me. Are you using NoScript? If so, try disabling NoScript, and then checking the watch box. The latest version of NoScript interferes with much that it used not to. In my case, when I need to, I disable NoScript, change what I need and save, then re-check NoScript. — Maile (talk) 23:27, 19 April 2018 (UTC)
I used to, but no longer, use NoScript. However, I have been using Private Browsing, which may be the cause. I'll look into that. Evidently, the feature is working for others. Thanks for the reply. Dhtwiki (talk) 03:39, 20 April 2018 (UTC)
@Dhtwiki: I use Opera 36, no private browsing, no noscript. If I edit a page (or section) and check "Watch this page" and save, the top of the page doesn't update the watch star (tab if you use MonoBook skin); but if I reload the page (or go to page history) and check the tabs at the top, it shows as being watched; it also gets listed if I go straight to my watchlist after saving. To my mind there is some sort of caching delay such that an older version of the page is being displayed. --Redrose64 🌹 (talk) 07:02, 20 April 2018 (UTC)
I had a couple of user-warning templates to give out tonight, the usual cause of my putting new pages on my watchlist. I checked the box, then when the watch star showed white after I published my edit, I refreshed the page and the star showed blue. So, mystery sort-of solved. Thank you for pointing out the possibility of, what?, more aggressive caching on Firefox's part? Dhtwiki (talk) 03:56, 21 April 2018 (UTC)

links

Recently, when a cursor is over a link, there is a photo and a summary of the article. This is particularly bothersome when looking at an editor's contributions. It is also not helpful with articles as it can block a large portion of the text of the article.

Where can there be a discussion on ending this new practice? AN? Or somewhere else? Vanguard10 (talk) 02:52, 21 April 2018 (UTC)

@Vanguard10: it sounds like you have enabled NavigationPopups in Special:Preferences#mw-prefsection-gadgets - check if you can disable it there. — xaosflux Talk 02:57, 21 April 2018 (UTC)
Or possibly page previews at Special:Preferences#mw-prefsection-rendering. --Izno (talk) 03:29, 21 April 2018 (UTC)
If there is a gear wheel at the bottom right to disable it then it's mw:Page Previews. You can post feedback on the talk page. PrimeHunter (talk) 09:27, 21 April 2018 (UTC)

Special:Notifications

I'm getting an error of: PHP fatal error: Argument 1 passed to EchoEventPresentationModel::getTruncatedTitleText() must be an instance of Title, null given when I visit this page. It's the same on desktop and mobile. The buttons in the toolbar work fine SmartSE (talk) 22:51, 18 April 2018 (UTC)

  Works for me --Redrose64 🌹 (talk) 22:54, 18 April 2018 (UTC)
@Smartse: Works for me too. This may be an issue specific to a certain notification you have received; you may like to file a Phabricator task. — This, that and the other (talk) 01:32, 19 April 2018 (UTC)
@Redrose64 and This, that and the other: Thanks for looking. It's still not working for me so will file a report. SmartSE (talk) 11:24, 21 April 2018 (UTC)

Special:RandomInCategory

In its present form, Special:RandomInCategory is not very useful because it does not support subcategories. If, for example, you want a random scientist, you could try typing in Scientists for the category; but Category:Scientists has 25 subcategories and 17 articles, all of which are there because someone did not bother to classify them properly. Not a very representative sample! Are there any plans to expand its functionality? If not, is there an alternative way of finding random articles? RockMagnetist(talk) 19:10, 20 April 2018 (UTC)

Wikipedia:Random lists randomlink.js. The documentation mentions randomlink_hops but the script hasn't been edited since 2010 and the author is inactive. I don't know whether it works. PrimeHunter (talk) 09:34, 21 April 2018 (UTC)
I had looked at randomlink.js and didn't think that it would be useful for finding articles in a category; but now it occurs to me that one could run CatScan V2.0β and then use randomlink.js on the output. RockMagnetist(talk) 16:01, 21 April 2018 (UTC)

API calls "by hand" within Pywikibot: no public-facing method... why?

Background: I wanted something equivalent to the API's action=parse&prop=sections to use via Pywikibot. After some searching, I found the following in pywikibot/site.py's source code:

    # TODO: expand support to other parameters of action=parse?
    def get_parsed_page(self, page):
        """Retrieve parsed text of the page using action=parse."""
        req = self._simple_request(action='parse', page=page)
        data = req.submit()
        assert 'parse' in data, "API parse response lacks 'parse' key"
        assert 'text' in data['parse'], "API parse response lacks 'text' key"
        parsed_text = data['parse']['text']['*']
        return parsed_text

The TODO note lets me think that (for now) PWB implements only a small subset of the action=parse API, and in particular not what I wanted, but please let me know if that is wrong. However, that snippet hints at low-level methods that allow a dirty hack to make arbitrary API calls; the output of the API's https://en.wikipedia.org/w/api.php?action=parse&prop=sections&oldid=837538913 can be obtained via

 1 import pywikibot
 2 # Define subfunction for arbitrary API calls
 3 def manual_API_call(site, **kwargs):
 4     """Make API request by giving parameters 'by hand'."""
 5     request = site._simple_request(**kwargs)
 6     return request.submit()
 7 
 8 # Pass parameters by hand
 9 def find_sections(site, pagerevision):
10     params = {'action': 'parse',
11               'prop': 'sections',
12               'format': 'json',
13               'formatversion': 2,
14               'oldid': pagerevision,
15               }
16 
17     return manual_API_call(site, **params)
18 
19 print(find_sections(pywikibot.Site(), 837538913))  # same output as web request https://en.wikipedia.org/w/api.php?action=parse&prop=sections&oldid=837538913

Is there a PWB equivalent to the low-level API call manual_API_call defined above? If no, why not (since all the machinery is in place)? Defining it myself does not look great to me, since we are calling a "private" method of the pywikibot.APISite class, and this looks like bad practice to me. For instance, if _simple_request gets renamed or changed in the future, the above snippet will stop working, but the rename/change itself will not be marked "breaking" by PWB devs (since that is not a public method). TigraanClick here to contact me 15:28, 21 April 2018 (UTC)

@Tigraan: I don't know if there is an equivalent to your manual_API_call, but you can avoid using the private method. Add from pywikibot.data.api import Request after line 1, and change line 5 to request = Request.create_simple(site, **kwargs). — JJMC89(T·C) 18:29, 21 April 2018 (UTC)
Sweet! So it does exist, actually. Thanks! TigraanClick here to contact me 19:29, 21 April 2018 (UTC)

Pywikibot login doesn't read password file. Help/more doc? (on Toolforge)

So, the background is that I set up an account for Muninnbot on Toolforge. The bot should use Pywikibot's predefined login.main() to login, but I cannot make it to work. I believe I have read, understood and followed the instructions from the Toolforge manual for using PWB's shared install, as well as Russell Blau's starter on PWB.

I may have missed some doc because from what I can read I followed all the steps. Details with ssh sessions on Toolforge etc:

Simple session - login on Toolforge as the tool account, run login.main(), abort (ctrl-C) when credentials are requested
Linux tools-bastion-03 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64
Ubuntu 14.04.5 LTS
tools-bastion-03 is a Tool Labs bastion (toollabs::bastion)
======================================================================
_______  _____   _____         _______  _____   ______  ______ _______
   |    |     | |     | |      |______ |     | |_____/ |  ____ |______
   |    |_____| |_____| |_____ |       |_____| |    \_ |_____| |______
======================================================================
This is a server of the tools Cloud VPS project, the home of community
managed bots, webservices, and tools supporting the Wikimedia movement.

Use of this system is subject to the Toolforge Terms of Use,
Code of Conduct, and Privacy Policies:
- https://tools.wmflabs.org/?Rules

General guidance and help can be found at:
- https://tools.wmflabs.org/?Help

The last Puppet run was at Sun Apr 15 19:12:08 UTC 2018 (1 minutes ago). 
Last login: Sun Apr 15 18:47:04 2018 from 213-245-111-42.rev.numericable.fr
tigraan@tools-bastion-03:~$ become muninnbot
tools.muninnbot@tools-bastion-03:~$ python
Python 2.7.6 (default, Nov 23 2017, 15:49:48) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scripts import login
>>> login.main()
Password for user Muninnbot on wikipedia:en (no characters will be shown): Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/project/shared/pywikipedia/core/scripts/login.py", line 179, in main
    site.login(sysop, autocreate=autocreate)
  File "/data/project/shared/pywikipedia/core/pywikibot/site.py", line 2090, in login
    if loginMan.login(retry=True, autocreate=autocreate):
  File "/data/project/shared/pywikipedia/core/pywikibot/login.py", line 308, in login
    password=True)
  File "/data/project/shared/pywikipedia/core/pywikibot/bot.py", line 407, in input
    data = ui.input(question, password=password, default=default, force=force)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 292, in input
    text = self._input_reraise_cntl_c(password)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 310, in _input_reraise_cntl_c
    raise QuitKeyboardInterrupt()
pywikibot.bot_choice.QuitKeyboardInterrupt
Same problem, but with a non-interactive session (so it aborts because stdin is EOF)

As the tool account, I crontab'd to make the following Python test run on the grid, i.e. in the same conditions as the bot should run:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import datetime
from scripts import login
import sys

print(datetime.datetime.utcnow(), ' - test executed')
print('Python PATH is:', sys.path)
print('I will attempt to login via PWB')
login.main()
print('login.main() did not freeze')

results in the following cron-0.out file:

2018-04-15 18:50:22.191869  - test executed
Python PATH is: ['/mnt/nfs/labstore-secondary-tools-project/muninnbot/Teahouse-bot/scripts', '/data/project/shared/pywikipedia/core', '/data/project/shared/pywikipedia/core/externals/httplib2', '/shared/pywikipedia/core/scripts', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']
I will attempt to login via PWB
<class 'EOFError'>

(The script's last line is never reached) ...and the following cron-0.err file:

Password for user Muninnbot on wikipedia:en (no characters will be shown): WARNING: /usr/lib/python3.4/getpass.py:92: GetPassWarning: Can not control echo on the terminal.
  passwd = fallback_getpass(prompt, stream)

Warning: Password input may be echoed.
Traceback (most recent call last):
  File "/usr/lib/python3.4/getpass.py", line 70, in unix_getpass
    old = termios.tcgetattr(fd)     # a copy to save
termios.error: (25, 'Inappropriate ioctl for device')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/project/muninnbot/Teahouse-bot/scripts/test.py", line 12, in <module>
    login.main()
  File "/data/project/shared/pywikipedia/core/scripts/login.py", line 179, in main
    site.login(sysop, autocreate=autocreate)
  File "/data/project/shared/pywikipedia/core/pywikibot/site.py", line 2090, in login
    if loginMan.login(retry=True, autocreate=autocreate):
  File "/data/project/shared/pywikipedia/core/pywikibot/login.py", line 308, in login
    password=True)
  File "/data/project/shared/pywikipedia/core/pywikibot/bot.py", line 407, in input
    data = ui.input(question, password=password, default=default, force=force)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 292, in input
    text = self._input_reraise_cntl_c(password)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 306, in _input_reraise_cntl_c
    text = getpass.getpass('')
  File "/usr/lib/python3.4/getpass.py", line 92, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib/python3.4/getpass.py", line 127, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib/python3.4/getpass.py", line 149, in _raw_input
    raise EOFError
EOFError
CRITICAL: Closing network session.
I believe I have a correct setup for my password file

...i.e., I have a password file in the correct format, and user-config.py points to it:

tools.muninnbot@tools-bastion-03:~$ cat user-config.py | grep password_file
password_file = "/data/project/muninnbot/.pywikibot/passwords"
tools.muninnbot@tools-bastion-03:~$ cat /data/project/muninnbot/.pywikibot/passwords
("Munninbot", "<something>")

(Password redacted of course - but yes, I am sure I put the correct password in the file, I manage to log on en-wp manually by copy-pasting from the file)

I tried following the stack trace around PWB's source code to understand what is going on, but frankly I got lost fairly quickly. TigraanClick here to contact me 19:51, 15 April 2018 (UTC)

@Tigraan: What are using the login script for? If you just need to login, then try using something like this.
import pywikibot
site = pywikibot.Site() # or site = pywikibot.Site('en', 'wikipedia')
site.login() # Logs in
site.logged_in() # Test if logged in
— JJMC89(T·C) 04:00, 16 April 2018 (UTC)
@JJMC89: the exact same problem occurs with your code snippet (I had already tried using the pywikibot.Site().login() but did not keep the logs so I wanted to make sure to execute your exact snippet). It asks for the password (so it is a no-go in non-interactive session), and the stack trace points to similar places.
details for the stack trace but it is similar to above
Linux tools-bastion-03 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64
Ubuntu 14.04.5 LTS
tools-bastion-03 is a Tool Labs bastion (toollabs::bastion)
======================================================================
_______  _____   _____         _______  _____   ______  ______ _______
   |    |     | |     | |      |______ |     | |_____/ |  ____ |______
   |    |_____| |_____| |_____ |       |_____| |    \_ |_____| |______
======================================================================
This is a server of the tools Cloud VPS project, the home of community
managed bots, webservices, and tools supporting the Wikimedia movement.

Use of this system is subject to the Toolforge Terms of Use,
Code of Conduct, and Privacy Policies:
- https://tools.wmflabs.org/?Rules

General guidance and help can be found at:
- https://tools.wmflabs.org/?Help

The last Puppet run was at Mon Apr 16 17:42:40 UTC 2018 (21 minutes ago). 
Last login: Sun Apr 15 19:42:21 2018 from 213-245-111-42.rev.numericable.fr
tigraan@tools-bastion-03:~$ become muninnbot
tools.muninnbot@tools-bastion-03:~$ python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> site = pywikibot.Site()
>>> site
APISite("en", "wikipedia")
>>> site.login()
Password for user Muninnbot on wikipedia:en (no characters will be shown): Traceback (most recent call last):
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 306, in _input_reraise_cntl_c
    text = getpass.getpass('')
  File "/usr/lib/python3.4/getpass.py", line 78, in unix_getpass
    passwd = _raw_input(prompt, stream, input=input)
  File "/usr/lib/python3.4/getpass.py", line 147, in _raw_input
    line = input.readline()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/project/shared/pywikipedia/core/pywikibot/site.py", line 2090, in login
    if loginMan.login(retry=True, autocreate=autocreate):
  File "/data/project/shared/pywikipedia/core/pywikibot/login.py", line 308, in login
    password=True)
  File "/data/project/shared/pywikipedia/core/pywikibot/bot.py", line 407, in input
    data = ui.input(question, password=password, default=default, force=force)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 292, in input
    text = self._input_reraise_cntl_c(password)
  File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 310, in _input_reraise_cntl_c
    raise QuitKeyboardInterrupt()
pywikibot.bot_choice.QuitKeyboardInterrupt
>>> site.logged_in()
False

The intent is to login the bot and use scripts.add_text to post notifications. But I just don't manage to get the password file right. TigraanClick here to contact me 18:11, 16 April 2018 (UTC)
@Tigraan: My guess is that you're using the password for that account that you use for the web interface or the file permissions of the password file aren't correct. You should use OAuth (or BotBasswords). If you add me as a maintainer, I can poke around. — JJMC89(T·C) 02:52, 17 April 2018 (UTC)
@JJMC89: File permissions allow reading (see "I believe I have the correct setup for the password file" in the OP), unless Pywikibot does something funky (e.g. run from another account) but I do use the same password as for the web interface. Is that wrong? I will try OAuth instead in any case. Will keep you updated. TigraanClick here to contact me 08:22, 17 April 2018 (UTC)
@Tigraan: The passwords file in my directory is 700 (executable). It doesn't use another account, but there have been a number of breaking changes to the API action=login. Basically Pywikibot must use OAuth or BotPasswords instead of the username/password used for the web interface (interactive login). — JJMC89(T·C) 14:29, 17 April 2018 (UTC)
@JJMC89: I got an owner-only OAuth consumer at meta:Special:OAuthConsumerRegistration, added its content in a {{{1}}} line in user-config.py as described in mw:Manual:Pywikibot/OAuth (after having chmod 700 that file of course), and now it works. Many thanks! TigraanClick here to contact me 19:35, 21 April 2018 (UTC)
  Resolved

Reference misalignment

On List of songs in Guitar Hero, the reference list at the bottom of the page is numbered differently than the in-line reference tags (it skips #7). I think the cutoff has something to do with the group Note, and I'm not sure if this error has come because of the new-looking tooltips. For some odd reason I can't seem to recreate this on any page other than other Guitar Hero songs lists. Hameltion (talk, contribs) 18:38, 21 April 2018 (UTC)

Below is a simplified version of the issue with different numbers at C and Ref for C. PrimeHunter (talk) 19:37, 21 April 2018 (UTC)

A.[1]

B.[Note 1]

  1. ^ Ref for B

C[3]

  1. ^ Ref for A
  2. ^ Ref for C
You need to repeat the group name inside the <ref> tag. This is a long-standing problem. --Redrose64 🌹 (talk) 21:37, 21 April 2018 (UTC)

selective transclusion

This works:

{{#invoke:String|match|pattern='''.+|s = {{#lsth:Aviation}}}}

That transcludes the lead prose from the aviation article.

But, when I try and put it in a template, like this (to accept a parameter):

{{#invoke:String|match|pattern='''{{{1}}}.+|s = {{#lsth:{{{1}}}}}}}

It doesn't work.

All comments and suggestions are welcome.    — The Transhumanist   11:03, 21 April 2018 (UTC)

It's not possible. See Help:Labeled section transclusion#No template and phab:T39256. PrimeHunter (talk) 14:15, 21 April 2018 (UTC)
No, PrimeHunter, I think you are confusing defining LST blocks via template (not possible as you have proven) and calling LST via template, which there is no reason shouldn't be allowed by template. {{3x|p}}ery (talk) 14:19, 21 April 2018 (UTC)

Hello The Transhumanist. I think this will work:

{{#invoke:String|match|pattern='''.+|s = {{#lsth:{{#if:{{{1|}}}|{{{1}}}|}}}}}}

If I understand your intent correctly.--John Cline (talk) 19:25, 21 April 2018 (UTC)

@John Cline: This works:
{{#invoke:String|match|pattern='''.+|s = {{#lsth:{{{1}}}}}}}
And this works:
{{#invoke:String|match|pattern='''.+|s = {{#lsth:{{#if:{{{1|}}}|{{{1}}}|}}}}}}
But this does not work (I'd like to insert a parameter in the pattern):
{{#invoke:String|match|pattern='''{{{1}}}.+|s = {{#lsth:{{{1}}}}}}}
That returns the error "String Module Error: Match not found".    — The Transhumanist   22:27, 21 April 2018 (UTC)
The Transhumanist, when I test the code at Special:ExpandTemplates
{{User:The Transhumanist/Sandbox163|Aviation}}
returns the lead of the Aviation article, whereas
{{User:The Transhumanist/Sandbox164|Aviation}}
returns "String Module Error: Match not found". If your goal is to pass the article's title using unnamed parameter 1, Sandbox163 does this, if you want a regular expression that always matches the lead text excluding Twinkle tags, infoboxs, and the likes, that is proving to be a difficult undertaking. I am going to continue testing for a solution. I wish you the best in the mean time.--John Cline (talk) 23:50, 21 April 2018 (UTC)
Thank you very much. By the way, is there a way to include a variable in the match pattern?    — The Transhumanist   00:17, 22 April 2018 (UTC)
Lua Patterns doesn't appear to provide a way to do this directly. Though, there might be a work around somewhere. Still looking.    — The Transhumanist   01:31, 22 April 2018 (UTC)
@John Cline: There appears to be a way to include a Lua variable in a pattern match. How do you pull the current page name into a Lua variable?    — The Transhumanist   02:05, 22 April 2018 (UTC)
See my sandbox for a LUA module that might lead you to a solution. The module fetches everything from the beginning of an article to the first == section header. This works ok for Aviation because all of the hats are wrapped in <noinclude>...</noinclude> tags; try another article and the results might not be what you want.
Trappist the monk (talk) 10:39, 22 April 2018 (UTC)
I have Module:Sandbox/Galobtter/Get_lead; which has a nicer pattern that skips over to the lead. Galobtter (pingó mió) 10:46, 22 April 2018 (UTC)
I tried something sort of similar to your ".+\n(.-'''.+)". It sort of worked but left out the lead's image which {{#lsth:Aviation}} includes. When I try your pattern in my module, I get nil when used in mw.ustring.match (content, ".+\n(.-'''.+)"); or the whole article minus the lead image and hat templates when used in string.match (content, ".+\n(.-'''.+)");. It is not clear to me why the mw.ustring.match() matches nothing. I have seen this before. The latter is because there is nothing in your pattern to stop string.match() from matching and consuming characters except that it runs out of characters to match and consume.
Trappist the monk (talk) 11:28, 22 April 2018 (UTC)
When hovering over a blue linked title using popups the snippet rendered is similar to the snippet I believe we're trying to call. Does anyone know how popups retrieves its data (in case it can be used)?--John Cline (talk) 13:02, 22 April 2018 (UTC)
Looks to me like an API call that returns article content in json format. From that, popups creates the html for rendering. See MediaWiki:Gadget-popups.js and look for function loadAPIPreview.
Trappist the monk (talk) 14:58, 22 April 2018 (UTC)

Bug in "Articles created" tool in XTools

So I was checking my created articles list, and one thing I noticed is that the article Yurika Endō is in it. The thing is: I didn't create the page, the article had recently undergone a history merge with a userspace draft that I wrote last month. What a weird bug: is there a way to make this more accurate? Narutolovehinata5 tccsdnew 14:12, 22 April 2018 (UTC)

I don't think there is. Can't see anything on Wikipedia:Administrators'_guide/Fixing_cut-and-paste_moves#Bugs that would explain this though. --Emir of Wikipedia (talk) 14:20, 22 April 2018 (UTC)
What's happening here is there are two revisions (1, 2) that have a parent revision ID of 0, when this is normally only the case with the first revision. In my opinion it's a bug with how histories are merged, but I can't say for sure. For XTools, I think we can just find the oldest revision with a parent ID of 0, which in this case would correctly attribute the article creation to Juandmarco. I'll look into fixing this soon. MusikAnimal talk 15:22, 22 April 2018 (UTC)

Image displaying at 90-degree angle

  Resolved

Somehow File:Smokey the Bear sign.jpg is displaying sideways on Smokey_Bear. Can anyone explain and fix this? Please use {{ping}} to let me know. ―Justin (koavf)TCM 07:42, 19 April 2018 (UTC)

@Koavf:, it shows as properly vertical for me. Sometimes clearing your browser cache fixes stuff like this. If not, try looking at it in another browser and/or quitting and restarting your browser. BlackcurrantTea (talk) 08:28, 19 April 2018 (UTC)
@Koavf: is this resolved or are you still seeing the problem? BlackcurrantTea (talk) 09:51, 22 April 2018 (UTC)
@BlackcurrantTea: Resolved yes, thank you. ―Justin (koavf)TCM 20:27, 22 April 2018 (UTC)

Feedback from rollbackers and admins wanted: planned changes to rollback action

 
This is what the confirmation could look like – what do you think?

If you have rollback rights, you might be familiar with this problem: You want to thank someone, but you accidentally click the rollback link – since no confirmation is needed for rollbacks, this can lead to very unpleasant misunderstandings. A top wish from the German Technical Wishlist asked to solve this problem.

Here’s the solution suggested by the Technical Wishes team. If you have rollback rights, please let us know if this solution works for you. The feedback round ends on May 4th, 2018. -- Best, Johanna Strodt (WMDE) (talk) 13:37, 19 April 2018 (UTC)   Please post your assessments on the feedback page on Meta.

NB that this solution isn't just the illustrated confirmation box--it also entails removing the rollback link by default from all list views (page histories, watchlists, user contributions, basically anything that isn't the shown diff page). It's significantly more disruptive than I thought at first glance. Writ Keeper  13:58, 19 April 2018 (UTC)
Removing the rollback link from all list views is potentially very disruptive - such as when tracking a persistent vandalism-only user. This would not be acceptable, in my opinion. Home Lander (talk) 15:27, 19 April 2018 (UTC)
Agree. Although, maybe having an inline 2nd confirmation (such as the 'thank' feature), would be better than a pop-up? Rehman 15:31, 19 April 2018 (UTC)
Well there would be a preference. However indeed - part of why I requested rollback is precisely because it shows up in lists and allows quick reversion there, unlike Twinkle. Galobtter (pingó mió) 15:40, 19 April 2018 (UTC)

@Home Lander and Galobtter: Hello and thanks for your thoughts on this topic. I'd like to ask you to post your assessments on the feedback page on Meta. This way, all ideas and opinions can be discussed in one place. Have a good Monday!. -- Best, Johanna Strodt (WMDE) (talk) 08:11, 23 April 2018 (UTC)

We should really tell Rehman the same thing. --Redrose64 🌹 (talk) 08:22, 23 April 2018 (UTC)
Removing the "thank" function would also solve the problem of confusing the "thank" and "rollback" links. How many times do people accidentally click "rollback" without noticing? (If you notice, you just rollback your own edit, which takes 1 second and completely solves the problem). —Kusma (t·c) 09:01, 23 April 2018 (UTC)
@Kusma: Please comment there, not here. --Redrose64 🌹 (talk) 10:13, 23 April 2018 (UTC)

Tech News: 2018-17

18:16, 23 April 2018 (UTC)

Moving a page to an /Archive

Is it technically possible to prevent the sitewide ability to move a page to a subpage of a nonexistent page? If not, can a filter be used to flag such a move when it has occurred?--John Cline (talk) 04:53, 21 April 2018 (UTC)

Probably not, and that wouldn't be a good idea anyway. Talk:/r doesn't currently exist (although it would be perfectly valid to create it), but that should not prevent someone from moving subreddits whose articles are named incorrectly and have talk pages to the correct place. {{3x|p}}ery (talk) 13:31, 21 April 2018 (UTC)
Can you give an specific example of a move that was performed that you would want to prevent? — xaosflux Talk 00:00, 22 April 2018 (UTC)
I am primarily concerned with people moving their talk page, along with its history, into an /Archive and then recreating the page anew. It disjoints the page's history and makes searching for earlier edits difficult. Archiving should be accomplished by cut and paste and unfortunately, administrators are the leading culprits in the counter intuitive method of moving pages to /Archive instead. I can find examples later, I am leaving right now, but I've seen this done quite often and don't think it's much of a little known practice.--John Cline (talk) 00:26, 22 April 2018 (UTC)
The docs show that using move to archive a talk page is not recommended. However, moving was a documented method in September 2012 and many admins are old timers from long before then. It is irritating to watch a talk page where moving is used because you end up with many archive pages on your watchlist however it would be awkward getting people to change their ways. Johnuniq (talk) 01:49, 22 April 2018 (UTC)
I agree.--John Cline (talk) 13:05, 22 April 2018 (UTC)
I don't think that this method would stop people from moving their talk pages anyway. If you move User_talk:Example to User_talk:Example/Archive, then User_talk:Example exists. WhatamIdoing (talk) 17:22, 23 April 2018 (UTC)
Yes, thank you, I agree. It oft happens that one's "brilliant idea" isn't nearly as brilliant as one earlier believed. I know that sinking feeling, well; imagining 3 or 4 more reasons why it wouldn't actually work. Perhaps considering methods that won't work is the path to ideas that will? If so, I am keen in knowing I've done my part, perhaps even well. Thank you again.--John Cline (talk) 18:20, 23 April 2018 (UTC)

Can't open an edit window with the normal links

When I click on the edit link the page starts to open and then quickly goes back to read mode.--John Cline (talk) 13:12, 23 April 2018 (UTC)

The section edit link is working but the ones at the top of the page are not.--John Cline (talk) 13:21, 23 April 2018 (UTC)
Works for me. Please link an example page, post the url you get by clicking the Edit tab, name your browser and your skin at Special:Preferences#mw-prefsection-rendering, and say whether it happens when you are logged out. Does it happen on a short page like Example? does it happen with safemode? It may help to clear your cache. PrimeHunter (talk) 13:39, 23 April 2018 (UTC)
And tell us what editor you're using. --Izno (talk) 13:42, 23 April 2018 (UTC)
Ok, It has corrected, I cleared my temp files, cookies and cache, closed my open tabs, logged out, shut down, rebooted in safe mode (but accidentally didn't safeboot with networking), shut down again, started windows normally, and the top edit tab worked normally for me logged out, I logged in and it continues working. So I don't know what, if anything, I may have done to corrected things. Let me say, I did recently change a thing, and I may soon revert back to my former configuration, but let me ask if anyone knows of 1.1.1.1, known bugs with that service, and whether it could have contributed? I appreciate the help you guys so freely give, I'd have been technically lost long ago without you all! BTW Izno, what did you mean regarding what editor I am using?--John Cline (talk) 17:11, 23 April 2018 (UTC)
Wikipedia has settings to choose between multiple editors to edit pages. There is "Temporarily disable the visual editor while it is in beta" (WP:VisualEditor) at Special:Preferences#mw-prefsection-editing, "New wikitext mode" (mw:2017 wikitext editor) at Special:Preferences#mw-prefsection-betafeatures, and wikEd at Special:Preferences#mw-prefsection-gadgets. VisualEditor and "New wikitext mode" add tags to edits and you don't use those. You probably use the normal source editor. PrimeHunter (talk) 19:06, 23 April 2018 (UTC)
@John Cline: Some of these editors are mentioned in the Tech News: 2018-17 section directly below. --Redrose64 🌹 (talk) 20:41, 23 April 2018 (UTC)
Ok, I understand. Over the years, I have experimented with this and that, I probably have things enabled that I never use, and depreciated stuff that don't even work. As far as gadgets, I settled primarily on popups. I have something turned on that opens the edit window if I double tap any part of the page except if a blue link is there, which launches instead; that's about it. I used Huggle until it stopped allowing me to login, and AWB stopped working when I deleted Explorer (foolheatedly). It's probably my machine about to blink out; its been a good one, for a good while. Still wondering if somebody can speak about 1.1.1.1, That is the only thing substantially different that I have recently done. I stumbled on Draft:1.1.1.1, and ended up using the service. Best.--John Cline (talk) 21:10, 23 April 2018 (UTC)
@John Cline: MediaWiki has an overview of editor options, but even that is a tad outdated again already, since it doesn't include the syntaxhighlight options yet. —TheDJ (talkcontribs) 21:41, 23 April 2018 (UTC)
FWIW, using 1.1.1.1 as your dns resolver couldn't possibly cause this problem (Possibly it might cause you to not visit the most geographically close server to you, which could add a couple miliseconds to rendering time, particularly for not logged in users. If cloudflare was malicious (which they obviously aren't), they could in theory use the 1.1.1.1 dns server to prevent you from accessing wikipedia entirely). Bawolff (talk) 09:42, 24 April 2018 (UTC)

Wiki sending to a dangerous site?

−I noticed that many citations on a wikipedia page (https://en.wikipedia.org/wiki/Rajneesh) use a site called webcitation.org. My security software (Norton) is red-alerting this as a "known dangerous site"; I tried linking via a couple of the original URLs (i.e. without the webcitation.org prefix) and they worked fine that way. I started to correct them on the page -- which is a page I didn't even want to spend any of my time on -- but then thought 1) what if this is a problem on other pages as well; 2) what if it's one of those actions the bots do automatically and deliberately, like those I see with "external links modified" and 3) (the bottom line) I don't know nearly enough to mess with this stuff. So I cancelled my changes and came here. I know so little, I'm not even at all sure where I should be bringing this up. Hope someone who knows what they're doing will make the necessary changes, or send this request to the appropriate department, or -- flush this whole note down the toilet. Whatever... alacarte (talk) 22:49, 23 April 2018 (UTC)

I can't speak on the matter beyond mentioning a project page that talks about it here: Wikipedia:Using WebCite. I'll be reading it myself at watching this thread. Thanks.--John Cline (talk) 23:32, 23 April 2018 (UTC)
Your security software seems to have a false flag set for the URL. WebCite is a known safe archiving service on the Internet, and we make extensive use of it on Wikipedia. Maybe GreenC has some more information. --Izno (talk) 00:42, 24 April 2018 (UTC)
WebCite is the second most common web archiving site on English Wikipedia, behind web.archive.org .. there is nothing inherently wrong with it, but there might be pages archived there that are dangerous which is why Norton is flagging the entire webcite domain since it sees the source URL in the path portion of the webcitation URL. -- GreenC 01:10, 24 April 2018 (UTC)
@GreenC, Professor alacarte, and Izno: I've noticed that WebCite tends to directly load some third-party content, like Google Analytics tracking, instead of loading that content from an archived copy (which is what the Wayback Machine and archive.is do). This loading of content could be related to the security software, but I'm not sure. Jc86035 (talk) 11:58, 24 April 2018 (UTC)

Cursor insertion point

In the last month or so, editing has become much more difficult. if I backspace to the front of the line, instead of the cursor moving to the end of the previous line, it moves to a random place in the previous line. Hawkeye7 (discuss) 22:10, 23 April 2018 (UTC)

It works for me. What is your browser and your skin at Special:Preferences#mw-prefsection-rendering? Does it happen when you are logged out? Does it happen in safemode? Does it matter whether the previous line ends with a newline or is line wrapped? PrimeHunter (talk) 22:24, 23 April 2018 (UTC)
Browser if Firefox and the skin is Vector, which I think is the default. I don't have any new beta features switched on. Suppose I move the insert point to after "previous" in the line above, which is wrapped. I then add two blank lines and "xxxx" I then backspace over the xxxx and the blank lines. The cursor winds up in the word "ends". Works okay in safemode though. Hawkeye7 (discuss) 00:40, 24 April 2018 (UTC)
If it works in safemode then it's probably an issue with JavaScript, maybe in User:Hawkeye7/common.js, User:Hawkeye7/vector.js, or something enabled at Special:Preferences#mw-prefsection-gadgets. Does it happen when you are logged out? There is no reason to examine your JavaScript if it also happens logged out. PrimeHunter (talk) 01:11, 24 April 2018 (UTC)
Looks like an issue with Javascript. Hawkeye7 (discuss) 22:38, 24 April 2018 (UTC)
@Hawkeye7: See Wikipedia:Village pump (technical)/Archive 164#Severe display problems when editing and older archives. --Redrose64 🌹 (talk) 23:36, 23 April 2018 (UTC)

mw-datatable no longer highlights

Is there a reason why cells are no longer highlighted when hovered over in tables using the mw-datatable attribute? Per Help:Table#mw-datatable When a cursor hovers over the table, that row over which the cursor is on will be highlighted. Sadly this no longer works and there is no highlighting. 78.18.91.209 (talk) 18:20, 24 April 2018 (UTC)

1 2 3
1-1 2-1 3-1
1-2 2-2 3-2
It works for me in Firefox. What is your browser? Try to clear your cache. PrimeHunter (talk) 18:42, 24 April 2018 (UTC)
Works for me in Chrome as well. --SarekOfVulcan (talk) 19:07, 24 April 2018 (UTC)
Maybe it's the OS I'm using. I'm currently viewing Wikipedia in desktop mode on an iPad running iOS 10. Before yesterday whenever I tapped a cell it would be highlighted, yet that no longer happens for some reason. 78.18.91.209 (talk) 10:37, 25 April 2018 (UTC)

How do you transclude a lead only?

I've run into a bit of a mystery...

This works: {{#section:Donald Trump|Lead text}}

This doesn't work: {{#section:Physical geography|Lead text}}

Can anyone explain to me why?

Thank you.    — The Transhumanist   23:29, 14 April 2018 (UTC)

The wikitext at Donald Trump contains:
<section begin=Lead text />
...
<section end=Lead text />
At Help:Magic words, search for "#section" to find a link to documentation. I hope transclusions like this are rare because it is very unlikely that the same text is really useful in two places, and it is likely that future edits will either break the transclusion or make it inappropriate. Johnuniq (talk) 23:43, 14 April 2018 (UTC)
Thank you.
See Portal:Donald Trump, and Portal:Donald Trump/Intro.    — The Transhumanist   23:48, 14 April 2018 (UTC)
See Help:Labeled section transclusion. 21lima (talk) 12:19, 25 April 2018 (UTC)

Follow-up question

Is there a standard default name for a lead section?    — The Transhumanist   23:50, 14 April 2018 (UTC)

I found this: https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion#Transclude_the_introduction
But it picks up hatnotes too. Getting closer though. I'd like a method that doesn't require marking up the source page being transcluded, and if it is needed, makes it as minimally intrusive as possible.    — The Transhumanist   00:08, 15 April 2018 (UTC)
The Transhumanist, {{#invoke:String|match|pattern='''.+|s = {{#lsth:Water}}}} All text after bold Galobtter (pingó mió) 06:21, 15 April 2018 (UTC)
Galobtter, thank you. By the way, sometimes the bold isn't at the very beginning of the lead paragraph. How would you catch those?    — The Transhumanist   06:27, 15 April 2018 (UTC)
Taking Tropical Cyclone, this pattern only seems to work ok when in a module, thus: {{#invoke:Get lead|main|{{#lsth:Tropical cyclone}}}} Galobtter (pingó mió) 06:49, 15 April 2018 (UTC)
Galobtter, Can this technique be extended to transcluding the content of a short description template?, Something in the line of {{#invoke:String|match|pattern={{short description|= {{#lsth:Water}}}} · · · Peter (Southwood) (talk): 08:04, 17 April 2018 (UTC)
Hmm, @Pbsouthwood: {{#invoke:String|match|pattern=<div class="shortdescription.-</div>|s = {{#lsth:Water}}}}. Not running the code here, since it adds the short description to the village pump (that can be fixed, depending on your use case- what are you trying to do this for?) Galobtter (pingó mió) 08:47, 17 April 2018 (UTC)
Galobtter, there are uses as an annotation in some lists, such as indexes, where transcluding the short description after the link would be very informative. All that would be needed is the text from the unique short description in an article. Not needed for disambiguations etc where the same short description applies to several articles/pages. I have an idea that this would be helpful for creating automated indexes, possibly for outline lists too, maybe also as an option in category lists. Really anywhere that a short description after a link might be useful. Could also have applications in hovercards. This sort of application would make the short descriptions really useful inside Wikipedia instead of just being a pain in the butt forced on us to avoid being described by Wikidata.· · · Peter (Southwood) (talk): 09:35, 17 April 2018 (UTC)

How hard would it be to set up ORES for the Draft: space?

Hi all

So I've tried recently to find articles within the Draft: space from Wikipedia:Drafts to work on but I have found it very difficult because I have to go to each one individually to check what is in it.

I think that having a page with an ORES rating would make this much easier. E.g pages with an ORES rating of 0.9 are probably more likely to only need a small amount of work to get them to being publishable than an article with a rating of 0.4.

Would this be difficult to set up? I would be very happy to work on the documentation around it if someone technical could set up the actual rating system.

Thanks

John Cummings (talk) 19:55, 22 March 2018 (UTC)

Hi John Cummings! I don't think it would be that hard. I'd like to see the Page Curation Tool start integrating ORES predictions. I think the most difficult work to make that happen is to make ORES predictions available inside of MediaWiki so tools like that can query them in a straightforward way. We've just finished work to make those predictions available. See Phab:T175757 (pending deployment). We'll be working to get that "draftquality" and "drafttopic" predictions in there soon too -- probably with a month. These predictions will allow you to quickly identify new drafts that are likely to be spam (G11), attack (G10), or vandalism (G3) (draftquality) and to categorize the rest by topic so you can review the drafts that align with your interests/expertise -- maybe even prioritizing the highest quality drafts first (wp10/articlequality). Once these are available in MediaWiki's internal databases, we need to find places to surface the predictions and to filter by them. Where would you want see the predictions surfaced? I think once we decide on a location to surface a prediction, we can build a better estimate of how much dev work it'll take. --Halfak (WMF) (talk) 21:49, 22 March 2018 (UTC)
I've run ORES over AFC before: User:SQL/Interesting_AFC_Stuff. no one seemed interested. SQLQuery me! 01:36, 23 March 2018 (UTC)
Thanks very much @Halfak (WMF): and @SQL:. @SQL I never saw this before, very interesting :) @Halfak, this is very timely, I guess I'd really like to see Wikipedia:Drafts become a place for people to rescue drafts from drafts hell and get turned into articles, to become more of a place to collaborate on articles before (not only after) they are published. I think this will help less effort be wasted when people create a draft or when an Article for Deletion is moved to draft space. Do you have an example of what an ORES page might look like? I'm aware that there may be a very high volume of drafts so displaying them all may be quite a large page..... Thanks again both. John Cummings (talk) 15:33, 23 March 2018 (UTC)
I've been thinking about tagging draft talkpages with ORES wp10 predictions, and maybe draftquality as well. It wouldn't be terribly hard. SQLQuery me! 03:25, 24 March 2018 (UTC)
SQL cool! Nice to see you experimenting with that. I think we need to find a good way to get this in front of people. E.g. if we could implement a sort-of backlog browser that could take advantage of some of these machine predictions and other filter criteria, we could help people to "rescue drafts from drafts hell and get turned into articles". John Cummings, I can't tell you how excited I am that you've got an eye for this too. I wonder if we could work with SQL to develop a sort-able list using the draft quality/wp10 models now. If we have a few people try to use it, that will help us better understand what is missing -- and what would be important for the draft hell backlog browser tool. :) I'm hoping to have the draft topic model deployed and well documented in time for the Wikimedia Hackathon in Barcelona. Either of you interested in attending or maybe just hacking with us remotely? --Halfak (WMF) (talk) 20:46, 26 March 2018 (UTC)
@Halfak (WMF): Sort-able list is on it's way now (was very easy to code). Will be at User:SQL/AFC-Ores when it's done. I'll have SQLBot update it daily / make source code available later tonight. SQLQuery me! 21:29, 26 March 2018 (UTC)
@Halfak (WMF): and @SQL: I'm not a programmer but very eager to help to get this off the ground where I can (I guess working on usability, beta testing etc), ley me know where I can help :) John Cummings (talk) 21:42, 26 March 2018 (UTC)
@SQL:, this looks amazing, one suggestion I have is to have table sorted by OK% as the default. Is is possible to have it updated more commonly than daily? Just thinking if it becomes popular then people may trip over each other? John Cummings (talk) 21:45, 26 March 2018 (UTC)
@John Cummings: - Easily implemented! First run just completed. How often would you think we should update? SQLQuery me! 21:56, 26 March 2018 (UTC)

@SQL: super, is it possible to add definitions of the table columns at the top? I'm not clear what they all mean exactly. No idea how often they should update, is there something similar we could look at and see how often they update? John Cummings (talk) 09:52, 27 March 2018 (UTC)

  Done SQLQuery me! 16:22, 27 March 2018 (UTC)
@SQL: amazing work. My only other thoughts are about the order of the columns, I think the OK% column is probably the most useful so should go before the other % measurements (it appears to be a summary of the other percentages?). Just an observation that having one very long file name in the the Article column makes that line very long. These are all a bit of nitpicking rather than big things, I feel like its ready to be used when a short introduction is added to explain the purpose of the list, something like:
This list (generated by ORES) rates draft articles to help users find suitable articles to improve and then publish.
Any suggestions on the best way to integrate this into the Wikipedia:Drafts page? I'm aware its a very long list...perhaps a translusion with a scrolling section or a collapsable section?
John Cummings (talk) 19:31, 27 March 2018 (UTC)
Two things - one, I was thinking of removing "Vandalism" and "Attack" all together - they aren't really useful in this context. Two - maybe 'top 25 possible copyvios' / 'top 25 spam' / bottom (and/or top) 25 OK tables transcluded onto WP:DRAFTS? SQLQuery me! 02:52, 29 March 2018 (UTC)
@SQL:, I think removing vandalism and attack are a good idea, I've been looking at the spam articles and many of them appear to be of notable subjects, just written in a tone that doesn't fit with Wikipedia so I'm not sure how useful that label is. Transcluding the top 25 would be a great idea, I guess if one gets popular you could upgrade to top 50... Let me know if there's anything I can do to help, once its live I'll be sure to let people know about it :) John Cummings (talk) 07:57, 29 March 2018 (UTC)
@SQL: oh p.s I think just replacing the 'finding drafts' section on Wikipedia:Drafts is probably the best place to put it. If you want any help rewriting the section let me know. John Cummings (talk) 12:36, 2 April 2018 (UTC)
@John Cummings: Sorry for the delay, but I've got it up at Wikipedia:WikiProject Articles for creation/tables - the bot should finish filling in the FA/GA prediction table (and flipping the 'top 25 ok' table) in ~5-6 hours. SQLQuery me! 12:30, 5 April 2018 (UTC)

Hi John Cummings. I would suggest to use wikiproject assessment for this. See User:Kephir/gadgets/rater.js, Special:PageAssessments (example). Gryllida (talk) 21:05, 25 March 2018 (UTC)

Thanks @Gryllida:, I'll take a look. John Cummings (talk) 21:42, 26 March 2018 (UTC)
The other WP:RATER has ORES built in for page assessment as well (I have found it to be reasonably accurate). Kephir's rater has some advantages, but isn't being actively developed any more. — Insertcleverphrasehere (or here) 23:47, 26 March 2018 (UTC)
Did not know of it before, thank you. Gryllida 01:38, 27 March 2018 (UTC)

Hi all -- I'm Marshall Miller; I'm a new product manager on the Community Tech team with DannyH at WMF. As part of the follow-up to ACTRIAL, the Community Tech team is going to have some bandwidth over the next couple months to take on an improvement to the AfC process. I've been following along with the conversation on this talk page and elsewhere to learn about the biggest challenges facing AfC and the ideas for improving it.

I’ve attempted to summarize AfC’s challenges, goals, and ideas for improvement here: AfC Process Improvement May 2018.

The idea of integrating ORES scores or Copyvio checks in a streamlined fashion into the AfC workflow is one of the ideas being discussed on the talk page of that summary linked above, so I wanted to let you know in case you want to participate in that conversation over the course of the next week as we consolidate around some of the top ideas for improvements that WMF could help with.

FYI: John Cummings, SQL, Insertcleverphrasehere, Gryllida, Halfak (WMF)

MMiller (WMF) (talk) 21:57, 4 April 2018 (UTC)

Responded on the talk page. I am not an experienced articles for creation reviewer, so please be wary of some of my comments that might be misleading or counter constructive as a result. --Gryllida (talk) 04:02, 5 April 2018 (UTC)
the tables seem very useful. I want to track what actually happens to the articles there. Is there any automatic way of providing a historical record of what gets added/removed, or snapshots at intervals? (If not, I may do it manually). DGG ( talk ) 20:23, 11 April 2018 (UTC)
@DGG: - This query should do it. It only goes back as far as the recentchanges table, IIRC 30 days-ish? SQLQuery me! 01:35, 14 April 2018 (UTC)
There's also the Daily Delta, updated daily. SQLQuery me! 01:36, 14 April 2018 (UTC)

@SQL:, Wikipedia:Drafts looks great :), I just did a bit of testing with a few volunteers and we have a few requests of changes:

  1. Please can the list update more frequently or have a manual update button (its not clear on how regularly the page updates).
  2. Is it possible to link to longer lists than top 25 for each section? E.g Top 250? One of the testers wanted to start using the draft space as their place to create articles and getting to the Top 25 is a bit of a dark art.
  3. The term 'OK drafts' is a bit confusing, is saying 'highest quality' and 'lowest quality' a good alternative?

Thanks

John Cummings (talk) 14:14, 13 April 2018 (UTC)

@John Cummings: - Absolutely on all 3 points. It was updating daily, I've bumped that to ~every 6 hours. I can make some more subtables, possibly tomorrow. I don't think the OK% reflects the quality of the draft, but I'm not 100% sure. mw:ORES#Curation_support reads like it might be the inverse of the likelyhood of being CSD'ed for being spam/vandalism/attack. SQLQuery me! 01:41, 14 April 2018 (UTC)
@SQL:, great stuff :), I'll think some more about the naming, maybe just 'highest rated', 'lowest rated' and 'potential spam'? Top 25 OK is very underwhelming :) John Cummings (talk) 13:33, 15 April 2018 (UTC)

@John Cummings: - Looks like the change presented here was undone by @Moxy: - [13]. SQLQuery me! 04:17, 21 April 2018 (UTC)

Great chart but simply overwhelmed for transclusion on this explanatory supplement page arrived at by many many talks. Pls dont make our editors looking to derive serviceable information from the page to have to scroll though a huge list at the start of a parent type article. --Moxy (talk) 04:35, 21 April 2018 (UTC) {{quotation }}
Discussion is now also at Wikipedia_talk:Drafts#Draft_chart_talk. SQLQuery me! 05:01, 21 April 2018 (UTC)

User:Kudpung you may be interested in how this could dovetail into adding Drafts to the Page Curation function. Legacypac (talk) 05:02, 21 April 2018 (UTC)

The irony is that Aaron is talking about this earlier in the thread with John Cummings but they don't appear to be aware of the other discussions on the same topics in in other venues where Marshall Miller is also leading some discussions. I'm never sure how the work at the WMF overlaps, or if indeed it does, or even if we are discussing these issues at too many different venues.. That said, the simple answer is that it should dovetail. This is one of the very reasons why the New Pages Feed should incorporate the flow of Drafts - because AfC doesn't have such a flow overview. So it's all a bit chicken-egg. AFAICS, many new page reviewers AFAICS don't appear to be bothered to use most of the excellent article meta information that is displayed in the feed, which is a great shame, so I'm not sure if ORES would help much. It might even lead them to making even more superficial checks on the new pages. Too much reliance on AI technology sometimes turns out to be a net negative to accurate productivity. That said, overall, NPPers do indeed do a somewhat better job than the AfCers - for now. With the correct training in these apps however, perhaps we would meet our goals, but even the tutorial at WP:NPP seems to be a challenge for some. On a more positive note, I believe there is finally a fully automatic replacement for the sorely missed Coren Search Bot under development which would help enormously.Kudpung กุดผึ้ง (talk) 05:42, 21 April 2018 (UTC)

@SQL:, I reverted the removal. John Cummings (talk) 12:02, 21 April 2018 (UTC)

Could you address the concern raised.--Moxy (talk) 12:40, 21 April 2018 (UTC)
@Moxy:, can you describe your concern here so that we can have a discussion about if it is possible to address this? Simply removing a useful tool people are using because you don't like it is disruptive editing, please leave the tool on the page until we have discussed. Thanks, John Cummings (talk) 15:33, 21 April 2018 (UTC)
Suggestion: we change the tables to collapsed so that they are easy to find and access but do not take up room for people who are not using them. John Cummings (talk) 15:37, 21 April 2018 (UTC)
Er, no, John Cummings, it's fairly standard practice - suggest you self-revert until there is consensus to include. Moxy is right: whether the tool is useful or not, it overwhelms the informational page, and it really isn't necessary to transclude it there at all for people to use it. Nikkimaria (talk) 15:43, 21 April 2018 (UTC)

I suggest something like this, it maintains all of the functionality of the uncollapsed version and addresses the concerns of taking up space on the page John Cummings (talk) 16:11, 21 April 2018 (UTC)

@John Cummings: Take a look at how this page's TOC now looks and behaves with that in place. Nikkimaria (talk) 16:19, 21 April 2018 (UTC)
@Nikkimaria: Ah, sorry, forgot to change the section headings to <h4>, if the problem persists (I'm sure that's a way of avoiding it making section headings but it doesn't seem to have filtered through) I can just change it to big or something else. Other than the formatting issue I feel like this resolves the issue, what do you think? John Cummings (talk) 23:21, 21 April 2018 (UTC)
Still persisting on my end. @Moxy: thoughts? Nikkimaria (talk) 00:50, 22 April 2018 (UTC)
As mentioned above simply overwhelming for an information page. Guess I will have to make a new page WP:Finding drafts for this table and explain what the chart is about and more info about the topic. Will do this in the next few days. This does raise a concern.....do we have these walls of links on other info type pages. If so perhaps we should explain accessibility concerns about this on our MOS pages. It's disruptive to have a wall of links leading to editors not getting serviceable information..... we know statistically editors simply won't scroll through all that mess wall of text to get any information *Which_parts_of_an_article_do_readers_read....we structure our help pages in a certain format for a reason Moxy (talk) 01:40, 22 April 2018 (UTC)

Thanks for bringing my attention back to the conversation here, Kudpung. Aaron and I have been talking a lot about this in the last couple weeks, so he and I are in sync on this front. SQL and John Cummings -- what you have been putting together so far is really great, and the Community Tech team is thinking on our end what we can learn from it as we mull over the potential improvements to AfC summarized here, which sound similar to what you're doing. We'll be able to build some more detail around our thoughts this coming week as people come back from Wikimedia Conference. -- MMiller (WMF) (talk) 15:26, 21 April 2018 (UTC)

Thank you, Marshall for pointing me to this. Aaron, SQL, John Cummings, and Gryllida, these lists are really excellent. However, and as mentioned above by DGG, doing this post facto they represent a lot of work for anyone wishing to work through them manually. AFAICS, AfC still has no recognised work flow in the sense that one exists for WP:NPP as shown in the chart by Insertcleverphrasehere, which while complex and somewhat intimidating, has received positive comments by serveral users, or the more simplified one at File:New Page Review Flow Chart.jpg. IMO, the meta information provided by ORES would be very useful if it were highlighted in the Special:NewPagesFeed if submitted drafts were to be incorporated there with a user defined option in the preferences to select drafts only. More reason to consider migrating the functions of AfC into the NewPagesFeed and Curation UIs. Despite the resistance of Community Tech to prioritise the upgrades required for these UIs, IMO this would be a more rational deployment of WMF resources.Kudpung กุดผึ้ง (talk) 01:41, 22 April 2018 (UTC)

@Kudpung:, Marshall, Aaron, SQL, DGG, Moxy, and Gryllida are you happy for me to re-add the list in the form below until a longer term solution is potentially found through the suggestions above? This solution reduces the size of the list when people aren't using it to 2 lines and does not effect the table of contents. I hope this proof of concept helps to show the value of having something more developed and so make it more likely to have resources allocated to making it happen. John Cummings (talk) 07:23, 22 April 2018 (UTC)

I understand Moxy's concerns. My concern is more: Who will go to Wikipedia:Drafts and see and use the list even if it is collapsed? Perhaps it could be on a dedicated sub-page such as, just for example, Wikipedia:Drafts/ORES. That said, it would need to be linked to from AfC (and/or) the page patrolling tools. However, that would be the same parallel problem with CopyPatrol.Halfak (WMF) has said he would like to see ORES integrated into the Curation system, but I think he means into new arriving articles. I can certainly imaging that meta information being included in the entries in the Special:NewPagesFeed. So I ask again, what is the problem with giving AfC the opportunity to share that feed for their reviewing? It would seem to me to be a ready-made solution (bar the engineering). Kudpung กุดผึ้ง (talk) 08:53, 22 April 2018 (UTC)
Interesting Drafts (ORES)

Interesting Drafts (ORES)

Top 25 "OK" Drafts

Article Prediction Predicted Class Copyvio% OK% Spam% Topic
Draft:GM1913 OK Stub 0% 99.9% 0% Best Guess: Assistance.Maintenance, Geography.Countries
Draft:Plant_410_Civil_Aviation OK Stub 0% 99.8% 0% Best Guess: Geography.Europe, Geography.Countries
Draft:List_of_Forum_for_Democracy_Members_of_the_European_Parliament OK Start 0% 99.6% 0.2% Geography.Europe, History_And_Society.Politics and government
Draft:Edwin_Harley OK Stub 0% 99.5% 0.2% Culture.Entertainment
Draft:Coe_Glade OK Stub 11.67% 99.5% 0.2% Best Guess: Geography.Countries, Culture.Language and literature
Draft:Johan_Engström OK Stub 1.87% 99.5% 0.2% Culture.Language and literature
Draft:SD2SNES OK Stub 0% 99.5% 0.3% STEM.Technology
Draft:Penstemon_multiflorus OK Stub 0% 99.5% 0.2% STEM.Biology
Draft:Hugh_Allan_(actor) OK Start 0% 99.5% 0.3% Best Guess: Culture.Entertainment, Assistance.Maintenance
Draft:Genesis_(JJ_Lin_album) OK Stub 0% 99.5% 0.2% Best Guess: Geography.Countries, Culture.Performing arts
Draft:2019_Mid_Sussex_District_Council_elections OK Stub 3.45% 99.5% 0.2% History_And_Society.Politics and government
Draft:Housing_Problems_(film) OK Stub 0.99% 99.5% 0.3% Best Guess: Geography.Europe, Geography.Countries
Draft:Keane_Duncan OK Stub 0% 99.4% 0.3% Geography.Europe, Culture.Language and literature
Draft:B-segment_Modular_Architecture_platform OK Stub 8.19% 99.4% 0.3% Best Guess: History_And_Society.Transportation, History_And_Society.Business and economics
Draft:Wilkes-Barre_Academy OK Start 0% 99.4% 0.4% Geography.Countries
Draft:European_Marathi_Sammelan OK Stub 0% 99.4% 0.2% Geography.Countries
Draft:Saudi_Arabia_national_football_team_results_(2000–09) OK Start 3.85% 99.4% 0.1% Geography.Countries
Draft:Ayaka_Hosoda OK Start 0% 99.4% 0.2% Culture.Sports
Draft:Mid_Sussex_District_Council_election,_2019 OK Stub 1.42% 99.4% 0.3% History_And_Society.Politics and government
Draft:2018–19_Under_19_Bundesliga OK Start 5.66% 99.3% 0.3% Geography.Europe, Culture.Sports
Draft:Critical_green_inclusions OK Start 0.99% 99.3% 0.3% STEM.Medicine
Draft:Battle_of_Bovey_Heath OK Stub 5.56% 99.3% 0.3% History_And_Society.Military and warfare
Draft:Galactia_mollis OK Stub 0% 99.3% 0.4% STEM.Biology
Draft:2020_European_Figure_Skating_Championships OK Stub 0% 99.3% 0.2% Geography.Europe, Culture.Sports
Draft:Epididymis_evolution_from_reptiles_to_mammals OK C 0% 99.3% 0.4% STEM.Biology

Bottom 25 "OK" Drafts

Article Prediction Predicted Class Copyvio% OK% Spam% Topic
Draft:National_Centre_for_Farmer_Health_(NCFH) 10.71%% 0% 0% Geography.Oceania
Draft:Shivaji_Sondhi 11.5%% 0% 0% Culture.Language and literature, STEM.Physics
Draft:BeBot_Chatbot 0.99%% 0% 0% Geography.Countries
Draft:Weston_FC 0.99%% 0% 0% Geography.Countries, Culture.Sports
Draft:Roger_Karrer 0%% 0% 0% Culture.Language and literature, Culture.Sports
Draft:Steve_Bloom_(screenwriter) 4.71%% 0% 0% Best Guess: Culture.Entertainment, Assistance.Maintenance
Draft:Andrew_James_Jensen 0%% 0% 0% Culture.Language and literature, Culture.Sports
Draft:Ernie_Hall 36.31%% 0% 0% Culture.Language and literature
Draft:Russell_Resolutions 0%% 0% 0% History_And_Society.Politics and government
Draft:Michael_Oakley_(musician) 16.67%% 0% 0% Best Guess: Culture.Language and literature, Culture.Internet culture
Draft:Paul_T._Liamos 0%% 0% 0% Geography.Countries, Culture.Language and literature
Draft:Pat_Edo 7.41%% 0% 0% Geography.Countries, Culture.Language and literature
Draft:Angelo_Ranaldo 20%% 0% 0% History_And_Society.Business and economics
Draft:Tilden_School_for_Teaching_Health 66.81%% 0% 0% Best Guess: Geography.Countries, Culture.Plastic arts
Draft:George_Mye 5.66%% 0% 0% Culture.Language and literature, Geography.Oceania
Draft:James_C._Madden,_V 1.96%% 0% 0% Culture.Language and literature, History_And_Society.Business and economics
Draft:Women_Also_Know_History 1.96%% 0% 0% Best Guess: Geography.Countries, Culture.Language and literature
Draft:Moqui_Software 1.96%% 0% 0% STEM.Technology
Draft:Brian_Howell 17.36%% 0% 0% Best Guess: Culture.Language and literature, Culture.Visual arts
Draft:Pattaya_Panthers_Rugby_Football_Club 0.99%% 0% 0% Culture.Sports
Draft:John_Vinzelts 8.26%% 0% 0% Geography.Countries
Draft:Rungh 0%% 0% 0% Best Guess: Geography.Countries, Culture.Language and literature
Draft:Victor_Cuadras 1.96%% 0% 0% Geography.Countries
Draft:Christian_Heritage_Centre 3.85%% 0% 0% Geography.Europe, Culture.Philosophy and religion
Draft:The_Independent_Photographer 0%% 0% 0% Culture.Visual arts

Top 25 "Spam" Drafts

Article Prediction Predicted Class Copyvio% OK% Spam% Topic
Draft:Daily_Qudrat spam Start 6.54% 2.2% 97.4% Geography.Countries
Draft:Actors'_&_Entertainers'_Benevolent_Fund_of_Queensland spam C 9.09% 5.2% 94.7% Best Guess: History_And_Society.Business and economics, Culture.Language and literature
Draft:Hud_Abu_Bakar spam C 0% 4.7% 94.3% Geography.Countries
Draft:Paula_Pinho_Martins_Nacif spam Start 20% 6.5% 92.9% Culture.Visual arts
Draft:Yes_Please_(band) spam Start 0% 7.6% 91.6% Best Guess: Culture.Performing arts, Culture.Language and literature
Draft:Mordecai_Uka_Dike spam Start 23.66% 6.3% 91.3% Best Guess: History_And_Society.History and society, Geography.Countries
Draft:A._Patrick_Imbardelli spam Start 6.54% 8.1% 91.2% Geography.Countries, History_And_Society.Business and economics
Draft:Souptic_Chakraborty spam C 37.5% 3.4% 91.1% Geography.Countries, Culture.Entertainment
Draft:Chandana_Deepti spam Start 62.35% 7.7% 91% Geography.Countries
Draft:Gulshan_Kumar_Film_and_Television_Institute_of_India spam C 55.88% 6.5% 90.9% Geography.Countries
Draft:Bonwell_Kadyankena_Rodgers spam Start 0.99% 9% 90.4% Culture.Internet culture
Draft:Kaschkasch spam C 1.96% 9.3% 90.2% Best Guess: Geography.Europe, Culture.Language and literature
Draft:IACCM_(International_Association_for_Contract_and_Commercial_Management) spam C 17.36% 9.5% 90.1% STEM.Technology, History_And_Society.Business and economics
Draft:CHA_medical_group spam Start 0% 9.8% 89.6% Geography.Countries
Draft:Navroop_Sahdev spam C 16.67% 1% 88.7% Culture.Language and literature
Draft:Bubele_Boughton_Mgele_-_Complete spam C 6.54% 1% 88.7% Culture.Language and literature, Culture.Performing arts
Draft:Acharya_Anupam_Jolly spam Start 1.96% 1% 88.5% Geography.Countries, Culture.Language and literature
Draft:G3_Canada spam Stub 5.66% 11.9% 87.8% History_And_Society.Business and economics
Draft:Trishna_Samat spam Start 5.66% 11% 87.8% Geography.Countries, Culture.Language and literature
Draft:The_Unividuals spam Start 0% 8.7% 87.4% Culture.Visual arts
Draft:Foreign_Exchange_Dealers_Association_of_India_(FEDAI) spam Start 99.68% 11.7% 85.9% Geography.Countries, History_And_Society.Business and economics
Draft:Sweta_Mangal spam Start 0% 12.3% 85.6% Culture.Language and literature
Draft:Sti_Cobra spam Stub 1.96% 13.7% 85.4% Best Guess: Geography.Countries, Assistance.Maintenance
Draft:Samrat_Choudhury spam Start 18.03% 14.2% 85.3% Geography.Countries, Culture.Language and literature
Draft:Thembi_Siweya spam C 0% 14.1% 85% Best Guess: Geography.Countries, Culture.Language and literature

FA/GA Projected

Article Prediction Predicted Class Copyvio% OK% Spam% Topic
Draft:Progress_D-236 OK GA 2.91% 99% 0.3% History_And_Society.Transportation
Draft:Convergence_Culture OK FA 6.54% 98.6% 0.7% Culture.Media, Culture.Internet culture
Draft:PapSEEK OK FA 10.71% 98.2% 0.7% STEM.Chemistry, STEM.Medicine
Draft:Cremation_in_Japan OK FA 2.91% 97.9% 0.6% Geography.Countries
Draft:Verdes-Montenegro_family OK GA 4.76% 97.9% 0.7% Geography.Europe, Culture.Language and literature
Draft:Islamophobia_in_France OK GA 3.85% 97.8% 0.5% History_And_Society.History and society, Culture.Philosophy and religion
Draft:Bowel_Function OK GA 0.99% 97.8% 1% STEM.Medicine
Draft:Political_Narrative OK GA 2.91% 97.8% 0.4% History_And_Society.Politics and government, Culture.Language and literature
Draft:Håvar_Bauck OK GA 1.96% 97.7% 1.3% Geography.Countries
Draft:Gender_roles_in_traditional_Chinese_society OK FA 0.99% 97.6% 1.2% History_And_Society.History and society
Draft:The_Scots_College_Boycott OK GA 39.39% 97.6% 1.6% History_And_Society.Education, Geography.Oceania
Draft:Heterobimetallic_catalysis OK GA 0% 97.5% 0.5% STEM.Chemistry
Draft:Voelkel_GmbH OK GA 0.99% 97.5% 1.1% Geography.Europe
Draft:Plasma_coblation OK GA 0% 97.4% 1.4% STEM.Medicine
Draft:St_Andrew_the_Apostle_Catholic_Church,_Marayong OK FA 87.6% 97.3% 0.9% Culture.Philosophy and religion
Draft:Medium_Essentialism OK FA 1.96% 97.1% 1.3% Best Guess: Culture.Visual arts, Culture.Language and literature
Draft:Windsor_Tablelands OK FA 11.5% 96.9% 1.5% STEM.Biology, Geography.Oceania
Draft:Pacific-Wide_Slow_Pitch_Softball_Tournament OK FA 0.99% 96.7% 0.9% Best Guess: Geography.Countries, Culture.Sports
Draft:Aging_of_Australia OK GA 16.67% 96.6% 2.4% Best Guess: History_And_Society.History and society, Geography.Countries
Draft:Disappearance_of_Joe_Keller OK GA 9.91% 96.6% 1% Geography.Countries
Draft:Intellectual_Courage OK FA 13.79% 96.6% 2.2% History_And_Society.History and society, Culture.Philosophy and religion
Draft:The_de-industrialization_in_India OK GA 7.41% 96.2% 2.3% Geography.Countries
Draft:Archaeology_of_Greece OK GA 0% 96% 0.2% History_And_Society.History and society, Geography.Europe
Draft:Beethoven's_Compositional_Method OK GA 3.85% 95.9% 1.7% Culture.Language and literature
Draft:Pangborn_Sensory_Science_Symposium OK GA 2.91% 95.8% 2.6% Best Guess: Geography.Europe, Assistance.Maintenance
Draft:Alex_Simon OK GA 0.99% 95.8% 1.6% Culture.Language and literature, Culture.Sports
Draft:Economic_History_of_Sweden's_Age_of_Liberty OK FA 7.41% 95.6% 1.4% Geography.Europe, History_And_Society.Business and economics
Draft:Paraway_Pastoral_Company OK GA 19.35% 95.6% 2.9% Geography.Oceania
Draft:Germanisation_of_Prussia OK GA 0% 95.6% 2.2% History_And_Society.History and society, Geography.Europe
Draft:Jose_Manuel_Romualdez OK GA 32.89% 95.2% 2.7% Geography.Countries, Culture.Language and literature
Draft:Music_Industry_of_Australia OK FA 0% 95.2% 2.9% Best Guess: History_And_Society.Business and economics, Geography.Oceania
Draft:Jörg_Hermann_Fritz OK GA 19.35% 95.2% 2.7% STEM.Medicine, STEM.Biology
Draft:Wine_and_preservatives OK GA 0.99% 95% 3.2% Culture.Food and drink, STEM.Chemistry
Draft:KBS_Finding_Dispersed_Families OK GA 0% 94.8% 1.9% Geography.Countries
Draft:Skin_temperature OK FA 8.26% 94.7% 1.5% STEM.Medicine
Draft:Arctic_Geopolitics OK FA 11.5% 94.3% 2.9% Best Guess: History_And_Society.History and society, Geography.Countries
Draft:The_Alchemist_Cookbook OK GA 18.03% 94.2% 2% Culture.Entertainment
Draft:Human_Rights_In_Namibia OK GA 7.41% 93.7% 3.6% History_And_Society.History and society, History_And_Society.Politics and government
Draft:Justin_Woolverton OK GA 9.91% 93.6% 3.8% Best Guess: History_And_Society.Business and economics, Culture.Internet culture
Draft:1721_Boston_smallpox_outbreak OK GA 21.26% 93.5% 4.6% Culture.Language and literature, STEM.Medicine
Draft:The_Centre_for_Experimental_Art_and_Communication_(CEAC) OK FA 41.18% 93.3% 4.5% Culture.Visual arts
Draft:2004_Alor_earthquake OK GA 13.04% 93.2% 4% Geography.Countries, STEM.Geosciences
Draft:Sky_Pirates_(professional_wrestling) OK GA 0% 93.1% 3.8% Culture.Entertainment
Draft:IBM_Smart_business OK GA 24.24% 93% 4.8% STEM.Technology, History_And_Society.Business and economics
Draft:Twitter_Feud OK FA 62.5% 93% 4.6% Culture.Internet culture, Culture.Language and literature
Draft:Jarman-Bell_Principle OK FA 1.96% 92.8% 1.7% STEM.Biology
Draft:Lennie_Gwyther OK FA 0% 92.8% 5.6% Culture.Language and literature, Geography.Oceania
Draft:Richard_Henry_Jahns OK GA 15.97% 92.8% 3.8% Culture.Language and literature
Draft:Cole_Bartiromo OK FA 48.45% 92.4% 3.8% Culture.Internet culture
Draft:The_Good_Immigrant OK FA 45.36% 92.1% 5.1% Geography.Countries, Culture.Language and literature
Draft:Franklin_C._Bing OK GA 20.63% 91.9% 4.9% Culture.Language and literature, STEM.Medicine
Draft:Nourishment_of_Organs_in_Traditional_Chinese_Medicine OK FA 18.7% 91.9% 4.6% STEM.Medicine
Draft:Roma_Route OK GA 37.11% 91.7% 2.4% Geography.Europe
Draft:Bucks-Bulls_rivalry OK GA 42.86% 91.6% 4.7% Geography.Countries, Culture.Sports
Draft:IBM_smart_business OK GA 25.37% 91.6% 6.3% STEM.Technology, History_And_Society.Business and economics
Draft:Educreations OK FA 57.63% 91.3% 4.8% STEM.Technology, Culture.Internet culture
Draft:Monitory_Democracy OK GA 32.89% 91.3% 5.3% History_And_Society.History and society, History_And_Society.Politics and government
Draft:The_de-industrialisation_in_India OK GA 9.09% 91.3% 4.7% Geography.Countries, History_And_Society.Business and economics
Draft:Australia-Indonesia_Security_Agreements OK FA 46.24% 91.3% 4% Geography.Oceania
Draft:Joshua_Becker OK GA 9.09% 91.3% 7.1% Culture.Language and literature
Draft:Japanese_influence_on_Korean_culture OK FA 0% 91.1% 5.1% Geography.Countries
Draft:Big_Pineapple_Music_Festival OK GA 12.28% 90.8% 2.8% Geography.Oceania
Draft:Rural_Industry_In_India OK FA 0.99% 90.4% 4.5% Geography.Countries, History_And_Society.Business and economics
Draft:NBA_Superteams OK FA 7.41% 89.6% 7.7% Culture.Sports
Draft:Google_Data_Leakage_2018 OK GA 9.09% 88.7% 8.3% STEM.Technology, Culture.Internet culture
Draft:Museum_of_Contemporary_Art_Santa_Barbara OK GA 21.26% 88.5% 8.5% Culture.Visual arts
Draft:Scientific_homophobia OK FA 45.95% 88.5% 3.4% History_And_Society.History and society, STEM.Medicine
Draft:National_Selections_in_the_Eurovision_Song_Contest OK FA 2.91% 87.8% 7.6% Geography.Europe, Culture.Broadcasting
Draft:Puppet_Film OK GA 30.07% 87.6% 8.2% Culture.Entertainment
Draft:Andreas_Elpidorou OK GA 35.06% 87.2% 9% Culture.Language and literature
Draft:Sedimentary_Isostasy OK FA 0% 87% 2.1% STEM.Geosciences
Draft:Michael_Jordan_Bonema OK GA 0% 86.9% 8.1% Best Guess: Culture.Performing arts, Culture.Language and literature
Draft:Waste_Management_in_South_Korea OK GA 10.71% 86.5% 9.6% Best Guess: STEM.Engineering, History_And_Society.Business and economics
Draft:Instinct_diet OK GA 15.97% 86.3% 3.6% Culture.Food and drink
Draft:MIKE_(Recording_Artist) OK GA 25.93% 86.3% 8.6% Best Guess: Culture.Performing arts, Culture.Language and literature
Draft:Carla_Green OK GA 47.09% 85.1% 5.2% STEM.Biology
Draft:The_Pitchforks_of_Duke_University OK GA 19.35% 84.9% 9.2% Best Guess: Culture.Language and literature, Culture.Performing arts
Draft:Effects_of_Hurricane_Maria_in_Puerto_Rico OK FA 21.88% 84.1% 8.6% Geography.Countries
Draft:Rockets-Warriors_Rivalry OK FA 5.66% 82.5% 8.3% Culture.Sports
Draft:Leszek_Rychlewski OK GA 4.76% 82% 7.1% Best Guess: Culture.Language and literature, Geography.Europe
Draft:Architecture_in_Fez OK GA 0% 79% 13.3% STEM.Science, Culture.Plastic arts
Draft:Davletyarov,_Arman_Ilubaevich OK GA 11.5% 78.6% 16.3% Geography.Europe, Culture.Language and literature
Draft:The_(Great)_Cumbung_Swamp OK GA 33.33% 78.6% 18.6% STEM.Biology
Draft:Toons_Mag OK GA 37.89% 76.7% 19% Culture.Language and literature
Draft:Hollywood_Film_Formula OK GA 0% 75.9% 3% Culture.Entertainment
Draft:Reformed_Catholic_Church OK GA 30.56% 75.2% 15.3% Culture.Philosophy and religion
Draft:Mary_Reynolds_(landscape_designer) OK GA 19.35% 73.9% 13.3% Best Guess: Culture.Visual arts, History_And_Society.History and society
Draft:Danube_hidden_heritage OK FA 95.25% 70.4% 7.6% Geography.Europe
Draft:Vase_with_Poet_Zhou_Dunyi OK GA 0% 68.8% 12.5% Best Guess: Geography.Countries, Culture.Visual arts
Draft:László_Lakner OK FA 39.02% 68.6% 19% Geography.Europe, Culture.Visual arts
Draft:Rylsee OK GA 13.79% 66.5% 30.6% Culture.Visual arts
Draft:Philip_Morgan_Lewis_(Musician) OK GA 3.85% 63% 35.7% Culture.Performing arts
Draft:Falanster OK GA 2.91% 61.1% 34.1% Best Guess: Geography.Europe, History_And_Society.History and society
Draft:Manchester_United_Treble_Reunion OK GA 42.86% 61.1% 14.9% Geography.Europe, Culture.Sports
Draft:Swissindo_World_Trust_International_Orbit spam GA 41.52% 42% 45.3% Geography.Countries
Draft:Martin_Cohen spam GA 1.96% 40.4% 56.2% Culture.Language and literature

Top 50 possible Copyright Violations

Article Prediction Predicted Class Copyvio% OK% Spam% Topic
Draft:Foreign_Exchange_Dealers_Association_of_India_(FEDAI) spam Start 99.68% 11.7% 85.9% Geography.Countries, History_And_Society.Business and economics
Draft:Alexandre_Cusson spam Stub 98.81% 24.1% 68.5% Geography.Europe, Culture.Language and literature
Draft:HUD-VASH spam Stub 97.77% 27.5% 69.5% Best Guess: Geography.Countries, History_And_Society.History and society
Draft:Danube_hidden_heritage OK FA 95.25% 70.4% 7.6% Geography.Europe
Draft:Pamela_Longobardi OK C 94.48% 49.5% 47.8% Culture.Visual arts
Draft:Tabita_Rezaire OK C 94.31% 94.8% 4.8% Culture.Language and literature
Draft:Kelsey_Waldon spam B 90.38% 35% 63% Culture.Performing arts
Draft:St_Andrew_the_Apostle_Catholic_Church,_Marayong OK FA 87.6% 97.3% 0.9% Culture.Philosophy and religion
Draft:List_of_Guggenheim_Fellowships OK Start 84.84% 95.6% 1.8% Best Guess: Culture.Language and literature, Geography.Countries
Draft:Zohar_Shavit OK C 84.56% 97.7% 1.3% Geography.Europe, STEM.Information science
Draft:Filippo_Berto spam Start 84.33% 19.3% 79.1% STEM.Engineering, Culture.Language and literature
Draft:I_Hear_You OK C 84.22% 82.8% 15.5% Best Guess: STEM.Medicine, History_And_Society.History and society
Draft:CamEd_Business_School OK C 83.99% 85.6% 13.5% History_And_Society.Education
Draft:Farid_Ismayilzada spam Start 81.68% 25.9% 73.5% Geography.Countries, Culture.Language and literature
Draft:Arthur_W._Clapp spam Start 80.3% 30% 66.1% Culture.Language and literature
Draft:GAPP_Joint_Action OK C 79.58% 67.9% 29.4% Best Guess: History_And_Society.History and society, STEM.Medicine
Draft:Ceri_Brenner 9.09%% 0% 0% Culture.Language and literature, STEM.Physics
Draft:Breeze_Sarah_Babirye_Kityo 9.09%% 0% 0% Best Guess: Geography.Countries, History_And_Society.Politics and government
Draft:National_Forum_for_the_Enhancement_of_Teaching_and_Learning_in_Higher_Education OK C 79.49% 60.9% 36.8% History_And_Society.Education
Draft:Susan_Cotts_Watkins OK C 79.23% 88% 11.2% History_And_Society.History and society, Culture.Language and literature
Draft:PhASAR OK Stub 79% 99% 0.6% Best Guess: STEM.Technology, Geography.Maps
Draft:Gautam_Das OK Start 78.8% 94.6% 3.7% Culture.Language and literature
Draft:Pension_system_in_Czech_Republic OK C 77.32% 66.6% 31.4% Best Guess: History_And_Society.Business and economics, History_And_Society.Politics and government
Draft:FICTION_SYXX OK C 77.22% 65.8% 30.7% Culture.Language and literature, Culture.Performing arts
Draft:Alex_Chamwada OK Start 76.82% 74.7% 22.3% Geography.Countries, Culture.Language and literature
Draft:Faculty_of_Business_Administration_University_of_Economics_in_Prague OK Stub 75.31% 69.9% 28.1% Geography.Europe, History_And_Society.Education
Draft:Bernie_Dresel OK B 74.66% 88.7% 5.8% Culture.Performing arts
Draft:John_Vinzelts 8.26%% 0% 0% Geography.Countries
Draft:European_Union_Maritime_Security_Strategy OK C 73.96% 88.3% 1% Best Guess: History_And_Society.Politics and government, Geography.Europe
Draft:Baleleng OK C 73.78% 91.5% 7.5% Geography.Countries
Draft:Lerato_Kganyago OK C 73.02% 86% 1% Culture.Broadcasting
Draft:Jeanine_Oleson OK C 72.92% 77.7% 19.6% Culture.Visual arts
Draft:William_Lee_Woollett OK C 72.73% 94.5% 5% Best Guess: Geography.Countries, Culture.Plastic arts
Draft:University_of_Muhammadiyah_Sumatera_Utara spam Start 72.73% 18.4% 78.9% Geography.Countries, History_And_Society.Education
Draft:Zero_UHI_impact_building spam Stub 72.73% 46.9% 47.8% Best Guess: History_And_Society.History and society, Geography.Countries
Draft:John_McCallum OK C 72.73% 92.8% 5.8% Culture.Language and literature, Culture.Sports
Draft:Alex_J._Bellamy OK C 72.73% 79.3% 17% History_And_Society.History and society, Culture.Language and literature
Draft:Tommie_Dora_Barker OK C 71.04% 98.3% 1.4% Geography.Countries, STEM.Information science
Draft:Darksort OK C 70.59% 90.3% 7.6% STEM.Mathematics
Draft:Gerald_Chan OK C 70.47% 93% 6.3% Best Guess: Geography.Countries, History_And_Society.History and society
Draft:Single-Use_Medical_Devices OK C 70.24% 67.1% 29% STEM.Medicine
Draft:William_James_Calverley 7.41%% 0% 0% Culture.Language and literature, History_And_Society.Military and warfare
Draft:Pat_Edo 7.41%% 0% 0% Geography.Countries, Culture.Language and literature
Draft:Rekha_Shah 7.41%% 0% 0% Geography.Countries, Culture.Internet culture
Draft:The_Christian_Orthodoxy_Scale 7.41%% 0% 0% Culture.Philosophy and religion
Draft:Emile_Wennekes OK C 69.26% 71.6% 27.8% Geography.Europe, Culture.Language and literature
Draft:Baroque_period_drama OK C 69.14% 85.3% 7.4% Culture.Language and literature, Culture.Performing arts
Draft:Sanjukta_Basu OK C 68.88% 83.4% 12.4% Geography.Countries, Culture.Internet culture
Draft:Reginald_DesRoches OK C 68.88% 76% 23.1% Culture.Language and literature
Draft:The_Conservation_and_Restoration_of_WWII_era_United_States_Army_Uniforms OK C 68.49% 94.2% 3.7% Best Guess: History_And_Society.History and society, STEM.Science

Does ORES provide WikiProjects tags? If ORES was used to add WikiProject tags to any articles which do not already have them, that could be interesting. I am really interested in knowing what percentage of the main namespace is tagged with a WikiProject and what is not. --Gryllida (talk) 04:29, 24 April 2018 (UTC)

Wikipedia:Version 1.0 Editorial Team#Statistics (which is not perfect) suggests that about 90% of tagged articles are assessed, and that more articles are assessed than exist (which can happen if you assess an article and it gets merged/redirected). I don't know if those stats would let you make a satisfactory estimate. Whatamidoing (WMF) (talk) 17:39, 24 April 2018 (UTC)
How many articles exist which are not tagged with a wikiproject tag? How is the situation there? --Gryllida (talk) 10:49, 25 April 2018 (UTC)
I don't know. If a bot were sent around to re-assesses all of the redirects as being redirects (and disambiguation pages as being dab pages), then you could probably calculate it. However, I think it's safe to assume that most articles are tagged, possibly 90% or even more. Clicking Special:Random ten times gave me ten tagged artices. Whatamidoing (WMF) (talk) 22:30, 25 April 2018 (UTC)

Any auto-hyphenation yet

I wonder if yet any way to auto-hyphenate long words on browsers, as done 40 years ago by soft hyphens (versus "required hyphens"), to now wrap long words on narrow windows or smaller hand-held devices. See Danish sports page: "1927–28 Danmarksmesterskabsturneringen". I have used "<wbr>" to auto-wrap non-hyphen text, but want to auto-hyphenate to append "-" in each mid-word wrap. No hurry on this. -Wikid77 (talk) 00:49, 18 April 2018 More: As I recall, the soft-hyphen "&shy;" worked fine on either computer browsers or mobile phones, but there were concerns for some screenreader devices to handle Wikipedia pages. However, I was thinking the newer screenreaders could handle (skip) the "&shy" characters when processing the hyphenated text. Alternatively, I wonder if soft hyphens were to be limited to one per long word, as a compromise to reduce problems in screenreaders, that limit might allow more use of soft hyphens in WP text. -Wikid77 (talk) 04:06, 18 April 2018 (UTC)

I don't know the technical background, but see Phineas Gage for some extreme methods of markup, including {{shy}} (used 50 times). Johnuniq (talk) 05:02, 18 April 2018 (UTC)
i think the primary concern is readability of the wikitext honestly. Anyway, hyphenation is primary a layouting problem, and with HTML that makes it a responsibility of the browser, not of wikipedia. It seems that browsers still dont recognize syllables in arbitrary languages and thus still dont support this as a layouting option. Then again, i feel that people are increasingly confusing the web with a typesetting platform sometimes. Its not, the web is designed to be dynamic, not to be an optimal typesetting language. Thats what latex is for. You cant even dictate what font or what size of rendersurface a person is using, so dictating hyphenation is even harder and shy’ing every syllable of every word seems an excessive solution to a minor problem to me. —TheDJ (talkcontribs) 06:24, 18 April 2018 (UTC)
There is a working draft CSS property for this btw. I haven't tested it since it was introduced in 2016, but maybe we should look at that again. —TheDJ (talkcontribs) 07:26, 18 April 2018 (UTC)
The relevant W3C Working Draft was last updated on 22 August 2017 - just 8 months ago. It should not be considered stable, and is not a finished work - that won't occur until it is promoted to W3C Recommendation. Nutshell: don't rely on it. --Redrose64 🌹 (talk) 13:28, 18 April 2018 (UTC)
Seems like something we can easily experiment with in the mobile skin. Wonder if anyone will notice. —TheDJ (talkcontribs) 07:44, 19 April 2018 (UTC)
Just wanted to put a word in that I definitely noticed, as have some of my colleagues and friends. I understand that in the case of something similar to "Danmarksmesterskabsturneringen" that soft hyphens would be helpful, but hyphenating words of all lengths across line breaks really impacts the readability of an article. I'm not speaking with any knowledge about the different technical solutions to this, just purely feedback on how it affects some more casual Wikipedia users. Peloneoustc 03:23, 25 April 2018 (UTC)
I think we should make 'final' decision after 2 weeks to a month or so. Having a solid amount of feedback will be very useful. —TheDJ (talkcontribs) 10:53, 25 April 2018 (UTC)
That sounds good to me. I'll keep an eye out on this page, so if the conversation or feedback about this moves to another location, I'd appreciate a link here to that. Peloneoustc 03:45, 26 April 2018 (UTC)

education program preferences

On June 30, 2018, the Education Extension will be shut down.Education_Extension_scheduled_shutdown, Wikimedia outreach. so that i think special pages related to it should be removed from preference panel (this one for example).--مصعب (talk) 00:44, 26 April 2018 (UTC)

Hi مصعب, that should occur along with phab:T125618, you can check on that specific concern in phab:T106123. — xaosflux Talk 01:31, 26 April 2018 (UTC)
@Xaosflux: thanks. I added my comment at phaprecator task. I wrote here just to make sure that there is no local mediawiki page need to be modified according to thia issue. Regards--مصعب (talk) 17:45, 26 April 2018 (UTC)

Condition limit reached

What does the tag "condition limit reached" mean? It appears in this edit but not in this one which is otherwise identical. --Redrose64 🌹 (talk) 07:22, 26 April 2018 (UTC)

@Redrose64: mw:Extension:AbuseFilter/ConditionsTheDJ (talkcontribs) 07:29, 26 April 2018 (UTC)
You can find information about a tag by clicking Tags at the edit and search the page (Ctrl+f in most browsers) for the tag text. PrimeHunter (talk) 17:16, 26 April 2018 (UTC)
Neither of these replies have helped in any way. The way that I read the linked pages is that: either both of these MassMessage posts should have triggered the tag; or neither of them should have. How can it be that one triggers yet the other doesn't? --Redrose64 🌹 (talk) 18:16, 26 April 2018 (UTC)
The two diffs are posted to different user pages; one of the users could've triggered a few more conditions than the other, based on their username or edit count or whatever the filters on enwiki happen to check against. The condition limit takes into account short-circuit evaluation, so if a hypothetical filter has a condition that says (article_text rlike 'Phi.*') & <other stuff>, then the Whispyhistory edit will only accrue one condition (the rlike) and no more, because the rlike comparison failed and the filter can stop there, whereas the Philafrenzy edit will keep going, since it matched. Writ Keeper  18:29, 26 April 2018 (UTC)

Tidy no longer running

We have been warned many times over the last year or so, but HTML Tidy seems to have been turned off. This means that pages with unclosed (or badly-closed) markup may now show large amounts of corruption. Examples:

--Redrose64 🌹 (talk) 14:03, 24 April 2018 (UTC)

the third one listed is a direct result of a {{subst:reviewer-notice}} (which has since been fixed), so it could be found on many user talk pages. --Redrose64 🌹 (talk) 14:26, 24 April 2018 (UTC)

It seems to have been inadvertently enabled in all wikimedia wikis and certainly caused https://phabricator.wikimedia.org/T192855, and probably other reports there. It will probably be reverted as soon as the developers notice it. It makes the case for simply leaving it as is considering that there hasn't been that much of "drama" related to the early deploy.

Likely cause, https://phabricator.wikimedia.org/T185753 . — Preceding unsigned comment added by 197.218.92.93 (talk) 16:19, 24 April 2018 (UTC)

Thanks for the report 197. I've left a comment there regarding this thread. --Izno (talk) 16:37, 24 April 2018 (UTC)
It was an accident, and is being fixed now.
In the meantime, please head over to WP:Linter and see what you can do to help. There are about five thousand articles with mis-nested tags and more with table problems. You can check any article by adding ?action=parsermigration-edit to end of the normal URL. Whatamidoing (WMF) (talk) 17:49, 24 April 2018 (UTC)
@Whatamidoing (WMF): With ?action=parsermigration-edit, what exactly am I looking for? When I look at articles with mis-nested tags the first article listed is 2011–12 Galatasaray S.K. Men's Basketball season and there are apparently three problem with span tags in a Template:Basketballbox. So I go to https://en.wikipedia.org/wiki/2011–12_Galatasaray_S.K._Men%27s_Basketball_season?action=parsermigration-edit and I get a split display, two versions side by side. It seems that I'm comparing two versions, but what is there to help me pick out the actual problems - presumably, an unclosed <span> tag? There are no big red error messages, no bright yellow backgrounds, or any other visual clues that I can find. Or am I actually supposed to be looking at the code of Template:Basketballbox? --Redrose64 🌹 (talk) 19:18, 24 April 2018 (UTC)
All it does as far as I know is show the page using with and without tidy, so visual differences can be spotted. User:PerfektesChaos/js/lintHint gives what errors are there and can vaguely point to the chunk of code that is causing the problem. Galobtter (pingó mió) 19:24, 24 April 2018 (UTC)
@Redrose64:, @Galobtter:, @Whatamidoing (WMF): Click on the edit link from the lint errors listing which will take you to the regular edit form with the wikitext section that is the source of the problem. You can then replace the ?action=edit part of the URL with ?action=parsermigration-edit and that will both give you the side-by-side preview and also continue to highlight the problematic wikitext section. For example, here is that link for the basketball season page. In this case, the problem is with '''{{Nowrap|[[Galatasaray Medical Park (men's basketball)|Galatasaray Medical Park]]''' {{flagicon|TUR}}}} where the quote tags are improperly nested across the nowrap-span. As you can tell, in some cases, there is no rendering difference since the fixups by Remex and Tidy are effectively the same, but this is hard to determine automatically, so we flag all potential cases. SSastry (WMF) (talk) 22:29, 24 April 2018 (UTC)
@SSastry (WMF):   Thank you I found and fixed them. --Redrose64 🌹 (talk) 23:23, 24 April 2018 (UTC)
You can also get quick access to this side-by-side comparison through your prefs. Go to Special:Preferences#mw-prefsection-editing and choose "Enable parser migration tool". Then look for a new option in the sidebar. NB that today this is in the "General" group at the top, and that during the next deployment train, it will move to the bottom of the page, in a new section called "Developer tools". Whatamidoing (WMF) (talk) 22:23, 25 April 2018 (UTC)

Two thoughts:

  • Most of the noticeable problems were on talk pages. The editors working on this problem are mostly focused on the mainspace. It might be a good idea to double-check your talk page and/or any other talk pages you care about. Just add ?action=parsermigration-edit to the end of the regular (/wiki/ style) URL, scroll down, and see if anything looks broken. Also, I want to thank User:Anomalocaris in particular for individually contacting editors whose sigs were broken, starting months ago, because getting those fixed will reduce the number of problems on active discussion pages such as this one.
  • When this change happens (in about a month or two), any resulting formatting problems won't be visible until the page is re-parsed. This means that the problems will become visible after someone edits the page, when the page is purged, or when the cache expires. I expect, as a result of that delay, that people are going to see problems when someone makes an unrelated edit, and that this page is going to see questions along the lines of "I fixed this simple typo at the top, and now something's wrong at the end of the page, and reverting doesn't fix it". Whatamidoing (WMF) (talk) 19:03, 26 April 2018 (UTC)

Strange interwiki problem

Could you open the article "Anybody Seen My Baby?" and try clicking on the "Bielorussian (taraškievica)" interwiki (the first one)? When I click on it, I am being sent to a page that doesn't have a question mark in its title (to a page that doesn't actually exist). But when I go to the corresponding Wikidata item and click on the same interwiki ("be_x_old") there, it works correctly. --Moscow Connection (talk) 13:57, 27 April 2018 (UTC)

The page exists (very brief, in a language I don't know). -SusanLesch (talk) 14:51, 27 April 2018 (UTC)
Are you talking about "be-tarask:Anybody Seen My Baby" (no question mark)? No, the page "be-tarask:Anybody Seen My Baby" doesn't exist. The text says "There's no text on this page now", etc., and there's a button for creating a new article there. --Moscow Connection (talk) 15:08, 27 April 2018 (UTC)
The actual Bielorussian (taraškievica) article is here: "be-tarask:Anybody Seen My Baby?". But that is not where the interwiki link on the English article "Anybody Seen My Baby?" leads me to. --Moscow Connection (talk) 15:12, 27 April 2018 (UTC)
Your "be-tarask:Anybody Seen My Baby?" doesn't work either. The problem is that an encoded question mark is dropped in a redirect between variants of Bielorussian. The link at Anybody Seen My Baby? is https://be-x-old.wikipedia.org/wiki/Anybody_Seen_My_Baby%3F. It includes the question mark %3F but redirects to https://be-tarask.wikipedia.org/wiki/Anybody_Seen_My_Baby which drops %3F and displays the local MediaWiki:Noarticletext. The link at Anybody Seen My Baby? (Q3505390) says be_x_old as language code but the link actually goes to https://be-tarask.wikipedia.org/wiki/Anybody_Seen_My_Baby%3F which includes %3F and works without redirecting. I don't know how the interlanguage link is supposed to work but something is broken. None of these work: be:Anybody Seen My Baby?, be-x-old:Anybody Seen My Baby?, be-tarask:Anybody Seen My Baby? I haven't found a way to make a working interwiki link to the correct url https://be-tarask.wikipedia.org/wiki/Anybody_Seen_My_Baby%3F. PrimeHunter (talk) 15:28, 27 April 2018 (UTC)
"be:Anybody Seen My Baby?" works, it leads to the correct page (there is actually no article in the Bewiki).
But yes, something is broken with links to the Be-tarask Wikipedia ending in question marks. --Moscow Connection (talk) 15:57, 27 April 2018 (UTC)
Belarusian Wikipedia says:
There are two Belarusian Wikipedias (Belarusian: Беларуская Вікіпедыя; Taraškievica: Беларуская Вікіпэдыя) : one in the orthography of the Belarusian language which is official in modern Belarus (Narkamaŭka, prefix "be:"),[1] and another one in the pre-reform of 1933, classical orthography (Taraškievica, prefix "be-tarask:", formerly "be-x-old:").[2]
So it's apparently correct that be-x-old: redirects to be-tarask:, but it's an error that it drops an encoded question mark. Interwiki links get the redirect error because they produce a link to https://be-x-old.wikipedia.org instead of linking directly to https://be-tarask.wikipedia.org, even if you write be-tarask:Anybody Seen My Baby? Wikidata avoids the error by linking directly to https://be-tarask.wikipedia.org. be:Anybody Seen My Baby? makes a correct link which keeps %3F and doesn't redirect, but the Belarussian be variant has no article about this song. PrimeHunter (talk) 15:52, 27 April 2018 (UTC)
Same problem here: "What Child Is This?". Interlanguage links ending with exclamation marks, on the other hand, seem to work, see "!T.O.O.H.!". --Moscow Connection (talk) 16:02, 27 April 2018 (UTC)
"!T.O.O.H.!" is actually an invalid example because it only links to be: and not be-x-old:. Here is an example showing that be: also makes a correct bewiki link with a question mark: be:За што? works, but its interlanguage link to be-x-old:За што? drops %3F in a redirect to be-tarask and fails to find https://be-tarask.wikipedia.org/wiki/%D0%97%D0%B0_%D1%88%D1%82%D0%BE%3F. Question marks sometimes cause url confusion because an unencoded question mark signifies the start of a query string. be-x-old:BLAGI MAT!!! works, also in the interlanguage link at be:BLAGI MAT!!!, so you are right that exclamation marks don't have the problem. PrimeHunter (talk) 16:23, 27 April 2018 (UTC)
Something seems off...we should link directly to the correct wiki location, not to the redirect. Also, the redirect should retain the full page title, not chop it off (I bet it's treating the ? as start of a query string). FACE WITH TEARS OF JOY [u+1F602] 16:20, 27 April 2018 (UTC)

References

  1. ^ "The Official Belarusian Wikipedia (be:)" (in Belarusian). Be.wikipedia.org. Retrieved 2012-06-25.
  2. ^ "The Classical Belarusian Wikipedia (be-tarask:)" (in Belarusian). Be-tarask.wikipedia.org. Retrieved 2012-06-25.

Google translate Terjemahan

Hi. When I search in Google, find a Wikipedia article, instead of the English version, I'm taken to Google Translate for "Terjemahan". -SusanLesch (talk) 14:48, 27 April 2018 (UTC)

You probably installed a browser extension or something that does that. —TheDJ (talkcontribs) 15:27, 27 April 2018 (UTC)
What exactly are you searching for? "Google Terjemahan" means "Google Translate" in Indonesian. --Moscow Connection (talk) 19:21, 27 April 2018 (UTC)
User:Moscow Connection, Thank you! Then the mysterious language may be Indonesian. My husband's machine on the same connection doesn't do this so TheDJ might be right, too. It happens for any search, like "Minneapolis." -SusanLesch (talk) 21:51, 27 April 2018 (UTC)
@SusanLesch: Are you using Google Chrome? If it is the case, go to Settings > Advanced > Languages and check your language preferences. --Moscow Connection (talk) 22:06, 27 April 2018 (UTC)

Category problem

Can someone have a look at Category:1710s and click on the subcategories for each year. For me, on all the years, they expand to a message, saying: "Problem loading data. Please wait a moment and try again." The portion in italics is blue linked, but dead for me. Thanks.--John Cline (talk) 05:49, 28 April 2018 (UTC)

Listing category members in a module or template

Some portals would like to show an excerpt from a page chosen from a category. Is there any way for a module or template to list the members of a category? title:getContent() on a category page just returns the "This is a list of foos" blurb, not the actual members. mw.site.stats.pagesInCategory counts the pages but doesn't reveal the titles. getContent doesn't work on Special:RandomInCategory, and transcluding it just produces a link rather than the text. Surely we don't need to write a bot to periodically copy the category page to a standard page (which we can then read easily)? Certes (talk) 01:32, 28 April 2018 (UTC)

@Certes: You can get a listing of category members via Special:WhatLinksHere/Category:Name, if it is restricted to namespace 0 (articles). This can be done via transclusion, e.g. {{Special:WhatLinksHere/Category:Australia|namespace=0|limit=200}}, and so is available in Lua via frame:preprocess(). That's as far as I got in Module:Sandbox/Evad37/randomInCat, but it should be possible to do some pattern-matching magic to extract a random title from the whatlinkshere list. - Evad37 [talk] 04:39, 28 April 2018 (UTC)
No, actually, after looking into it a little. Returns a strip marker instead of the list, and per the reference manual can longer access the list: mw.text.unstrip no longer reveals the HTML behind special page transclusion, <ref> tags, and so on as it did in earlier versions of Scribunto. Galobtter (pingó mió) 06:45, 28 April 2018 (UTC)
Try {{#categorytree:Countries in Africa|hideroot|namespaces=Main}}. See mw:Extension:CategoryTree. --Redrose64 🌹 (talk) 10:38, 28 April 2018 (UTC)
Nope, still gives strip marker Galobtter (pingó mió) 10:44, 28 April 2018 (UTC)
Galobtter beat my reply but I'll post it anyway. That's interesting because putting that into Special:ExpandTemplates shows a bunch of HTML. By contrast, trying {{Special:WhatLinksHere/Category:Australia|namespace=0|limit=200}} in ExpandTemplates shows merely a single line:
[[:Special:WhatLinksHere/Category:Australia]]
However, the following shows that a module gets a strip marker rather than anything useful:
{{#invoke:dump|dumphtml|1= {{#categorytree:Countries in Africa|hideroot|namespaces=Main}} }}

'"`UNIQ--item-111--QINU`"'

That expression is using Module:Dump to pretty-print the HTML produced by categorytree, but all it shows is a strip marker. Johnuniq (talk) 10:50, 28 April 2018 (UTC)
Why are you overcomplicating it? There's no need for Lua - use it directly, like this:
You can put that in a template and it works just the same, I believe that some WikiProjects do this - possibly using the alternative syntax <categorytree hideroot=on namespaces=Main>Countries in Africa</categorytree>. A third valid syntax is {{#tag:categorytree|Countries in Africa|hideroot=on|namespaces=Main}}. --Redrose64 🌹 (talk) 11:27, 28 April 2018 (UTC)
The original question is about how to get a random article from a category (list the category members in a lua readable way), hence trying to get the output readable in lua so a random member can be selected. Galobtter (pingó mió) 11:31, 28 April 2018 (UTC)
Thanks for all the replies so far. #categorytree looks promising but I can't make it give me the titles within a module for further parsing. frame:preprocess returns the string "nil" (not Lua's nil value), and frame:expandTemplate gives an error (quite reasonably, since it's not a template). Attempting to preprocess a dummy page containing "<categorytree...", or to expandTemplate a template with that text, return the string "nil" too. Further suggestions are very welcome. Certes (talk) 12:24, 28 April 2018 (UTC)
This is another use-case for an interface between the MediaWiki API and Lua, even if only some API entry points. My only suggestion is a cron bot to post the data where Lua can pick it up. This 2014 thread and this 2016 comment by User:Mr. Stradivarius confirms Lua does not have access to category members. -- GreenC 14:33, 28 April 2018 (UTC)

Mysterious extra checkmarks

When editing, I'm now seeing two mysterious extra checkmarks just below the proper check boxes. They first appeared a few days ago, but vanished within minutes. Now they're back: what are they for? MonoBook, Opera 36, Windows XP. --Redrose64 🌹 (talk) 20:58, 23 April 2018 (UTC)

Have you tried other browsers ? Opera + monobook + XP isn't exactly... common. —TheDJ (talkcontribs) 21:36, 23 April 2018 (UTC)
If I create a redirect a check mark appears below the box, not in it.— Vchimpanzee • talk • contributions • 22:03, 23 April 2018 (UTC)
I see this is already here. I like Monobook and I use Edge only at home.— Vchimpanzee • talk • contributions • 22:05, 23 April 2018 (UTC)
I have difficulty trying other browsers. I can't upgrade from XP since the hardware won't be able to handle anything more sophisticated, so I'm confined to using XP-compatible browsers. Safari hasn't been updated since about 2012; IE8 is rejected by MediaWiki; Chrome hasn't been updated since April 2016. Firefox still gets the occasional update but is horribly slow - three minutes to follow a link and six minutes to go back again, which is prohibitive for watchlist checking. That leaves Opera. --Redrose64 🌹 (talk) 23:31, 23 April 2018 (UTC)
If you have hardware that old, have you tried Ubuntu or another Linux OS? Their requirements should be significantly less than Windows (which is in the realm of 4 GB RAM just for the OS right now...). --Izno (talk) 00:19, 24 April 2018 (UTC)
In that vein, I've had a lot of luck using Neverware Cloudready (Chromium OS - turns your laptop / desktop into a chromebook / chromebox), booted from a thumbdrive in older machines. SQLQuery me! 00:29, 24 April 2018 (UTC)

These extra checkmarks also show up for me on my phone in the desktop version (Android 5.1.1, Samsung Browser 3, Monobook). Double sharp (talk) 02:35, 24 April 2018 (UTC)

@Redrose64, Vchimpanzee, and Double sharp:, This seems an issue with .oo-ui-checkboxInputWidget .oo-ui-checkboxInputWidget-checkIcon.oo-ui-iconElement-icon rule is hiding the checkmark for most users, but for some reason it doesn't seem to apply for these browsers.. strange. Did people try bypassing their browser cache ? What about on this page with debug mode enabled ?—TheDJ (talkcontribs) 09:34, 24 April 2018 (UTC)
@TheDJ: The problem persists for me even after purging, but doesn't appear with debug mode enabled. Double sharp (talk) 09:37, 24 April 2018 (UTC)
I also see these extra checkmarks on my desktop (Monobook, IE11, Windows 7). Double sharp (talk) 12:07, 24 April 2018 (UTC)
It seems to be intermittent. and is currently behaving normally. --Redrose64 🌹 (talk) 15:59, 24 April 2018 (UTC)
Filed a ticket, weirdness in play. —TheDJ (talkcontribs) 19:13, 24 April 2018 (UTC)

@Redrose64: I looked into this, and it was a temporary issue when deploying a new version of MediaWiki – on last Thursday and last Monday, for about five minutes each, Wikipedia was using incompatible versions of HTML and CSS for the checkboxes, causing this weirdness on MonoBook (and causing the checkboxes to be very slightly misaligned on Vector and other skins). I wrote a longer description on the Phabricator task: phab:T192951#4155800. I think we understand why this happened and it shouldn't happen again. (Thank you for including the screenshot with your bug report, it was actually surprisingly helpful!) Matma Rex talk 22:54, 24 April 2018 (UTC)

Also, while Opera 36 is probably the best browser you could be using if you still have to use Windows XP (and these weren't the cause of this problem), I really would recommend upgrading your hardware. You can get a decent used laptop (e.g. Thinkpad T500) for $100 or less, it should comfortably run Windows 7/10 (I have one, use it for testing the sites on old hardware sometimes). Matma Rex talk 23:04, 24 April 2018 (UTC)

The checkmarks are still appearing for me on my phone even after purging a page, though. Double sharp (talk) 23:40, 25 April 2018 (UTC)
@Matma Rex: They're also still appearing for me on my desktop even after bypassing my cache. Double sharp (talk) 15:02, 26 April 2018 (UTC)
@Matma Rex: Please disregard the above – I figured out that the persistence of the problem was caused by the line $(".oo-ui-checkboxInputWidget").removeClass("oo-ui-checkboxInputWidget") in my common.js page. I've removed this line and everything is now appearing as it should. Also, my thanks to @TheDJ: for suggesting that .oo-ui-checkboxInputWidget .oo-ui-checkboxInputWidget-checkIcon.oo-ui-iconElement-icon could be the problem, which prompted me to try doing this! Double sharp (talk) 16:30, 28 April 2018 (UTC)

Checkboxes obscuring start of text

Seems to be a recent development: when I edit (standard wikitext mode) the two checkboxes in front of "this is a minor edit " and "watch this page" are now too big in all directions, which is most noticeable because they now obscure part of the "T" and part of the "W" of these two texts. Fram (talk) 13:36, 25 April 2018 (UTC)

@Fram: Try bypassing your browser cache, as apparently there was an intermittent issue yesterday, that might have ended up in your browser caches. If that is not it, the please try loading the edit page with safemode=1 as a url parameter to exclude any potential user scripts or gadgets as the cause of the problem. —TheDJ (talkcontribs) 13:41, 25 April 2018 (UTC)
Thanks. Safemode=1 puts it just next to the boxes (though still extremely close. When I enlarge my screen to 200% (I normally work at 100%), I can't see any space between the left side of the T or W and the box, which isn't visually attractive. But, like I said, it is no longer obscured in safemode, so some gadget must cause the issue (I have no css or other fancy stuff added, only enabled or disabled things in preferences, most recently the "show the wikidata description" one). Fram (talk) 13:53, 25 April 2018 (UTC)
If you upload a screenshot of what you see, it might become possible for someone to guess the cause of the problem. Matma Rex talk 20:16, 25 April 2018 (UTC)
 
Problem with checkboxes overlapping text on enwiki
 
Also in e.g. the block dialog
Two example images added. Fram (talk) 13:58, 26 April 2018 (UTC)

IP edit requests

There's a recent spate of seven consecutive malformed edit requests at Talk:Grand Theft Auto: San Andreas from various IPs. All of them are empty and as such weren't implemented. My assumption is that anons don't know how to properly file an edit request, but could someone check what it's all about? Brandmeistertalk 22:36, 26 April 2018 (UTC)

The IP's are from around the World so I guess nothing special is going on. If you click the "View source" tab or try to edit a protected page without permission then there is a "Submit an edit request" button. The form of the empty requests with dated headings show they all clicked the button and then saved without writing anything. This is quite common, it happened during nearly three months and the article had 117,383 views in the past 30 days alone, and the top has a box with an "improve this article" edit link which leads to the edit request button for IP's. Some editors just revert empty edit requests. PrimeHunter (talk) 23:26, 26 April 2018 (UTC)
@Brandmeister, Arjayay, Anon126, X201, IVORK, ElHef, and NiciVampireHeart: I normally assume that such drive-by empty requests are cases of somebody wondering "what does this button do?". I typically delete them unanswered. --Redrose64 🌹 (talk) 07:44, 27 April 2018 (UTC)
Thanks. Brandmeistertalk 07:48, 27 April 2018 (UTC)
Some blank requests are people trying to edit the article, but not understanding, others are trying to get around the protection (it is not uncommon for an IP who has left a blank SPER to delete the pp template, hoping that doing so will grant them access). With many people's attention spans being so short, the instructions (seen here) are too long, the IP just wants to make an edit, not read a lot of instructions. I tend to leave a short instruction for the first/latest, empty SPER, which, sometimes, leads to a proper request. - Arjayay (talk) 09:43, 27 April 2018 (UTC)
Howdy all, I use WP:EPH to assist with edit request which when clicking Remove Request states: "Are you sure you want to completely remove this edit request from the page? In general, this should not be done to good-faith requests, even if they are blank, unless they are duplicates of other requests by the same user, etc." in a popup. So that's the line I follow. I feel so long as pages have an archive it'd be no harm to give them the template x/y response and if really necessary remove them in bulk at a later date. Personally I think it is better to help that 1 in 5 that genuinely wanted to improve an article for the cost of a little more talk page spam. — IVORK Discuss 12:50, 27 April 2018 (UTC)
@Arjayay: it is not uncommon for an IP who has left a blank SPER to delete the pp template, er, how can they remove the template if they can't edit the article? Please provide diffs of where this has happened.
Please also note that Template:Submit an edit request/preload does state "Blank edit requests will be declined." --Redrose64 🌹 (talk) 18:40, 27 April 2018 (UTC)
My bad - I was thinking of Pending changes - Arjayay (talk) 20:56, 27 April 2018 (UTC)
However, as explained above WP:EPH states: "Are you sure you want to completely remove this edit request from the page? In general, this should not be done to good-faith requests, even if they are blank" so the current advice is mutually contradictory. - Arjayay (talk) 20:56, 27 April 2018 (UTC)

IP edit requests have become common in the past few years often with POINTy or otherwise vandal-like or trolling aspects. IMO the best solution is to delete them rather than littering the talk page which encourages more "requests". -- GreenC 20:44, 27 April 2018 (UTC)

Agreed. Please delete empty or suspected trolling edit requests. Look at it from the perspective of the other person: they see a button, they click it, they don't actually have a constructive proposal so some of them close the tab page and we see nothing, while others publish their thoughts. Such junk attracts other fluff and should not be encouraged. Johnuniq (talk) 00:08, 28 April 2018 (UTC)
Yeah that is what I do, just litters the talk page for no benefit, it is a test edit and thus is reasonable to revert. I do usually leave an explanation in the edit summary and revert the edit so they get a ping with the message. Galobtter (pingó mió) 11:21, 28 April 2018 (UTC)
IPs can't be notified, not even by a revert. --Redrose64 🌹 (talk) 11:35, 28 April 2018 (UTC)
I do know that Galobtter (pingó mió) 11:46, 28 April 2018 (UTC)
Well, you did write "revert the edit so they get a ping with the message". --Redrose64 🌹 (talk) 20:19, 28 April 2018 (UTC)

AWB request

Hello, {{Infobox Muslim leader}} has to be merged into {{Infobox religious biography}} per the recent consensus. But that would require adding Islam as |religion= to all the pages using {{Infobox Muslim leader}}. Can anyone please help in the same? Capankajsmilyo(Talk | Infobox assistance) 02:20, 29 April 2018 (UTC) You can use Category:Pages using Infobox Muslim leader without religion parameter (0) for assistance. Capankajsmilyo(Talk | Infobox assistance) 02:26, 29 April 2018 (UTC)

AWB requests belong at Wikipedia:AutoWikiBrowser/Tasks. PrimeHunter (talk) 10:11, 29 April 2018 (UTC)
  Moved to Wikipedia:AutoWikiBrowser/Tasks § AWB request: IVORK Discuss 12:59, 29 April 2018 (UTC)

Is there any way for PAGESINCATEGORY to show how many pages that appear in both of two categories?

Hi

Is there any way for PAGESINCATEGORY to display pages that appear in both of two categories? I don't mean adding the sums of two categories together, I mean showing only the pages that appear in Category A and Category B.

Thanks

John Cummings (talk) 18:19, 27 April 2018 (UTC)

I think this tool does what you are looking for. Rcsprinter123 (drone) 19:10, 27 April 2018 (UTC)
John Cummings is asking for a count, not a list. --Redrose64 🌹 (talk) 19:53, 27 April 2018 (UTC)
@Redrose64: Petscan returns a count as well as a list. --Izno (talk) 21:27, 27 April 2018 (UTC)
John Cummings specifically asked for PAGESINCATEGORY so I suspect he wants wiki code which automatically updates it in a wiki page. This is not possible. PrimeHunter (talk) 21:46, 27 April 2018 (UTC)
  • I'm not sure if {{PAGESINCATEGORY}} will do what I think you are attempting and I couldn't find an existing template doing it. If I did understand you, however, I worked up a template that might do some of what your seem to be trying to do (hopefully). I've used Category:1711 births and Category:1711 deaths for a demonstration and they plug in to the template with the following syntax: {{Ct2|1711 births|1711 deaths|mode=pages}} and render as:
Category 1
1711 births
Category 2
1711 deaths
To show or hide all pages click "►"
1711 births(200 P)
To show or hide all pages click "►"
1711 deaths(193 P)

It has a few quirks but I am working to improve it.--John Cline (talk) 22:11, 27 April 2018 (UTC)

  • @John Cline:, sorry for the late reply, thanks so much for all the effort :) I didn't explain myself very well, I'm just looking for something that will simply give me a number rather that a list (see the In Progress section on this page. I'm sure your work will be useful for many people, I encourage you to turn it into a template :) John Cummings (talk) 09:06, 30 April 2018 (UTC)

Tech News: 2018-18

16:18, 30 April 2018 (UTC)

bdi tags in wikilinks

Something very odd appears to be happening. The initial discussion was at WT:CS1. It looks to me as though MediaWiki has become somewhat schizophrenic in how it handles <bdi>...</bdi> in wikilinks. The cs1|2 templates use <bdi>...</bdi> to wrap titles for languages that use non-Latn scripts. <bdi>...</bdi> conveniently isolates unspecified text direction and allows the browser to determine how to correctly handle the wrapped text. This functionality in the cs1|2 templates is not new; it was introduced 11 October 2014.

As I began writing this, the page source for Help talk:Citation Style 1 had this:

<p><a rel="nofollow" class="external text" href="http://cpc.people.com.cn/BIG5/64162/64172/85037/85038/7104292.html">"Lǐ Dàzhāo de Zuòyòumíng" <bdi lang="zh">李大釗的座右銘</bdi></a></p>

I then clicked the edit link for the above-named section, clicked Show preview, right-clicked View page source, and got this from the source:

<p><a rel="nofollow" class="external text" href="http://cpc.people.com.cn/BIG5/64162/64172/85037/85038/7104292.html">"Lǐ Dàzhāo de Zuòyòumíng"</a></p>
<bdi lang="zh">李大釗的座右銘</bdi>

Then to be perverse, I clicked Publish changes (without changing anything), fetched a new page source where I found this:

<p><a rel="nofollow" class="external text" href="http://cpc.people.com.cn/BIG5/64162/64172/85037/85038/7104292.html">"Lǐ Dàzhāo de Zuòyòumíng"</a></p>
<bdi lang="zh">李大釗的座右銘</bdi>

The first version above is the desired version. I'm pretty sure that this isn't a browser bug (I'm using latest version Chrome) because the html is so obviously different in the three inspections which leads me to suspect something in how the Wiki source is rendered into html.

I checked the content of the <bdi>...</bdi> just to be sure that there is nothing odd encoded there. There isn't. All of those characters belong to Unicode CJK Unified Ideographs (U+4E00–U+9FEA).

Trappist the monk (talk) 13:12, 30 April 2018 (UTC)

@Trappist the monk: we've been seeing odd behavior on meta: as well, breaking some templates with bdi - see also meta:Meta:Requests_for_help_from_a_sysop_or_bureaucrat#Please_unbreak_Template:Not_done. — xaosflux Talk 13:21, 30 April 2018 (UTC)
@SSastry (WMF): I know this is a bit outside your bailwick, but maybe someone on the parser team can look at this? --Izno (talk) 13:56, 30 April 2018 (UTC)
The parser is parsing it just fine. Tidy is screwing around with it based on some other broken code elsewhere. Open the section with parsermigration-edit and you see that the right hand side is rendering correctly, and that is with Remex. When I parse this page locally with Parsoid with linting enabled, I see 3 linter complaints:
[warn/lint/missing-end-tag][enwiki/Help_talk:Citation_Style_1?oldid=838973629] {"type":"missing-end-tag","params":{"name":"p","inTable":false},"dsr":[36381,36601,3,0]}
[warn/lint/missing-end-tag][enwiki/Help_talk:Citation_Style_1?oldid=838973629] {"type":"missing-end-tag","params":{"name":"p","inTable":false},"dsr":[48956,108732,null,null],"templateInfo":{"multiPartTemplateBlock":true}}
[warn/lint/stripped-tag][enwiki/Help_talk:Citation_Style_1?oldid=838973629] {"type":"stripped-tag","params":{"name":"CODE"},"dsr":[196639,197117,null,null],"templateInfo":{"name":"Template:Cite_book"}}
So, my speculation is: if you fix the missing-end-tag for the p-tag on the page around character offsets 36381 - 36601, my guess is you should probably see expected behavior with Tidy as well. Or, wait for Tidy to be switched (end of June). SSastry (WMF) (talk) 14:31, 30 April 2018 (UTC)
There, I fixed it for you. And I see that this VPT page also has unclosed <p> tags as well. FYI. SSastry (WMF) (talk) 14:39, 30 April 2018 (UTC)
I confess that I don't understand the meaning of the linter output. However, I was able to glean sufficient information to lead me to a fix at Module:Citation/CS1/Configuration/sandbox for an extraneous </close> tag. That particular error has been in place since 14 October 2015. So, thanks for the clue.
Trappist the monk (talk) 15:34, 30 April 2018 (UTC)
I left this out: Even with the linter errors fixed higher up in the page, when editing the section, those errors are out of scope for an html rendering via Show preview. For the examples above, I was editing the section, not the whole page. This leads me to think that the linter errors are not the cause of the <bdi>...</bdi> problem because the linter did not find any errors in the section.
Trappist the monk (talk) 16:21, 30 April 2018 (UTC)
You are correct. The broken behavior is back - which is weird. Parsoid's output looks good. So, you can reduce it down to a single external link. And, if you keep hitting 'Show Preview' repeatedly, in some cases, the rendering looks good, and in other case, it doesn't. So, this almost feels non-deterministic. I tried this on metawiki (which has Tidy) and I see the same behavior. I tried this on mediawiki (which has Remex) and I don't see this behavior. This is mysterious indeed and I am not sure why Tidy would do different things for different runs. Will file a ticket just to record this (just in case this is not Tidy-specific), but, it is unlikely we will try to fix it if we know it is Tidy-specific since Tidy is going away in 2 months. SSastry (WMF) (talk) 16:49, 30 April 2018 (UTC)
Filed T193414. SSastry (WMF) (talk) 17:00, 30 April 2018 (UTC)
Good, thank you.
Trappist the monk (talk) 17:07, 30 April 2018 (UTC)
See https://phabricator.wikimedia.org/T193414#4169091 -- Tidy is at fault for breaking up the link at the bdi tag. The non-determinism relates to version issues on different servers -- please check the phab task for details. But, once Tidy is removed (latest by end-June), this will no longer be an issue. SSastry (WMF) (talk) 18:46, 30 April 2018 (UTC)

Missing twinkle rollback links for some people

Some people, at Wikipedia_talk:Twinkle#Missing_Rollback_Options_in_Diff_View are reporting missing rollback buttons from twinkle in diff view. I'm wondering what the cause is Galobtter (pingó mió) 20:43, 27 April 2018 (UTC)

As an affected user I am also wondering. This problem seems to affect different browsers and skins. --Emir of Wikipedia (talk) 20:52, 27 April 2018 (UTC)
Same here as well. I am using an up-to-date Chrome 66 and Windows 10, 64-bit. However the other Twinkle functions still works, it's just only the rollback links that are missing... theinstantmatrix (talk) 20:59, 27 April 2018 (UTC)
For me is it is missing in Wikitext view but is back (in a new form) in VisEd mode. I'm using Monobook skin. It seems to have started with the introduction of the new "browse history" widget. Was this introduction trailed somewhere? It passed me by if it was. The good news is the browse history header has buttons making it easy to switch to VisEd. SpinningSpark 21:20, 27 April 2018 (UTC)
I already had the browse history on, and the problem didn't start then. --Emir of Wikipedia (talk) 21:26, 27 April 2018 (UTC)
If I turn off "Visual differences" in preferences and purge the cache then the problem goes away (but the "browse history" feature stays on). SpinningSpark 22:53, 27 April 2018 (UTC)
I turned off "Automatically enable all new beta features" and "Visual differences" and the issue is resolved for now. It appears that this issue is being looked into. Classicwiki (talk) If you reply here, please ping me. 23:58, 27 April 2018 (UTC)
Thanks you two. I turned off visual differences and the issue has been resolved. Emir of Wikipedia (talk) 10:53, 28 April 2018 (UTC)
It looks like this might be resolved later today (or tomorrow).
I believe that there was also a complaint about a conflict with WikEdDiff, but I'm not sure if that's the same thing. Whatamidoing (WMF) (talk) 17:51, 30 April 2018 (UTC)

I'm sorry about this, I didn't anticipate that adding the "header" to visual diffs (which we did last week) would cause issues with other scripts. I've just proposed a patch to do this differently (in a way that should interact better with other tools like Twinkle), but it might take a day or two before we get it reviewed and deployed. In the meantime, if you want to keep using visual diffs and Twinkle, note that the "[restore this version]" link is actually present, but only when you switch to the "Visual" tab (using the buttons in top-right corner of the diff). Sorry! Matma Rex talk 21:20, 30 April 2018 (UTC)

This is fixed now. Matma Rex talk 00:17, 1 May 2018 (UTC)

Navigation popups

Is anyone aware of the default implementation of Navigation popups for unregistered users? We've had a couple of complaints to OTRS in the last few days and I'm not aware of any discussion or announcement saying that the function would be enabled automatically. Can anyone point me to the discussion where this was agreed upon, so that I can direct OTRS enquiries to the correct information? Cheers, Yunshui  08:36, 1 May 2018 (UTC)

It's not nav popups but page previews. See Page Previews. Nthep (talk) 08:46, 1 May 2018 (UTC)
And this discussion: Wikipedia:Village pump (miscellaneous)/Archive 58#Page Previews.--John Cline (talk) 08:48, 1 May 2018 (UTC)
Excellent, thanks guys. Yunshui  08:50, 1 May 2018 (UTC)
If complaints are from users who dislike it then you can say it can be disabled on the gear wheel at the bottom right. Registered users can disable "Page previews" at Special:Preferences#mw-prefsection-rendering. PrimeHunter (talk) 10:40, 1 May 2018 (UTC)

namespace picklist

Are you requesting a new gadget with this feature? You can write the namespace and a colon in the search bar, e.g. wp:searching where wp: is an alias for Wikipedia:. You can click "Advanced" in search results pages to select one or more namespaces with a click. The below in your common JavaScript will add a "Search" link to the top of pages, going directly to Advanced search with "Article" selected. PrimeHunter (talk) 11:01, 1 May 2018 (UTC)
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:Search' ) + '?profile=advanced&fulltext=Search&ns0=1&profile=advanced',
    'Search',
    'pt-Search',
    'Advanced search',
    null,
    '#pt-preferences'
  );
});

Refactoring of modules

Do you guys have any plan to maintain, especially refactor, some of the modules? A keyword is "code smell", and then complexity… Some of the code is even worse than mine. Jeblad (talk) 21:06, 1 May 2018 (UTC)

The same could be said of many templates, noticeboards, and articles. The problem with refactoring a module (or a complex template) is that unless the time is spent to get fully immersed in defining the problem and solution, it is very easy to overlook gotchas, and testcases are usually absent or insufficient. At any rate, feel free to nominate a couple of modules that are used as needing refactoring. Johnuniq (talk) 00:58, 2 May 2018 (UTC)

MySQL and Toolforge

I'm trying to connect to MySQL at Toolforge via HeidiSQL, but after filling login form I get error "Can't connect to MySQL server on 'localhost' (10061)". But I don't see anywhere any reference to localhost. Probably I simply did something silly. Some help needed :) --Edgars2007 (talk/contribs) 16:43, 29 April 2018 (UTC)

@BDavis (WMF) and Zhuyifei1999:? just pinging pretty-random Tech guys :) --Edgars2007 (talk/contribs) 06:57, 1 May 2018 (UTC)
You set up the SSH tunnel incorrectly. You want your computer <-> toolforge bastion <-> wiki replica. In the SSH tunnel you attempted to connect to wiki replica directly, which isn't possible and the enwiki.analytics.db.svc.eqiad.wmflabs will not resolve. Specify a bastion host instead, like login.tools.wmflabs.org with port 22 for ssh. --Zhuyifei1999 (talk) 14:42, 1 May 2018 (UTC)
As for why it's connecting to localhost but failed, the ssh tunnel is supposed to port-forward the port 3306 of enwiki.analytics.db.svc.eqiad.wmflabs to a local port on your computer, which you specified as 3306 as well. i.e. it will open a port 3306 on your computer (localhost) and relay all traffic to and from wiki replicas through the ssh connection. Since the configuration for ssh tunnel is broken, the tunnel cannot be set up, and the port will not open. The program will therefore fail to connect to the port. --Zhuyifei1999 (talk) 15:00, 1 May 2018 (UTC)
@Zhuyifei1999: Thanks for explanation, that was useful. But what's wrong now? And no matter what combination of ports I use... --Edgars2007 (talk/contribs) 16:29, 2 May 2018 (UTC)
What is the error message? I don't see anything else wrong besides some random speculations --Zhuyifei1999 (talk) 16:41, 2 May 2018 (UTC)
@Zhuyifei1999: the same - "Can't connect to MySQL server on 'localhost' (10061)". --Edgars2007 (talk/contribs) 16:45, 2 May 2018 (UTC)
  • Try change the local port to be 3306.
  • Is your private key encrypted? If so try run an SSH agent like PuTTY's pagent.exe to have the key loaded.
  • The password of the SSH tunnel might have to be blank.
  • What is this plink.exe timeout? Try setting it to a higher value like a minute?
If no combinations of this works I'm out of ideas. (And since I don't use Windows I'm unable to test it for myself) --Zhuyifei1999 (talk) 17:01, 2 May 2018 (UTC)
F* yes! plink.exe timeout worked nice :) Thanks a lot! --Edgars2007 (talk/contribs) 17:11, 2 May 2018 (UTC)

Wikimedia doesn't play midi files inline

I notice that Wikimedia software doesn't play midi files. What would be the likelihood of adding an extension which converts the file to ogg/mp3 on the backend, allowing modern browsers to play the file without a download? Magog the Ogre (tc) 18:30, 29 April 2018 (UTC)

@Magog the Ogre: Very small. The ticket has been open for almost 10 years now phab:T20852. —TheDJ (talkcontribs) 21:01, 29 April 2018 (UTC)
I understand that having to open sound files separately is also a problem for Wikivoyage, Wikibooks, and Wikiversity contributors. Just being able to play the audio file in a phrasebook or other language-learning content, without having to open a separate page, would be very handy. Maybe something to remember for next year's m:Community Wishlist? Whatamidoing (WMF) (talk) 17:55, 30 April 2018 (UTC)
MIDI files ain't audio files, but 'sequence' files (think of them as 'advanced' sheet music); there is no 'canonical' translation from a set of instructions for musical instruments to an audio waveform. Yes, certain softwares are able to do the synthesis and play the music (TiMidity++ is one such software in the FOSS world), but given the complexity, it's best to store both the 'instructions' (for what notes on what instruments are being played) and the waveform (for a canonical audible representation of the music).
And no, MIDI can't store pronunciations so it should not be relevant in a phrasebook or other language-learning content --Zhuyifei1999 (talk) 17:53, 1 May 2018 (UTC)
The iPhone doesn't support MIDI playback. I tried MIDI.js which looks to be an in-browser synthesizer, but it did not work either. — Dispenser 10:26, 2 May 2018 (UTC)
Zhuyifei1999, I believe that difficulties with playing inline audio is a general problem, not restricted specifically to MIDI files. Whatamidoing (WMF) (talk) 17:36, 2 May 2018 (UTC)

Featured content icons

I noticed a recent change to the icons for featured content. In most places, including the top-right corners of articles, the icon in use is this:   (this matches the first gallery icon below), but in some places it recently changed to this:   (this matches the second gallery icon below). There is a clear difference between the two when placed side-by-side. This would not be a problem, except the change has not been implemented across the board (see the table in Template:icon). The commons links for the files themselves are here:

In my opinion, there should be consistency with which featured icons are used and to that end, I believe the former icon above should replace the latter icon above, as the former has a higher definition and looks better in icon form. Jackdude101 talk cont 04:20, 2 May 2018 (UTC)

I also think that the icons should be consistent, although this has nothing to do with the resolution of the images, since they're SVGs and can be resized virtually infinitely; I have no strong preference for either icon. Jc86035's alternate account (talk) 10:54, 2 May 2018 (UTC)
I also suggest using the former because the majority of the derivative bronze star icons are based on that one. Jackdude101 talk cont 14:25, 2 May 2018 (UTC)
In that case, agreed - if there is no clear difference between the two, but the former is used more widely then we should standardise on it. Richard0612 18:59, 2 May 2018 (UTC)

Reference archiving bot

Are there any bots dedicated to archive URLs in reference templates such as "cite web", in a platform in the like of Web Archive? Has this been tried? Leefeni de Karik (talk) 03:21, 3 May 2018 (UTC)

@Leefeni de Karik: meta:User:InternetArchiveBot. --Izno (talk) 04:21, 3 May 2018 (UTC)

Mapframe maps now work on English Wikipedia

Location of Wikimania 2018—Cape Southern Sun Hotel

English Wikipedians can now use the mapframe function to embed maps right on a page. The map at right (which shows the location of this year’s Wikimania conference) demonstrates the functionality. Mapframe was requested by the English community via RfC last year and the request was reconfirmed this spring. If you you’re new to mapframe, this Kartographer help page shows how to use it.

Expect more significant new features in the coming weeks, with the implementation of the long-awaited map internationalization features. After internationalization, maps will display in the content language of the wiki they’re published on. Until then, they will continue to display in the language of the territory mapped. (You can experiment with internationalized maps on testwiki now—here’s a page of examples.)

These features are brought to you as part of the Map Improvements 2018 project. Please try mapframe out on English Wikipedia and let us know what you think on the project talk page. We’re listening. —JMatazzoni (WMF) (talk) 02:21, 1 May 2018 (UTC)

Are the credits within the image itself - violating Wikipedia:Image use policy#Watermarks, credits, titles, and distortions - new? I don't recall seeing them on these maps before. —Cryptic 03:05, 1 May 2018 (UTC)
The credits aren't watermarked into the image (see this image or this one). They're positioned on top of the bottom-right corner of the image by the browser, obscuring a corner of the image. If you download the image, it won't contain credits or anything like that. --Roan Kattouw (WMF) (talk) 04:48, 1 May 2018 (UTC)
How to use with {{Infobox settlement}} ? Capankajsmilyo(Talk | Infobox assistance) 03:18, 1 May 2018 (UTC)

Mapframes can also be inserted using the {{maplink}} template, which takes care of the tag syntax for you. - Evad37 [talk] 03:29, 1 May 2018 (UTC)

Location of Wikimania 2018

E.g. compare the source code of this map with the one above - Evad37 [talk] 03:34, 1 May 2018 (UTC)

Maplink doesn't look good. See Faridabad. Capankajsmilyo(Talk | Infobox assistance) 03:43, 1 May 2018 (UTC)
@Capankajsmilyo:   Fixed [22], the problem was with {{climate chart}} not floating properly and the mapframe being a bit too wide. - Evad37 [talk] 04:07, 1 May 2018 (UTC)
Not quite fixed yet. There's a lot of difference in the following

Vs

Faridabad map

Capankajsmilyo(Talk | Infobox assistance) 03:43, 1 May 2018 (UTC)

Oh, I thought you meant the placement/floating issue of the map compared to the other elements. If you want an area highlighted you need to use a line or shape feature rather than coordinates. And |plain=yes will set frameless mode, removing the outer frame and caption. Or if you want more complicated things (Template:Maplink#Things_this_template_can't_do), you might have to use the <mapframe>...</mapframe> tags directly. - Evad37 [talk] 04:41, 1 May 2018 (UTC)

This is getting closer: {{maplink|frame=yes|plain=yes|frame-width=250|frame-height=280|type=shape-inverse|zoom=7|frame-lat=29.185|frame-long=76.225|stroke-width=3|id=Q1174}} - Evad37 [talk] 04:54, 1 May 2018 (UTC)

Looking better, boundary would look nice if less dense. Also, currently the {{Infobox settlement}} invokes Module:Location map/data/India Haryana. Can this be added to the same? Capankajsmilyo(Talk | Infobox assistance) 05:21, 1 May 2018 (UTC)
Added a smaller stroke-width. Before adopting into infoboxes, the template should really support adding map data from multiple objects – e.g. an outline of an area plus one or more markers at various points. To do so in a sane way really require it to be rewritten in Lua - Evad37 [talk] 09:30, 1 May 2018 (UTC)
What is the easy way to localize a name in OSM? Is there any plans? Many places doesn't have Bengali localization, so last week i tried to have add some Bengali name. After so many steps i finally managed to add a translation & i took one minute to complete just for one place. আফতাব (talk) 22:21, 1 May 2018 (UTC)
BTW, there's a Wikidata-enabled version at commons:Template:Mapframe/Wikidata - anyone want to copy that over here? (if not, I'll look into it later.) Thanks. Mike Peel (talk) 11:14, 2 May 2018 (UTC)
@Mike Peel: {{Maplink}} is already Wikidata-enabled, e.g. for Boston (Q100 on Wikidata): {{maplink|frame=yes|type=point|id=Q100}} - Evad37 [talk] 15:30, 2 May 2018 (UTC)
Map

@Capankajsmilyo: You can now do multiple feature with {{maplink}}, e.g. a city and a state:

{{Maplink|frame=yes|plain=yes|frame-width=250|frame-height=280|zoom=6|frame-lat=29.185|frame-long=76.225
|type=shape-inverse|id=Q1174|title=Haryana
|type2=point|id2=Q200663|stroke-width=3|title2=Faridabad
}}

- Evad37 [talk] 09:52, 3 May 2018 (UTC)

It does now. Thanks Capankajsmilyo(Talk | Infobox assistance) 13:24, 3 May 2018 (UTC)

Wikipedia:Press coverage 2018 Revision history statistics piecharts

I've edited this page a lot, which can be seen at [24]. But it seems to me that something in the 2 "top ten" piecharts is somewhat off, my % doesn't match my piece of pie. Any good reason for this? Gråbergs Gråa Sång (talk) 17:35, 3 May 2018 (UTC)

I believe the percentages are percent out of total — so for example, you made 51 edits out of a total of 103, or 49.51& — but the pie charts are out of the top 10 — so 51 out of 90, or 56.67%. If you mouseover the pie chart slices, they display numbers (51, 9, etc.) not percentages. It's a little weird, perhaps, but it certainly makes the charts nicer. ~ Amory (utc) 18:02, 3 May 2018 (UTC)
That does make an impressive amount of sense. Thank you, Amorymeltzer. Gråbergs Gråa Sång (talk) 18:23, 3 May 2018 (UTC)

Who did what to the source editor?

The character icons are all changed. I don't think the Template Wizard people are responsible because I have been following the implementation of that tool, and this change is more recent. L3X1 ◊distænt write◊ 14:13, 3 May 2018 (UTC)

@L3X1: can you be more specific about "character icons", perhaps a screen shot about which component you are referring to? — xaosflux Talk 14:21, 3 May 2018 (UTC)
Do you have the enhanced editing toolbar on in Special:Preferences#mw-prefsection-editing? I think that's what you mean; those icons were changed in phab:T191031. ~ Amory (utc) 14:43, 3 May 2018 (UTC)
 
May 2018 source editor toolbar
Xaosflux and Amory Yes I have the enhanced toolbar, and thanks for the link to the phabricator page. L3X1 ◊distænt write◊ 14:59, 3 May 2018 (UTC)
re ping Amorymeltzer L3X1 ◊distænt write◊ 15:00, 3 May 2018 (UTC)
This change was also announced in meta:Tech/News/2018/17. --AKlapper (WMF) (talk) 21:50, 3 May 2018 (UTC)

Granular blocking tools (per page, category, namespace, & uploading files)

Hello everyone! I'm Trevor, a product manager at the Wikimedia Foundation. My team, the Anti-Harassment Tools team, is working on a project to build page, namespace, category, and upload blocking. We see the full site block as a sledgehammer, when some user misconduct situations call more a more tactical response.

We have a direction for the tool — we want to expand on Special:Block. Our idea is detailed at Wikipedia talk:Community health initiative on English Wikipedia/Per user page, namespace, category, and upload blocking and we'd appreciate to hear from anyone interested about this approach.

Thank you and have a great day! — Trevor Bolliger, WMF Product Manager (t) 22:25, 3 May 2018 (UTC)

Any idea why non-Latin terms don't index?

Any idea why non-Latin alphabet terms don't seem to index in Google? If I search for a string of text in an article like "Dìbǐlìsī - 第比利斯 (simplified characters) (Chinese), Gürƶex - Гуьржех (Chechen), Guržeğe - ГуржегӀе (Ingush)", the Wikipedia page doesn't come up but the mirrors do. Sometimes it will show the non-Latin term as "missing" (like this) and the mirrors come up again. What gives? (I posted this query at WT:Search engine indexing as well if it's better discussed there.) —  AjaxSmack  00:50, 4 May 2018 (UTC)

In general if you search google in a foreign language it will return results in that language. For one of your examples, "Гуьржех" the #2 hit is w:ce:Гуьржи-Мохк. If you specifically ask google for enwiki (with Гуьржи-Мохк site:en.wikipedia.org as your search term) it will return a hit here. — xaosflux Talk 01:08, 4 May 2018 (UTC)
Your example is List of names of Asian cities in different languages but it doesn't appear to be about non-Latin terms. Latin terms late in the tables also give no Google result, e.g. the Latin Tashkent site:en.wikipedia.org/wiki/List_of_names_of_Asian_cities_in_different_languages. But Táiběi site:en.wikipedia.org/wiki/List_of_names_of_Asian_cities_in_different_languages a row earlier works and Google's cache shows they indexed a version which includes Tashkent. Maybe the tables look so odd to Google that they just stop indexing them at some point around T (I haven't heard of such limitations before). Mirrors may have older shorter versions which don't rub Google the wrong way. PrimeHunter (talk) 01:27, 4 May 2018 (UTC)
Thanks. You're right. The search returns/indexing give out in the middle of the "Taipei" list. Maybe it's just too long and needs to be split up like List of names of European cities in different languages. It's still weird because the mirror articles are also tables.  AjaxSmack  02:28, 4 May 2018 (UTC)

1 won't go away

To the right of my name and to the left of "talk", with Monobook, there is a 1 and it won't go anywhere even when I click on the notification.— Vchimpanzee • talk • contributions • 19:42, 3 May 2018 (UTC)

Maybe phab:T179765? Stryn (talk) 19:56, 3 May 2018 (UTC)
@Vchimpanzee: Can you clear it if you go to Special:Notifications? — xaosflux Talk 20:19, 3 May 2018 (UTC)
I don't think so. What do I do when I'm there?— Vchimpanzee • talk • contributions • 21:28, 3 May 2018 (UTC)
Well, it's gone now. I have no idea why.— Vchimpanzee • talk • contributions • 22:21, 3 May 2018 (UTC)
I've had occurrences of this in the past and it's almost always been some welcome message on my user talk on a foreign language wiki that I have never edited or am unlikely to edit. For some reason the notification doesn't always show but the counter does. Switching cross-wiki notifications off and on again in preferences normally sorts it out. Nthep (talk) 07:39, 4 May 2018 (UTC)

Prevent auto edit launch

During the Twinkle rollback bug issue (above) I reset all my settings. Now when I rollback and go to warn the User, the User TalkPage automatically launches in edit mode and not the static (read) mode I am used to. This also happens when I click on non-existant pages/redlinks. Any way to prevent this? Sorry if this is not the right forum to post such a question, let me know. Best, Classicwiki (talk) If you reply here, please ping me. 11:25, 4 May 2018 (UTC)

How to deal with URLs that change as you click them

As I reported here using QS tool through its interface can produce page with URL: https://tools.wmflabs.org/quickstatements/#v1=Q4115189%09P4656%09%22https://commons.wikimedia.org/wiki/Category:Eco_Art%22%0A which allow you to successfully run the tool. However it you provide someone with the same URL clicking it places you on a page with URL: https://tools.wmflabs.org/quickstatements/#v1=Q4115189%09P4656%09%22https://commons.wikimedia.org/wiki/Category:Eco%20Art%22%0A which does not allow you to successfully run the tool. It seems like process of clicking the link changes "_" in the URL to "%20" which results in errors. The issue seems to be with the browsers (I use Firefox and Chrome). Anyway to create URL that when clicked will produce the original URL? --Jarekt (talk) 17:04, 3 May 2018 (UTC)

Th url decodes as:

https://tools.wmflabs.org/quickstatements/#v1=Q4115189 P4656 "https://commons.wikimedia.org/wiki/Category:Eco_Art"

Note the line feed at the end (%0A) the tabs (%09) the quotes (%22) .. in the fragment portion (#) of the URI.. quite a specimen :) Maybe that's how WikiData is supposed to work. Anyway, both URLs above work for me regardless of "_" or "%20" maybe try clearing browser cache (or QuickStatements has since been fixed). -- GreenC 18:35, 3 May 2018 (UTC)

User:GreenC thanks for looking into it. This URL is how one communicates with the tool that interacts with Wikidata. It has little to do with wikidata itself. Yes it is quite a specimen as it tries to encode in a URL wide range of commands and inputs. You said that both URLs above work for you. However I could not see in the history of Wikidata Sandbox (Q4115189) any evidence of your edits. You actually have to press "run" button (and possibly log in through oAuth) to test it. --Jarekt (talk) 19:34, 3 May 2018 (UTC)
Ahh, I didn't get that far as I don't have an account. The percent-encode for "_" is %5F does it work if substituted? -- GreenC 21:11, 3 May 2018 (UTC)
No, space, underscore and %5F are all changed to %20. --Jarekt (talk) 11:43, 4 May 2018 (UTC)

Wikitext highlighting out of beta

18:55, 4 May 2018 (UTC)

API Logins being refused

I've seen reports from Huggle, and just replicated with AWB. Unable to login via the API using passwords or botpasswords. Is anyone able to get in? api returning "bad password" type errors. — xaosflux Talk 03:16, 4 May 2018 (UTC)

FYI, after regeneration of botpassword, I was able to get an account on - yet another account that was not regenerated is still unable to logon with the existing botpassword. — xaosflux Talk 03:28, 4 May 2018 (UTC)
I would think that not as a technical issue but a security issue - you know, the login problems.--1233Talk 03:31, 4 May 2018 (UTC)
This could relate to the reports above and elsewhere concerning the current account cracking attack. A threshold of attempts per account might be exceeded, or a dev might have imposed some throttle? Johnuniq (talk) 04:58, 4 May 2018 (UTC)
We haven't done anything in response to the mass-account-failed-logins that would affect botpassword logins by normal users. Possibly people have been changing their passwords (Always a good thing to do now and again) which might reset your botpassword tokens. BWolff (WMF) (talk) 20:37, 4 May 2018 (UTC)
No solid finds in the phab ticket, other then identifying that invalidation of botpasswords does not present notification (yet). Anyone with this issue should be able to resolve by regenerating your Special:BotPasswords by going there, clicking yout botpassword name, then checking reset password and saving. You will need to update your tools/bots with the new password. — xaosflux Talk 21:11, 4 May 2018 (UTC)

Test for the non-existence of a (possibly empty) third positional parameter?

  Resolved

In a template, how do I test for the non-existence of a (possibly empty) third positional parameter?

In this case the template takes only a max of 2 parameters and third indicates a possible error even if empty. So I want to treat any of these as an error

  1. {{Mytemplate|foo||bar}}
  2. {{Mytemplate|foo||bar}}
  3. {{Mytemplate|foo|bar|}}

... but be happy with

  1. {{Mytemplate|foo|bar}}
  2. {{Mytemplate|foo|}}
  3. {{Mytemplate|foo}}
  4. {{Mytemplate||bar}}

I thought I coud take some test which would always throw an error if {{{3}}} was not supplied and use that "error" as my sign of health.

But now I can't find any such test.

I think I have done this before, but my brain seems mushy and I can't recall how I did it.

Any suggestions? (apart from Lua, which feel like overkill) --BrownHairedGirl (talk) • (contribs) 03:11, 5 May 2018 (UTC)

Something like this:
{{#if:{{{3}}}|<span class="error">Oh my, you supplied third parameter. Which is the worst thing you could do :)</span>}}
Pay attention to {{{3}}}. If it was {{{3|}}}, then the error would show up only if third param would be non-empty. --Edgars2007 (talk/contribs) 04:03, 5 May 2018 (UTC)
Thanks, @Edgars2007. I have been trying any options including variants of your suggestion, at User:BrownHairedGirl/sandbox8. The problem is that if {{{3}}} is not supplied its value is "{{{3}}}". See the current version. --BrownHairedGirl (talk) • (contribs) 04:47, 5 May 2018 (UTC)
But if don't want to show third parameter (only test it and show warning), then it is OK... --Edgars2007 (talk/contribs) 04:57, 5 May 2018 (UTC)
@Edgars2007: No it isn't OK. The test gives a false positive, so it would trigger an warning when there is no problem. --BrownHairedGirl (talk) • (contribs) 05:25, 5 May 2018 (UTC)
With the example that I gave you, all of those testcases you mentioned in tour initial post, would pass. If you want to show content of third parameter (if it's not empty) (that you didn't mention in initial post), then you can use additionally: {{#if:{{{3|}}}|Here are contents of third parameter: {{{3|}}}}} What is your use-case? Some real-life problem/template would be good to show. --Edgars2007 (talk/contribs) 05:58, 5 May 2018 (UTC)
Thanks for trying, Edgars2007 ... but I have already demonstrated[25] how the test you propose gives a false positive.
I will see what other editors suggest. --BrownHairedGirl (talk) • (contribs) 06:32, 5 May 2018 (UTC)

───────────────@BrownHairedGirl: Without using Lua, best solution is probably {{#ifeq:{{{3|¬}}}|¬||<span class="error">Hello, I'm an error message.</span>}}. Jc86035's alternate account (talk) 06:59, 5 May 2018 (UTC)

Bless you @Jc86035 (1). That does it, as shown in this test: no false positives & no false negatives. --BrownHairedGirl (talk) • (contribs) 07:26, 5 May 2018 (UTC)
If I understand the original question, Module:Check for unknown parameters may be what you want. You can put {{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using TKTKTK with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:TKTKTK]] with unknown parameter "_VALUE_"|ignoreblank=n| 1 | 2 }} at the end of the template code to categorize any such articles. – Jonesey95 (talk) 14:21, 5 May 2018 (UTC)
Many thanks @Jonesey95. I used that instead of Jc86035's solufion because Module:Check for unknown parameters covers more cases, such as a named parameter.
See it in use at Template:Category pair where it populates Category:Pages using Template:Category pair with more than 2 parameters. --BrownHairedGirl (talk) • (contribs) 04:02, 6 May 2018 (UTC)

Multiple infobox

Hello, what does Wikipedia says about having multiple Infoboxes for separate sections of same biography article? Capankajsmilyo(Talk | Infobox assistance) 02:28, 5 May 2018 (UTC)

What you wanted to hear about this topic on this page? From technical POV, it is possible. From non-technical POV (which of course would be better suited for other pages), I think it's OK. There are many examples on Wikipedia, person who is WWE and actor, e.g. --Edgars2007 (talk/contribs) 03:59, 5 May 2018 (UTC)
So in such a case, should |module= be used or two separate Infoboxes? Capankajsmilyo(Talk | Infobox assistance) 04:03, 6 May 2018 (UTC)

Linking articles in different languages with different names

I noticed that the English-language article on the Finnish architects Reima and Raili Pietilä was not linked to its respective articles in 10 other languages (incl. Finnish, Korean, etc.). However, in ALL the other languages the site is called just "Reima Pietilä". Reima and Raili Pietilä were an architect couple who nearly always worked together. But when I attempted to add the English-language version to the other language versions, it failed to so. I suppose I will have to change the name of the English-language site to be the same as the others in order for the language links to work? This bothers me, because in including both Reima and Raili Pietilä as an "architect couple" (cf. Charles and Ray Eames) the English-language page comes across as more enlightened.TTKK (talk) 15:52, 4 May 2018 (UTC)

Three things you could do: The first is to manually add old school local links manually to the article. See WP:ILL § Local links for more info and nb the spirit of the second and third points. However, this will allow linking only to the Reima or the Raili article. The second would be to merge wikidata:Q17496278 into wikidata:Q2582922, but then you would lose "duo"/"married couple" attributes in Wikidata. The third, as you mentioned, would be to rename/split this article like five other Wikipedias do. This would allow linking to both the Reima and the Raili articles.
I will conduct the first option on the English page now. Review and feel free to edit revert. I also look forward to hearing from others who might know more about this topic. —  AjaxSmack  00:30, 5 May 2018 (UTC)
No, the second option is bad, very bad. Those are different topics, so they shouldn't be merged. About problem in general. I would suggest creating module (that is, copying from other Wikipedia - don't remmeber which), which takes iws from Wikidata item, that you pass as parameter. Pro - then iws are updating, not as in old-iws mode. --Edgars2007 (talk/contribs) 04:06, 5 May 2018 (UTC)
How do you do that?  AjaxSmack  05:11, 5 May 2018 (UTC)
Get some Lua guy, that writes you a module to do that (it shouldn't be very hard, but I'm not a Lua programmer). Or find the module on some other Wikipedia (don't remember which). --Edgars2007 (talk/contribs) 06:03, 5 May 2018 (UTC)
Thanks. It looks like this was copied from Swedish Wikipedia and can do it: Template:Interwiki extra. Not ideal as it cannot allow for links to more than one article (i.e., both Reima and Raili), but better than no IWs at all.  AjaxSmack  05:11, 6 May 2018 (UTC)

Tools to comment/uncomment categories?

When you move something from article space to draft/user space, you want to disable the categories with ":" prefixes. And do the reverse in the other direction. Is there some nice bit of automation which makes this easy? -- RoySmith (talk) 17:41, 5 May 2018 (UTC)

No clue, would just like to say that I'm interested as well.Naraht (talk) 19:17, 5 May 2018 (UTC)
Erm, a find/replace? "[[Category"->"[[:Category", or "[[:Category"->"[[Category". Seraphimblade Talk to me 19:18, 5 May 2018 (UTC)
A category with sortkey like [[:Category:Words|X]] would display as X. I have made {{Draft categories}} which avoids this issue, permits lowercase c in "category:", imitates how categories are displayed, and actually adds the categories if the page is in mainspace. Example:
{{Draft categories|
[[Category:Words|X]]
[[category:Animals]]
}}
produces:
Maybe the imitation is too good and should give an indication that the page is not actually in the categories. PrimeHunter (talk) 23:00, 5 May 2018 (UTC)
I've added a sentence about the categories not yet implying, feel free to improve my wording, and more discussion about the template should probably go to the template's talk page. rchard2scout (talk) 12:12, 6 May 2018 (UTC)

Recent change breaks scroll in p-cactions menu

A few days ago I added #p-cactions {overflow:scroll} to my Modern.css, as there are times when the links overflow the screen and I'd like to access them. It worked just fine, up to and including this morning (7:30AM EDT). I came back on around 11:30 EDT, and now there is a white bar obscuring most of the p-cactions menu bar. What changed in the intervening four hours? Adding that css code is sufficient to add the bar, and it happens here in safemode as well as other WMF wikis. Theoretically it affects vector, although obviously the dropdown menu means it just affects the appearance. It happens regardless of being logged-in or logged-out, and in Firefox, Chrome, and Safari. I first thought it was changed in the new software, but Special:Version says mw:MediaWiki_1.32/wmf.2 was installed days ago. Can't for the life of me track down what changed, figured I'd check here before going to phabricator. ~ Amory (utc) 16:34, 6 May 2018 (UTC)

I guess it's the personal navigation links from userpage to log out you want full access to in Modern. They wrap in Vector. I don't know how to get scroll to work but can you live with a smaller font instead, e.g. 70%:
#p-personal .pBody {font-size: 70%}
PrimeHunter (talk) 18:24, 6 May 2018 (UTC)
No, it's the #p-cactions menu (edit, history, delete, twinkle, etc.) It's the x-axis scroll bar blocking things; using overflow-y: scroll solves the issue. overflow: auto also works. I just can't figure out why it changed. ~ Amory (utc) 18:29, 6 May 2018 (UTC)

Page translation

Could someone please walk me through page translation? I made a small change to a template and now Wikimedia is trying to walk me through some byzantine translation process even though I didn't change anything translation related, and I even clicked "do not invalidate translations". Magog the Ogre (tc) 18:44, 6 May 2018 (UTC)

@Magog the Ogre: you should ask over at: commons:Commons:Translators' noticeboard. — xaosflux Talk 19:31, 6 May 2018 (UTC)
In short, you edit the main template, and mark it for translation - you should be done now. Normally a script/bot updates the other languages. Is there a specific one not working? — xaosflux Talk 19:32, 6 May 2018 (UTC)

Gadget issue

Now, I don't know if it's just because I'm using the black background with green text or what, but I have "Add two new dropdown boxes below the edit summary box with some useful default summaries" selected in gadgets, and the text is very light, so it's hard to see against the white background the same goes with the upper bar at the top of the edit box. screenshot (talk page stalker) CrashUnderride 22:58, 6 May 2018 (UTC)

Autorollbacker userright

What would you think of creating an autorollbacker user right that would automatically revert one's edits for a given time? Maybe it could be limited to rollbacking only non-autoconfirmed users and IPs to prevent abuse. If there is consensus to create this user right, I might start an RfC on it. Your suggestions would be welcome. Best, L293D ( • ) 16:14, 6 May 2018 (UTC)

You want to create a userright that automatically reverts any edit a user with that right makes? Am I understanding you correctly? ~ Amory (utc) 16:36, 6 May 2018 (UTC)
No. The right I am proposing would enable a trusted user to automatically rollbacke persistent vandals, so that they don't have to refresh their contribs every minute and revert. (To save time to CVU users) L293D ( • ) 16:38, 6 May 2018 (UTC)
(edit conflict)Ah okay, well that sounds like a block by another name. WP:AIV is the way to go. ~ Amory (utc) 16:47, 6 May 2018 (UTC)
No, persistent disrupting users should be blocked, not continuously reverted - and this sounds like you want it to run server side - to continuously monitor someones contributions and undo them. When all you have is rollback...everything is rollback?xaosflux Talk 16:43, 6 May 2018 (UTC)
@L293D: Re "server side" means this isn't something that can be done today, and either you would need to change mediawiki core, or write and have us adopt an extension for it; with blocking available I don't see either of these methods getting adopted. If you were thinking about something else on how the mechanics would work, please elaborate. — xaosflux Talk 16:51, 6 May 2018 (UTC)
Well, the idea was to rollback them until they get blocked. Sometimes it takes half an hour, as was the case with Lachlan the editor yesterday. L293D ( • ) 17:03, 6 May 2018 (UTC)
That does happen; no comment on the wiseness of doing so but one could have a script to do that... Galobtter (pingó mió) 17:06, 6 May 2018 (UTC)
@L293D: I think there are 2 better options: (1) become an admin, (2) revisit that "vandal fighter" type access with includes rollback, block, delete (but not undelete) - that gets opposed with "be an admin" arguments most of the time.. — xaosflux Talk 17:16, 6 May 2018 (UTC)
Well, for option 1, I have no chance of passing RfA anytime soon, but the "Vandal Fighter" right might be worth another RfC. If the proposal fails, then it would be nice if someone could write me a script that would rollback automatically, since I have almost no knowledge of Java. L293D ( • ) 17:25, 6 May 2018 (UTC)

Note: I left a request for an autorollbacking script at Wikipedia:User scripts/Requests. L293D ( • ) 19:16, 6 May 2018 (UTC)

Please do not edit war. Not even with a troll. And certainly do not use an automaton to edit war. Report to WP:AIV or, for more urgent cases, also report at WP:ANI. Johnuniq (talk) 23:11, 6 May 2018 (UTC)
I said I would be used against vandals while they await blocking. But as you said, the tool might be abused to edit war, so this is why I suggested that the script would accept autorollbacking only users who are reported to AIV. L293D ( • ) 13:45, 7 May 2018 (UTC)
Any client side scripts can be fully controlled by clients - this is just not technically feasible to work how you describe it, plus you shouldn't revert war with anyone. — xaosflux Talk 14:00, 7 May 2018 (UTC)

Tech News: 2018-19

16:27, 7 May 2018 (UTC)

How to find intitle matches for redirects in a category?

If, for instance, I search for intitle:Applied" with incategory:"Physics journals", I get the following. All is cool, that works.


However, if I search for intitle:Appl." with incategory:"Redirects from ISO 4", I get this. Which is no results at all.

How do I make this work? Can it be done?Headbomb {t · c · p · b} 01:06, 5 May 2018 (UTC)

@Headbomb: I'm fairly certain that search will not return redirects when using a keyword like incategory (this search doesn't work). The documentation at Mediawiki wiki indicates that this is definitely true for some parameters, but doesn't say so about incategory. I did use WP:PETSCAN to get all the pages and then exported it to CSV (I couldn't get petscan's title regex to work), where I filtered the page title column in LibreOffice Calc. That might be your best shot. --Izno (talk) 05:20, 5 May 2018 (UTC)
@Izno: The idea would be to have something that can search for this live on the wiki, that I can put in a search box on Category:Redirects from ISO 4, similar to (but not quite the same as) the search box in Category:Infobox templates. The CSV file would be mostly pointless here. I tried insource:"R from ISO 4" or hastemplate: "R from ISO 4" to find the templates used to populate the category instead, but that ignores redirects too. Headbomb {t · c · p · b} 05:27, 5 May 2018 (UTC)
Ah, then you might be SOL. You can try filing a phab task to get the attention of the search guys to see if they know a way to do that. --Izno (talk) 05:39, 5 May 2018 (UTC)
Yep, you found a rather complex bug. I filed a task for the search folks to take a look at. CKoerner (WMF) (talk) 16:48, 7 May 2018 (UTC)

Random picture of the day and {{rand}} flags

Is there a way to display a random picture of the day along with the corresponding caption?

Also, how can I set the {{rand}} template to restrict the numbers it picks. For instance 5-6? Also how can I set it to generate a leading 0 before any number smaller than 10 i.e. 01 not 1. --Tyw7  (☎ Contact me! • Contributions) 10:42, 8 May 2018 (UTC)

Wikipedia:Picture of the day#Random POTD says: Use {{User:My Chemistry romantic/Templates/Random POTD}} to display a randomly-selected POTD. PrimeHunter (talk) 11:14, 8 May 2018 (UTC)
Edit: I saw that after posting this msg. I've gone ahead and done my own version with the code

<center>[[Image:{{POTD/{{#invoke:random|date|2007-01-01|{{CURRENTTIMESTAMP}}|format=Y-m-d|same=yes}}|image}}|250px]]{{clear}} {{POTD/{{#invoke:random|date|2007-01-01|{{CURRENTTIMESTAMP}}|format=Y-m-d|same=yes}}|caption}} </center> {{User:Tyw7/picofday}}

--Tyw7  (☎ Contact me! • Contributions) 11:16, 8 May 2018 (UTC)

You could use mw:Help:Extension:ParserFunctions##expr to add a value to the result of {{rand}} but it may be easier to use Module:Random#Number. {{padleft:n|2}} from mw:Help:Magic words#Formatting will add a leading 0 if n is one character, e.g. {{padleft:1|2}}: 01. PrimeHunter (talk) 11:26, 8 May 2018 (UTC)
Thanks. --Tyw7  (☎ Contact me! • Contributions) 11:37, 8 May 2018 (UTC)

AdvancedSearch

Birgit Müller (WMDE) 14:45, 7 May 2018 (UTC)

Looks nifty! I suppose I'll find out tomorrow, but will this affect how search results are displayed in any way, or will it leave those unaltered? ~ Amory (utc) 15:44, 7 May 2018 (UTC)
Thanks :-) - no this will not affect how search results are displayed. Basically, AdvancedSearch serves as an interface for some of the special search options that are already provided in CirrusSearch, but are difficult to find or to remember - especially when you want to combine several of them. E.g. you would get the same results if you manually type intitle:foo into the search field or use advancedSearch for that. The main advantage of AdvancedSearch is: The existing options become way more visible, users don't have to know the syntax behind each search field, different parameters can be combined easily, and you can decide if you want to learn more about the search syntax (or just use it). - In case you test it in the next days - we're really interested in hearing how it works for everyone :-) Birgit Müller (WMDE) (talk) 14:24, 8 May 2018 (UTC)

Update on page issues on mobile web

Hi everyone. The Readers web team has recently begun working on exposing issue templates on the mobile website. This follows a proposal from 2016. Currently, details about issues with page content are generally hidden on the mobile website. This leaves readers unaware of the reliability of the pages they are reading. The goal of this project is to improve awareness of particular issues within an article on the mobile web. We will do this by changing the visual styling of page issues.

So far, we have drafted a proposal on the design and implementation of the project. We were also able to run user testing on the proposed designs. The tests so far have positive results. Here is a quick summary of what we learned:

  • The new treatment increases awareness of page issues among participants. This is true particularly when they are in a more evaluative/critical mode.
  • Page issues make sense to readers and they understand how they work
  • Readers care about page issues and consider them important
  • Readers had overwhelmingly positive sentiments towards Wikipedia associated with learning about page issues

Our next step would be to start implementing these changes. We wanted to reach out to you for any concerns, thoughts, and suggestions you might have before beginning development. Please visit the project page where we have more information and mockups of how this may look. Please leave feedback on the talk page. CKoerner (WMF) (talk) 19:34, 8 May 2018 (UTC)

Good Article/Mismatches

After posting here JJMC89 was kind enough to create Wikipedia:Good articles/mismatches. I can update this myself. One issue I am having is redirects. If someone moves a Good Article without changing the link from the lists then it is currently recorded as a mismatch. There are nearly 400 redirects in Wikipedia:Good articles/mismatches#On Wikipedia:Good articles/all but not in Category:Good articles and many of these will actually redirect to a Good Article.

One way to fix this is to remove all redirects from Wikipedia:Good articles/all. Then when I create the mismatch list they will not appear. Is there an automated way to fix redirects at Wikipedia:Good articles/all. I know WP:NOTBROKEN, but in this case it kind of is. Email me if you are worried about WP:Beans. Failing that do you know an easy way (i.e. a tool or AWB function - not something that requires a bot) to remove the redirect from the bottom list if it leads to an article in the top list. The article from the top list should also be removed at the same time. I would rather not use a bot as it means I can't keep it updated (and we have enough trouble with AWOL bots at GA at the moment). AIRcorn (talk) 19:21, 8 May 2018 (UTC)

@Aircorn: There is at least one gadget, and the possibility exists in your CSS, to display redirects in a different style than the default. That would get you most of the way to knowing which are the redirects, and removing or editing them as appropriate. --Izno (talk) 20:35, 8 May 2018 (UTC)
Thanks Izno. I have it enabled so the redirects show light green, which is how I came up with the 400 number. It does help, but there are a few issues. Not all redirects match up and some are genuine mismatches that need to be removed. This usually happens when an editor merges or redirects a Good Article to another article. The other problem is that for me it doesn't highlight the target article. I need to identify both so I can remove them from both lists. AIRcorn (talk) 22:47, 8 May 2018 (UTC)
@Aircorn: I use the CSS to check for redirects in navboxes--the way I know what the actual target article is is with either POPUPs (a second gadget) or Page Previews, which I think are in preferences under the Reading tab now (I use the Page Previews). --Izno (talk) 00:53, 9 May 2018 (UTC)

Bidirectional isolation bdi

I wrote a module at Commons that has worked well for 8 months. Now the links that it generates are broken. Like the template that it replaced, the module outputs links for navigation at Commons and it uses <bdi> (Bidirectional Isolation element) to wrap the label of each link so the browser can decide whether right-to-left text is needed. The first line that follows is an example of the output wikitext. The second line is the same with bdi removed.

  • <span style="white-space:nowrap">[[Algeria|<bdi>Algeria</bdi>]]</span>Algeria
  • <span style="white-space:nowrap">[[Algeria|Algeria]]</span>Algeria

The first line used to give a link just like the second line. Any idea what has changed that means it now doesn't? I merely copied the replaced template (which had performance problems) and don't know if bdi is necessary. Should bdi be used? The issue was raised at Commons here. Johnuniq (talk) 23:11, 8 May 2018 (UTC)

See this discussion above.
Trappist the monk (talk) 23:18, 8 May 2018 (UTC)
Excellent, thanks. That is now archived here and it mentions phab:T193414. The solution is to wait until the end of June for Tidy to be replaced with Remex. Johnuniq (talk) 03:05, 9 May 2018 (UTC)
A note re debugging: I tried a template with the problem at c:Special:ExpandTemplates and it worked correctly, whereas previewing the same template in a sandbox had broken links. I guess ExpandTemplates does not use Tidy and knowing that might be helpful if debugging stuff like this. I worked around the problem at Commons by temporarily removing bdi from the output. Johnuniq (talk) 03:38, 9 May 2018 (UTC)

Navbox behaviour

Has there been a change in the way navboxes behave? I'm sure that previously if I viewed a navbox on a page which is linked in the navbox, the link to the host article was disabled and displayed in bold but now that behaviour doesn't happen and a clickable link remains. Nthep (talk) 14:47, 9 May 2018 (UTC)

  • This disabling and bolding is for all links (e.g Wikipedia:Village_pump_(technical) is bolded and delinked); it hasn't changed to my knowledge. Perhaps in the instances you've seen the link in the navbox was a redirect instead of a direct link? Galobtter (pingó mió) 14:52, 9 May 2018 (UTC)
Definitely not a redirect and I realise now it might be a skin issue, I'm using Modern and a check shows no issue on Vector or Monobook. Nthep (talk) 14:59, 9 May 2018 (UTC)
It is a skin problem due to a change in the core parser. The task DJ links below applies to the same issue in Timeless; there should be a separate patch (and/or task submitted) for Modern. --Izno (talk) 16:33, 9 May 2018 (UTC)
This is phab:T192033TheDJ (talkcontribs) 16:15, 9 May 2018 (UTC)

Regex find in string?

Template:Str find/Module:String allows you to search for a string in a string. Is it possible to have them search for multiple strings in a string? Or to code something in LUA that would have an equivalent functionality?

For instance look for /(Medicine|Oncology)/ in 'Medicine journal'? Headbomb {t · c · p · b} 17:49, 9 May 2018 (UTC)

Looks like find in the module can take a regex. --Izno (talk) 18:15, 9 May 2018 (UTC)
So how would I structure the module invocation for that? {{#invoke:String|find|SOURCESTRING|REGEX}}? Because I don't see how a regex or (|) would play nice here. Headbomb {t · c · p · b} 18:44, 9 May 2018 (UTC)
(edit conflict)
All of the Module:String functions will use Lua patterns but Lua patterns don't support the alternation (|) operator. In Lua itself you would 'or' together the several string library functions to get the equivalent:
(string.match (source_variable, '(Medicine)') or string.match (source_variable, '(Oncology)'))
Using the String module:
{{#invoke:String|match|s={{{source}}} |pattern=Medicine |nomatch=}}{{#invoke:String|match|s={{{source}}} |pattern=Oncology |nomatch=}}
Trappist the monk (talk) 18:55, 9 May 2018 (UTC)

Blergh, that is ugly as sin, and likely above my coding chops. However, I think I can half-ass something if I stack a bunch of finds inside an ifeq.

{{#if:{{#invoke:String|find|SourceString|TargetString1}}{{#invoke:String|find|SourceString|TargetString2}}...{{#invoke:String|find|SourceString|TargetStringN}}|match|no match}}

Headbomb {t · c · p · b} 19:04, 9 May 2018 (UTC)

Need Help with variables and conditional logic in templates

Hi, I want to use conditional logic in this template: User:Wikiinger/sandbox/AMD GPU features. However somehow it broke the table. If someone can advice? Thanks! Wikiinger (talk) 19:50, 8 May 2018 (UTC)

What exactly is your difficulty? --Redrose64 🌹 (talk) 20:31, 8 May 2018 (UTC)
It's hard to help without knowing what you are trying to do. I guess some of your pipes should say {{!}} instead. That's a way for some features to display or return a pipe without the pipe being interpreted as part of the syntax for the feature itself. See mw:Help:Magic words#Other. PrimeHunter (talk) 22:20, 8 May 2018 (UTC)
The goal is to use parameters (here "fixed", "TeraScale" and "GCN") to control the table layout. More precisely when the template is called like this {{User:Wikiinger/sandbox/AMD GPU features|fixed=0|TeraScale=0|GCN=1}} only the rows belonging to the GCN instructions set (the 5 most-right) and the left-most row should be displayed.
However it is failing much more early... From my understanding {{{GCN|1}}} should default the GCN parameter to 1. Next {{#ifeq: {{{GCN}}} | 1 |! [[AMD RX Vega series|Vega]]|}}, should "print" ! [[AMD RX Vega series|Vega]] if GCN=1. But one (or both) of these statements seem to fail...Wikiinger (talk) 16:21, 9 May 2018 (UTC)
Both your statements are correct. I said I guess some of your pipes should say {{!}} instead. I took a guess at which ones.[31] Does that help? It sounds like you are confusing rows and columns. Rows are horizontal and columns are vertical. There is no "left-most row". If you want to hide a whole column then you have to hide each cell in the column. PrimeHunter (talk) 20:39, 9 May 2018 (UTC)
Take a careful look at https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions, and also Help:Conditional expressions.
Something to note: 'ifeq:' is for comparing string functions, and might get confused with numeric comparisons. Try a simple "if:" instead. E.g.: {{#ifeq: {{{GCN|0}}} | {{!}} Jan 2012}}. Note that logical value of both a supplied string value and a digit "1" are "true". ♦ J. Johnson (JJ) (talk) 21:19, 9 May 2018 (UTC)
I think you mean {{#if: {{{GCN|}}} | {{!}} Jan 2012}}. #if: is true for any non-empty string including the string "0", so {{#if: {{{GCN|0}}} | {{!}} Jan 2012}} returns {{!}} Jan 2012 if GCN is not set. PrimeHunter (talk) 21:36, 9 May 2018 (UTC)
Yes. ♦ J. Johnson (JJ) (talk) 23:04, 9 May 2018 (UTC)

"a failed attempt to log in to your account" alerts

two-factor authorization

As I sit here reading a notification that there has been a failed attempt to log in to my account, I find myself wondering how it is the site I spend the most time on is the only site I spent much time on that doesn't have multi-factor authorization. I'm quite sure this has come up before, but apparently I don't know a good search term for the VP archives. Now, I have a pretty strong password, but it's unsettling nonetheless, as it most certainly was not me who tried to log in. — Rhododendrites talk \\ 13:34, 3 May 2018 (UTC)

@Rhododendrites: 2FA is in pilot right now, see meta:Help:Two-factor authentication for information on the implementation. There are many issues preventing large-scale rollout, see the phabricator workboard for an overview of the work to be done. — xaosflux Talk 13:40, 3 May 2018 (UTC)
@Rhododendrites: See also Wikipedia:Simple 2FA. --Izno (talk) 13:41, 3 May 2018 (UTC)
Thanks. As I'm not an admin, it doesn't look like there's anything I can do at this point. Reading over the meta page, however, I wonder what reason there is for this to be seemingly more involved than other systems. Why not just use the texted code like everyone else? I'm sure that would require a little investment from WMF, but this sure seems like a good use of its cash... — Rhododendrites talk \\ 13:50, 3 May 2018 (UTC)
Texted codes are not all that secure, so the privacy implications of storing people's phone numbers and the expense of an SMS gateway don't seem to be worth it. Others, such as Google and NIST, are moving away from SMS-based 2FA. Anomie 12:37, 4 May 2018 (UTC)
Also, though it's not something typically offered with this sort of mechanism, it might also be useful to determine the IP that tried to log in. In this case, the notification came shortly after my first edit of the day, this revert. With an unregistered user, there's not a whole lot of point except as an additional reason to block, but it makes me think that registered users might do it, too, in which case that information would be important if confirmed via checkuser. Getting into a whole can of worms there, I know. — Rhododendrites talk \\ 13:56, 3 May 2018 (UTC)
@Rhododendrites: if you really really really want it, you can request tester access at meta SRGP - there is no good way to manage these and you could lose access to your account forever. Some recovery options are being discussed on some of the tasks I linked to in the phab workboard. As far as the logon notifications, much discussion is in place regarding improving these and including more information that may be useful (see phab:T174388). — xaosflux Talk 14:24, 3 May 2018 (UTC)
Rhododendrites, I just also got one of those (for the first time in 11 years). Does WP record the IP of these attempts? If so, is this information available for discussion at a venue like this? Why should anyone try to do this when it's pretty obvious I'm logged in and editing? Perhaps it's some kind of stupid bot?| Thanks. Martinevans123 (talk) 14:51, 3 May 2018 (UTC)
This type of notification has only been available for about a year. Right now it is informational only, bots try to hack accounts all the time. — xaosflux Talk 15:09, 3 May 2018 (UTC)
Do they try to hack my account all the time? Or have they tried all the time in the last year? Or are you saying that bots won't trigger this warning? Thanks. Martinevans123 (talk) 15:23, 3 May 2018 (UTC)
Note, the bots I refer to are not "wikipedia bots" - these are malicious parties on the internet; and they try to hack lots of accounts all the time. I got a failed logon notification myself today. For the most part, you don't need to do anything on these - if you find the notifications annoying, you can turn them off in preferences. — xaosflux Talk 15:34, 3 May 2018 (UTC)
Understood. From your last reply it seems like you are assuming the notifications that all three of us got were triggered my malicious bots. I'm quite happy that I don't need to do anything (although if I start to get one every day, I might do something anyway). I'm just wondering how often other folks get these notifications, whether IP's are recorded and if anyone does anything as a result. Sorry is this has careered off topic. Thanks. Martinevans123 (talk) 15:45, 3 May 2018 (UTC)
A lot of other people have received this notification, it doesn't seem to stop, even on frwiki we receive a notification from enwiki. See [32]. Lofhi (talk) 16:09, 3 May 2018 (UTC)
That's a very interesting graph! That looks quite cataclysmic. Can the WMF issue any information on where these attempts are being made? Martinevans123 (talk) 19:11, 3 May 2018 (UTC)
Unless any of the attempts are succeeding, I'm guessing someone's re-using the list that got Jimbo and some other admins hacked last year. If you've changed your password in the last few months then you should be safe. Ian.thomson (talk) 19:19, 3 May 2018 (UTC)
Wait, I see that there was a new data dump in February that seems to have built off of the one from the Anti Public Combo List and other breaches. I haven't grabbed it yet, and hopefully I'm right that if no accounts have been compromised so far, then it's probably older passwords. It'd be a good idea to check haveibeenpwned.com. Ian.thomson (talk) 20:02, 3 May 2018 (UTC)
Yep, I got one (my first) about a half-hour ago, too. Does the Foundation take note of bursts of failed login attempts? TenOfAllTrades(talk) 16:31, 3 May 2018 (UTC)
Similarly to TenOfAllTrades, I've just got my first such notification ever where it hasn't been me on a different device. Is this sort of rate common or is something going on? Red Fiona (talk) 17:37, 3 May 2018 (UTC)
Same here, got my first today. DuncanHill (talk) 18:13, 3 May 2018 (UTC)

But hey, it's World's password day, so... --Edgars2007 (talk/contribs) 18:46, 3 May 2018 (UTC)

I got one of these. I just ignored it as I have 2FA. Doug Weller talk 19:12, 3 May 2018 (UTC)
Ah thank goodness. So it's not Vladimir after all. It's just Big Brother reminding us to choose a better one. Martinevans123 (talk) 19:17, 3 May 2018 (UTC)
Add me to the list of people that got their first "failed login" notification today. --Ahecht (TALK
PAGE
) 21:13, 3 May 2018 (UTC)
Add me to the "failed login attempts" as well. Multiple attempts 8 hours ago.  Aloha27  talk  14:05, 10 May 2018 (UTC)

Question: if I simply mistype my password and fail to log-in, will I get another one of these messages? Or does it look at the device used as well? Thanks. Martinevans123 (talk) 10:54, 4 May 2018 (UTC)

@Martinevans123: if you are using a "known device" there has to be many failed attempts (5) before the notification is generated. — xaosflux Talk 12:54, 4 May 2018 (UTC)
Thank you for that clarification. I suppose some users may now be tempted to try this on their own accounts just to test the system. Is there any reason they should not? Martinevans123 (talk) 13:11, 4 May 2018 (UTC)

password resets failing

This seems to be some sort of mass password reset troll. At threads at both WP:AN and WP:TEAHOUSE users are reporting that after receiving the notification they are unable to actually reset their password. One user report trying 17 times and failing. Software glitch? Beeblebrox (talk) 18:39, 3 May 2018 (UTC)

@Beeblebrox: They may be getting the message "A password reset email has already been sent, within the last 24 hours. To prevent abuse, only one password reset email will be sent per 24 hours." If so, this is expected as it has a throttle on it, there is some discussion of changing this at phab:T181070. — xaosflux Talk 18:53, 3 May 2018 (UTC)
I can verify that I have not received that message as I don't have email. The only messages I get when I try are the standard "Incorrect username or password entered. Please try again." except once when it told me to wait for five minutes. -- Millionsandbillions (talk) 19:08, 3 May 2018 (UTC)
I really hope everyone changed their email password at least once (in addition to their WP password) after that incident where Jimbo got hacked. Ian.thomson (talk) 19:21, 3 May 2018 (UTC)
Just changing a password makes no difference, however many times you do it. You need to change it to something stronger? 86.187.160.63 (talk) 07:50, 4 May 2018 (UTC)
If whoever is doing this is using a list of passwords from some other sites (which is generally how accounts get compromised here), then yes, changing the password is going to help. If they're going after as many accounts as possible, and most of us are only getting one failed login attempt, then it's save to assume they're not taking the time to brute force every possible combination (which is where password strength matters). Ian.thomson (talk) 14:48, 4 May 2018 (UTC)

Illicit signin

I just got a message saying someone has tried to sign in to my acc from an unrecognized device. So I changed my password. Thing is - NOBODY can access my stuff - except maybe someone who is on my network. I share my hub with some neighbours; it would be immensely helpful to me if sysops could tell me if the interloper was "coming from inside the house". Sysops know my address - was the interloper from the same address? MarkDask 19:27, 3 May 2018 (UTC)

I got the same notification today, which was first time ever. So either someone is trying all usernames with "123456", "qwerty", "password", and other common passwords ow someone is testing new notification features. --Jarekt (talk) 19:39, 3 May 2018 (UTC)
See Wikipedia:Administrators' noticeboard#Please help- who tried to break into my account? and #two-factor authorization just above. Amaury (talk | contribs) 19:44, 3 May 2018 (UTC)
Have you checked haveibeenpwned.com? Ian.thomson (talk) 20:02, 3 May 2018 (UTC)
Received the same message today, also for the first time. Is this perhaps a large-scale attack? GregorB (talk) 21:00, 3 May 2018 (UTC)
@GregorB: I guess they don't like me as I haven't received any such notifications so far today, but yes, it appears to be a widespread and planned attack, not just one of those every now and then things. Amaury (talk | contribs) 21:02, 3 May 2018 (UTC)

────────── Thanks all. I think two factor authorization on here would be a step too far. That said - I dont like being told someone might be trying to hack my space so I've dissed all my hangers-on. (Sigh) - I've taken back control of my hub   - (screaming in the background). MarkDask

I also woke up to three failed log-in attempts. Odd. Anarchyte (work | talk) 22:46, 3 May 2018 (UTC)
There's a thread on this happening at WP:AN I got a notice of a failed attempt to hack my account. Others are getting it also. I already have the 2-factor enabled, but I also changed my password after the failed attempt.— Maile (talk) 00:01, 4 May 2018 (UTC)
  • From what I’ve been told, there were 60,000-70,000 failed logins per hour for several hours. So, tens of thousands of users got these messages, but they do not represent an actual security breach, just some troll with a little bit of programming knowledge that set up a trollbot.
That being said, it’s worth it for everyone to review WP:STRONGPASS and WP:SECURITY Beeblebrox (talk) 00:15, 4 May 2018 (UTC)
According to this graph, the attack is still underway. Anyone who has a weak password needs to change it immediately please. — Diannaa 🍁 (talk) 00:51, 4 May 2018 (UTC)

Attempted login breach on my account

Good morning. I wonder if you could help me out please? Approximately 9 hours ago (9pm UTC, May 3rd) an attempt on this Wikipedia was made to login to my account. The wrong password was used, thankfully, and I got flagged. Does Wikipedia record logins and where they originate from please, and if so, is there anything you can do? Obviously you can't tell me who it was, but I'm curious as to why someone would attempt to access my account. Thanks. Dane|Geld 05:49, 4 May 2018 (UTC)

I received the same message regarding a login attempt within the same time frame.--John Cline (talk) 05:54, 4 May 2018 (UTC)
Yes, see above (especially the phab ticket). Killiondude (talk) 06:01, 4 May 2018 (UTC)
I and my fellow mates on Marathi wikipedia too have got this notification from English Wikipedia. I think we must also have a two factor authentication like gmail on wikipedia. --✝iѵɛɳ२२४०†ลℓк †๏ мэ 13:37, 4 May 2018 (UTC)

Detecting suspicious failed logins

Is there anything in the software that would notice if one IP address were making a lot of failed login attempts to different accounts? (I got an email that here had been an attempt to log into my account from a new computer and to make sure I had a strong password. A lot of people have commented on getting this message. If it's part of a lot of attempts has noticing it been automated?) RJFJR (talk) 14:12, 4 May 2018 (UTC)

RJFJR Moving this thread up to appropriate section. See all above, been happenig to everybody.Two sections up, Diannaa has said the attack is still happening, and included this link: this graph — Maile (talk) 14:33, 4 May 2018 (UTC)
Are they all coming from the same IP? Would blocking the IP help? RJFJR (talk) 19:34, 4 May 2018 (UTC)
My understanding is that technically this isn't possible. It's not possible to see the burglar until he gets through the front door with his counterfeit key? Am surprised though. Martinevans123 (talk) 08:28, 5 May 2018 (UTC)

I changed my password, and now I can't log in

  Resolved

Hey, i received the same message two days ago and changed my password. The next day i was logged out and my new and old password don't work. I requested a new password to my actual mail adress but that was not the one, which was listed under "preferences" and of course none came. The one adress listed is dead. Any chance to get my old account (Kante4) back? Kante44 (talk) 08:52, 5 May 2018 (UTC)

Yup, all good now. Kante4 (talk) 20:12, 5 May 2018 (UTC)

login log check possible?

Is there a log of my login attempts, a log I can see? Or can someone please check that log for me? I was notified that about 5 days ago a login attempt failed. Then I was notified by an email stamped Sunday for 8:01p that someone, probably I, had "recently" logged in. I did log in Saturday night from a network I haven't used in a while and logged off some time around 2 a.m. Sunday, but not at the time the email was sent. But the email says "recently", so maybe you meant my Saturday night login. My Special:Contributions end with a contribution I made; no one contributed under my username since then. I since changed my already-secure password to a still-more secure one. Is there a way to find out the time of the last login under my username last Sunday (if any) (not a login for Monday or since)? Thank you. Nick Levinson (talk) 21:11, 8 May 2018 (UTC) (Correction: Forgot the tildes.)

Short answer, no. But @Nick Levinson: there is a task being considered to add more information to this, you can follow it here: phab:T174388. — xaosflux Talk 21:16, 8 May 2018 (UTC)

Page performance study on other wikis

 
This should not be considered evidence of malware in the user's computing environment.

Just a quick heads-up that Technology's Performance team is planning to start a little on-page microsurvey later this month. It won't be running on enwiki, but somehow, all roads lead to VPT when people are surprised by what's on their screens... Feel free to ping me if someone brings questions to you about this. Whatamidoing (WMF) (talk) 21:44, 10 May 2018 (UTC)

I'm adding searchable text so people can find this. "Did this page load fast enough?" "For more information, see this survey's privacy statement." PrimeHunter (talk) 22:07, 10 May 2018 (UTC)

Control level of section auto collapse in mobile

In mobile views, only the first level of headings is auto-collapsed, when it's expanded, all subsections are already expanded.

Visit WP:ITNC on a mobile device (browser, not app, I don't use the app so I don't know) and you'll see how crazy huge it gets. I'm wondering if this can be controlled somehow on a per page basis. I'd be thrilled if all the date specific subsections under "Suggestions" were collapsed. --LaserLegs (talk) 12:15, 11 May 2018 (UTC)

nope, this cannot be controlled right now. —TheDJ (talkcontribs) 12:44, 11 May 2018 (UTC)

"Page previews" doesn't show image

As explained here, I can't see S.L. Benfica's logo when hovering over the link S.L. Benfica. Can you confirm this issue? SLBedit (talk) 22:12, 6 May 2018 (UTC)

I can confirm it. mw:Page Previews (previously called HoverCards and not the same feature as Wikipedia:Tools/Navigation popups) omits displaying an image for lots of articles which have an apparently suited image, for example most clubs below the top-5 at 2016–17 Primeira Liga#League table. I don't know its algorithm. It doesn't have a ban on non-free images. It's possible it will only show images designated as the page image by mw:Extension:PageImages. Page information for S.L. Benfica shows the logo is the page image so this doesn't explain why it's omitted. Limited testing indicates that Page Previews may prefer larger images and svg images. PrimeHunter (talk) 23:32, 6 May 2018 (UTC)
Yes, the PageImages extension provides the image for page previews. mw:Extension:PageImages#How are images scored? indicates the scoring algorithm. It's probably being discarded in this case because of its aspect ratio. --Izno (talk) 01:27, 7 May 2018 (UTC)
If it wasn't picked by PageImages then the ratio might explain it but File:Sport Lisboa e Benfica Logo Reduced res.png is picked by PageImages and then rejected by Page Previews. Can that also be due to the ratio? It's 300×300 png. Page Previews displays the 316×316 File:Associação Académica de Coimbra logo.svg for Associação Académica de Coimbra – O.A.F., but not the same size File:Atletico Sport Clube Reguengos.png for Atlético S.C. Both are picked by PageImages. Observations like this made me suspect svg is preferred but I have limited data and it's not mentioned in the documentation. PrimeHunter (talk) 10:45, 7 May 2018 (UTC)
@SLBedit, PrimeHunter, and Izno: Per English Wikipedia community request, PagePreviews won't ever show an image categorised as non-free. The images you highlight are all added to said category through {{Non-free logo}}; if you think the community erred in this request, I'd recommend an RfC, but I imagine fellow volunteers will disagree. :-) Jdforrester (WMF) (talk) 19:53, 7 May 2018 (UTC)
As I mentioned, Page Previews displays File:Associação Académica de Coimbra logo.svg but not File:Atletico Sport Clube Reguengos.png. Both use {{Non-free logo}} and have the same non-free categories, except the displayed image also being in Category:Wikipedia non-free files with redirect backlink but that doesn't seem relevant. PrimeHunter (talk) 20:05, 7 May 2018 (UTC)
Most club logos are non-free, so your explanation doesn't make sense to me. SLBedit (talk) 21:10, 7 May 2018 (UTC)
@Jdforrester (WMF), SLBedit, PrimeHunter, and Izno: the information about PagePreviews excluding non-free images was mistaken. The timeline is a bit complicated. Initially the function PageImage would return any image, free or non-free. That resulted in non-free images appearing in inappropriate places. So PageImages was modified to exclude non-free images. Later I suggested to the PagePreview manager that non-free was OK in previews - previews appropriately tie the images to significant related educational text. I opened the RFC Non-free_content/Hovercards, with consensus and an update to Non-free_content#Exemptions policy. Phab T131105 enhanced the PageImage function to default to free images only, and to include non-free images on request. Finally, per Phab T147317, PagePreviews were updated to include non-free images. Alsee (talk) 23:16, 11 May 2018 (UTC)

TOC broken on my watchlist

Over the last few days, I’ve noticed two things on my Special:EditWatchlist page. First, the checkboxes have changed from the little grayish 3D-looking buttons to blank white squares. At the same time, I’ve found that clicking on the links in the table of contents has no effect anymore; I end up having to manually scroll down the page.

I don’t care about the checkbox appearance, but I wish the links in the TOC would work. [running Mobile Safari in iOS 11.3.1 on iPad; viewed as desktop version] NotARabbit (talk) 02:55, 12 May 2018 (UTC)

The page was recently updated to use OOUI. I've reported the bug. — JJMC89(T·C) 05:53, 12 May 2018 (UTC)

Something's wrong with 'unsortable' column headers

Hi,

Since maybe 24 or 48 hours, the headers of the columns with the 'unsortable' attribute are sized just like a sortable column, without the sorting button.

I take this example from Wikipedia:Sortable.

Numbers Alphabet Dates Currency Unsortable
1 Z 02-02-2004 5.00 This
2 y 13-apr-2005 Column
3 X 17.aug.2006 6.50 Is
4 w 01.Jan.2005 4.20 Unsortable
5 V 05/12/2006 7.15 See?
Total: 15 Total: 22.85

A better example is Opinion polling for the next Dutch general election#Seats. The table has 19 columns, of which 16 are unsortable. Now look at the headers. On each of these 16 headers, the text has moved to the left (when it should be centered), and there is a large unfilled space on the right, probably meant for the button, despite it doesn't have to be there. As a result, the table is twice as high as before because the rows' height has doubled (except, I suppose, on very large screens).

It does not seem to be browser-related, but maybe it is Firefox 60's fault.

Kahlores (talk) 01:57, 11 May 2018 (UTC)

This is a deliberate change, to avoid the browser having to re measure everything when the sorting system is applied. I've created phab:T194451 to improve the case of unsortable columns. —TheDJ (talkcontribs) 07:32, 11 May 2018 (UTC)
The columns are also definitively not the correct width, either; now they're about 67px when they're supposed to be just 40px wide. Mélencron (talk) 14:13, 11 May 2018 (UTC)
Very true. So we'll have to manually reduce the width of every unsortable column until we find something correct? I don't know the extent of the attribute's use on Wikipedia as a whole, but there are certainly hundreds of polling pages affected. On the Dutch page, we must change from "width:40px;" to "width:22px;" or smaller, so that it fits (at least on my screen). In fact, removing the width property altogether is the best solution. But we can kiss goodbye to columns of equal width, when there are plenty like on the Dutch page. Kahlores (talk) 15:14, 11 May 2018 (UTC)
I think it's a bug/unintended behavior – as far as I can tell the new column widths seem to be dependent on the width of the text within the columns, which is... annoying, to say the least. I hope this can be resolved soon – a temporary "solution" would just be to drop the sortability of the tables entirely to restore the normal appearance. Mélencron (talk) 15:26, 11 May 2018 (UTC)
Sorry. It's a side effect of a deliberate change. It will be fixed for unsortable columns. I don't think anything changed for other columns. However.... I would say that if you need to tweak widths of columns, then maybe you are trying to squeeze too much data into a table. Wikipedia is not a spreadsheet. It's not a database. Good luck to the reader with a table like that on a mobile device... Good prose, good graphs etc are way more useful than big tables of election results. —TheDJ (talkcontribs) 15:38, 11 May 2018 (UTC)
It's never a good idea to force table column widths, particularly if you're doing it to make it look nice and neat on your own screen. You have no idea how wide anybody else's device is, particularly in this era of ultra-wide desktop monitors coexisting with android phones held vertically. The only sensible thing to do is omit all width specifiers, and let the browser work it out based upon the column content. --Redrose64 🌹 (talk) 07:11, 12 May 2018 (UTC)

Hidden text

Let's say I want to add something that makes editing articles easier to an infobox, but only display it to editors that choose to see this, rather than to everyone. How would I do that (with CSS or something).

e.g.

Readers Opt-in editors
Publications details
Publications details
Search for {{{1}}}

Headbomb {t · c · p · b} 19:53, 11 May 2018 (UTC)

  • In general editor notes are done with HTML comments, only visible in the source. Anything else would be a hack to "hide" from everyone (like with a display=none directive) except for people that knew to make their own directive to override it. I don't think this is a good idea for articles - what are your use cases? — xaosflux Talk 20:05, 11 May 2018 (UTC)
    @Xaosflux: Basically, in {{infobox journal}}, I'd want a sort of "look for sources" series of links that cross checks the ISSN/publication title with several databases/National Libraries. This would allow us to fill other infobox parameters more easily and expand the articles. It's not something that should be displayed to readers, since it'd be an editor help, not reader help. The display=none thing sounds like exactly what I need, I just don't know how to set it up so I can override it in my .css/.js settings. Hidding the text is easy <span style="display:none;">...</span>. The problem is making it display. Headbomb {t · c · p · b} 20:13, 11 May 2018 (UTC)
    You can make your own, pointed to the same class and include a !important; designation to override with a new setting. Making a change to all infoboxes just for YOU is a horrible idea though! — xaosflux Talk 20:54, 11 May 2018 (UTC)
    I tried that, but it seemed to just not work. And it wouldn't be just for me, but rather for a handful of editors that heavily deal with that infobox. It's the difference between being able to improve 100s articles per day because you've got everything you need at the end of a click, or 5 articles per day because you have to do a dozen queries by copy pasting from the infobox into a variety of databases. Headbomb {t · c · p · b} 21:03, 11 May 2018 (UTC)
    Well whatdoyouknow, now it works. Probably been a cache issue. (Edit: Turns out the issue was a stray ;).Headbomb {t · c · p · b} 21:10, 11 May 2018 (UTC)
    @Headbomb: I think project-wise a better solution would be to just add a unique class to the box, then use user javascript to add the special links. — xaosflux Talk 00:02, 12 May 2018 (UTC)
    Well, people are free to code that, but that's beyond my skills. Headbomb {t · c · p · b} 00:03, 12 May 2018 (UTC)
    I agree that it is coding, but you might be able to puzzle it out. The help text at CS1 errors might help you figure it how the CS1 templates do it. – Jonesey95 (talk) 03:22, 12 May 2018 (UTC)
    We already have cases of links that are normally hidden but which may be revealed with some user CSS. For instance, any WikiProject banner template that is built around {{WPBannerMeta}} has three "v-t-e" links which are normally hidden; these may be revealed with the CSS rule
    .wpb .navbar {
      display: inline !important;
    }
    
    Similarly, stub templates built around {{asbox}} also have three "v-t-e" links which are normally hidden, and these may be revealed with a very similar CSS rule
    .stub .navbar {
      display: inline !important;
    }
    
    These use the !important annotation (which is normally a cop-out since it's usually better to increase the specificity of the selector) because the display:none; declaration which we are overriding is part of the element's style="..." attribute. --Redrose64 🌹 (talk) 19:41, 12 May 2018 (UTC)
@Redrose64: those banners are not meant for pages normally used by readers that could get hit with a FOUCed up display. — xaosflux Talk 19:58, 12 May 2018 (UTC)
In general, we tend to avoid this technique in article space. As noted, it is used in some areas outside of article space and it is also in use on elements of transitory nature (notices). But making it part of the article content is general frowned upon. Especially, when it is used in the top of the article, where search engines etc tend to pick it up and possibly accidentally include it in their previews. Other transformed views could also be affected, think for instance of a machine learning system being fed this accidentally. This is also my problem with the current implementation of {{short description}}. xaoxflux suggestion of using a class and gadget seems like an interesting approach. —TheDJ (talkcontribs) 20:10, 12 May 2018 (UTC)
I don't see how FOUC is an issue in my two examples. Both templates use style="display:none;" so unless the browser ignores style attributes when first displaying the page (and I don't know of any that do), the first that the user sees of the v-t-e links is when the style sheets are processed. They then appear, and do not disappear again. --Redrose64 🌹 (talk) 20:20, 12 May 2018 (UTC)

can I check my contributions across all Wikimedia sites for hacked login?

There was a login possibly not by me (after which I changed my password). I checked contributions under my username at en-Wiki and there were none not by me, so that's good, but can I check for contributions across all Wikipedia projects and sites and all languages under my username within a time period of a few days between two legitimate logins? That's too many sites to check by hand, because I think there are hundreds of sites (including languages). Nick Levinson (talk) 02:44, 11 May 2018 (UTC)

@Nick Levinson: you can use Special:CentralAuth/Nick Levinson to see all the sites you have made ANY edits on very quickly, as well as your approx first use date on a wiki. — xaosflux Talk 02:48, 11 May 2018 (UTC)
You could also use a tool like this one but it is much slower. — xaosflux Talk 02:50, 11 May 2018 (UTC)
@Nick Levinson: Did it say there was an actual login, or a "failed attempt"? If it was a failed attempt, there is probably no need to worry -- there is a wide-ranging login attack affecting a huge number of editors that has been going on for several days now. If you want to check your global contributions, you can do so at https://tools.wmflabs.org/guc/?by=date&user=Nick+Levinson --Ahecht (TALK
PAGE
) 02:51, 11 May 2018 (UTC)
It was an actual login, preceded by a few days by a failed one. The actual login may have been by me, but since the email did not say when it was (only that it was "recently") and I did not log in at the date-time of the email's time stamp, I decided to be cautious (to my annoyance) by changing my password.
The slow method is good, although it can't be used too soon after the period in question (someone has to wait, and maybe make a later edit to be sure of completeness) (whether the 20-edit limit matters I don't know). The generic URL for it is https://tools.wmflabs.org/guc/. The other (faster) page does not show edits within a time period, so it does not work for this purpose.
Nick Levinson (talk) 20:51, 12 May 2018 (UTC)

Editing the Quick links on the left Margin

Hi, I returned after a very long hiatus. I have completely forgotten how I had edited the Quick links on the left Margin of this page. (The list of links below the Wikipedia logo on the left). I had placed a few customized links here and cant seem to remember how I had done it. or may be the newer Wikimedia software has made it harder to do so. In any case I thought may be someone here knows how to edit it. --DBigXray 19:26, 12 May 2018 (UTC)

You did this using javascript in your User:DBigXray/common.js. Ruslik_Zero 20:33, 12 May 2018 (UTC)
(e/c) I cleaned that up a bit for you, because you had some older and/or non-working stuff in your User:DBigXray/common.js. —TheDJ (talkcontribs) 20:38, 12 May 2018 (UTC)

Odd templating issue

Can someone take a look in the BASIC-PLUS article? About half way through there is the text code|MAT A=ZER, which is being rendered as {{{1}}} on-screen. None of the other code templates is having a problem, why this one? Maury Markowitz (talk) 10:44, 13 May 2018 (UTC)

Wait, now LOTS of them are broken. I assume a missing { or } somewhere. Maury Markowitz (talk) 10:47, 13 May 2018 (UTC)
Or is it the equals sign? Maury Markowitz (talk) 10:50, 13 May 2018 (UTC)
It is the equals sign, Maury Markowitz; {{code|MAT A=ZER}} breaks as mediawiki thinks there's an argument |MAT A= being passed with the value ZER instead of the whole "MAT A = ZER" as the first argument. I've fixed it as in hereGalobtter (pingó mió) 10:56, 13 May 2018 (UTC)

Search string

Can a search be refined to show results for articles with two or more images?--John Cline (talk) 14:39, 13 May 2018 (UTC)

Adding insource:File insource:/File:.*File:/ to a search will find pages where the wiki source says "File:" at least twice. That misses cases with images added in other ways, and the search is slow and may time out if there are many results on the part before the insource code. PrimeHunter (talk) 14:59, 13 May 2018 (UTC)
Thank you. It works just as you said.--John Cline (talk) 15:38, 13 May 2018 (UTC)

Wikipedia bug?

 
black squares

Is it just my computer or is there a bug on Wikipedia. I've been noticing black squares appearing now & then on articles during both editing & viewing. GoodDay (talk) 00:54, 27 April 2018 (UTC)

GoodDay, next time you see one like that, please link the article here, along with where the black squares are appearing. By any chance, have you been reading any articles that deal with foreign people or places that use a non-European language? Mathglot (talk) 01:09, 27 April 2018 (UTC)
They appear randomly & disappear randomly. Sometimes flickering into different places on the same article, each time I press a key. GoodDay (talk) 01:41, 27 April 2018 (UTC)
GoodDay, please try to get a screenshot of that, if possible. In the meantime, what's your browser and OS? Maybe people with a similar setup could try watching out for it. Whatamidoing (WMF) (talk) 02:13, 27 April 2018 (UTC)
I don't understand those terminologies. If anyone else has noticed these things, then I'll know it's Wikipedia related, not just my computer. GoodDay (talk) 02:15, 27 April 2018 (UTC)
See Wikipedia:Screenshots of Wikipedia. The most popular web browsers are Chrome, Firefox, Safari, Internet Explorer, and Edge. OS means operating system, e.g. Windows 10. PrimeHunter (talk) 02:31, 27 April 2018 (UTC)
This is also happening to me on bn.wiki (see right). Browser google chrome, latest version, windows 8. This appear randomly. --আফতাব (talk) 20:33, 27 April 2018 (UTC)
It appears to be a Chrome problem also affecting other websites. https://bugs.chromium.org/p/chromium/issues/list?q=black+boxes shows several reports this week. PrimeHunter (talk) 21:40, 27 April 2018 (UTC)
I do see such boxes on my Firefox browser sometimes, also on other websites. Usually if I have a very large amount of tabs open. Jo-Jo Eumerus (talk, contributions) 09:19, 28 April 2018 (UTC)

Those black cubes are still floating around. GoodDay (talk) 21:55, 5 May 2018 (UTC)

I've had something like this intermittently for years. See Wikipedia:Village pump (technical)/Archive 144#Interminable flashing from 2016, for example. Nyttend (talk) 22:12, 13 May 2018 (UTC)
PS, GoodDay, I meant to ping you at first. Nyttend (talk) 22:12, 13 May 2018 (UTC)
Ah hah. GoodDay (talk) 22:38, 13 May 2018 (UTC)

External links on disambiguation pages

Can someone produce a report listing all disambiguation pages with external links? I tried a search for insource:http deepcat:"all disambiguation pages", but this found a bunch of false positives, e.g. IN because a hidden comment includes the URL http://en.wikipedia.org/w/index.php?title=IN&oldid=300398091. Searching for insource:[http, with a bracket before the http, produced identical results. Nyttend (talk) 22:42, 13 May 2018 (UTC)

How about insource:http insource:/\[http/ deepcategory:"All disambiguation pages"?
(Note: the first "insource:http" is to limit the number of matching pages that will be searched with the regular expression, see Help:Searching#insource: and Help:Searching/Regex#Regular expressions.) --Pipetricker (talk) 23:23, 13 May 2018 (UTC)
quarry:query/18417 — JJMC89(T·C) 23:58, 13 May 2018 (UTC)

Feedback round: A proposal for referencing sections of the same work more easily

 
A mockup of how referencing sections of the same work more easily could work. Please leave your feedback here

Referencing multiple sections of the same work in an article is currently cumbersome. Editors have asked for an easier way to do this for more than ten years. In 2013 and 2015 a wish to change this made it into Wikimedia Germany’s Technical Wishlist and it was wish #24 in the international Community Wishlist survey 2015.

WMDE’s Technical Wishes team conceptualized an idea how the problem could be solved: A generic solution that can be used for any refinement, such as pages, chapters, verses etc., and that could be used as a voluntary option, not forcing the users who don’t want to change their working mode to use it.

In order to find out if we can start working on this solution, we’re inviting editors from all wikis to have a look at it and tell us what they think in a feedback round from May 14th to May 27th. Thanks to everyone who participates and helps spreading the word!

-- Thank you, Johanna Strodt (WMDE) (talk) 07:42, 14 May 2018 (UTC)

Possible spambots targeting Wikimedia mailing lists

Hello,

A large number of @AOL.com email addresses just signed up to our usergroup mailing list (seemingly also successfully passing the "confirm email" requirement as well). Just curious if any other mailing list admin faced this?

Suspecting this to be some sort of spambot targeting Wikimedia mailing list(s), I have removed all of them, and changed mailing list rules to require admin approval. I've also posted a notice on our usergroup. About 6 addresses managed to successfully subscribe (before I removed them), while another 30+ was stopped thanks to the rules update.

All of them signed up with only a single name (first name), such as Nicolas, Alfie, Homer, Cody, Hort, etc.

For those running mailing lists with open memberships, please remember to exercise caution. As it could be some sort of a targeted spam/phishing attempt. Whoever is in a mailing list, often has access to participating members' emails, as well as discussion histories, real name and username link references, etc.

Yours truly. Rehman 10:26, 8 May 2018 (UTC)

This may possibly be the recent password spammer. BWolff (WMF), are you able to check? --Izno (talk) 12:33, 8 May 2018 (UTC)
This is an issue for multiple lists. See wikimedia-l post. — JJMC89(T·C) 02:28, 9 May 2018 (UTC)
I've got 3 subscription requests from yahoo emails today, all with similar names. @JJMC89, on a separate note, would you by any chance know how to check why I cannot post anything to Wikimedia-l? I've tried emailing 3 separate times, but just got the moderator alerts only, and nothing thereafter. I could see others posting though. Cheers, Rehman 04:25, 11 May 2018 (UTC)
@Rehman: I don't know why you can't post on wikimedia-l. I would email the list moderators/admins to ask. The conversation has moved to listadmins. — JJMC89(T·C) 06:06, 11 May 2018 (UTC)

The spam subscriptions are surging from both AOL and Yahoo. I've got 294 emails banned from our mailing list (and counting). If you want the list (to mass block in any of your mailing lists), let me know. I'll be happy to provide. Cheers, Rehman 09:25, 14 May 2018 (UTC)

A technical question

Wilt the Stilt is a redirect with the following content:
#REDIRECT [[Wilt Chamberlain]]
{{R from alternative name}}
It categorizes to:
Category:Redirects from alternative names

{{R from nickname}} is a template redirect to:
{{R from alternative name}}

As such, Wilt the Stilt with the following content:
#REDIRECT [[Wilt Chamberlain]]
{{R from nickname}}
Will also categorizes to:
Category:Redirects from alternative names

Is it possible for the template redirect to influence categorization such that the second page could categorize to:
Category:Redirects from alternative names and
Category:Nicknames as well?--John Cline (talk) 10:26, 14 May 2018 (UTC)

{{R from nickname}} is currently a redirect to {{R from alternative name}}. As long as that is the case, it is not possible to behave differently. {{R from nickname}} could be changed to get its own code and do anything, e.g. add a new Category:Redirects from nicknames. It shouldn't add Category:Nicknames. It includes many articles, and redirect templates should not automatically add article categories. Individual redirects can be categorized. See Wikipedia:Categorizing redirects. Category:Nicknames seems to be for articles and disambiguation pages about nicknames so I wouldn't add the category to a redirect to a specific biography. PrimeHunter (talk) 11:32, 14 May 2018 (UTC)
Thank you, I understand.--John Cline (talk) 12:11, 14 May 2018 (UTC)

if login doubtful or fails, send email at that moment, not later

If a login fails or is spurious (e.g., Wikimedia is notifying us in case it was not by us) and Wikimedia sends an email to the user represented by that login, the user should know immediately and, if the user does not see the email immediately, at least the user should see a date-time stamp that is within a minute of when the login was attempted. There seems to be no other way to find out the date and time of the attempt, e.g., no log to check later. Please send the email right away, even if other kinds of emails go out once a day. Nick Levinson (talk) 02:49, 11 May 2018 (UTC)

And what made you think that it is currently not like that ? —TheDJ (talkcontribs) 07:21, 11 May 2018 (UTC)
If you have your prefs set to send e-mail less frequently, then it probably doesn't override. Whatamidoing (WMF) (talk) 17:07, 11 May 2018 (UTC)
What made me think that is that the email said the login event was "recently" and the email was timestamped for when I did not log in, but I had logged in within the preceding 24 hours, so, since I'm set to get emails daily, it could have been my own login and therefore nothing to worry about. But since the email was vague, I replaced the password, which means, since it's new, it's harder to remember. I don't want to have to replace it every time because of a vague recentness of a login.
I do have emails set to daily, which is more efficient for my work. However, a security email that is sent in the interest of both the user and Wikimedia probably should be allowed to override, so, if that's the problem, I can propose adding an override. Do you think there could be a problem with that?
Nick Levinson (talk) 20:39, 12 May 2018 (UTC)
Nick, I haven't been able to think of a reason why a security-related e-mail message shouldn't be sent immediately. Do you want to file a Phab task? Whatamidoing (WMF) (talk) 18:18, 14 May 2018 (UTC)

Issue with blackscreen gadget and Notices

I use the blackscreen gadget with monobook on Edge, Win 10. TOday I have noticed a problem when trying to view Notices (eg thanks, reverts of my edits). The problem is that the text displays in black on a black background. It is not possible to read black text on a black background. Help would be appreciated! I would upload a screenshot but it appears to be illegal and contrary to Wikipedia's terms and conditions to upload a screenshot of Wikipedia. DuncanHill (talk) 00:08, 12 May 2018 (UTC)

@DuncanHill: screens shots of wikipedia placed here for technical support are generally OK, mostly so long as you are not also including non-free media in the screenshot. — xaosflux Talk 01:36, 12 May 2018 (UTC)
See Wikipedia:Screenshots of Wikipedia. — xaosflux Talk 01:38, 12 May 2018 (UTC)
See, now I just got a notice, but I can't tell from whom or for what. I think it might be for Xaosflux above. I did try uploading a picture, but the instructions made no sense whatsoever for what I needed to do. DuncanHill (talk) 02:23, 12 May 2018 (UTC)
Apart from actually getting the screenshot and saving it as a file on your computer/smartphone/device/etc., it's really no different from uploading a photo or other image to Commons. --Redrose64 🌹 (talk) 20:10, 12 May 2018 (UTC)
Also see phab:T193959#4186101. --AKlapper (WMF) (talk) 12:00, 13 May 2018 (UTC)
DuncanHill, feel free to drag-and-drop your screenshots into a comment on that Phab task, if the screenshots in that task don't show your problem clearly. You can also send me an e-mail message, and I can forward them along to the team, so they can determine whether the problem is in their code or in the gadget. Whatamidoing (WMF) (talk) 18:25, 14 May 2018 (UTC)

Simple way to extract DEFAULTSORT?

Is there an easy way to extract the DEFAULTSORT value from an article (using AWB or other methods)? As {{Sortname}} is deprecated, I was hoping to quickly get the DEFAULTSORT value from biographies to use for table sorting. S.A. Julio (talk) 09:31, 14 May 2018 (UTC)

@S.A. Julio: can you elaborate a bit. Are you looking if there is a declared defaultsort on the page (and/or possibly in a template transcluded), or just what the current sort value is? — xaosflux Talk 13:24, 14 May 2018 (UTC)
@Xaosflux: Sorry if it wasn't clear, I'm looking for what the current sort value is. S.A. Julio (talk) 13:28, 14 May 2018 (UTC)
@S.A. Julio: the Default Sort Key is part of the basic page information, for example for Donald Trump it is Trump, Donald John. Is that what you are looking for? — xaosflux Talk 13:34, 14 May 2018 (UTC)
@Xaosflux: I was hoping to be able to quickly retrieve this information through a template or using something like AWB, is this possible? There will be over 700 players listed at 2018 FIFA World Cup squads, and the template used on the page, {{nat fs g player}}, has the parameter |sortname=. I was hoping to see if there was a quick method to add the sort values to the template? S.A. Julio (talk) 13:49, 14 May 2018 (UTC)
The DEFAULTSORT cannot be pulled by wiki code unless you read the whole page source with transclusion and try to parse it. I don't recommend that. Instead you need some script to collect the data and save it. I don't know a current script for it. "Page information" under "Tools" in the left pane shows the DEFAULTSORT value near the top. PrimeHunter (talk) 18:59, 14 May 2018 (UTC)

Tech News: 2018-20

22:22, 14 May 2018 (UTC)

MOS search

An attempt to use the search box on WP:MOS gives the following error:

A warning has occured while searching: The namespace found in the search term prefix: is not compatible with the namespaces requested. You can fix it by prefixing your query with all:

Of course, that is not what is wanted at all. Any idea how to get around this? (And yes, "occured" is misspelt.) Hawkeye7 (discuss) 21:01, 10 May 2018 (UTC)

It's Thursday again. New MediaWiki version. Per phab:T193392, an inputbox now requires a namespaces parameter to match a namespace in the prefix parameter. This case was fixed by [35] but there must be many other inputboxes needing similar fixes. PrimeHunter (talk) 22:22, 10 May 2018 (UTC)
It's up to the person implementing the change to do it, not us. And although it's hard to follow the poor English in phab:T193392, it says it should emit a deprecation warning, not error the search off. I suggest pulling the change. Hawkeye7 (discuss) 22:35, 10 May 2018 (UTC)
A search of insource:inputbox insource:prefix in all namespaces gives 1964 results. It looks like most of them need a fix if the feature is not changed. I guess a bot could be coded to fix most cases but a warning in advance would have been nice. Maybe this should be pulled for now. PrimeHunter (talk) 22:43, 10 May 2018 (UTC)
The warning is made by MediaWiki:Cirrussearch-keyword-prefix-ns-mismatch which currently says: "The namespace found in the search term prefix: is not compatible with the namespaces requested. You can fix it by prefixing your query with all:." See e.g. italics prefix:Wikipedia:. The warning will probably make little sense to most users who just entered a term in an inputbox and didn't write prefix:. I suggest we change the message to say they can click "Everything" without getting technical. Maybe: 'Click "Everything" above to perform this search. A software issue currently requires this step.' PrimeHunter (talk) 23:06, 10 May 2018 (UTC)
MediaWiki:Cirrussearch-keyword-prefix-ns-mismatch is also used by mobile search which doesn't have the "Everything" option. PrimeHunter (talk) 23:44, 10 May 2018 (UTC)
I have created MediaWiki:Cirrussearch-keyword-prefix-ns-mismatch to mention the "Everywhere" option and link this discussion. PrimeHunter (talk) 11:01, 11 May 2018 (UTC)

───────────────────────── Looks like the "fix" was not backward compatible. This is not called a "fix", this is called, "breaking working functionality". The burden is on those making a change to ensure current functionality continues to work transparently, or in the rare case, to provide an automatic migration as rapidly as possible, with notification to affected users of a window of functionality downtime well in advance of the migration. D- .   Mathglot (talk) 01:40, 11 May 2018 (UTC)

...but there must be many other inputboxes needing similar fixes. — Indeed; like every page using {{Talk header}} to search Talk page archives. About 390,000+ just for that one template, according to Template:Talk header, and there are other headers that use it. @PrimeHunter:. Mathglot (talk) 01:52, 11 May 2018 (UTC) Update: Oh, I see what you mean, you're counting inputboxes, and I was counting affected pages, but that's how I see it as a user, not a fixer, and that's how many will see it. Happy if there's < 2000 pages to fix, though. Mathglot (talk) 02:11, 11 May 2018 (UTC)
26000 uses of {{Talk header}} have an optional search parameter which generates a search box with {{Search box}}. I have fixed it there [36]. There are still other talk page templates which generate search boxes in other ways, e.g. {{Round in circles}}. Is there an expected timeframe for deploying the patch to revert this change? A template search only finds around 60 affected templates. We could quickly fix those. PrimeHunter (talk) 10:48, 11 May 2018 (UTC)

So when is an actual fix coming? It's affecting the Reference Desk search box too. Narutolovehinata5 tccsdnew 02:56, 11 May 2018 (UTC)

Maybe fix mw:Extension:InputBox to automatically specify "all:" when using prefix? I was looking at it, and there doesn't even seem a way in that to make it specify "all:" and fix the issue Galobtter (pingó mió) 05:28, 11 May 2018 (UTC)

Nvm can use "searchfilter= all:" Galobtter (pingó mió) 05:30, 11 May 2018 (UTC)
Nvm that nvm, doesn't work. I could be missing a parameter but it doesn't even seem like inputbox allows fixing this; which just shows terrible foresight in making this change. I see JJMC89 has tried something but It doesn't seem to fix it - the namespaces option seems to show buttons to specify namespace, not for specifying namespace in search automatically.. Galobtter (pingó mió) 05:40, 11 May 2018 (UTC)

Please excuse me for the annoyance this has caused, I prepared a patch to revert this change. I'll make sure that the prefix feature offered by InputBox is not affected again. DCausse (WMF) (talk) 09:49, 11 May 2018 (UTC)

While we wait on that, I've fixed the admin boards search, although I'd be interested in why that particular feature was deprecated. Bellezzasolo Discuss 12:33, 13 May 2018 (UTC)
The fix has been deployed and the prefix keyword should work as before. The intent was not to deprecate the prefix feature as a whole but some unique behaviors it supported (allowing to override the namespaces selected). The main reason was to address some of the technical debt by trying to reduce the moving parts. Please see my comment here. The approach I've taken was clearly a mistake and I will find other solutions that do not break the search boxes that use prefix. DCausse (WMF) (talk) 14:43, 14 May 2018 (UTC)
Thanks. The inputbox fix like [37] with namespaces= added a namespace selection menu to the search results. Compare [38] and [39]. The namespace checkboxes have no effect now when prefix: is used so I will revert such fixes I made to some templates. I have deleted MediaWiki:Cirrussearch-keyword-prefix-ns-mismatch. PrimeHunter (talk) 22:44, 14 May 2018 (UTC)

Archive search is broken

The following boxed message appears:

A warning has occured while searching: The namespace found in the search term prefix: is not compatible with the namespaces requested. You can fix it by prefixing your query with all:.

Reproduce: Search any talk page wiht a searchable talk header. Example: Talk:Psychokinesis, search 'foo'. Mathglot (talk) 01:35, 11 May 2018 (UTC)

Duplicate of #MOS search above. Sorry, I searched 'archive' and didn't see this one at first. Mathglot (talk) 01:36, 11 May 2018 (UTC)
This search fiasco is arguably worthy of a spot in the stocks. The Blade of the Northern Lights (話して下さい) 01:53, 14 May 2018 (UTC)

JavaScript programmers needed at WT:WPPORT

The portal system is being overhauled.

They could really use some input from JS programmers on what is possible.    — The Transhumanist   22:49, 14 May 2018 (UTC)

jquery to move rollback button

Wondering if someone could provide a line of jquery that would move "[rollback]" (class "mw-rollback-link") to before the user name, on each line (ideally in whatever page context it occurs in). I'm not sure about that location yet, but I think if given the form of the jquery I could adjust it myself, as I understand basic DOM stuff. Thank you! Outriggr (talk) 01:35, 14 May 2018 (UTC)

Outriggr, there's a project going on to make a fundamental change to rollback: users who opt in will be given a confirmation screen. I don't know how much change that will entail, but it's a big enough deal that any changes related to rollback links may end up being useless rather soon. Nyttend (talk) 02:21, 14 May 2018 (UTC)
I wouldn't go that far. There was a proposal for this, and feedback was requested. The feedback (I participated) has been largely negative, so I can't imagine this being... ahem, rolled out any time soon. There are certainly no solid plans for anything, so there's no need to make decisions with that in mind. ~ Amory (utc) 14:34, 14 May 2018 (UTC)
@Outriggr: For a quick and dirty option (i.e., there's probably a more efficient way):
$('[class^="mw-rollback-link"] a').each(function(index, link) {
$(link).insertBefore(link.parentElement.parentElement.getElementsByClassName('mw-userlink')[0])
});
should do it on diffs, while using history-user instead of mw-userlink should do it for history pages. You may need to futz to figure out brackets, etc. ~ Amory (utc) 14:30, 14 May 2018 (UTC)
Thanks very much Amorymeltzer. This works on my watchlist, except that because it grabs the link (which is what I said, I guess :-) and not the whole span, there are spacing problems and the square brackets remain at the end of the line. As usual, my own adjustment, to get the rollback span, does not work:
$('[class^="mw-rollback-link"]').each(function(index, span) {
$(span).insertBefore(span.parentElement.getElementsByClassName('mw-userlink')[0])
});

I removed one level of parentElement traversal, and changed the selector. ??? Outriggr (talk) 00:38, 15 May 2018 (UTC)

What gadgets, etc. do you have installed? Those tweaks work fine on my watchlist. The group-them-all-together feature of watchlists does weird things to links, as does the mark-as-read feature, maybe that's affecting? ~ Amory (utc) 01:14, 15 May 2018 (UTC)
Meanwhile I have it working (on the watchlist) by putting back another level of "parentElement". I think there may be too many factors that affect the layout of these pages... But you'd think I could get it to work for my own. (What I have now, with two ParentElements, is working everywhere but user contribs, where it groups ALL the rollback links in the same place (I've now chosen mw-changeslist-separator), so it's still not fully working. If I can figure out how to fix or turn off the JS for contribs, I will use it, and if not I'll forget it. Thanks for your help! Outriggr (talk) 01:29, 15 May 2018 (UTC)

Article history

Something odd is going on in the history of Alena Šeredová. Years ago I started the article as Alena Seredova (without diacritics), but both the article and the redirect's history start only with the date of article's move, not earlier. For comparison, Frederick Sandys' history (moved from Anthony Frederick Augustus Sandys) is shown normally, including the history under the original article title. Brandmeistertalk 10:38, 15 May 2018 (UTC)

It seems that J1 Formidable (talk · contribs) performed an improper WP:CUTPASTE move with this edit and this one. --Redrose64 🌹 (talk) 10:55, 15 May 2018 (UTC)
Thanks. Interesting how one can disappear from the history without any WP:REVDEL. Brandmeistertalk 11:19, 15 May 2018 (UTC)
I've added a {{histmerge}} tag to remedy the problem. {{3x|p}}ery (talk) 11:27, 15 May 2018 (UTC)

Template screwed up at San Fernando del Valle de Catamarca

Could somebody pls have a look. We are in a project everybody can edit, but I am afraid this goes beyond my technical abilities. The error notice is at the bottom of that page.--Ymblanter (talk) 06:53, 15 May 2018 (UTC)

@Ymblanter: Fixed with this edit. Someone added an {{efn}} footnote without adding the {{notelist}}. -- John of Reading (talk) 07:09, 15 May 2018 (UTC)
Great, thanks a lot John.--Ymblanter (talk) 11:56, 15 May 2018 (UTC)

Code Available to "Spin" Planets/Moons?

 
Example 3d interactive image.
 
Here is the Earth.

Not sure at the moment - but is there code available on Wikipedia to "spin" planets, moons and other such astronomical bodies? - an example of such "spinning" is at the following => https://www.nytimes.com/interactive/2016/07/01/science/space/jupiter-and-its-moons.html - might be nice, at least for those interested in astronomy, geography and related - in any case - Enjoy! :) Drbogdan (talk) 17:54, 14 May 2018 (UTC)

We'd need a free/libre 3D rendering to use, but I love the idea. I'm sure we could use HTML5 to do something like this. Richard0612 18:17, 14 May 2018 (UTC)
Getting the images is the hard part. See an example one to the right. — xaosflux Talk 18:22, 14 May 2018 (UTC)
@Richard0612 and Xaosflux: & others - BRIEF Followup - seems the images in the NYT example may have been from (or, at least, based upon) NASA images, usually in the Public Domain (PD) AFAIF - more specifically, image credits seem to be given as => NASA; Jet Propulsion Laboratory; Southwest Research Institute. Maps by NASA’s Cassini mission (Jupiter), the U.S. Geological Survey (Io) and Björn Jónsson based on data from the Voyager and Galileo missions (Europa, Ganymede, Callisto) - which, being US govt, may all be in the PD I would think - these (and related images) may be available for Wikipedia to use - if one knows exactly where to find the best images to use - and if one knows exactly what coding container/? to use - iac - hope this helps in some way - Enjoy! :) Drbogdan (talk) 20:20, 14 May 2018 (UTC)
No special code is needed to display the 3D images that Xaosflux linked - they're just stereolithography files that MediaWiki handles on its own. We might want to develop some form of embedded viewer if we find enough images to use them in many articles. Richard0612 20:25, 14 May 2018 (UTC)

Thank you very much for all the recent comments above - they're greatly appreciated - Enjoy! :) Drbogdan (talk) 14:37, 15 May 2018 (UTC)

One of my gadgets stopped working correctly

I have User:Splarka/sysopdectector.js installed in my global JS, but as of a few days ago, it only shows the user groups. I haven't changed my settings, nor has there been a script change. Can anyone tell me what happened?—CYBERPOWER (Chat) 23:40, 14 May 2018 (UTC)

Try changing var showUserGroupSettings to window.showUserGroupSettings in your global JS. Changing various scripts to not be run in the global context has been happening for a while, perhaps such a change recently happened for GlobalCssJs. Anomie 11:50, 15 May 2018 (UTC)
Thanks. That fixed it. :-)—CYBERPOWER (Chat) 20:48, 15 May 2018 (UTC)

Searching the edit filter log now requires you to fill out the title

 
What happens if you did not fill in the title on Chrome 66.

For some apparent reason, the Special:AbuseLog, or edit filter log, now requires you to fill out the title of the page before searching. Otherwise it won't work. It happened to me while using Google Chrome on Windows 10. I did manage to bypass this by using Chrome's "Inspect Element" function and removing the "required" tag, so it couldn't have been just because of what browser/OS I'm using to edit Wikipedia. Posting an image soon. Done. theinstantmatrix (talk) 14:47, 15 May 2018 (UTC)

phab:T194769 created, appears to be a recently introduced bug. — xaosflux Talk 15:00, 15 May 2018 (UTC)
Duplicate of phab:T194425 - which is in UBN. — xaosflux Talk 15:15, 15 May 2018 (UTC)
There were some blockers on early deployment that apparently may not get resolved. The fix will come Thursday with the normal weekly deployment. MusikAnimal talk 22:46, 15 May 2018 (UTC)

Vertical align images in gallery template?

I am using the gallery template rather than the gallery tag as I want italics in the gallery heading (& the tag doesn't seem to be able to do that). The drawback is that the template doesn't seem to offer a way to set the vertical alignment of the images - they all end up jammed up the top of each image frame :(

Is there a way to do this? Sample gallery/code is as follows ...

Thanks! ❮❮ GEEKSTREET Talk Lane ❯❯ 08:00, 15 May 2018 (UTC)

@Geekstreet: would this work for you, it uses the raw gallery tag and "packed" mode, it changes the zoom levels a bit though:
xaosflux Talk 14:54, 15 May 2018 (UTC)
Missed the part about bad italics, checking on a fix for that. — xaosflux Talk 15:03, 15 May 2018 (UTC)
@Geekstreet: looks like styling in gallery captions is is "coming soon" - follow the progress here: phab:T187958. — xaosflux Talk 15:14, 15 May 2018 (UTC)
Thanks @Xaosflux:, I will play with these to see what works out best. ❮❮ GEEKSTREET Talk Lane ❯❯ 03:43, 16 May 2018 (UTC)

How did Trump Derangement Syndrome end up on my watchlist while I was offline

I can't figure it out. I wasn't using my computer when it was created. Doug Weller talk 16:08, 15 May 2018 (UTC)

  • The radical right has broken into the WikiMedia software and case access and alter your watchlist. Walk away now, don’t look back. —SmokeyJoe (talk) 16:42, 15 May 2018 (UTC)
Then you have added it to your watchlist another day (maybe by mistake?). Stryn (talk) 16:43, 15 May 2018 (UTC)
  • Not to be alarmist, but maybe change your password? Writ Keeper  17:11, 15 May 2018 (UTC)
    • It was created a few hours ago while I was out either driving or shopping. There's no reason I would even know about it. I've got 2FA, no one has hacked me. Never mind, software does have strange glitches from time to time. Doug Weller talk 18:01, 15 May 2018 (UTC)
It is linked from old threads at User talk:Let us eat lettuce, Talk:Steve Scalise and Wikipedia:Reference desk/Archives/Science/2017 October 12. Is it possible that you saw the red link on one of those pages and decided to watch for its creation? -- John of Reading (talk) 18:15, 15 May 2018 (UTC)
I've watchlisted nonexistent articles in the past for this reason, and one can forget having watchlisted something in the past. Jo-Jo Eumerus (talk, contributions) 18:28, 15 May 2018 (UTC)
That at least makes sense, so I will happily decide that's the explanation. Doug Weller talk 18:29, 15 May 2018 (UTC)
@Doug Weller: Your account has taken up a secret interest in Trump articles. You no longer own your account. It owns you. ;-)—CYBERPOWER (Chat) 20:51, 15 May 2018 (UTC)

Category lists articles that shouldn't be there; articles have no links to category

I found a category that has a bunch of articles that

  • are badly sorted, and
  • shouldn't be in the category in the first place.

They relate to the topic, but at best, they'd belong in parent categories. But when I go to the articles to edit them, I don't find any category links to that category.
I do understand that if an article uses a template that has a category link, the article can appear in that category, whether it should or not. These articles do have some templates in common. But I'm getting a little lost trying to figure out if there's a problem category link in one of those templates.
Suggestions? I'm an extreme fixer of categories here, but this problem has me stumped. In case it's of any help, the category in question is flatfish. Uporządnicki (talk) 17:40, 16 May 2018 (UTC)

@AzseicsoK: There is no Category:flatfish. --Redrose64 🌹 (talk) 18:02, 16 May 2018 (UTC)
Oops! Sorry! (What a clumsy mistake!) The category is Scophthalmus a genus of flatfish. Yes, one of the articles listed in the category is Flatfish. If anything, the Scophthalmus category should be in a category for flatfish, not the other way. And the problematic entries in that category are all listed under M.
P.S. The Scophthalmus category is actually a sub-subcategory of Pleuronectiformes, which is flatfish. Uporządnicki (talk) 18:31, 16 May 2018 (UTC)
Redrose64 fixed it. – Jonesey95 (talk) 19:10, 16 May 2018 (UTC)
Yes, it was a missing colon (the error has been there for six years); and the intended link being piped to display "More..." explains why pages were all listed under M. --Redrose64 🌹 (talk) 19:17, 16 May 2018 (UTC)
All I can say is, Wow! Uporządnicki (talk) 19:34, 16 May 2018 (UTC)

User sandbox pages in mainspace categories

User:Sj/Update Congress, a user sandbox page, is appearing in several mainspace categories. User sandbox pages aren't allowed to do this, so the categories have to be removed, but the problem is that there are no category declarations directly on the page at all — the categories are there because the page is transcluding a mainspace article rather than copying its text, such that my first attempt to remove the categories actually had the unintended effect of stripping them from the article rather than the sandbox page. So I'm stuck: is there any other way to get it out of the mainspace categories? Thanks. Bearcat (talk) 23:03, 16 May 2018 (UTC)

I have used Module:String#replace to turn categories into category links with a colon.[40] PrimeHunter (talk) 23:55, 16 May 2018 (UTC)
A userspace page should not transclude a mainspace article, but only link to it. DES (talk)DESiegel Contribs 23:56, 16 May 2018 (UTC)
It looks like this editor wants to edit sections of the mainspace page and have easy access to the reference links they added to the top. I don't think there's any policy against transcluding articles into userspace pages. The closest I can think of is WP:FAKEARTICLE, but that doesn't really apply here. --Ahecht (TALK
PAGE
) 00:07, 17 May 2018 (UTC)
I can't think of a good reason why it would be the case, but if a mainspace page is frequently transcluded for some reason, you can also wrap the category calls in <noinclude></noinclude> tags. --Ahecht (TALK
PAGE
) 00:07, 17 May 2018 (UTC)
I'm just wondering, would a template like {{Draft categories}} work in a case like this? If the categories on the mainspace article are placed in the template, they should appear as normal in the article but as links in the transclusion, right? Or is the order of template expansion not suitable for this? rchard2scout (talk) 07:49, 17 May 2018 (UTC)
I made {{Draft categories}} but it's currently primitive and assumes the only wikitext syntax is categories. I have used Module:Suppress categories instead.[41] It completely removes categories instead of linking them. PrimeHunter (talk) 10:40, 17 May 2018 (UTC)
I like the {{Draft categories}} approach best normally, but for transclusion maybe have a {{Transclusion from mainspace}} wrapper that injects Module:Suppress categories mentioned above? Headbomb {t · c · p · b} 12:50, 17 May 2018 (UTC)

last_active API

The last_active API suddenly broke.

 baduser_ucuser: Invalid value "User:Hawkeye7" for user parameter "ucuser".

Anybody have any information about this? Hawkeye7 (discuss) 20:58, 17 May 2018 (UTC)

@Hawkeye7: Sounds like the value you pass is User:Hawkeye7, which is not a username, but a page. You need to pass it the value Hawkeye7. Not sure what tool you are using exactly, so if you could link to that, that would be very helpful. —TheDJ (talkcontribs) 08:07, 18 May 2018 (UTC)
It's the Perl MediaWiki::Bot module. The API has been working until now. I've had to shut down the MilHistBot monthly membership update run. I didn't have time to investigate further this morning. I had considered the same thing as you. The call in question simply says:
my $last_active = $editor->last_active ('Hawkeye7') or
    error_exit ("last_active failed");
So the module is prepending the 'User:'. It hasn't changed, so a bug has been introduced into the Mediawiki software itself. There should, therefore, be an entry in phabricator. Hawkeye7 (discuss) 08:19, 18 May 2018 (UTC)
Our instincts were correct. That is indeed the error, and it means that someone put a major change in without testing it. The Mediawiki code needs to be reverted asap. Where's DCausse (WMF)? Hawkeye7 (discuss) 08:35, 18 May 2018 (UTC)

Ticket filed. This was undocumented behavior of the API, that apparently the volunteer maintained perl library depends upon. BTW. —TheDJ (talkcontribs) 09:34, 18 May 2018 (UTC)

Thanks for that. I have submitted a change to MediaWiki::Bot but I don't know if/when it will be implemented. Hawkeye7 (discuss) 03:04, 19 May 2018 (UTC)

wikitable css

Hi, I'm trying to modify the wikitable, here, but nothing worked so far, even with the !important declaration. I tried bypassing the cache, but no results after that either. So what I'm doing wrong? Thanks! --SE (talk) 18:13, 18 May 2018 (UTC)

@Dsm.wiki: "Warning: There is no skin "Common". Custom .css, .json, and .js pages use a lowercase title, e.g. User:Foo/vector.css as opposed to User:Foo/Vector.css." ;) I moved the page for you. —TheDJ (talkcontribs) 18:23, 18 May 2018 (UTC)
Ow, I see it. Could you delete the redirect page too. Thank you in advance! --SE (talk) 18:27, 18 May 2018 (UTC)
Special:Preferences#mw-prefsection-rendering has links to all your skin pages so you don't risk a wrong name. Click "Preferences" at top of any page and then "Appearance" to get there. PrimeHunter (talk) 21:46, 18 May 2018 (UTC)
In that case, PrimeHunter or TheDJ would you like to delete the css. I'll stick with the global one. Thank you! --SE (talk) 20:25, 19 May 2018 (UTC)
Deleted under WP:CSD#U1. You could have added {{db-user}} to the page. --Redrose64 🌹 (talk) 20:31, 19 May 2018 (UTC)

Template:Infobox_writer – feedback request

Please share your views on Template talk:Infobox writer#Convert to wrapper. Capankajsmilyo(Talk | Infobox assistance) 02:09, 20 May 2018 (UTC)

MusicBrainz in authority control box

Whether or not MusicBrainz ID numbers should be included in {{authority control}} is currently discussed at Wikipedia:External links/Noticeboard#MusicBrainz. Please discuss there, not here. --Francis Schonken (talk) 08:14, 21 May 2018 (UTC)

Tech News: 2018-21

17:33, 21 May 2018 (UTC)

Show only a part of an image?

Let us say an image is 1000x500 pixels in dimensions. Is there a way to only show a 500x500 pixel portion of the image without uploading a new image? Thanks. SharkD  Talk  08:37, 21 May 2018 (UTC)

Not without a lot of CSS trickery which could make the wiki markup harder for other users to read and edit. What exactly are you trying to achieve? Richard0612 08:50, 21 May 2018 (UTC)
{{CSS image crop}} can do it but it's usually better to upload a cropped version of the image. PrimeHunter (talk) 10:28, 21 May 2018 (UTC)
Ah, you learn something new every day! :) Richard0612 10:30, 21 May 2018 (UTC)
Thanks for the template! Actually it is for other wikis like Wikia and Gamepedia. I will ask, maybe they can implement the template. SharkD  Talk  23:10, 21 May 2018 (UTC)
Always say if a question is not about the English Wikipedia. Those wikis aren't even Wikimedia wikis. Special:ExpandTemplates can show the code produced by a template but a wiki may dislike if complicated code like that is saved for a specific image. PrimeHunter (talk) 00:09, 22 May 2018 (UTC)

Russian, Japanese, and French Wikipedias will be read-only for a few minutes next Tuesday

This project will not affect the English Wikipedia, but I'm posting this just in case you get questions here:

Remember the server switches in 2016 and 2017, when nobody could edit for half an hour while Ops did some complex maintenance work? Think of this project as a one-time, miniature version for just three Wikipedias. I understand that they're putting in new hardware for ruwiki, jawiki, and frwiki. To avoid database problems, they're going to first turn off editing, turn off the old hardware, turn on the new hardware, and then turn editing back on.

If all goes well, the read-only database lock could last as little as five minutes (maybe as long as 15 minutes). The estimated time of the outage is Tuesday, May 29th, somewhere between 10:00 and 12:00 UTC (late morning in Europe; very early morning in the Americas).

The usual processes apply: Probably nobody will post anything here, but if you happen to get questions, then you can tell people that it's expected and should be over in less than 15 minutes. If it goes on longer than expected or if something weird happens, then please report urgent problems via IRC in the #wikimedia-tech connect channel. You can also ping User:Trizek (WMF) on wiki, as he is much more likely to be awake at that hour than I am. Whatamidoing (WMF) (talk) 18:52, 22 May 2018 (UTC)

Is Reflinks broken?

Looks like the link to the tool is broken? All the best: Rich Farmbrough, 12:11, 21 May 2018 (UTC).

Which link and where do you see the link? https://tools.wmflabs.org/dispenser/cgi-bin/webreflinks.py leads to https://dispenser.info.tm/~dispenser/cgi-bin/webreflinks.py which works for me. PrimeHunter (talk) 14:06, 21 May 2018 (UTC)
There's also this tool, hosted at Labs. — Diannaa 🍁 (talk) 23:00, 23 May 2018 (UTC)
I've used it several time today and it has worked normally. One advantage that reflinks has over reFill is that it can format PDF's. OTOH, neither of them is foolproof and there are some refs that just have to be formatted by hand. MarnetteD|Talk 23:24, 23 May 2018 (UTC)

Is there a way of having a collapsable list similar to how the CategoryTree extension displays

Hi

I want to create a simple collapsable list of regions with countries in them for a competition I'm setting up. Is there a way I can produce something I can edit manually and specify the links that looks a little or a lot to how CategoryTree works?

If not what options are there?

Thanks

John Cummings (talk) 09:42, 24 May 2018 (UTC)

You specifically say "collapsible list" so maybe you already know {{Collapsible list}}. It has similar functionality but does not look similar. Example with nested lists:
PrimeHunter (talk) 10:26, 24 May 2018 (UTC)
Thanks very much @PrimeHunter:, that's very helpful, I think I found an additional option as well which looks like this.
  Africa
  • List item 1
  • List item 2
John Cummings (talk) 13:47, 24 May 2018 (UTC)

Specifying an image width as a percentage of the screen rather than a number of px

Hi all

I'm putting together a competition and would like to add a banner to the top of the page, can someone tell me if there is a way of specifying that an image stretch the whole width of the page (perhaps with a maximum number of pixels for very high res screens). I want to avoid the page looking good on desktop and then breaking on mobile phones.

Thanks very much

John Cummings (talk) 14:35, 24 May 2018 (UTC)

If you're doing this on meta wiki you can specify a background image for a div(using TemplateStyles) and then specify the height and width...I don't know of a way to do it on enwiki before June 2018(When TemplateStyles goes live here) thought — FR+ 14:43, 24 May 2018 (UTC)
Thanks very much @FR30799386:, do you know if this available on Commons? I'm looking at the Phabricator board for template styles and I can't see either en.wiki or Commons on there.... Do you know where I can find an example I can copy from to work on Meta? Or where any instructions are? I feel like this is a bit:
Step 1: Log in,
Step 2: Do a computer science degree,
Step 3: Make the computer do the thing you want.
Thanks again
15:40, 24 May 2018 (UTC)
@John Cummings:-Umm...Sorry I made an error...it is not deployed on Meta...neither on Commons nor on enwiki — FR+ 16:10, 24 May 2018 (UTC)
@FR30799386:, no problem, maybe something to look forward to for next year then :) John Cummings (talk) 16:12, 24 May 2018 (UTC)

"Sorry! This site is experiencing technical difficulties"

Hi, I keep getting:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot access the database: Cannot access the database: No working replica DB server: Unknown error (10.64.16.84:3318))
When I click on prev, diffs and history,
Wasn't sure if those behind the scenes knew so thought I'd give a heads up, Thanks, –Davey2010Talk 19:38, 24 May 2018 (UTC)

me too! GrahamHardy (talk) 19:48, 24 May 2018 (UTC)
Those behind the scenes are working on it :) - Phab's here for anyone interested > https://phabricator.wikimedia.org/T195520. –Davey2010Talk 19:51, 24 May 2018 (UTC)
I can't login, or rather I can but then get the error message above. Somehow I got logged out, maybe fat thumbs on my iPad. Is 2FA affected by this? — Preceding unsigned comment added by 86.11.114.177 (talk) 19:55, 24 May 2018 (UTC)
This has also been happening to me for the last 10 minutes or so; I hope it can be fixed soon! Every morning (there's a halo...) 20:00, 24 May 2018 (UTC)
(edit conflict) I'm having issues as well. I can only hope this edit goes through. Master of Time (talk) 20:01, 24 May 2018 (UTC)
My question is whether the information which I had typed and was saving when the message popped up is irretrievably lost? SusunW (talk) 20:13, 24 May 2018 (UTC)
I've been copying edits before I try to save them, just in case I have to repaste and try again. Despite that, sometimes I've had to do the repaste thing, but I have also had some edits where I got the error message but they somehow went through anyway. Bearcat (talk) 20:16, 24 May 2018 (UTC)
@SusunW: (e/c) Unless you went back in your history when you received the error (in a modern browser that keeps state) and then copy-pasted what you typed, then likely yes it is gone. —TheDJ (talkcontribs) 20:18, 24 May 2018 (UTC)
This problem is also occurring on Commons, so perhaps is a Mediawiki/Metawiki problem. --Animalparty! (talk) 20:17, 24 May 2018 (UTC)
It was a problem throughout most of the Wikimedia properties. —TheDJ (talkcontribs) 20:20, 24 May 2018 (UTC)
@Bearcat: thanks for that. Animalparty I was able to hit my back key three times and eventually get to the information that I was trying to add. 2,547 bites would've been a lot to recreate. I will start making copies for a bit to prevent problems. SusunW (talk) 20:21, 24 May 2018 (UTC)

─────────────────────────Will this edit work?— Vchimpanzee • talk • contributions • 20:24, 24 May 2018 (UTC)

Finally. I tried to start a thread here and couldn't. I tried to reply when I discovered this one and couldn't. Tried again a few minutes later and couldn't.— Vchimpanzee • talk • contributions • 20:25, 24 May 2018 (UTC)

Just FYI, this hotfix has resolved the issue temporarily while the devs figure out a permanent fix for what appears to be Wikidata object disambiguation DoS-ing the database servers. Richard0612 21:06, 24 May 2018 (UTC)

And as an FYI to that FYI, note that this hotfix has disabled some Wikidata functionality:
Status summary:
* PropertySuggester is disabled
* TermSqlIndex::getMatchingTerms is monkey-patched to return an empty list, https://gerrit.wikimedia.org/r/#/q/I4a8cd1028fd2c5bfc83e8780eea82f0eb79d817f
* Properties referenced by name from Lua or parser functions are not found (resolvePropertyId returns flase negatives).
* Special:ItemDisambiguation falsely returns no results
* ArticlePlaceholder does not offer matches on Special:Search and should probably be disabled for now

There are some suggestions of further actions on https://etherpad.wikimedia.org/p/wb_terms_solution. Needs cleaning up and proper task breakdown.

Logging more info now, see https://gerrit.wikimedia.org/r/q/Id9fdc74829e6268ecc3861602adf6666c2eaffc4
--Ahecht (TALK
PAGE
) 21:58, 24 May 2018 (UTC)

Searching among drafts among a particular category

Is there a way in which I can search for India related drafts?(Best if anyone can do it without fancy tools/SQL/regex or whatever.i.e something that I can remember the next time I want to do the same thing) — FR+ 13:58, 24 May 2018 (UTC)

Drafts should not have categories or WikiProject tags so it may be hard to do better than searching the draft namespace for the string India or Indian: [42]. If you want pending submissions then add incategory:"Pending AfC submissions": [43] PrimeHunter (talk) 14:36, 24 May 2018 (UTC)
@FR30799386: There is Category:Draft-Class India articles, although some article may be missing from that category since pages need to be manually tagged with the wikiproject template to appear in that category (either by directly editing the talk page or using User:Enterprisey/draft-sorter). --Ahecht (TALK
PAGE
) 18:34, 24 May 2018 (UTC)
@PrimeHunter: Why should drafts not have WikiProject tags? Surely the discussion some years ago at Wikipedia:Village pump (proposals)/Archive 114#Widen usage of Draft-class indicates that they often should? --Redrose64 🌹 (talk) 09:43, 25 May 2018 (UTC)
I didn't know that practice. PrimeHunter (talk) 10:08, 25 May 2018 (UTC)

Adblock Plus is blocking something in popups

I've just noticed that whenever I hover my mouse over a link to get the popup on a Wikipedia page, Adblock Plus's counter on the status bar shows it blocked something. The filter lists I'm using are the latest versions of Adblock Warning Removal List, EasyPrivacy, Fanboy's Social Blocking List and EasyList. The counter gets incremented but there's seemingly no difference in the content display whether Adblock Plus is disabled or enabled. I don't know how to find out which element is Adblock Plus blocking. What is going on? 93.136.122.81 (talk) 19:37, 24 May 2018 (UTC)

Ehm.. ask adblock ? —TheDJ (talkcontribs) 20:15, 24 May 2018 (UTC)
You can check what adblock is blocking in your own browser. For example in Firefox, click the Tools menu, Web Developer, Toggle Tools and then Adblock plus. Then reload the page. Entries with an red font are the entries that Adblock is blocking on that page.--Snaevar (talk) 10:35, 25 May 2018 (UTC)

Phabricator login broken?

  Moved from WP:AN

I'd create a phab ticket on this, but, well...

I have previously logged into phab using my mediawiki account. Now, when I open https://phabricator.wikimedia.org/ and click the login button, I'm offered buttons to 'Log in or register' with Mediawiki or 'Developer log in' with a Wikitech Account (LDAP). Clicking the first of these takes me to the mediawiki.org OAuth page, where I click the 'Allow' button. This redirects me to Auth > Mediawiki > Register (https://phabricator.wikimedia.org/auth/register/<key redacted>/) where it asks me to fill in a username and email. If I try to do so, it says that a user with this username and email is already registered (which is not unexpected). There appears to be no way to log in.

Is there anyone here who can help? GoldenRing (talk) 06:49, 22 May 2018 (UTC)

WP:VPT would be better for reporting this. I don't know, but a first check would be to ensure that nothing is blocking cookies or scripts. A solution might involve partially or fully clearing your browser history. Johnuniq (talk) 07:13, 22 May 2018 (UTC)
Alternatively, try logging in using incognito/private browsing mode - that'll allow you to test with a fresh slate without having to clear your entire history. Richard0612 09:26, 22 May 2018 (UTC)
Thanks for the suggestion, but I get the same response in incognito mode. I'll move this to VPT. GoldenRing (talk) 13:04, 22 May 2018 (UTC)
You want User:AKlapper (WMF) for problems with Phabricator. Whatamidoing (WMF) (talk) 14:50, 22 May 2018 (UTC)
@GoldenRing: had this happen to me a while ago and someone was kind enough to create a task to fix the issue. Would you like me to file one for you? --Cameron11598 (Talk) 17:13, 23 May 2018 (UTC)
@Whatamidoing (WMF):, @GoldenRing: Hi, best to bring up Phab issues on mw:Talk:Phabricator/Help (as linked from the Phab front page), so problems are not blocked on a single person (I'm on vacation this week). :) Does the "Advanced" section at mw:Phabricator/Help#Creating your account help? --AKlapper (WMF) (talk) 12:04, 25 May 2018 (UTC)
@AKlapper (WMF): No, it doesn't. I'll ask the question where you suggest. Thanks. GoldenRing (talk) 12:07, 25 May 2018 (UTC)
...but when I got there, I noticed that someone else has reported the same thing. I have an LDAP account after all, presumably because I'm registered on ToolForge or whatever it's called now - "developer account" sounds like it's for MediaWiki developers. GoldenRing (talk) 12:10, 25 May 2018 (UTC)

I seem to have stopped receiving email notifications

The last email notifications I have from a Wikimedia project were in March. I just did a search in my inbox (which seems otherwise fine), and just checked my preferences (still checked for talk page messages and a few other things). Can't think of anything that I would've changed. Has this happened to anyone else? — Rhododendrites talk \\ 12:44, 25 May 2018 (UTC)

@Rhododendrites: try to use Special:EmailUser/Rhododendrites to email your self to verify if you can get mail at all (as opposed to just mail related to notifications). Check any "bulk" or "spam" folders your mail provider may be sorting mail in to as well. — xaosflux Talk 13:31, 25 May 2018 (UTC)
Well, I didn't receive it but   Facepalm somehow I thought my email searches included the spam folder. Indeed it's in there. Must've misclicked at some point, thanks. :) — Rhododendrites talk \\ 13:59, 25 May 2018 (UTC)

Why are these inline CSS and not in Common.css?

Just browsing List of Police Camera Action! episodes and noticed this:

<tr class="vevent" style="text-align:center;background:inherit">

Why are these inline CSS and not in the MediaWiki/Common.css for the vevent declarations? Just trying to learn some CSS for my own stylesheets. --Chelston-temp-1 (talk) 23:07, 24 May 2018 (UTC)

The right link is List of Police Camera Action! episodes. PrimeHunter (talk) 23:19, 24 May 2018 (UTC)
Thank you for correcting the link. Tried to put code in but didn't quite work. --Chelston-temp-1 (talk) 08:29, 25 May 2018 (UTC)
@Chelston-temp-1: a very good question. The reason is because "MediaWiki:Common.css" is loaded on EVERY page, for EVERY user. We have a lot of CSS that is specific to a small subset of pages and moving all of that into a central page would be highly inefficient. So instead, we only have the most common/widely spread css into this central file and statements that are much rarer remain as style attributes.
However, very soon, we will have TemplateStyles, specifically to deal with this problem. It will then be possible for templates to include style sheets specific to that template, that will then be included only on the pages that are using those style statements. —TheDJ (talkcontribs) 09:57, 25 May 2018 (UTC)
I didn't know that. I tried to replicate parts of the table when doing HTML the other day! --Chelston-temp-1 (talk) 10:08, 25 May 2018 (UTC)
@Chelston-temp-1: In HTML, classes have several purposes, and construction of selectors in style sheets is just one of them. Another use is in web scraping: external software might use a class in order to pick out certain data from a web page, and I am pretty certain that this is the purpose of the vevent class.
As regards where we also use that class, have a look at e.g. Wikipedia:UK Wikipedians' notice board, the section headed "Meetups". The list in that section is a table, and every entry for a single meetup has the vevent class. If the styling text-align:center;background:inherit were to be added to the style sheet for that class, this table would have centred text and a pink background, which we probably do not wish. --Redrose64 🌹 (talk) 11:50, 25 May 2018 (UTC)
@Redrose64: I was asking as I was using the page as something to learn from for styling HTML tables (Wikipedia's table design and Arial font is simple, but it's a good one for basics). I used view source in Firefox 56 but could not find the class anywhere in the CSS files linked to, and not declared as an inline stylesheet. This is about technical stuff, so I guess it's kosher to ask about webdesign here. --Chelston-temp-1 (talk) 12:05, 25 May 2018 (UTC)
Taken to its most basic level, a class is merely a way of giving a shared name to one or more elements in order to indicate that they have something in common. There is no requirement that a class should be mentioned in CSS files. We might write a web page thus:
<!DOCTYPE html>
<html>
  <head>
    <title>Example</title>
    <style>
      body { color: black; background: white; }
      .apple { color: red; background: green; }
    </style>
  </head>
  <body>
    <h1>Example</h1>
    <p>Apples and <span class="banana">bananas</span> are kinds of fruit.</p>
  </body>
</html>
and this is perfectly valid HTML even though (i) one of the two rules in the <style>...</style> element has a selector that does not match anything in the HTML document; and (ii) one of the HTML elements has a class attribute specifying a class that is not mentioned anywhere else. --Redrose64 🌹 (talk) 22:01, 25 May 2018 (UTC)

Bug in interlanguage sidebar links for userspace?

Any ideas why my edits to the interlanguage links on es:Usuario:Userbox/interés_SDN and User:UBX/LoN would override the interlanguage links in my profiles (User:J._E._C._E. and es:Usuario:J._E._C._E.), even when I'm logged out?--J. E. C. E. (talk) 20:37, 25 May 2018 (UTC)

@J. E. C. E.: Interlanguage links and categories on pages used for transclusion should always be inside <noinclude>...</noinclude> to prevent them from applying to pages with a transclusion.[44] PrimeHunter (talk) 21:13, 25 May 2018 (UTC)
Please make the same fix to es:Usuario:Userbox/interés SDN. I cannot do it without being autoconfirmed at the Spanish Wikipedia. PrimeHunter (talk) 21:21, 25 May 2018 (UTC)
Thanks! I took care of the Spanish Wikipedia userbox.--J. E. C. E. (talk) 01:32, 26 May 2018 (UTC)

Undo broken?

N.B. I'm writing in haste and a bit distracted, so apologies in advance if I've simply overlooked something.

I recently spotted this edit, which seems to be appropriate to revert based upon e.g. the comment at the start of the relevant section. (Please don't derail this with a discussion of the merits of reverting/retaining that edit, though; this thread is not about that.)

I therefore clicked the "undo" link, but instead of opening a revert edit, it took me to this URL, which says in red writing at the top of the page, "The edit appears to have already been undone. You may have attempted to undo a page move, protection action or import action; these cannot be undone this way. Any autoconfirmed user can move the page back to its previous location, and any administrator can modify or remove protection."

However, AFAICT, none of those possibilities apply. WikiBlame shows the insertion of the offending text here but does not show it to have been removed (though note that the latter search seems to result in some kind of infinite loop, which might be a clue to what's causing the problem I'm reporting?). Nor does a glance at the article show it to have been removed.

Nor was I attempting to undo a page move, protection action or import action.

So, why the page with the red writing instead of a page lining up a revert commit?

Please WP:PING me if you reply, as I am not watching this page. Thanks, Zazpot (talk) 14:54, 26 May 2018 (UTC)

@Zazpot: The text that was inserted in that edit was removed in the following edit (and re-inserted in a different place in the article). That removal is why the "undo" feature is saying that the first edit has already been undone. Anomie 16:04, 26 May 2018 (UTC)
Thanks :) Just shows how distracted I was. The WikiBlame recursion still seems odd, but I guess that's a separate issue. Zazpot (talk) 17:57, 26 May 2018 (UTC)

Help compiling a list of editors by experience level

I am a little out of my depth on this one, so would appreciate a bit of help. The background for this is to help identify a pool of editors from which might be found candidates to invite to join New Page Patrol and/or Articles for Creation.

I would like to compile a list of editors (listed by edit count) who:

  • Are not members of the new page reviewer or administrator user groups,
  • Have >3000 main space edits,
  • Have >500 edits in the last 365 days,
  • Have been registered longer than 365 days,
  • Have a clean block log for at least 365 days,
  • Have performed at least 5 page moves,
  • Have created at least 2 non-stub articles in main space,
  • Have had no created articles in mainspace deleted in the last 365 days.

While I would prefer to be able to run it as an SQL query through Quarry, Xaosflux mentioned that it might have to come from a dump, because with the many criteria its run time might be too long for Quarry. Xaosflux mentioned that NKohli (WMF) might be able to help there.

First though I need to have a query to run, and I am sad to report that my coding experience is limited to copy pasting and stitching bits of other people's queries together into bizarre Frankenstein's monster queries. When it comes to making something like this from scratch I need some help (I need someone to write it for me). If anyone can help, I'd appreciate it. Cheers, — Insertcleverphrasehere (or here) 03:05, 25 May 2018 (UTC)

Best ask those at Wikipedia:WikiProject edit counters....that said see Wikipedia:Edit count lots of tools there.--Moxy (talk) 03:17, 25 May 2018 (UTC)
I am well aware of all the lists. I previously used the top Wikipedian's list for my last round of invites, however, manually sorting editors on basic criteria such as activity level was very time consuming. I am hoping to narrow the field beforehand this time (the process will still involve manual checks on some stuff, but if I can run a query for editors meeting ALL of the above, then most of the work will be done before I start. Edit counter tools are great for analysing individual users, and the edit count lists are great for specific things, but I am looking for a complex combination of criteria that can only be put together via a custom query. — Insertcleverphrasehere (or here) 03:31, 25 May 2018 (UTC)
Please note I only mentioned NKohli in the event you wanted this to be a recurring Database Report that was run by User:Community_Tech_bot. — xaosflux Talk 03:53, 25 May 2018 (UTC)
If there's a remotely efficient way to query any of that besides user groups and registry time without a specific user to check, its beyond my ability. (I've got a query that's the polar opposite of "remotely efficient" running for everything up to and including the block log check running; I'll check in on it in the morning, and be very unsurprised if it's still running.) You might get more luck, or at least a different audience, at Wikipedia:Request a query. —Cryptic 04:37, 25 May 2018 (UTC)
I wonder if it would work better to run a couple of smaller queries, and then combine the lists (people with the correct number of edits, minus people with the userright, etc.). Whatamidoing (WMF) (talk) 17:45, 25 May 2018 (UTC)
To some extent, but some of the individual conditions take too long to be practical by themselves. Counting either main space edits or edits in the past year takes about four seconds each per user, and there's almost 9500 of them to check after querying everything that can be found relatively quickly (quarry:query/27196). —Cryptic 19:55, 25 May 2018 (UTC)
Thanks for your help Cryptic. It seems like your level 2 query finished, which is pretty awesome in and of itself. Doesn't look like the Level three one is going to finish unfortunately. Any idea what wording for the last two criteria would look like (at least 2 creations, and no deletions of created articles)? While we might not be able to run it in quarry, we may be able to run it on a database dump, as suggested by Xaosflux. If it takes a while to run that won't be a big deal. — Insertcleverphrasehere (or here) 21:05, 25 May 2018 (UTC)
I restarted the third query fairly recently after I noticed a missed optimization in the first that cut its runtime from about three minutes to thirty seconds, so I haven't given up on it yet.
Non-stub article creations in mainspace would look something like (completely untested)
AND (SELECT COUNT(*) FROM revision_userindex
     JOIN page on page_id = rev_page
     WHERE rev_user = user_id
       AND rev_parent_id = 0
       AND page_namespace = 0
       AND page_len >= 2000 -- length in bytes
     LIMIT 2) >= 2;
That's going to incorrectly count, for example, redirects that the user created that were turned into articles by someone else, and incorrectly miss the reverse case. Nothing we can do about that, since neither quarry nor the labs replicas have article text. Looking for categories with "stub" in their name (à la the latter part of quarry:query/18928) might be more accurate than page_len, but it's more effort to write and I'd guess slower.
I haven't thought about the query against deleted revisions yet. I hadn't even been aware it was accessible. ... it probably shouldn't be. —Cryptic 21:22, 25 May 2018 (UTC)
@Cryptic: Hmm... you can view what articles they created that have been deleted in Xtools, in the page creation log, So i guess I thought it would be query-able, but perhaps its not worth it anyway. I suspect a lot of false positives might be returned (i.e. redirects deleted), which will exclude people that we don't want excluded. Shelve that criteria for now, as it might be more trouble than it is worth. Something that might help with optimisation though; I already manually combed through the top 1000 editors (everyone with >64,000 edits) so we can exclude them from the search if it makes things faster. — Insertcleverphrasehere (or here) 22:53, 25 May 2018 (UTC)
@Cryptic:Also, if mainspace edits are too resource intensive to search for, I suggest raising the global edit count from 3000 to 5000, and this will also help a lot with optimisation (the curve gets very long the further you go out when it comes to edit count, as it is a power law curve). I decided to try running this query HERE. — Insertcleverphrasehere (or here) 22:58, 25 May 2018 (UTC)
  • Thanks very much Cryptic, I ended up finding a workaround, posting the queries in tiers i.e. 64000-60000 edit count, then 60000-50000 etc. in 9 total queries that would each run for just under 30 min. Then I compiled the results which can be found here: User:Insertcleverphrasehere/NPR invite list. All in all this set of criteria works for what I need it for, so thanks for helping me out. Cheers, — Insertcleverphrasehere (or here) 22:21, 26 May 2018 (UTC)

deduping refs?

Sometimes editors cite the same work multiple times, and instead of reusing the reference, they duplicate it. For example, User:Lichtreich/sandbox. Is there a tool to find and dedupe these? -- RoySmith (talk) 22:49, 26 May 2018 (UTC)

WP:AWB takes care of that if named references already exist. Headbomb {t · c · p · b} 22:51, 26 May 2018 (UTC)
Thanks for that info. --User:Ceyockey (talk to me) 02:31, 27 May 2018 (UTC)
Refill will combine refs where the reference text is exactly the same, but doesn't handle citations to different page numbers of the same book: Noyster (talk), 06:40, 27 May 2018 (UTC)

extract all infobox of article

hello this py extract only first infobox of each article:

extract infobox

I want what change in code to

  1. extract all infobox of article (one article maybe have two infobox.
  2. this py extract infobox of my xml or txt file that saved in my computer.

thanks --Monorodo (talk) 15:28, 27 May 2018 (UTC)

Help please! – I can't type a tilde

Help please! I am going to be unable to sign this posting as when I press the normal four tildes sign on my computer, I get four vertical lines instead of what I always used to get - it like so ||||. Does any one know what has gone wrong on my computer and how this can be rectified? If this is of any assistance, it might be worth my saying that the @ and the " keys on my computer seemed to have reversed functions. Many thanks for in advance for any co-operation. |||| — Preceding unsigned comment added by Vorbee (talkcontribs) 18:54, 24 May 2018 (UTC)

It sounds like you changed your keyboard layout in your operating system, check for controls there. Also, in the edit tools above this editing box there should be a sign button above and/or below the box. — xaosflux Talk 18:59, 24 May 2018 (UTC)

Just in case anyone wonders who I am, I am User: Vorbee. |||| —Preceding undated comment added 19:01, 24 May 2018 (UTC)

I think the solution is that from now on, you will be known as ||||. Natureium (talk) 19:06, 24 May 2018 (UTC)
Vorbee, it sounds like you might have enabled the IPA keyboard. Do you get other oddities, when you type other (non-basic) characters? If so, then look around in the corner of the editing windows for a little keyboard-style pop-up button. Click that, and switch back to something that isn't IPA. Whatamidoing (WMF) (talk) 20:53, 24 May 2018 (UTC)
I tried switching to "International Phonetic Alphabet" (IPA), and it didn't give me a vertical bar in place of a tilde. --Pipetricker (talk) 23:03, 24 May 2018 (UTC)
Vorbee, above the wikitext editing area, do you have a toolbar looking like any of these?:
 
If you have this toolbar, clicking on the button marked by the arrow will give you four tildes.
 
If you have this toolbar, clicking on the button marked by the red square will give you four tildes.
Or, if below your wikitext editing area you have something looking like the below, then you should be able to find a button with four tildes in the upper row:
 
––
Questions to find out where the problem is: Do you use Windows or Mac, and which version? Which web browser (and version) do you use?
If you write text on your computer, but not in Wikipedia, such as A) on a Google search page, or B) not in your web browser, but for example in Microsoft Word or similar, do you have this problem if you try typing a tilde?
--Pipetricker (talk) 00:01, 25 May 2018 (UTC)

Many thanks for your help. I have now found a way to get four tildes - if press on "Edit this page" and then go to symbols, I find the tilde symbol and can then click on that. Thank you a lot for every one's help, it is appreciated. Vorbee (talk) 08:15, 25 May 2018 (UTC)

@Vorbee: I have a desktop PC with a UK keyboard, and my Windows is set up for UK keyboard layout. Occasionally, the browser forgets this and defaults to the US keyboard layout; as you note, the tilde key generates a pipe (|) instead. Other keys move around too: the at-sign (@) and double quote (") exchange places, and the tilde moves to the key to the left of that for the figure one (1 !) - this is the one marked with three symbols (` ¦ ¬), and when shifted, produces the tilde instead of the ¬ character. --Redrose64 🌹 (talk) 09:50, 25 May 2018 (UTC)
This fits with Vorbee's symptoms. Redrose64: I assume Opera doesn't have its own setting for keyboard layout, so after it has shifted to US layout, does it go back to following your OS setting after restart of the browser? --Pipetricker (talk) 17:11, 26 May 2018 (UTC)
Yes, closing the browser and restarting it (no need to reboot the PC) fixes the keyboard map. Both Opera and Firefox exhibit this kb remapping problem, but it happens more often with Firefox; and it can be triggered by visiting certain external sites (such as YouTube) which execute JavaScript. --Redrose64 🌹 (talk) 19:29, 26 May 2018 (UTC)
Vorbee, have you restarted your web browser or computer? Is the keyboard back to normal? If not, before restarting anything, please try pressing ⇧ Shift at the same time as the key to the left of the 1 key, to see if that produces a tilde. Then close and restart your web browser and try the normal tilde key. --Pipetricker (talk) 09:38, 27 May 2018 (UTC)

Thank you. I have tried the shift key and the key to left of 1, and am getting tildes when I do this. Many thanks,Vorbee (talk) 16:42, 27 May 2018 (UTC)

And now it's back to normal after restart of the browser, so   Fixed. --Pipetricker (talk) 21:35, 27 May 2018 (UTC)

Suggestion: sock-catching edit filter

New EF that shows all non AC accounts who made more than 50 edits in last day? Plausible? helpful? cinco de L3X1 ◊distænt write◊ 02:30, 27 May 2018 (UTC)

@L3X1: sorry, not plausible - the EF can not calculate edits over time, only atomic values like total edits. It could report every edit where: (User is registered) AND (User is not confirmed) and (user total edit count is over 50). You can discuss further at Wikipedia:Edit filter/Requested. — xaosflux Talk 01:07, 28 May 2018 (UTC)

Missing interlanguage links in sidebar

A reader asserts that the Portuguese version of many articles is not shown in the list of languages for many articles.

ticket:2018051810012492

The example they gave is Brazil.

I see a link to the Portuguese version so I'm not quite sure how to help them. Asked for a screenshot but they didn't know what that meant.

I have a vague recollection that the displayed interlanguage links can be configured and perhaps they have it configured wrong, but this is just a guess.

Any thoughts?--S Philbrick(Talk) 21:29, 20 May 2018 (UTC)

@Sphilbrick: This is Compact Language Links. Various factors determine which languages are shown to each user. — JJMC89(T·C) 21:37, 20 May 2018 (UTC)
Thanks, sounds like the answer.--S Philbrick(Talk) 21:48, 20 May 2018 (UTC)
I do not see the Prtuguese version for me either Abote2 (talk) 23:28, 28 May 2018 (UTC)

Importing Template:efn to other wikis

I'm attempting to import the template {{efn}} to wikiversity, but I'm getting the error:

Import failed: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: INSERT IGNORE INTO `page` (page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES ('10','Efn-lr','','0','1','0.873740892682','20180527065343','0','0') Function: WikiPage::insertOn Error: 1205 Lock wait timeout exceeded; try restarting transaction (10.64.0.205)

The inline link displays the text "lower-alpha 1" in stead of the letter "a". Any ideas how to copy over the missing database? T.Shafee(Evo&Evo)talk 07:11, 27 May 2018 (UTC)

@Evolution and evolvability: I can't help you with the database error, but to fix the "lower-alpha 1" text I think you need to import MediaWiki:Cite link label group-lower-alpha. -- John of Reading (talk) 07:47, 27 May 2018 (UTC)
@John of Reading: Aha, a very useful piece of the puzzle. Thank you. I don't seem to have permission to import pages to wikiversity's MediaWiki namespace, so that might be art of the issue. T.Shafee(Evo&Evo)talk 08:21, 27 May 2018 (UTC)
@John of Reading: That's almost solved it - thank you. Any ideas on what last steps should happen to finally render it correctly? Oddly it all renders correctly except for one of the inline superscripts is "[lower-roman 1]" in stead of "[i]". Any ideas? Thanks again, T.Shafee(Evo&Evo)talk 23:15, 27 May 2018 (UTC)
MediaWiki:Cite link label group-lower-roman hasn't been imported. A comparison of Special:PrefixIndex/MediaWiki:Cite link label and wikiversity:Special:PrefixIndex/MediaWiki:Cite link label shows others you may want. PrimeHunter (talk) 01:20, 28 May 2018 (UTC)

Section edit links missing on article talk page

Is it just me or are the "edit" links by the section headers missing from Talk:Indian Rebellion of 1857? I've tried reloading, navigating away and back again, and actually editing the page, but I can't get them to appear. DuncanHill (talk) 14:48, 30 May 2018 (UTC)

Looks like {{talk archive}} was at fault. Not sure why it was added in the first place. Chris857 (talk) 14:54, 30 May 2018 (UTC)
Thank you, working properly now :) DuncanHill (talk) 14:57, 30 May 2018 (UTC)

Tech News: 2018-22

12:40, 29 May 2018 (UTC)

This, You can now use global preferences on most wikis. This means you can set preferences for all wikis at the same time. Before this you had to change them on each individual wiki. Global preferences will come to the Wikipedias later this week., looks like it came from the Simple English wikipedia. Natureium (talk) 16:02, 29 May 2018 (UTC)
I think it's because English is the lingua franca of tech news and this notice gets sent to many wikis where users don't have a native level understanding. Killiondude (talk) 16:17, 29 May 2018 (UTC)
Indeed. Tech News is intentionally written in Simple English. Translations do exist, but occasionally it is not translated into certain major languages (for example, there never seems to be a German translation, and last week Spanish was missed). — This, that and the other (talk) 03:08, 30 May 2018 (UTC)
Simple English, particularly avoiding complex grammar, may also make it easier for translators. BTW, if anyone who knows German or other languages wants to make sure a translation gets written in time, m:Tech/News states that each week's issue is available for translation on the Thursday ("end of day UTC") before it goes out. Anomie 12:35, 30 May 2018 (UTC)
If you are able to translate, or if you just want advance notice of what's going to be in next Monday's Tech News, then please sign up for https://lists.wikimedia.org/mailman/listinfo/translators-l Whatamidoing (WMF) (talk) 00:10, 31 May 2018 (UTC)

Putting a <references> before a reference

Hello technical wizards. Any ideas on how to force display of a reference list before the reference is mentioned in the text? Don't worry, it's not for article mainspace! The code below renders ok in preview but gives an gives an error when the page is saved:

{{notelist|refs=
{{efn|name=hn1|head note text}}
}}

Words{{efn|name=hn1}}

Cite error: A list-defined reference with group name "lower-alpha" is not used in the content (see the help page).

Words[a]

Is it possible to implement this within the MediaWiki language at all? T.Shafee(Evo&Evo)talk 12:35, 29 May 2018 (UTC)

I believe that is officially unsupported with cite.php. You could probably fake it, though, by using an internal anchor link, if you didn't need automagic numbering:
[[#note1|1.]]  First note.

Words.<sup>[[#note|1]]</sup>

Whatamidoing (WMF) (talk) 00:14, 31 May 2018 (UTC)

Good idea for faking it. That might be implementable. As an alternative, I've also tried floating the {{efn}}-containing div so that it's placed before the {{notelist}} but still appears in the correct place, but it has the downside that it's not very robust to changes in screen size. See the relevant template here: v:Template:Article_info, and in use here: v:The_aims_and_scope_of_WikiJournal_of_Science. T.Shafee(Evo&Evo)talk 02:06, 31 May 2018 (UTC)

References

  1. ^ Cite error: The named reference hn1 was invoked but never defined (see the help page).

Error tracking category added by translation tool

I have noticed three or four cases where someone created a page using mw:Content translation and where an error tracking category (Category:Age error) was inserted in the translation. Examples: User:OMAR YLIF/Natalie Moszkowska (from fr:Natalie Moszkowska) and User:Dri1com/Jean Dabry (from fr:Jean Dabry). Editing the page shows the wikitext for the category in the middle of the article. This is a trivial issue but it's puzzling—how could that category end up in the translation? Johnuniq (talk) 04:00, 24 May 2018 (UTC)

Here is another: User:Borishermann/Hermann Kamte (from fr:Hermann Kamte). Weird! It's got several error tracking categories including links to help. Possibly some copy/paste confusion using visual editor? Johnuniq (talk) 11:09, 1 June 2018 (UTC)

Can't disambiguate a link

  Resolved

In Portal:British Army/Selected unit/8 there is a link at the bottom which says "Read more..." and which links to the disambiguation page Intelligence Corps. It should link to Intelligence Corps (United Kingdom). I cannot see how to fix this. Could anyone help please? DuncanHill (talk) 12:05, 1 June 2018 (UTC)

Scrub that, worked it out. DuncanHill (talk) 12:07, 1 June 2018 (UTC)

Potential replacement for Template:Rp

  FYI: Pointer to relevant discussion elsewhere.

The new improvement to <ref>...</ref> proposed at meta:WMDE Technical Wishes/Book referencing/Call for feedback (May 2018) would obviate the need for the {{Rp}} template, as well as provide various other enhancements. The discussion is presently swamped by people who just don't like fully-inline citations and only want to use {{sfn}} and page-bottom referencing, but this is a false dichotomy. The discussion isn't about which citation style is better (the answer to that is "it depends on the article"); the question is whether this feature would be good to have for referencing that is fully inline, and the answer is clearly "yes". I would be delighted if my old {{Rp}} template was finally superseded by an actual (and more tidy) feature of MediaWiki itself.  — SMcCandlish ¢ 😼  22:04, 1 June 2018 (UTC)

This won't replace {{Rp}}, it will just produce yet another citation style. {{3x|p}}ery (talk) 22:09, 1 June 2018 (UTC)
Nah, I would WP:TFD {{Rp}} myself as redundant after it's implemented.  — SMcCandlish ¢ 😼  04:22, 2 June 2018 (UTC)

"Watch this page" and "This is a Minor edit" tickboxes in Safari

Can anyone tell me why the "Watch this page" and "This is a Minor edit" tickboxes in the edit view no longer work in Safari. When I click on them they fill in (blue) but aren't ticked. So, for instance, when I finish an edit and click the "Watch this page" box, the page is not added to my watchlist (evidenced by the star in the top right not being filled in). Shhhnotsoloud (talk) 09:33, 1 June 2018 (UTC)

its a Safari bug, there is a ticket in phabricator and a bugreport on webkit/safari too. Ppl are looking vot solutions. Luckily, they still work, its just the checkmark that is missing —TheDJ (talkcontribs) 10:56, 1 June 2018 (UTC)
Seems like a workaround (removing the animation for all browsers) was implemented and it should arrive next week. —TheDJ (talkcontribs) 12:45, 1 June 2018 (UTC)

@TheDJ: Thanks! Shhhnotsoloud (talk) 06:14, 2 June 2018 (UTC)

Collapsible sections of tables?

It there a way to have something like

Table
Date Player Result
2015 [hide]
2015-05-06 Bob Won
2015-08-06 Suzy Lost
2016 [hide]
2016-05-06 Bob Won
2016-05-09 Bob Won

Where the 2015 [hide] would collapse the 2015 rows, but leave the 2016 rows displayed? Thanks. Headbomb {t · c · p · b} 18:57, 24 May 2018 (UTC)

@Headbomb: You could always fake it with separate tables:
Table
Date Player Result
--Ahecht (TALK
PAGE
) 19:22, 24 May 2018 (UTC)
@Ahecht: Was hoping for something that'd still be sortable at the end of the day. And something that would inherit all the properties from the top level, rather than have to specify every width in sub-levels to ensure consistency. Not sure if that's doable. Headbomb {t · c · p · b} 09:52, 25 May 2018 (UTC)
@Headbomb: It should be technically possible with JavaScript, but I cannot read or write JS. I think I might have asked about something like this before, possibly to TheDJ about {{Routemap}}, but the solution in that template, for now, is also to nest tables. How would sorting a collapsible table work? If you were to press "collapse" after reordering the rows, what would happen? Jc86035's alternate account (talk) 09:35, 2 June 2018 (UTC)
That's a good question. Probably only sort the uncollapsed rows? Headbomb {t · c · p · b} 12:04, 2 June 2018 (UTC)
It is bad practice (inaccessible) to have intermediary column-spanning items in a table as this moves tables away from data tables toward layout tables. If you want separate tables, make separate tables. If you want one table, these should be as row-spanning cells, presumably in the first column. --Izno (talk) 19:49, 2 June 2018 (UTC)

Search Index

Hi all,

So I made a page about 2 months ago. The page was reviewed by a patroller on May 29, as you can see here. [[59]] For some reason it still doesn't appear on Google searches. Does anybody know why? I'm a bit concerned because other pages I created that were reviewed didn't have this long of a lag time before appearing. Thanks in advance. Wikiman5676 (talk) 20:03, 2 June 2018 (UTC)

Dharma Bum Temple is the third Google hit for me on Dharma Bum Temple. I'm in Denmark. Google's cache says their current snapshot is from 2 Jun 2018 20:12:20 GMT. That's nine minutes after your post and may have been triggered by an edit [60] at 20:08. I don't know whether they had it indexed before. PrimeHunter (talk) 20:46, 2 June 2018 (UTC)
Wow so all i had to do was edit it once after it was reviewed? haha thats so funny. I'll remember this for future pages. Thank you for pointing that out, i appreciate it. Wikiman5676 (talk) 21:02, 2 June 2018 (UTC)

webrecorder.io for |archiveurl=

Archive.org, webcitation.org and archive.is are great at recording and playing back static web pages. But dynamic content pages often don't do well, such as Google Books, flash, YouTube, Facebook, Twitter etc...

From Rhizome (organization)#Web archiving:

Funded by the Andrew W. Mellon Foundation, Webrecorder is targeted towards archiving social media, video content, and other dynamic content, rather than static webpages. Webrecorder is an attempt to place web archiving tools in the hands of individual users and communities. It uses a "symmetrical web archiving" approach, meaning the same software is used to record and play back the website. While other web archiving tools run a web crawler to capture sites, Webrecorder takes a different method, actually recording a user browsing the site to capture its interactive features.

The quality and fidelity of webrecorder.io archives on replay are unmatched. It also allows for archiving multiple pages in a single archive. The downside is need to register for an account and a slight learning curve. The upside is the archives are fully open-source meaning the WARC files can be downloaded. If there are sites you want to archive but have not been successful this is a solution. -- GreenC 03:47, 27 May 2018 (UTC)

@GreenC: Should there be a guideline for how to use it in Wikipedia, like the ones for the Internet Archive, archive.is and webcitation.org? It seems to be more complicated than the other web archives, especially since an account is required to archive pages. Jc86035's alternate account (talk) 16:00, 27 May 2018 (UTC)

───────────────────────── Yeah that would be good. There are over 100 thousand YouTube links on enwiki. A sample video:

This is typical. Almost none of the YouTube links are backed up. They last 5-10 years. -- GreenC 15:57, 29 May 2018 (UTC)

I do think that source archival is something that needs to be looked at more closely by the community. Webrecorder could be the best option for interactive sites, which seems to be on the main problems with our current archiving. The other main problem is when a site has died and it has not been archived at all, regardless of interactive or not interactive elements. Emir of Wikipedia (talk) 19:05, 2 June 2018 (UTC)
Another problem: when a page is archived, the underlying HTML code is from that era. As time goes on, the ability to replay that HTML degrades because standards change, browsers change, security changes. So pages from the 1990s don't display well on browsers from 2018. It gets worse with time. Webrecorder uses a virtual machine to emulate old browsers when recording/replaying so it is possible to replay a page as it was intended to be seen no matter the age. It's slick technology and the only archive capable of it. -- GreenC 20:24, 2 June 2018 (UTC)
I have created a page at Help:Archiving a source. Advantages and disadvantages of each service can be listed there. Emir of Wikipedia (talk) 21:46, 2 June 2018 (UTC)
Hmm.. it sort of forks WP:Link rot which I'm (slowly) rewriting in sandbox. There is also WP:WEBARCHIVES. This is a large complex topic when you look into it so many issues. -- GreenC 22:24, 2 June 2018 (UTC)

Hundreds of broken talk archives

  Resolved: Fixed by Cobi. Bradv 01:06, 3 June 2018 (UTC)

I came across several hundred talk pages that use the User:ClueBot III/ArchiveThis without the required "archiveprefix" parameter. According to the documentation this is supposed be okay, but yet the archive boxes on these talk pages are filled with links to unrelated pages, and the actual archives are nowhere to be found.

I made a list of all the affected talk pages User:Bradv/ArchiveFix. I'm not sure if my proposed fix actually works, as I tried one and it appeared to have no effect.

Could someone familiar with the inner workings of ClueBot please weigh in? I posted a message at User_talk:ClueBot_Commons#Hundreds_of_broken_talk_archives but I'm not sure how active that page is.

Please note this is also happening to user talk pages, although I have not attempted to index those. Here's a diff from a few minutes ago where ClueBot wiped out the archive index and replaced it with bogus data. Bradv 04:34, 2 June 2018 (UTC)

Regardless of whether there is a configuration issue at play, ClueBot is clearly misfiring. Bradv 05:36, 2 June 2018 (UTC)

Issue with editing - End of paragraph and "return"

Hi,

Been noticing the last couple of days that editing does not leave a clear space between paragraphs. In some cases, it also appears to ignore a para break/return and concatenate sections. Most frustrating. Regards, Cinderella157 (talk) 23:53, 28 May 2018 (UTC)

Please give an example and name you browser and your skin at Special:Preferences#mw-prefsection-rendering. Are you referring to the edit area in your browser while editing a page, or to a rendered saved page? If it's the edit area then which editor do you use? Does it happen if you are logged out? PrimeHunter (talk) 00:11, 29 May 2018 (UTC)

See: 1. Would remove “criminal” before Commissar order because it sounds as if that is Wikipedia’s voice, and also duplicates the end of that sentence re contravening laws of war. (btw would be good to clarify what we mean by “laws of war’ – ie what convention or international agreement set these laws in this instance). Alternatively, we would need a specific source for “criminal” as it has a particular meaning beyond violation of a convention – criminal under what national or international law? 4. Do we know what happened to his family after the war?

5. Overall, this is a comprehensive summary of Hoepner’s military career, with some interesting additions and quotes on his views and interpretations of different stages of activity. It would have been good to have a bit more about the nam as an individual (ie not just a soldier), and some further background on his early life. But we’re obviously limited by the soruces we have, which seem fairly comprehensively reviewed.

These have all been typed as seperate paras. Regards, Cinderella157 (talk) 00:29, 29 May 2018 (UTC)

I