Wikipedia:Village pump (technical)

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

Newcomers to the technical village pump are encouraged to read these guidelines prior to posting here. Questions about MediaWiki in general should be posted at the MediaWiki support desk.

« Older discussions, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152
Centralized discussion
Proposals: policy other Discussions Ideas

For a listing of ongoing discussions, see the dashboard.


Ability to filter logs[edit]

In the log interface (for example, the Block log) there are very few options to filter, especially negatively. For example, there are zillions of bot entries in the block log and there is no way to get rid of them, like there is in my Watchlist. As far as I can see, there is also no ability to search in the accompanying note. Could these features be added? Jytdog (talk) 16:52, 9 January 2017 (UTC)

no responses to this. would folks who watch this page please let me know if there a better place to request this? thx Jytdog (talk) 21:07, 10 January 2017 (UTC)
Those fields certainly do not like standard wildcards/exclusions. Tried doing "-ProcseeBot" (without quotes) and it eliminated everything, contrary to Help:Searching#Syntax.--☾Loriendrew☽ (ring-ring) 00:36, 11 January 2017 (UTC)
The URL query strings provided for the various Special pages are not search strings, unless explicitly documented as such, for instance, the search= parameter of Special:Search. Virtually all other query parameters expect single non-list values, which might be numeric or string. In general, if there isn't a selection for what you want at the top of the relevant special page, there isn't a URL query parameter for what you want either.
Some special pages do have exclusions, but the syntax is not a search string, and is not general: for example, your watchlist restricted to non-bot edits in mainspace is
https://en.wikipedia.org/w/index.php?title=Special%3AWatchlist&hidebots=1&namespace=0
but if you use the "Invert selection" checkbox as well, which adds the query parameter invert=1 to give
https://en.wikipedia.org/w/index.php?title=Special%3AWatchlist&hidebots=1&namespace=0&invert=1
you will find that this extra parameter affects only the namespace= query parameter - it does not list bot edits only - instead, it lists non-bot edits outside mainspace.
What you are asking for is a new feature for the Special:Log page, and there's nothing we can do about that here, so you would need to file a feature request at phab:. --Redrose64 🌹 (talk) 09:41, 11 January 2017 (UTC)
Thanks for answering. I will have to go figure that system out. Actually, I will not bother. Jytdog (talk) 10:31, 11 January 2017 (UTC)
I filed a request for you. If there are errors/incompletenesses/etc. in the description at phab:T155442, then just ping me with the changes you want, and I can update it for you. Whatamidoing (WMF) (talk) 19:02, 16 January 2017 (UTC)
Thanks User:Whatamidoing (WMF)! Jytdog (talk) 19:49, 16 January 2017 (UTC)

Outdated server caches for redirected pages when logged out: is this a known issue?[edit]

Redirected pages often load outdated server caches. This is mostly evident on redirects to project pages which transclude evolving discussions, e.g. WP:FPC. The thing is, this seems to occur only when logged out. I've noticed this for as long as I can remember. It's a minor issue, but I wonder if it's ever been raised. --Paul_012 (talk) 08:08, 10 January 2017 (UTC)

It's been raised in another context. The cache for a page is not refreshed as often for logged out users. It's only an issue for page content that's generated (e.g., Category: pages) or transcluded, since editing a page updates the cached version. --Unready (talk) 09:03, 10 January 2017 (UTC)
@Unready I see. I wonder what the reason is for generating separate caches for logged-in and logged-out users? (Just asking. I don't know anything about the technical background.) --Paul_012 (talk) 15:34, 15 January 2017 (UTC)
Not separate caches, just one cache that isn't updated if an anonymous user requests it, but is updated if a logged in user does. It's easier on the back-end servers, since most page hits are from anonymous users. --Unready (talk) 16:50, 15 January 2017 (UTC)
Hmm. That doesn't explain the behaviour I've observed, which is that visiting WP:FPC while logged in loads the transclusions properly, but logging out and revisiting the page (also via the redirect) results in the latest comments disappearing. --Paul_012 (talk) 18:29, 15 January 2017 (UTC)
(Pinging Unready.) --Paul_012 (talk) 11:43, 17 January 2017 (UTC)
I don't really have anything to add. It seems unusual (and maybe pointless) to have separate caches for logged in and logged out users, but I don't know one way or the other whether that's, in fact, the cache architecture. --Unready (talk) 13:47, 17 January 2017 (UTC)
A similar problem occurs with red and blue links in revision histories. The link color cache is not updated for logged out users when a page linked in an edit summary, the editor's user page, or the editor's user talk page is created (turning it from red to blue) or deleted (turning it from blue to red). GeoffreyT2000 (talk, contribs) 16:58, 17 January 2017 (UTC)

GA reviews[edit]

I'm trying to make a list of all of the articles in category:Good articles that don't have a GA review (that is, a talk page with "/GA1" in the title). I haven't succeeded in persuading AWB to list all the review pages using a title search, it seems to be limited to one or two thousand results only (the real number is about 30,000) and is buggy with a lot of false results. Is there a better way to do this? SpinningSpark 19:47, 13 January 2017 (UTC)

If you want to do something hacky, you could add some code to {{Good article}} akin to {{#ifexist:{{TALKPAGENAME}}/GA1||[[Category:Good articles without a first GA review]]}} that automatically categorizes these things. Not sure whether that would need prior discussion. Jo-Jo Eumerus (talk, contributions) 19:55, 13 January 2017 (UTC)
We may need a WP:Request a query page, similar to WP:Bot requests, for requests like this which should be simple for someone familiar with SQL and the WMF's Quarry service. --Izno (talk) 20:21, 13 January 2017 (UTC)
Sounds like a good idea, since I remember BOTREQ often getting requests to compile a certain list of pages. Enterprisey (talk!) 06:09, 14 January 2017 (UTC)
As I also believe this is a good idea and given the success of similar page at Wikidata I created one. I do suck in writing pretty text (intro in this case) even in my native language, so everybody is welcome to tidy it up and put link to page in revelant pages. --Edgars2007 (talk/contribs) 12:32, 14 January 2017 (UTC)
I've advertised a bit--let's see who pops up! :D --Izno (talk) 17:42, 14 January 2017 (UTC)
Be aware that you'll find thousands of these. Having the GA review on a separate page is a relatively recent innovation; GA reviews were historically always done in a section on the talkpage (example). ‑ Iridescent 15:20, 14 January 2017 (UTC)
Yes, I discovered that after succeeding in creating the list (see User:Spinningspark/Sandbox2). But even so that is a big improvement from ~25,000 articles to ~3,000. Any suggestions on how this can be further filtered down? A bot that finds the old review and moves it to a Talk:<foo>/GA1 page would be ideal, but that's probably too much to hope for. SpinningSpark 21:06, 14 January 2017 (UTC)
One other thing, some of the false positives are not because the article is old, but because the name of the review page does not exactly match the name of the review page. The first one on my list is an example; $pringfield (or, How I Learned to Stop Worrying and Love Legalized Gambling) does not match Talk:$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)/GA1 (note the capitalisation of "or"). Those might be a bit easier to filter, but I can't offhand think of a way. SpinningSpark 21:15, 14 January 2017 (UTC)
This can be fixed by moving the GA1 subpage to Talk:$pringfield (or, How I Learned to Stop Worrying and Love Legalized Gambling)/GA1, which I have done now. GeoffreyT2000 (talk, contribs) 02:39, 15 January 2017 (UTC)
I realise that, but it's not the only one. The whole list of 3000 pages would need to be gone through. I can find examples manually easily enough (another is 1950 USS Missouri grounding incident with review at Talk:USS Missouri grounding incident/GA1), but how to find and fix them automatically or semi-automatically? SpinningSpark 08:09, 15 January 2017 (UTC)
@Spinningspark: wouldn't a talk subpage with the ending /GA1 be automatically created from the talk page title, which is itself generated from the article title? If that holds true throughout all the GA review pages, then I don't think that capitalization errors should be a major issue. Icebob99 (talk) 03:55, 15 January 2017 (UTC)
@Icebob99:I'm not sure I understand what you are asking. Some GA reviews do not have a dedicated subpage. For instance 100,000-year problem has the review at Talk:100,000-year problem#GA review --Pass. So the question is can an automated process find and move these reviews to a /GA1 page? In the example I gave the location of the review is given in the article milestones template so at least some of them are potentially doable automatically. SpinningSpark 08:09, 15 January 2017 (UTC)
@SpinningSpark: Finding pages called Talk:X/GA1 which have no corresponding article X should give a short list which could be matched to their articles manually. I'd like to copy Izno's idea but the only relevant template seems to be {{al}} which is widely used. Certes (talk) 10:14, 15 January 2017 (UTC)
@Certes: Right, good idea, but I can't use AWB to pick out the redlinks as I did to make the first list because most of them are going to have a redirect at the article name so will be blue. I think a bot request might be in order here. SpinningSpark 10:55, 15 January 2017 (UTC)
You probably shouldn't try to have a bot move the review; it's likely to end in tears, especially if the review spans more than one ==Section==. But you could see about a bot request to create a redirect from the /GA1 subpages to the relevant section (e.g., on the talk page or in an archive). That's a non-destructive action that, even if wrong in a few instances, would likely be harmless. WhatamIdoing (talk) 19:15, 16 January 2017 (UTC)

Notifications[edit]

When I notified several editors in an edit, I received a notification saying in part "8 not sent, 1 sent". In actuality 8 were sent (the other one was a misspelled username). Is this a known bug? Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
15:13, 14 January 2017 (UTC)

I haven't found mention of a problem. The message sounds like MediaWiki:Notification-header-mention-status-bundle, added in phab:T140224. We haven't customized the message and the default matches the documentation at translatewiki:MediaWiki:Notification-header-mention-status-bundle/qqq. PrimeHunter (talk) 01:51, 15 January 2017 (UTC)
@PrimeHunter, AIJKOUJBLVNNSCI, and AIUHVDNDOI FW QQQ: Testing it again to see if it persists. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
04:53, 15 January 2017 (UTC)
Received "2 not sent, 1 sent" as expected. Should I report it as a bug anyway even though it might not be reproducible? Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
04:55, 15 January 2017 (UTC)
@Jc86035, PrimeHunter2, PrimeHunter3, NoSuchUser, and NoSuchUser2: Please make a serious effort to reproduce before reporting a bug. If a reproduction attempt fails then try something closer to the original conditions. I guess it was [1]. I have two alternative accounts and can make tests without pinging uninvolved users. It indicated the error is not due to having multiple paragraphs or templates. My tests always gave the larger of the two numbers at "not sent", swapping the numbers if "sent" should have been larger. For example I got "2 not sent, 1 sent" in [2] which should have said "1 not sent, 2 sent". Below the false counts it correctly listed 1 which was not sent and 2 which were. Both the sent messages were also received. PrimeHunter (talk) 11:54, 15 January 2017 (UTC)
@Jc86035, PrimeHunter2, PrimeHunter3, NoSuchUser, and NoSuchUser2: You only get MediaWiki:Notification-header-mention-status-bundle if both "Failed mention" and "Successful mention" are enabled at Special:Preferences#mw-prefsection-echo. I'm repeating the above test. PrimeHunter2 (talk) 12:00, 15 January 2017 (UTC)
The false counts appear to be less predictable than the swapping I suggested. The above gave me:
4 notifications about mentions you made on the ‪Village pump (technical)‬ talk page: 3 not sent, 1 sent.
Username does not exist: NoSuchUser2
Username does not exist: NoSuchUser
You mentioned: PrimeHunter3
You mentioned: Jc86035
The link to the posting PrimeHunter2 account was ignored as it should be. The message should have said "2 not sent, 2 sent". PrimeHunter2 (talk) 12:09, 15 January 2017 (UTC)
There are not any related open bugs that I can see. Please do file this, and tag the #mention-notification project, (but note the PM is marked as away till March, so it might take some time before they can triage it). Thank you, PrimeHunter and Jc86035. Quiddity (WMF) (talk) 19:37, 16 January 2017 (UTC)

Customized dashboard[edit]

Hello. How can I customize my dashboard at Wikipedia? I want to add another Sandbox to my dashboard. 4nn1l2 (talk) 04:50, 15 January 2017 (UTC)

@4nn1l2: I'm not sure what you mean by "dashboard" but you can start another user sandbox by just pointing at a non existent page such as User:4nn1l2/sandbox2. — xaosflux Talk 04:56, 15 January 2017 (UTC)
I mean the bar located at the right side of the top of the pages where there are links to the following pages:(userpage, user talk, Sandbox, Preferences, Beta, Watchlist, Contributions, Log out). I want to customize that link. I think it should be done by editting my own CSS and such. Thank you. 4nn1l2 (talk) 05:17, 15 January 2017 (UTC)
You would need to write custom javascript to load that in there - for a slightly different way you could make your main sandbox be an automatic index of numbered sandboxes like this: User:Xaosflux/sandbox. — xaosflux Talk 05:31, 15 January 2017 (UTC)
Or use User:PrimeHunter/My subpages.js to add a "Subpages" link by placing the below in your common JavaScript. PrimeHunter (talk) 11:05, 15 January 2017 (UTC)
importScript('User:PrimeHunter/My_subpages.js'); // Linkback: [[User:PrimeHunter/My subpages.js]]


Quote frame bug?[edit]

If I add the code I see no quote text.

Feynman • Leighton • Sands — The Feynman Lectures on Physics, Volume I

Username160611000000 (talk) 12:44, 15 January 2017 (UTC)

{{Quote frame|...

W12{{=}}W13-W32

|Feynman • Leighton • Sands|The Feynman Lectures on Physics, Volume I}}
produces
...

W12=W13-W32


— Feynman • Leighton • Sands, The Feynman Lectures on Physics, Volume I
If text passed as an unnamed parameter to a template contains =, the = has to be passed as {{=}} or as &equals; or the entire parameter has to be named with its ordinal, e.g., 1=whatever=whatever. --Unready (talk) 14:10, 15 January 2017 (UTC)
Hey, guys (and girls), why adding 1= isn't working in this case? It should... --Edgars2007 (talk/contribs) 14:26, 15 January 2017 (UTC)
Looking at that template, I'd start with the error text that will never display and work backwards. Meanwhile, {{=}} works. --Unready (talk) 14:54, 15 January 2017 (UTC)
Works for me but if you use 1= then you need to use 2= etc., or the first unnamed parameter will overwrite the one given with 1=.
{{Quote frame|1=...

W12=W13-W32

|2=Feynman • Leighton • Sands|3=The Feynman Lectures on Physics, Volume I}}
produces
...

W12=W13-W32

— Feynman • Leighton • Sands, The Feynman Lectures on Physics, Volume I
- Certes (talk) 15:25, 15 January 2017 (UTC)
... the first unnamed parameter will overwrite the one given with 1.... If true, this is a change from previous versions of MW. Unnamed ordinals used to skip named ordinals. --Unready (talk) 15:43, 15 January 2017 (UTC)
@Unready: It's certainly true now. Do you have evidence it has ever been different? Help:Duplicate parameters has the example {{Cite web|1=2014|title=Cars|2014}}. I know it was interpreted like {{Cite web|1=2014|title=Cars|1=2014}} when I wrote it in August 2016. Help:Template#Usage hints and workarounds says: "Another method is to replace the unnamed parameter (and any subsequent unnamed parameters) with named parameters". The quote is from 2011.[3] PrimeHunter (talk) 16:30, 15 January 2017 (UTC)
https://oeis.org/wiki/Special:Version says MediaWiki 1.15.1. That's from 2009 and has the same behaviour in my tests. The wiki requires an approved account. PrimeHunter (talk) 16:48, 15 January 2017 (UTC)
I thought it was different not that long ago. I'll certainly agree named ordinals aren't skipped now. I've looked for older references, but haven't found any. Well, now is what counts, anyway. --Unready (talk) 16:56, 15 January 2017 (UTC)
This came as a surprise to me too. I also think that template parameters used to behave differently but have no evidence for this. I don't see what advantage the current behaviour has over the version we vaguely remember, except that it may be easier for the developers to implement. Certes (talk) 17:55, 15 January 2017 (UTC)
So somebody can "confirm", that in some older MW version simply adding 1= would work nicely? We then probably have some things broken. --Edgars2007 (talk/contribs) 19:30, 15 January 2017 (UTC)
Well, what we can confirm is that since at least mw1.15 it has worked (and works now) the way Certes posted above. It's probably not a bug. --Unready (talk) 19:54, 15 January 2017 (UTC)

Only articles in a category[edit]

Hello. Is there a way a category to show only the articles? Not everything else. Xaris333 (talk) 13:04, 15 January 2017 (UTC)

@Xaris333: Category:Articles? Sam Walton (talk) 13:08, 15 January 2017 (UTC)
I mean I don't want to show pages like User, User talk, Wikipedia etc. Only article namespace. Xaris333 (talk) 13:10, 15 January 2017 (UTC)
@Xaris333: You can do an advanced search restricted to the Article namespace using the search term incategory:"name of category". Don't put the "Category:" prefix in the name of the category, otherwise it won't work.Harryboyles 13:50, 15 January 2017 (UTC)
Thanks, but is not what I want. Xaris333 (talk) 13:53, 15 January 2017 (UTC)
You probably want {{main other}} if I got the idea. --Edgars2007 (talk/contribs) 14:24, 15 January 2017 (UTC)
Xaris333 wants to visit a category page, such as Category:Pages with misplaced templates, and filter that by namespace. --Redrose64 🌹 (talk) 23:31, 15 January 2017 (UTC)
Ohh, sorry Xaris, I misunderstood your request. Sam Walton (talk) 23:33, 15 January 2017 (UTC)
@Xaris333: There is no namespace filter for categories. If there were, this link wouldn't list User: or Wikipedia: pages. --Redrose64 🌹 (talk) 23:31, 15 January 2017 (UTC)
If you can use just a list of articles without the text and format of the category page, a search should work: [4] Certes (talk) 00:08, 16 January 2017 (UTC)
@Xaris333: You cannot do this in the normal category view. The search solution mentioned above should work pretty well, although it doesn't preserve the category order. In addition, you can filter categories by namespace using the API, although the output is not so pretty. See https://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category%3APages%20with%20misplaced%20templates&cmprop=title&cmlimit=500&cmnamespace=0&format=xml for example. If you want prettier output (and a nice user interface) you can try using PetScan. — Mr. Stradivarius ♪ talk ♪ 03:02, 16 January 2017 (UTC)

Ok thank you all. Xaris333 (talk) 08:00, 16 January 2017 (UTC)

Can't add link to zh.wp[edit]

Screen shot of Wikidata bug.png

Trying to add a link to another language Wikipedia from an article here, I get an error, shown at right. This is using the "Add links" item in the sidebar. The article here is Lanshou Xianggu. the article exists on the Chinese WP at zh:蓝瘦香菇. I could probably do it by visiting Wikidata and manually setting it up, but this is the first way many editors will do it, for many the only way they will do it (especially as at this stage the page has no links to Wikidata). Not the first time I’ve seen this "Invalid CSRF token" error, but the last time was weeks ago so it’s not a temporary glitch. I have a login at Wikidata, if that’s relevant. Browser is Safari on Mac OS.--JohnBlackburnewordsdeeds 01:40, 16 January 2017 (UTC)

 Works for me - possibly a temporary issue on wikidata, if you keep getting it open a ticket on phabricator. — xaosflux Talk 01:51, 16 January 2017 (UTC)
I don't think that you should enter "zhwiki" - simply "zh". Also, this is really a Wikidata problem. --Redrose64 🌹 (talk) 20:14, 16 January 2017 (UTC)
I entered 'zh'; It autocompleted to 'zhwiki'. Maybe the solution is at Wikidata but this is both hosted here and implements a feature of WP. Again, there was no way on the page to reach Wikidata, and even if there were only experienced editors would realise they could add an IW link by visiting Wikidata.--JohnBlackburnewordsdeeds 20:49, 16 January 2017 (UTC)
There seems to be an issue with your edit from Wikipedia being accepted on Wikidata. (That is what the token error is about.) I'll put it on my list of things to investigate. Thanks for the report. --Lydia Pintscher (WMDE) (talk) 01:54, 17 January 2017 (UTC)

Purge confirmation clicker?[edit]

Resolved

I can't seem to find this in the archive. There was a code snippet:

if ( mw.config.get( 'wgAction' ) === 'purge' ) {
        $( 'form.visualClear' ).submit();
}

That when added to user.js would press that "OK" button when attempting to purge the page - but this has recently stopped working for me - does anyone have an update? — xaosflux Talk 04:37, 16 January 2017 (UTC)

@Xaosflux: Just based on the purge page's source code, changing the selector to $('form.mw-htmlform') should work. — Earwig talk 05:08, 16 January 2017 (UTC)
Perfect, thank you, — xaosflux Talk 14:13, 16 January 2017 (UTC)

New code so it gets in to the VPT Archive:

/* Override annoying purge dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
       $('form.mw-htmlform').submit();
}
xaosflux Talk 14:15, 16 January 2017 (UTC)

What kind of tasks that could be done by readers or casual contributors that would support editors at the same time?[edit]

Check out the suggestions here, the mockups are very detailed, but these are just ideas -- discussion and further ideas is required :). Thank you! --Melamrawy (WMF) (talk) 21:43, 16 January 2017 (UTC)

Batch file changes[edit]

Would anyone be interested in porting commons:Help:VisualFileChange.js for enwp? We currently have no means for batch nominating either files from a single category or uploaded by a single user for discussion at FfD. (It would also help with batch category changes, etc.) Also see discussion at Wikipedia talk:Files for discussion#Batch tool czar 22:11, 16 January 2017 (UTC)

Tech News: 2017-03[edit]

23:24, 16 January 2017 (UTC)

What is the correct way to format stuff on MediaWiki:Uncategorized-categories-exceptionlist? Category:Contents would make an excellent candidate. Jo-Jo Eumerus (talk, contributions) 23:58, 16 January 2017 (UTC)
Looking at the commit, it's a newline-separated list of Category: titles without the namespace, optionally prefixed with *, probably for readability. --Unready (talk) 00:06, 17 January 2017 (UTC)
The help comment is "# Contains a list of catgeories, which shouldn't be mentioned on Special:UncategorizedCategories. One per line, starting with "*". Lines starting with another character (including whitespaces) are ignored. Use "#" for comments." --Unready (talk) 00:33, 17 January 2017 (UTC)
Unfortunately, Special:UncategorizedCategories is noted as Updates for this page are currently disabled. Data here will not presently be refreshed.xaosflux Talk 01:33, 17 January 2017 (UTC)
Perhaps it's just a matter of a b'crat running a one-time maintenance job after the message is updated. It would get rid of that "peopley" category, too. --Unready (talk) 13:49, 17 January 2017 (UTC)
Perhaps a developer, us 'crats don't have any special maintenance job access. — xaosflux Talk 14:39, 17 January 2017 (UTC)

Problem with Twinkle[edit]

I posted this on WT:TW a few days ago but I haven't received a response (and I'm a little too lazy to create a GitHub account) so I'm reposting my problem here. I'll just repost what I said on that page here:

I noticed something strange about Twinkle: if an article has a CSD tag and a user tries to tag the article for AFD, even if the user tries to cancel the nomination, Twinkle will only show a prompt asking if the user wants to remove the CSD tag; clicking on "Cancel" will result in the tagging pushing through without the CSD tag being removed. By contrast, Twinkle gives a warning when attempting to tag for speedy deletion an article with an AFD or PROD tag; clicking cancel will abort the operation. Can this be changed? There have been occassions where I try to nominate an article for deletion, but while I was tagging it, the article had already been tagged for speedy deletion.

Narutolovehinata5 tccsdnew 12:13, 17 January 2017 (UTC)

I tried to run the Dupe Detector as part of a WP:GA Review and...[edit]

So I am participating in the most recent GA Cup and just now tried to run the Dupe Detector which is https://tools.wmflabs.org/dupdet/ but it got hung up. It seems to me that some of the tools and stuff around here don't always play nicely with my Macbook when I am running Safari. Does anyone else have trouble with various tools or actions around here when using Safari (like my Watchlist always takes forever to come up...) Cheers, Shearonink (talk) 15:08, 17 January 2017 (UTC)

Infobox image border: too light[edit]

I was directed here from WP:EIS, so I'll copy and paste my query. The current infobox border, whether invoked using border=yes or {{!}}border, is much too light now. On my LED display it's barely perceptible. This how I'm currently viewing Darkness in a Different Light, and other such use of borders. A year ago that border was a much darker grey, whereas it's barely even there now. Mac Dreamstate (talk) 15:35, 17 January 2017 (UTC)

Mac Dreamstate (talk · contribs) was actually directed here from Wikipedia talk:Extended image syntax#Infobox images/borders, and there are some points there that really ought not to be thrown out. --Redrose64 🌹 (talk) 15:44, 17 January 2017 (UTC)
@Mac Dreamstate: you refer to infoboxes throughout both your posts, but you started this off on a page concerning images. So, do you mean the infobox border, or the image border? --Redrose64 🌹 (talk) 16:28, 19 January 2017 (UTC)
The image border within the infobox—the one directly surrounding the album art. Mac Dreamstate (talk) 16:31, 19 January 2017 (UTC)
So not the infobox border at all. --Redrose64 🌹 (talk) 16:44, 19 January 2017 (UTC)
Just the image border. I realise now that the topic title should be changed to reflect that. Mac Dreamstate (talk) 16:57, 19 January 2017 (UTC)
Regardless, there has been a lightening of the border for the <code>...</code> and <pre>...</pre> elements, and hence the <source>...</source> structure, as used here:
code {
  color: #000;
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  border-radius: 2px;
  padding: 1px 4px;
}
pre,
.mw-code {
  color: #000;
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 1em;
  white-space: pre-wrap;
}
That #eaecf0 border was definitely darker in the recent past. --Redrose64 🌹 (talk) 16:35, 19 January 2017 (UTC)

Script Issue[edit]

I added a script that checks dashes yesterday. Now when I edit under the more tab I now have two dashes and "Move" showing but AutoEd has disappeared.

Here's the text on my script page:

mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript'); // [[User:Dr pda/prosesize.js]];
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
importScript('User:GregU/dashes.js');

Can someone explain how I can fix this?

Thanks very much. Twofingered Typist (talk) 15:59, 17 January 2017 (UTC)

Fixing a broken wikilink[edit]

Take a look at my edit fixing it, what was wrong with it in the first place? If so, should I report it to Twinkle? Ugog Nizdast (talk) 02:20, 18 January 2017 (UTC)

I assume you saw a red link before. Twinkle edits so quickly that MediaWiki often hasn't registered the AfD page exists so links to the page become red. A purge would have fixed it. It's a known issue which has been reported many times. PrimeHunter (talk) 02:38, 18 January 2017 (UTC)
Aah, my bad. The old revision shows it as blue now though, I vaguely recall trying to refresh the page to remove the red...In any case, how I did I even manage to make an edit changing nothing? What is the diff trying to show? some invisible character etc? That's what I thought at first. Ugog Nizdast (talk) 02:44, 18 January 2017 (UTC)
You somehow added a left-to-right mark. Graham87 07:57, 18 January 2017 (UTC)
This often happens if you copy the text from a location in the Wikipedia interface where we enforce directional independence, or by using certain keyboard combinations accidentally. —TheDJ (talkcontribs) 23:37, 18 January 2017 (UTC)

Showing Wikidata descriptions underneath article title on mobile web[edit]

Hello everyone, so as noted earlier on this village pump, almost all Wikipedias now are showing Wikidata descriptions underneath the title on mobile. This has been running on beta on English Wikipedia for around 6 months now. Wikidata is in use and in display on different mobile functionalities and projects, and, if there are no concerns, the Reading team that developed on the feature, would like to enable showing Wikidata underneath the title on English Wikipedia on mobile, as well. Thanks!--Melamrawy (WMF) (talk) 02:15, 19 January 2017 (UTC)

I would like two features for editors who want to look out for bad Wikidata descriptions in articles of interest. An opt-in preference to also display the subtitle in the desktop version. And a watchlist setting to show changes to English Wikidata descriptions without showing other Wikidata edits. PrimeHunter (talk) 02:32, 19 January 2017 (UTC)
@PrimeHunter: opt-in preference to also display the subtitle in the desktop version We can probably make a gadget for this. watchlist setting to show changes to English Wikidata descriptions without showing other Wikidata edits I believe phab:T90436 is give-or-take the task for this. --Izno (talk) 12:49, 19 January 2017 (UTC)
I think there already was user-script for that (description at desktop version). --Edgars2007 (talk/contribs) 14:31, 19 January 2017 (UTC)
We can definitely make it into a gadget proper, then. I do have a question, though: would this gadget replace, modify, or exist alongside the current "From Wikipedia […]" tagline element? Izno alerted me to this discussion via MediaWiki talk:Gadget-metadata.js § Some notes; I'm the current maintainer of that gadget and it modifies the tagline to help surface quality assessments while reading. While it also colours the header according to the quality rating found, I consider the tagline text to be the primary output since it's presumably accessible to colourblind or blind users. I'd like to make sure that these gadgets wouldn't conflict with one another. {{Nihiltres |talk |edits}} 16:13, 19 January 2017 (UTC)

Tag:2017 source edit[edit]

I can't seem to find a place specifically for discussing tags, so I guess here will ahve to do. Can someone tell me what this tag is supposed to mean? Is there any reason I should care when I see it in my watchlist? And so forth? thanks. Beeblebrox (talk) 04:01, 19 January 2017 (UTC)

Special:Tags includes "2017 source edit" is an "Edit made using the 2017 wikitext editor". It is claimed to be a modest proposal to replace the wikitext editor and is being discussed at Wikipedia:Village pump (proposals)#Proposal to submit blockers on replacing our wikitext editor. Johnuniq (talk) 04:41, 19 January 2017 (UTC)
Thanks for clarifying. Beeblebrox (talk) 08:25, 19 January 2017 (UTC)

Figuring out what changed in an edit[edit]

In an edit like this one, is there any easier way to figure out what has changed other than by manually comparing all of the highlighted lines? I notice that the change increased the article size by 34 characters, but the change in the mayor field didn't increase by that much. And this seems to be happening because the editor reordered the fields during his edit? Is there a common reason why people do this? Thanks. Air.light (talk) 05:29, 19 January 2017 (UTC)

The "wikEdDiff" gadget in your Preferences can help. It shows that the name of the mayor was changed and that |unemployment_rate= was added.
As for the reordering of parameters, the editor did not do it intentionally. It's a Visual Editor bug. – Jonesey95 (talk) 05:51, 19 January 2017 (UTC)
Thanks for the information and I've tried that gadget out and it will help on looking at edits like this one. Air.light (talk) 06:41, 19 January 2017 (UTC)

Recalling a string from elsewhere in a page[edit]

What is the easiest way to define a string in one place on a page, then recall that string for use elsewhere on the page? Thanks! —swpbT 14:59, 19 January 2017 (UTC)

mw:Extension:Variables can do it, but it's not installed on Wikimedia sites. I believe Lua global variables could also do it, but global variables are generally discouraged, although I was unable to find any Wikimedia coding convention that even mentions them, much less prohibits them. Perhaps a better question is what are you really trying to do that you think you need such a capability? --Unready (talk) 15:29, 19 January 2017 (UTC)
On the article National Popular Vote Interstate Compact, there are a couple of numbers in the infobox that are computed from lists of states which change somewhat regularly. The lists and numbers are used in a few places, but I would like to make it possible to maintain each list in only one place, preferably directly on the article page, and have it referenced elsewhere in the article, to simplify maintenance and prevent contradictory information. —swpbT 16:05, 19 January 2017 (UTC)
You could store the list as either a tabular Commons file (yes, those exist now) or as a Lua/local json module itself, from how I'm reading that use case. --Izno (talk) 16:45, 19 January 2017 (UTC)
Our Lua is from mw:Extension:Scribunto which I don't think can do it in a wikitext page. mw:Extension:Lua has global variables and can do it but we don't use that extension. It's possible but ugly to do it with mw:Extension:Labeled Section Transclusion which we do have here, documented at Help:Labeled section transclusion. It can be done by transcluding a labelled section from the page itself. It's a hack, may confuse editors, use resources, and I don't know whether it has ever been done. I thought about it for this question. See source for how the below test was made. If the value is the result of a computation then it will be computed each time it's used. PrimeHunter (talk) 16:46, 19 January 2017 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── X is 123, referenced before the definition.

X is defined here: 123

Y is 42, referenced before the definition.

Y is defined here but in <includeonly>...</includeonly> so it doesn't display here.

X is still 123.

Y is still 42.

Perfect! Now, how can I make a labelled section containing an arbitrary number of parameters, and pass each of those parameters to another template? —swpbT 17:49, 19 January 2017 (UTC)
Using {{No spam}}, because it's simple.
{{No spam|{{#section:{{FULLPAGENAME}}|X}}|{{#section:{{FULLPAGENAME}}|Y}}}}
produces 123@42. There's a need to be wary, though. There's a limit to how many transclusions/expansions you can have on a page. --Unready (talk) 20:17, 19 January 2017 (UTC)
PrimeHunter's sample above uses mw:Extension:Labeled Section Transclusion. The source is
X is {{#section:{{FULLPAGENAME}}|X}}, referenced before the definition.

X is defined here: <section begin=X />123<section end=X />

Y is {{#section:{{FULLPAGENAME}}|Y}}, referenced before the definition.

Y is defined here<includeonly><section begin=Y />42<section end=Y /></includeonly> but in {{tag|includeonly}} so it doesn't display here.

X is still {{#section:{{FULLPAGENAME}}|X}}.

Y is still {{#section:{{FULLPAGENAME}}|Y}}.
--Unready (talk) 19:52, 19 January 2017 (UTC)
Thanks, I got that. I'm asking if I can extend this to allow the labelled sections to contain several separate parameters to be passed to a template. I have a list of states of dynamic length (like MD|NJ|IL|HI|WA|MA|DC|VT|CA|RI|NY), and I want to be able to pass each state to multiple templates ({{EVs}}, {{NPVIC_passed}}, {{NPVIC_pending}}) using something like {{for loop}}. I can put the states in an {{item}} and retrieve them with {{component}}, but that doesn't allow the number of parameters to vary, as far as I can tell. —swpbT 20:20, 19 January 2017 (UTC)
Thanks, I got that. I included the source for the benefit of all readers, so they don't have to hit the edit link and read the wikitext it in a textbox. As for passing sections to templates as parameters, it's just wikitext. You can string them together like any other wikitext. Remember that wikitext is not a programming language, despite templates formulated to try to make it one. If you want to do something complicated, Lua is a better alternative. You're still going to have to beware the transclusion limit. --Unready (talk) 20:38, 19 January 2017 (UTC)
Could you suggest what that Lua code might look like, for what I'm trying to do? —swpbT 20:41, 19 January 2017 (UTC)
The question of whether a module can maintain state for a page has arisen somewhere before, and the firm answer was that any hack that allowed some kind of state (such as misusing references to provide state information) would be regarded as a bug and the ability removed. I gather that developers want to be able to take an arbitrary piece of wikitext from a page (for example, when someone edits a section) and process just that piece without having to process the whole page to get any state variables. Johnuniq (talk) 03:42, 20 January 2017 (UTC)
mw:Extension:Labeled Section Transclusion solves the problem of quasi-global values. Now swpb wants to be able to concatenate a variable number of them based on some other parameter and hand the concatenation to a template. That's the job for Lua. --Unready (talk) 15:54, 20 January 2017 (UTC)

Adminbot for catgeory history merges[edit]

It has been suggested that the cut-and-paste moves done by Cydebot over many years when category moves weren't supported, be fixed by history merge. See the discussion at WP:BOTREQ#Bot for category history merges. 103.6.159.84 (talk) 17:11, 19 January 2017 (UTC)

Page Curation toolbar[edit]

I can't tell if I'm having a brain fart or not, but I cannot seem to mark pages as patrolled (whether accessed from the NPP or otherwise). Feel like I'm missing something simple... it used to be there, but is no longer. Any tips would be appreciated. EvergreenFir (talk) 17:34, 19 January 2017 (UTC)

You need the new page reviewer right for using that toolbar! 103.6.159.84 (talk) 18:24, 19 January 2017 (UTC)
Was under the impression from the curation page that some users are grandfathered in. EvergreenFir (talk) 07:35, 20 January 2017 (UTC)

New user contributions functionality broken[edit]

If I click on the "contributions" link to see my contributions, and then from there, click on the "show contributions of new users only" radio button, followed by the "Search" button, I get a list of contributions made by "new users" (although I've never been quite sure what the "new user" criteria are). However, having generated that list, if I click on the "Search" button again to refresh this list, I get an error highlighting the User Name field stating that this is a required field. This functionality worked up until a few hours ago (the last time I tried it). WikiDan61ChatMe!ReadMe!! 20:32, 19 January 2017 (UTC)

Definitely a bug. Not sure if it is filed yet, still looking. It's accessible still through Special:Contributions/newbies. The criteria from WP:UCP says, "Users are considered new when they are among the last 1% of registrations, meaning about a few weeks old on Wikipedia, and do not have the 'bot' flag." Killiondude (talk) 20:37, 19 January 2017 (UTC)
Special:Contributions/newbies works the first time it is linked, but again, the refresh function is broken. WikiDan61ChatMe!ReadMe!! 20:42, 19 January 2017 (UTC)
Today is Thursday... --Redrose64 🌹 (talk) 21:02, 19 January 2017 (UTC)
@Redrose64: Point?? — Preceding unsigned comment added by WikiDan61 (talkcontribs) 21:55, 19 January 2017 (UTC)
New MediaWiki versions are installed on the English Wikipedia on Thursdays: mw:MediaWiki 1.29/Roadmap. The fix is expected to be deployed here Thursday, 26 January. PrimeHunter (talk) 22:35, 19 January 2017 (UTC)
So they broke it today, only to fix it next Thursday? WikiDan61ChatMe!ReadMe!! 23:15, 19 January 2017 (UTC)
Yes, if it didn't destroy Wikipedia or something like that (judgment left to developers) to qualify for the "Unless backported" remark at phab:T155780#2954481 then the deployment of fixes wait for the next regular MediaWiki update. PrimeHunter (talk) 00:08, 20 January 2017 (UTC)
Anyone is free to backport a patch to the relevant deployment branch and add it to the next SWAT deployment if they think it's a serious enough issue and they're willing to be on IRC to test the fix. Anomie 00:35, 20 January 2017 (UTC)

DAB solver[edit]

This one seems to have given up on me today. Is it me, is it just temporary, or has it moved? Thanks for any help! Cheers, O Fortuna!...Imperatrix mundi. 20:48, 19 January 2017 (UTC)

I am also having issues trying to use DAB solver, or any other tools on the site. Cheers - Kyle1278 (talk) 20:57, 19 January 2017 (UTC)
Please contact User:Dispenser directly, those are his privately hosted tools —TheDJ (talkcontribs) 21:18, 19 January 2017 (UTC)
Fixed The script for Let's encrypt reloaded lighttpd, it took 11 minutes to shutdown and didn't come back up. The script now checks if a reload is necessary. — Dispenser 03:33, 20 January 2017 (UTC)
Thanks Dispenser, quick work! O Fortuna!...Imperatrix mundi. 06:36, 20 January 2017 (UTC)
Thanks for the update, Cheers! Cheers - Kyle1278 (talk) 08:05, 20 January 2017 (UTC)

Edit window is too big[edit]

Somebody has embiggened the editing window, and it doesn't fit on the screen of my laptop any more. This makes scrolling and manipulating large blocks of text difficult and slow. — Diannaa 🍁 (talk) 23:39, 19 January 2017 (UTC)

Someone has? The edit window still conforms to whatever size I make my browser window, on my laptop. Someguy1221 (talk) 23:44, 19 January 2017 (UTC)
Mine is actually a little larger than the browser window, and it was not in the recent past. I have an unsaved document open in a sandbox and there's a noticeable difference in the size of that window (18 lines) and the current edit window (25 lines). I thought there was a way to specify in Preferences the number of lines in the edit window, but I can't find it. — Diannaa 🍁 (talk) 23:51, 19 January 2017 (UTC)
From the TechNews above on this page: The "Columns" and "Rows" settings will be removed from the Editing tab in Preferences. If you wish to keep what the "Rows" setting did you can add this code to your personal CSS: #wpTextbox1 { height: 50em; } You can change the number 50 to make it look like you want to. --Unready (talk) 23:58, 19 January 2017 (UTC)
Thanks so much. That was exactly the facts I needed. — Diannaa 🍁 (talk) 00:08, 20 January 2017 (UTC)

Autocomplete in delete/block form[edit]

Today, Wikipedia has started autocompleting the standard deletion reasons in the delete/block forms. Is there a way to disable this functionality? I have always manually entered the deletion or block reasons, and my browser would autocomplete the strings that I have entered. If I wanted to use the standard reason, I'd select it from the menu. - Mike Rosoft (talk) 06:42, 20 January 2017 (UTC)

See § Tech News: 2017-03. When an admin blocks a user or deletes or protects a page they give a reason why. They can now get suggestions when they write. The suggestions will be based on the messages in the dropdown menu. AFAIK, there is no setting to disable it. — JJMC89(T·C) 20:46, 20 January 2017 (UTC)

Today's odd question: some pages in categories are now... burgundy?[edit]

Sorry, I've tried to find this answer elsewhere, but I just noticed a new colour in the links I see, say in categories or new article lists. I know what various shades of blue are (clicked or unclicked existing links), we all know red... but now I have a new colour! A sort of... burgundy link. I wonder if it means that an article has been reviewed/approved or created by an auto-approved user? Anyone know what I'm talking about? Thanks, Shawn in Montreal (talk) 21:13, 20 January 2017 (UTC)

@Shawn in Montreal: can you provide a link or two to the pages you are seeing this on, and let us know which entries you are seeing different? — xaosflux Talk 21:43, 20 January 2017 (UTC)
You failed to give an example but I guess you have enabled "Threshold for stub link formatting" at Special:Preferences#mw-prefsection-rendering. PrimeHunter (talk) 21:45, 20 January 2017 (UTC)
Yes, @PrimeHunter: I did, because I found myself suddenly unable to view stub categories rather than stub articles -- or so it seemed to me at the time? It was odd. But then these burgundy links didn't seem to me to be all stubs. If I could reply on your help a little longer, could you direct me to a WP page that explains the relationship between this threshold and that colour? thanks, Shawn in Montreal (talk) 21:50, 20 January 2017 (UTC)
If a page is smaller than the chosen threshold at the setting then links to it become brown, whether in categories or elsewhere, and whether or not the page has a stub template. If you think there is something wrong then say what your threshold is and give an example. PrimeHunter (talk) 22:05, 20 January 2017 (UTC)
Oh I see. Thank you. Shawn in Montreal (talk) 22:08, 20 January 2017 (UTC)