Wikipedia:Village pump (technical)

Jump to navigation Jump to 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. If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk.

Frequently asked questions (FAQ) (see also: Wikipedia:FAQ/Technical)
Click "[show]" next to each point to see more details.
If something looks wrong, purge the server's cache, then bypass your browser's cache.
This tends to solve most issues, including improper display of images, user-preferences not loading, and old versions of pages being shown.
Font size changed unexpectedly?
You may have accidentally changed the font size on your browser for a particular website by pressing a shortcut key or scrollwheel without realising it. Try resetting the zoom with Ctrl+0 (typing the digit zero while holding down the control key) or adjusting the zoom with Ctrl++ or Ctrl+-. Alternatively, look for the View option on your browser's menu and reset it to 100%.
No, we will not use JavaScript to set focus on the search box.
This would interfere with usability, accessibility, keyboard navigation and standard forms. See bug 1864. There is an accesskey property on it (default to accesskey="f" in English), and for logged in users there is a gadget available in your preferences.
No, we will not add a spell-checker, or spell-checking bot.
You can use a web browser such as Firefox, which has a spell checker.
If you have problems making your fancy signature work, check Wikipedia:How to fix your signature.
If you changed to another skin and cannot change back, use this link.
Alternatively, you can press Tab until the "Save" button is highlighted, and press Enter. Using Mozilla Firefox also seems to solve the problem.
If an image thumbnail is not showing, try purging its image description page.
If the image is from Wikimedia Commons, you might have to purge there too. If it doesn't work, try again before doing anything else. Some ad blockers, proxies, or firewalls block URLs containing /ad/ or ending in common executable suffixes. This can cause some images or articles to not appear.
Numbers listed in parentheses in the "Recent changes" section, on history pages and in your watchlist are the number of added or removed bytes.
For server or network status, please see Wikimedia Metrics.
« Older discussions, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171


created timestamp[edit]

Resolved

-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 18:16, 16 January 2019 (UTC)

I created Template:Did you know nominations/151 North Franklin with its first published edit at 03:30, 25 December 2018. However, the scripts that I am running show "Created by TonyTheTiger (talk | contribs) on Mon, Dec 24 2018, 21:30:50 (Central Standard Time)" at the top of the page. I never noticed that this was shown in local time instead of UTC. How can I get this script to make my page show UTC times?-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 03:40, 25 December 2018 (UTC)

@TonyTheTiger: first check your timezone in Special:Preferences#mw-prefsection-rendering - if you want UTC times but have set this to something else change that. If that isn't it, can you provide more information about "the scripts" you are using? — xaosflux Talk 04:09, 25 December 2018 (UTC)
User:TonyTheTiger/vector.js imports User:Eizzen/PageCreator.js. User:Eizzen/PageCreator says how to choose between local time and UTC, but UTC is supposed to be default and it doesn't work to set it with the specified method. I think User:Eizzen/PageCreator.js should change that.useUTC === true to that.options.useUTC === true. . User:Eizzen has not edited since 2017. PrimeHunter (talk) 11:45, 25 December 2018 (UTC)
PrimeHunter, Thx. How can we get this change enacted? Does Eizzen have exclusive powers?-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 13:21, 25 December 2018 (UTC)
Wikipedia:Interface administrators can edit it. Some of them monitor this page. Eizzen might respond to an email, or you could copy the code to your own userspace. The latter wouldn't help other users of the script but there are only around a dozen. PrimeHunter (talk) 15:05, 25 December 2018 (UTC)
TonyTheTiger, I have now modified that page as described. —TheDJ (talkcontribs) 08:53, 28 December 2018 (UTC)
TheDJ, I am now seeing GMT instead of Central Standard Time at the top of my pages. Still not UTC.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 02:50, 3 January 2019 (UTC)
Xaosflux, would you care to comment here where I think other experts are watching.-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 01:36, 9 January 2019 (UTC)
GMT and UTC are the same for all practical purposes (unless you are navigating a ship or aligning an astronomical telescope) - there's only a fraction of a second in it. --Redrose64 🌹 (talk) 11:26, 9 January 2019 (UTC)
Redrose64 year round?-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 06:22, 15 January 2019 (UTC)
Yes. --Redrose64 🌹 (talk) 19:01, 15 January 2019 (UTC)

Question: extracting lists from Unused templates lists[edit]

I have just discovered this: Wikipedia:Database reports/Unused templates. Wow! I was wondering if there is any way to perform queries of the list to extract entries matching certain parameters? (eg. created before a certain year, have certain phrase or characters in the name, or have had no revisions since creation). I think that would be a useful way to filter the list to have a look more in depth at certain templates.

It goes without saying that one will need to have a closer look at the lists are generated before proposing them all for discussion / deletion (to ensure they truly aren't used in other environments such as modules, or aren't transclusionless etc.), but I think it is a useful place to start. Any ideas how I can achieve this? --Tom (LT) (talk) 01:16, 29 December 2018 (UTC)

@Tom (LT): You should look at WP:Petscan. --Izno (talk) 14:11, 29 December 2018 (UTC)
@Izno thanks --Tom (LT) (talk) 11:41, 6 January 2019 (UTC)
 Question: @Izno. PetScan is for categories. Most of the unused templates only show up on the database report so I can't actually view the categories. IF it can solve my problem (ie let me search through the database report) could you kindly show me how...? With thanks, --Tom (LT) (talk) 01:21, 13 January 2019 (UTC)
Wow, over 75,000 unused templates. It's easy to copy all the text from the first page (5000 entries) and paste that into a spreadsheet, then sort by Latest edit or First edit. I used "paste special" as text and then had to format the date columns as number with 0 decimal digits. That is enough to work on! Template:Veg-stub is on page 16 of the report. It was last edited in July 2005 but it turns out to be a redirect to Template:Vegetable-stub which is used. Getting redirects deleted can be difficult because people will argue that redirects are cheap blah blah. It would be nice to know how many of the first 5000 entries are redirects. Johnuniq (talk) 02:12, 13 January 2019 (UTC)
@Tom (LT): Petscan works on categories, templates, or other selection criteria. When you start it up, it's in the "Categories" form - but there are five other tabs along the top. These are: "Page properties"; "Templates&links"; "Other sources"; "Wikidata" and "Output". All of these (except "Output") can be used instead of "Categories" - or in combination with it. --Redrose64 🌹 (talk) 18:40, 13 January 2019 (UTC)

Is there a discussion about how to fix links to highbeam.com?[edit]

(Not really a technical question:) HighBeam Research appears to have shut down a couple of weeks ago, and we appear to have something like 15,000 articles that use it as a source. Does anyone here know of a WP discussion that is happening about how to resolve the suddenly dead links in all of these citations? Thanks. – Jonesey95 (talk) 02:45, 2 January 2019 (UTC)

Hey. Normally the entire domain would be marked "dead" in IABot, then whenever it comes across it, would convert to a dead link and add an archive URL. But IABot management interface is not responding well. I will contact Cyberpower678. T212753 -- GreenC 03:13, 2 January 2019 (UTC)
If they are in a cite journal or similar, purge them all. They should never have been added in the first place. Pure preference/promotion of a commercial entity. Headbomb {t · c · p · b} 03:30, 2 January 2019 (UTC)
I agree they are last resort, but sometimes they are the only things available for on-line verification purpose when they provide the first few paragraphs of the source-text for free (example). -- GreenC 03:41, 2 January 2019 (UTC)
I could see keeping them when we have no doi/bibcode/pmid/whatever, but they're equivalent to links to Amazon for books. If you've got an identifier, purge them out. And if the links are dead, they're not much point in keeping them around. They won't even be archived, since they are commercial links that block archiving. Headbomb {t · c · p · b} 00:27, 4 January 2019 (UTC)
There has been some discussion on this topic at WT:Highbeam. —AntiCompositeNumber (talk) 14:57, 3 January 2019 (UTC)
I seem to have got it working and have set a bot job for it under job 3041.
Correction, it was not working on that job, but I have managed to set the base URL to dead, I do not have the domain changer user right on IABot [Username Needed] 15:56, 11 January 2019 (UTC)

Combating the issue of bare URLs[edit]

Hello all,

Apologies for putting this here, I don't know really where else to put it besides Wikipedia talk:Bare URLs where it certainly wouldn't get the input it deserves.

Fetterly et al (2003, DOI: 10.1002/spe.577) noted that 40% of webpages change within a week and that one in two-hundred links disappear from the Internet in the same time period. McCown et al (2005, arXiv:cs/0511077) noted that 28% of URLs failed to respsond in a study on D-Lib Magazine. Needless to say, bare URLs are bad news for Wikipedia, because they are prone to link rot which will compromise verifiability. Despite only five articles appearing in the link rot maintenance category, the problem is much more severe. A RegEx search I have run on the latest enwiki database dump reveals that 489,767 articles, approximately 8.5% of all enwiki articles, use bare URLs. That means that every week, on average, just shy of 2,500 articles will have at least one reference turned into a dead link and we will have no contextual information to rescue the sources.

I have laid out a plan here, however I don't believe reFill has the functionality of batch processing, which rather snookers the plan. I've got the list of the 489,767 articles but I sure as hell can't use reFill on every single one of them. Does anyone have any ideas on how to go about this?

Many thanks,

SITH (talk) 23:52, 3 January 2019 (UTC)

Per WP:Link rot:
All new links added to Wikipedia are automatically saved to Wayback Machine within about 24hrs. This is done with a program called "NoMore404" which Internet Archive runs and maintains. It scans the IRC feed channels, extracts new external URLs and adds a snapshot to the Wayback. This system became active sometime after 2015, though previous efforts were also made. etc..
Any links added after 2015 there is a very-high chance of a Wayback link being available. For earlier links there is also a very-good chance due to previous archiving efforts by Wayback, Archive.is and other providers. Still, some links which went dead a long time ago have no archives, and some links the providers can't or won't archive for some reason, link rot remains to some degree. -- GreenC 00:18, 4 January 2019 (UTC)
@GreenC: yep, but going through the AWB list, most of these articles are pre-2015 unfortunately. Perhaps it's a legacy issue with NoMore404, maybe we could link up a bot to reFill to clear out the backlog? SITH (talk) 00:49, 4 January 2019 (UTC)
reFill is one tool that works on bare links. There is also User:Citation bot. And IABot converts them (if the link is dead). I don't know what that error rate is for these tools, if they can safely be automated without user oversight. IABOt is fully auto, but when a link is dead the conversion isn't much to do. -- GreenC 01:03, 4 January 2019 (UTC)
One idea is extract a few thousand bare URLs at random into a test page (each surrounded by <ref></ref>). Make three copies of that test page. Run reFill on one, Citation bot on another, and IABot on the third. See what the results are - look for problems and differences. The quality of the edits will give a sense how viable it would be to run in fully automated mode. -- GreenC 01:32, 4 January 2019 (UTC)
There is also WP:Reflinks, which seems to correct a wider range than refill.Onel5969 TT me 01:38, 4 January 2019 (UTC)
One could presumably also build a bot to interface with mw:Citoid. --Izno (talk) 03:06, 4 January 2019 (UTC)
@Izno: reFill appears to be forkable on GitHub and doesn't depend on labs hosting so I could fork it and integrate it into AWB. I'd probably have to go to WP:BRFA first but that looks like the most feasible idea. — Preceding unsigned comment added by StraussInTheHouse (talkcontribs) 13:33, 4 January 2019 (UTC)
Whomever the nameless ping was from, you'll also need to check that reFill produces citations conforming to our current citation module. One or another of the gadgets does not presently. The reason I mentioned Citoid (which is similarly open source) was because it also has integrated a much-better specific site integration, I would guess. --Izno (talk) 14:44, 4 January 2019 (UTC)
reFill uses Citoid to generate citations. --AntiCompositeNumber (talk) 15:51, 4 January 2019 (UTC)
Oh, that's cool. I wasn't aware that it was using citoid. --Izno (talk) 18:30, 4 January 2019 (UTC)
Bears repeating - these tools are not run and forget. They make mistakes, quite frequently. They are designed as a starting point with further manual edits to fill in and fix. You are responsible for every edit. Focus on getting it right, the mistakes these tools makes are far more work and time to find and fix after the fact. That's why I recommended, run tests to see which tool does the best job, and see how many mistakes they are actually making. It may be we don't have any tools reliable enough for an unattended bot run. -- GreenC 15:42, 4 January 2019 (UTC)
@StraussInTheHouse: The current tool isn't very flexible in this regard, but a rewritten version under development (I'm planning to take it back from the ashes after my hiatus) provides a set of APIs that will allow for easy integration with bots. It's nowhere near completion, but the new version has much less cruft compared to the existing PHP version, and is where more development effort should go. Zhaofeng Li talk (Please {{Ping}} when replying) 15:21, 8 January 2019 (UTC)
Zhaofeng Li, that looks good, let me know when you’re fully back and I’ll help all I can! SITH (talk) 18:11, 8 January 2019 (UTC)
@StraussInTheHouse: I've got the new version back in shape in the past week, and it should be ready for public testing at this point. Zhaofeng Li talk (Please {{Ping}} when replying) 05:00, 16 January 2019 (UTC)
@GreenC: test cases on draftified versions would be the best bet. SITH (talk) 16:20, 4 January 2019 (UTC)
Yeah create a page in userspace with the URLs and run the tool on it. When done delete the page. It's userspace can do whatever you want. -- GreenC 16:25, 4 January 2019 (UTC)

Broken links to peer review pages.[edit]

Apparently, on occasion, an article and its subpages are moved to a new title. However, peer review pages existing in project space are not captured when subpages are moved. I became aware of this while participating in the mass-move of political campaign articles to put the dates before the name of the respective campaign or election, but it is likely that it has occurred in other contexts. There are two ways to address this, those being to move all the affected peer review pages to the new titles, or to create redirects to them. Either one would require that someone compile a list of the links that are now broken. If someone makes such a list, I'll be glad to check and move the pages. Cheers! bd2412 T 17:43, 10 January 2019 (UTC)

@BD2412: most articles moves leave a redirect behind, and articles shouldn't have subpages. Can you show some examples of this problem? — xaosflux Talk 18:20, 10 January 2019 (UTC)
To be more precise, talk pages usually move with the article, and talk pages often have subpages (typically archives). The case that was brought to my attention was from my move of William McKinley presidential campaign, 1896 to William McKinley 1896 presidential campaign, pursuant to consensus for the above-referenced mass-move of political campaign articles. It was later brought to my attention that this resulted in a broken link on the talk page of that article to Wikipedia:Peer review/William McKinley presidential campaign, 1896/archive1, which I thereafter moved to Wikipedia:Peer review/William McKinley 1896 presidential campaign/archive1. It is likely that there are other subpages of Wikipedia:Peer review that have become untethered due to page moves, since these are not in a space that is carried along with the page move. bd2412 T 18:32, 10 January 2019 (UTC)
Simplez, use an ifexist in {{Old peer review}} to categorize talk pages with nonexistant links. Galobtter (pingó mió) 18:40, 10 January 2019 (UTC)
If someone who knows how to do that would create the category, I can do the rest. Cheers! bd2412 T 19:24, 10 January 2019 (UTC)
I have added ifexist code [1] and created Category:Pages using Template:Old peer review with broken archive link. It will take time for the job queue to automatically populate the category. PrimeHunter (talk) 22:06, 10 January 2019 (UTC)
Thanks, this works. I will keep an eye on it. bd2412 T 22:27, 10 January 2019 (UTC)
@BD2412, PrimeHunter, and Galobtter: How about pages that use {{article history}} to display peer reviews but not the {{Old peer review}} template, like Talk:Charles Boycott? (Not that the link there is broken ... just using it as an example. Graham87 10:30, 11 January 2019 (UTC)
Graham87, {{article history}} does not automatically generate the link as {{old peer review}} does (you have to specify the link as e.g |action1link=Wikipedia:Peer review/Charles Boycott/archive1}}), so links don't break. Galobtter (pingó mió) 10:34, 11 January 2019 (UTC)
@Galobtter: Oh of course, oops! Graham87 11:45, 11 January 2019 (UTC)
Note that this has generated a list of 642 errors, which is a bit bigger of a task than anticipated. In other words, a technical solution may be required to fix these. bd2412 T 13:40, 11 January 2019 (UTC)
You could ask for bot help at Wikipedia:Bot requests, or manual help at Wikipedia talk:Peer review. I'm not a bot coder. The best I could do is modify {{Old peer review}} to check a list of exceptions if the normal link would be red. A list entry in a big switch could look like this: |William McKinley 1896 presidential campaign = Wikipedia:Peer review/William McKinley presidential campaign, 1896/archive1. Peer reviews can be in other places like Wikipedia:WikiProject Military history/Peer review/Murray Bourchier so we shouldn't assume a subpage of Wikipedia:Peer review. The list would still have to be compiled somehow but it might be easier than editing each talk page, or make moves or redirects. If somebody makes a script to compile a list then it wouldn't require bot approval like solutions which make 642 edits. PrimeHunter (talk) 19:04, 11 January 2019 (UTC)
Can someone make a list of the untethered peer review pages that correspond to the ~640 (I fixed a few) broken links? bd2412 T 22:22, 13 January 2019 (UTC)

Hitting "enter" in the edit summary box no longer saves the page[edit]

When I am in the edit summary box and hit "enter" rather than saving the page this action now brings up a menu of common edit summaries, even if I have already typed my edit summary. I have no use for this feature. Can I at least get the previous effect of saving the page as an option? bd2412 T 21:15, 10 January 2019 (UTC)

Testing... It saved it for me. What skin are you using? Did you change anything in your preferences or gadgets? ~ ONUnicorn(Talk|Contribs)problem solving 21:28, 10 January 2019 (UTC)
  • I am facing the same problem as User:BD2412 and it started a few hours back, so something recent has changed it. Now the only way to save a comment is to use the mouse and hit the publish button. I have not made any changes and would like the old functionality back. thanks.--DBigXray 21:31, 10 January 2019 (UTC)
Wikipedia:ITSTHURSDAY? Works fine for me, is there a chance your browser updated recently? ~ Amory (utc) 21:40, 10 January 2019 (UTC)
This is happening to me, sometime today (no browser restart or the like). "Enter" on the Edit Summary triggers the drop down of "common edit summaries" --Masem (t) 21:54, 10 January 2019 (UTC)
  • @BD2412, DBigXray, and Masem: At Preferences → Gadgets, what is your setting for "Add two new dropdown boxes below the edit summary box with some useful default summaries"? --Redrose64 🌹 (talk) 22:01, 10 January 2019 (UTC)
    It was enabled. Disabling it removes this above stated behavior. --Masem (t) 22:07, 10 January 2019 (UTC)
    Same. The issues is solved, but I note that I did not make any recent changes to preferences to cause the change. My computer did install updates within the past few days, but the behavior noted above did not manifest until earlier this afternoon. bd2412 T 22:17, 10 January 2019 (UTC)
    @Redrose64: it was selected from a long time, and still is selected (same as Masem and BD24). Unselecting the option, removed the 2 boxes of default summary. While deselecting the option solves the problem but I would still prefer to be able to use the option of hitting the enter key at the edit summary box, "while having" these 2 default edit summary boxes at the same time. Like it was before. This problem started in the last 2-3 hours so I suspect some change from the wikimedia server side triggered it. if someone could restore this back, or if there is another way to fix this, it will be appreciated. --DBigXray 22:26, 10 January 2019 (UTC)
    There are no recent changes in MediaWiki:Gadget-defaultsummaries.js --Redrose64 🌹 (talk) 23:24, 10 January 2019 (UTC)
    Something has definitely changed, though, as I had the extra boxes enabled for ages and the "unable to press Enter to submit" issue only started today. Black Kite (talk) 00:48, 11 January 2019 (UTC)
"Fails" for me as well in Chrome and FF (if the gadget is enabled). — xaosflux Talk 22:39, 10 January 2019 (UTC)
  • Additional problem - the same issue arises in the [Reason] field when trying to move a page. The fix that solved this problem for the regular edit box does not appear to be available for this one. bd2412 T 23:35, 10 January 2019 (UTC)

I've just started to notice that clicking edit doesn't save edits anymore... It used to be that if I was in the Edit Summary panel and I hit enter, the page would save. Now, doing that causes the "Common edit summaries" dropdown to open. Has anyone else seen this? --Zackmann (Talk to me/What I been doing) 23:02, 10 January 2019 (UTC)

Zackmann08, I have, and it's annoying me to no end. These sort of "updates" are completely unnecessary. -- /Alex/21 00:37, 11 January 2019 (UTC)
FWIW, I am not having this issue on testwiki or test2wiki. — xaosflux Talk 01:02, 11 January 2019 (UTC)
And it just stopped happening here.... — xaosflux Talk 01:03, 11 January 2019 (UTC)
@Alex 21 and DBigXray: are you still having the issue? — xaosflux Talk 01:04, 11 January 2019 (UTC)
Never mind, with gadget enabled it is still failing here. — xaosflux Talk 01:05, 11 January 2019 (UTC)
@Alex 21 and DBigXray: FWIW once I disabled the 2 fields, problem solved. :-) --Zackmann (Talk to me/What I been doing) 04:19, 11 January 2019 (UTC)
@Zackmann08:, have you tried doing a page move? For me, disabling the fields does not seem to fix the issue for the edit summary for that action. bd2412 T 13:41, 11 January 2019 (UTC)
  • If any intadmin (xaosflux?) wants to put a quick patch in to restore this functionality while we try to figure out what went wrong, they can copy over the content of User:Enterprisey/Gadget-defaultsummaries.js and then G6 it. Not a very good fix (it's just another keydown handler to check for enter presses, and then trigger the save button), of course, but this issue seems to be disrupting some workflows. Enterprisey (talk!) 06:43, 11 January 2019 (UTC)
  • Gonna go ahead and make a wild guess that the OOUI update to v0.30.0 that was rolled out 20:00–22:00 UTC as part of the normal update to 1.33.0-wmf.12 (all from wikitech:Deployments#Thursday,_January_10 and mw:MediaWiki_1.33/wmf.12. The underlying issue might not exactly be trivial to find. Edit request filed. Enterprisey (talk!) —Preceding undated comment added 07:28, 11 January 2019 (UTC)
    @Enterprisey: I promoted your code to the gadget, this does seem to be bigger problem as there are some other workflows mentioned above. Probably needs a dev ticket opened. — xaosflux Talk 12:05, 11 January 2019 (UTC)
  • phab:T213544 opened. — xaosflux Talk 14:48, 11 January 2019 (UTC)

This issue is resolved now. Matma Rex talk 00:44, 15 January 2019 (UTC)

Thank you, I've reverted the workaround on MediaWiki:Gadget-defaultsummaries.js. — xaosflux Talk 02:54, 15 January 2019 (UTC)
  • Possibly related issue Inserting wiki markup via the bottom tabs after editing an edit summary will lead to the markup being in the summary, even when you have since edited the main article body. [Username Needed] 15:31, 11 January 2019 (UTC)

Is there a way to turn off the saving when hitting the ↵ Enter in the edit summary? I occasionally accidentally hit ↵ Enter instead of ', saving an incomplete summary or incomplete edit. I normally use the Alt+⇧ Shift+S (or click Publish) to save my edits, and would rather have it ignore ↵ Enter. I tried it with the "Add two new dropdown..." option both set and not set; it made no difference. —[AlanM1(talk)]— 11:06, 16 January 2019 (UTC)

User:Anomie/nosubmitsummary.js seems to still work for me. Anomie 12:53, 16 January 2019 (UTC)
@AlanM1: ^-- that, also the issue describe above was a bug, and was fixed. — xaosflux Talk 12:55, 16 January 2019 (UTC)

Responsive data tables for mobile Wikipedia[edit]

I think that the styling for tables on mobile can use a revamp. The horizontal scroll makes it hard to read information on smaller devices. Since Wikipedia already uses a separate subdomain for mobile, why not make tables responsive? Perhaps a column collapse like this:

http://css-tricks.com/responsive-data-tables/ — Preceding unsigned comment added by LionelAsh (talkcontribs) 03:50, 11 January 2019 (UTC)

Bug when trying to move Roosevelt Senior High School (Washington, D.C.) to Theodore Roosevelt High School (Washington, D.C.)[edit]

I'm trying to move Roosevelt Senior High School (Washington, D.C.) to Theodore Roosevelt High School (Washington, D.C.) (as that is the current name used on the school website) when I get:

  • "[XDg0zgpAICwAALjkrO0AAABX] 2019-01-11 06:16:46: Fatal exception of type "MWException""

I would like to report this to Phabricator, but I also want to notify you guys here so I can have assistance moving the page WhisperToMe (talk) 06:18, 11 January 2019 (UTC)

@WhisperToMe: I've moved it for you by deleting the target page first instead of using the delete when moving over an existing page functionality. I had the same issue a few times earlier but forgot to note the exception for a bug report. — JJMC89(T·C) 06:31, 11 January 2019 (UTC)

Special:Block[edit]

Block-form.png

I note that the blocking form has changed in this week's update, though I'm not entirely sure why or how it's an improvement. What would be useful though, is the form actually being at the top of the page, so you can fill it in without having to scroll down? A trivial thing, I know, but it all looks a bit amateur, and has done for a while. Black Kite (talk) 15:36, 11 January 2019 (UTC)

@Black Kite: you should be getting a bunch of text in that large empty space at the top (this isn't new) - are you blocking scripts or perhaps set your interface language to some English variant? — xaosflux Talk 15:39, 11 January 2019 (UTC)
The text you should see is MediaWiki:Blockiptext. — xaosflux Talk 15:40, 11 January 2019 (UTC)
Also note, it is so low on the page, because we have filled it up with all those directions (you could hide them with css as well). Look for example at the page in another language: de language block screen. — xaosflux Talk 15:43, 11 January 2019 (UTC)
The text isn't showing because of the #blockiptext { display: none;} line in User:Black Kite/monobook.css. {{Sensitive IP addresses}} isn't hidden though, so it pushes the rest of the form down. It probably started happening around the end of March 2018 when Special:Block switched to OOUI. --AntiCompositeNumber (talk) 16:01, 11 January 2019 (UTC)
Only the first three lines (and the comment lines also) of User:Black Kite/monobook.css are valid CSS - all the rest (i.e. this lot) is JavaScript and should probably be at User:Black Kite/monobook.js - I would fix it myself, but I can no longer do so (it's unlikely that I ever will be able to fix it, since I cannot be an interface admin without WP:2FA, and my hardware won't handle it). --Redrose64 🌹 (talk) 16:58, 11 January 2019 (UTC)
I suspect a lot of my CSS/JS is there to fix issues that have since been fixed by gadgets or scripts etc. - is any of it necessary any more? If not I'll just delete it. Black Kite (talk) 17:49, 11 January 2019 (UTC)
You can't put JavaScript into a CSS page. At best, it will be ignored; at worst, some strange things may happen. Either way, it won't be executed as JavaScript, so will not perform its intended purpose. If you merely revert this edit either you'll see no difference, or you'll see an improvement. --Redrose64 🌹 (talk) 18:05, 11 January 2019 (UTC)
Thanks. Black Kite (talk) 15:41, 12 January 2019 (UTC)
Related to the new block screen: I've taken the liberty of modifying the text label for the "disable talk page access" option. Before I changed it, it was labeled Editing their own talk page, which is not terribly helpful or descriptive. I used Twinkle's Prevent this user from editing their own talk page while blocked instead. The change is at Mediawiki:ipb-disableusertalk; I couldn't find any previous interface messages related to this option (other than MediaWiki:Ipballowusertalk, which obviously isn't relevant). Writ Keeper  18:15, 15 January 2019 (UTC)

Dupe ref name check could be made smarter[edit]

Now it trips just because parameters are in different order even if their content matches... E.g.

[1] [1]

References

  1. ^ a b "aa". Cite error: Invalid <ref> tag; name "bob" defined multiple times with different content (see the help page).

Somebody please make it smarter. Now articles get ugly errors when the only error is in the check! --Palosirkka (talk) 17:05, 11 January 2019 (UTC)

It doesn't expand templates. It compares the raw text between the <ref> and </ref> tags. You get the same thing with plain text and an extra space:[1][1]

References

  1. ^ a b cc Cite error: Invalid <ref> tag; name "kate" defined multiple times with different content (see the help page).
You would need to file a ticket at phab: to get this changed. --Redrose64 🌹 (talk) 17:23, 11 January 2019 (UTC)

Caching and slow to populate category.[edit]

About a month ago I adding some deprecated parameter tracking to {{Infobox song}} with this edit. The purpose is to populate Category:Pages using infobox song with deprecated parameters with pages using the old parameters. What I'm confused about is every few hours new pages are showing up in the category despite having no new edits. For example, Air Man ga Taosenai was just placed in the category this morning. Why is it taking SO long for the template to update these pages? Usually I've found that this happens within 24 hours or so. Am I missing something? --Zackmann (Talk to me/What I been doing) 19:03, 11 January 2019 (UTC)

The WP:Job queue has been unreliable in this respect since mid-2013, I've given up waiting for them to fix it. The thing to do is to ask Joe Decker (talk · contribs) nicely, if they wouldn't mind sending in Joe's Null Bot (talk · contribs) to process every page that transcludes {{Infobox song}}. Here's the list, it has over 63,000 entries. --Redrose64 🌹 (talk) 20:34, 11 January 2019 (UTC)
Taking a few weeks, or even a few months, is not unusual, especially for high-use templates (more than a few thousand transclusions). – Jonesey95 (talk) 21:07, 11 January 2019 (UTC)
The rendering of pages using a template is usually updated quickly in my experience. It's the link tables used elsewhere like on category pages which can be very slow. The search "Pages using infobox song with deprecated parameters" finds updated article pages, even for a hidden category like this. I currently get 826 hits. They display the category (assuming "Show hidden categories" is enabled at Special:Preferences#mw-prefsection-rendering) but Category:Pages using infobox song with deprecated parameters currently displays as empty. PrimeHunter (talk) 21:32, 11 January 2019 (UTC)
@Redrose64: Joe's Null Bot is currently down. I have also added the phab task that tracks this (below the other phab task tracked already) --DannyS712 (talk) 23:40, 11 January 2019 (UTC)

Gallery slideshow[edit]

Hello, considering the aforementoned issue, can somebody here help me along with this inquiry of mine from HD (which, unfortunately, remained unanswered)?--Hildeoc (talk) 22:55, 11 January 2019 (UTC)

OneClickArchiver creating unwanted pages[edit]

Is there a way to disable OCA on pages such as WP:UAA, where there is no reason to "archive" the posts? It results in the creation of a new page that serves no purpose. See the log for Wikipedia:Administrator intervention against vandalism/Archive 1 for what I mean. I also saw a similar situation with WP:RFP, which the accidental clicking of "Archive" resulted in the creation of a competently unnecessary page several times. funplussmart (talk) 15:39, 12 January 2019 (UTC)

Cannot log on through TOR[edit]

I have Wikipedia:IP block exemption. Today I attempted to log on through the Tor browser and got this error:

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.

Resubmitting gives the same error. Clearing browsing/download/form/search history, site preferences, offline website data, active logins, cookies and cache and then restarting the computer didn't help. Trying to log on to several other WMF projects didn't help.

Previously I could log on through TOR, and I can still log on normally with Firefox through my normal ISP.

Has something changed?

I searched for "precaution against session hijacking"[2], read every thread, and tried everything anyone suggested. Nothing worked.

Note: I have IP block exemption because I often am at a remote site in China where industrial espionage is a real problem (I do consulting work in the toy industry) and my US employer requires that when in China I access the Internet through Tails and Tor. There is a lot of waiting around at the remote site so I have plenty of time to edit Wikipedia -- if I can log on. --Guy Macon (talk) 18:25, 12 January 2019 (UTC)

@Guy Macon: this seems to be related to phab:T151770 - can you try connecting with Tor, but using a different browser? — xaosflux Talk 20:48, 12 January 2019 (UTC)
As far as I know you need to use the Tor browser (Firefox based) to access Tor, so simply using a different browser won't work. I will give the suggested change to Firefox configuration in the phab a try and get back to you.. --Guy Macon (talk) 06:06, 13 January 2019 (UTC)
Nope. Made the change, cleared everything and restarted, still getting the error message. :( --Guy Macon (talk) 06:55, 13 January 2019 (UTC)
Since we are at the desperate stage, are you logged on somewhere? For example, if you had logged on as normal without Tor because you were in a safe location, did you log off there before trying the Tor logon? Perhaps you did not have to in the past, but if convenient it would be worth testing. Johnuniq (talk) 08:32, 13 January 2019 (UTC)
Good suggestion. I am indeed logged on normally. I occasionally fire up my Tor browser and do some small bit of noncontroversial typo fixing just so I know it will work the next time I get a call to go to China and fix a production problem. It doesn't seem like that should matter, but it is easy enough to test. I will get back to you after trying that. --Guy Macon (talk) 16:09, 13 January 2019 (UTC)
This could be due to attempted http inspection (interception) where the session has some sort of invalid certificate inserted that is rejected by the browser. Graeme Bartlett (talk) 05:44, 13 January 2019 (UTC)
I am pretty sure that it is a Wikipedia error message, not a browser error message. It is in the HTML that Wikipedia sends:
 <div class="error"><p>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.</p></div>
I also changed my Tor Exit not to one on another continent. Didn't help. Tor is completely encrypted from the Tor Browser on my PC to the exit node, so if something is inserted it would have to be between the exit node and Wikipedia. The fact that is still happens when I change exit nodes would imply that someone is intercepting everything that goes to and from Wikipedia. The simpler explanation is that Wikipedia is cancelling my login and sending me the above error message. --Guy Macon (talk) 06:06, 13 January 2019 (UTC)
The above message is from MediaWiki:Sessionfailure. –Ammarpad (talk) 06:42, 13 January 2019 (UTC)
Thanks! I thought that it was one of our error messages. That Wikilink was to a page that was deleted ten years ago. Did you mean [ http://www.mediawiki.org/wiki/Manual:$wgReadOnly ]? --Guy Macon (talk) 16:16, 13 January 2019 (UTC)
Guy Macon, the page Ammarpad linked is still a MediaWiki message despite being deleted - mediawiki messages have defaults and a page is only necessary when changing that default. Galobtter (pingó mió) 16:40, 13 January 2019 (UTC)
(edit conflict) MediaWiki:Sessionfailure sounds right. It displays the exact message you quoted. Messages in the MediaWiki namespace have a default value which is used if a wiki has not created or has deleted the corresponding page. The link is blue, indicating the message name is known to MediaWiki even though there is no wiki page. PrimeHunter (talk) 16:42, 13 January 2019 (UTC)
@Guy Macon: I get exactly the same uninformative message when I try to log on with cookies disabled. Could your browser or Tor client could be blocking cookies from wikipedia.org for some reason? Suffusion of Yellow (talk) 22:23, 13 January 2019 (UTC)
...aaand it logged in just fine after I told it to accept cookies from wikipedia.org and wikimedia.org. Thanks! I can't help but wonder, though, what changed. I test this once a month or so so and last month I was able to log in even though I wasn't accepting cookies.
OK, my problem is solved, but what can we do to help others? How about a help page that tells the user about the cookies, suggests clearing the cache, etc. rather than an uninformative "Please resubmit the form" error message? Who do we talk to to get a better error message? --Guy Macon (talk) 22:46, 13 January 2019 (UTC)
A local version of MediaWiki:Sessionfailure can be created and edited by administrators. It could link Help:Logging in. PrimeHunter (talk) 22:59, 13 January 2019 (UTC)
I asked for help at AN.[3] --Guy Macon (talk) 23:11, 13 January 2019 (UTC)
@Guy Macon: I'm assuming your logon failure isn't limited to the English Wikipedia? If so I suggest you open a phab ticket. — xaosflux Talk 12:26, 14 January 2019 (UTC)
When I found that I suddenly could not log on to the English Wikipedia, I tried the french, Wiktionary, Meta, and half a dozen others -- no luck. When I enabled cookies on Wikipedia, I was able to log on, and the unified login logged me on to all of the other projects, even ones that still have cookies blocked. So yes, it appears to be project wide. This implies that as a bare minimum we should fix the help page for all languages and all WMF wikis. There is also a strong argument for fixing the underlying problem instead of simply making the error message suggest turning on cookies; first, anyone using Tor is especially likely to turn off cookies, block trackers, etc. Second, it isn't only the WMF that uses our software. A bunch of independent wikis use it as well. Sites like Brickepedia use our software but do not have our error pages unless they come "baked in" with the software. Third, it isn't our business to force the users to accept cookies, and indeed other than logging on, Wikipedia works just fine with cookies disabled. --Guy Macon (talk) 16:56, 14 January 2019 (UTC)
@Guy Macon: thanks for the update, just making sure we captured everything:
  1. You are able to logon and edit via TOR now
  2. The primary technical issue was that you were blocking cookies, and allowing the authentication cookies resolved this for you
  3. Updating our interface message (and further the mediawiki default) for MediaWiki:Sessionfailure to include information about cookies may be useful.
Thanks for your patience as well! — xaosflux Talk 17:04, 14 January 2019 (UTC)
That appears to cover it. --Guy Macon (talk) 17:25, 14 January 2019 (UTC)
@Guy Macon: thanks for the update, I've updated our local message to reference cookie handling, and have requested a core update in phab:T213763 - coincidentally 10 years to the date after phab:T19029 was opened for Session failure warning message ('sessionfailure') gives bad advice. — xaosflux Talk 22:00, 14 January 2019 (UTC)

Category tree trace tool[edit]

Is there any tool which can help me understand why a specific article is in a specific category tree? For example, what is the root from Category:Mammals to Phronima? עוד מישהו Od Mishehu 12:20, 13 January 2019 (UTC)

I think that Pintoch (talk · contribs) was working on something like this. --Redrose64 🌹 (talk) 18:42, 13 January 2019 (UTC)
@Od Mishehu and Redrose64: There is vCat (but it's not my tool). − Pintoch (talk) 08:25, 14 January 2019 (UTC)

User:Thegooduser/vector.js[edit]

Hi. I have BrandonXLF's invert script here but for some reason it went away from my menu bar. --Thegooduser Life Begins With a Smile :) 🍁 21:40, 13 January 2019 (UTC)

Have you tried asking at User talk:BrandonXLF? — xaosflux Talk 21:46, 13 January 2019 (UTC)
Outside that, start looking for conflicts - remove all your imported scripts except for that one and see if it is still working. — xaosflux Talk 21:47, 13 January 2019 (UTC)
Xaosflux If I remove all my scripts how can I see which ones I have Installed? Can I rollback my edits after? --Thegooduser Life Begins With a Smile :) 🍁 21:48, 13 January 2019 (UTC)
Asked it on BrandonXLF's talk page. Thegooduser Life Begins With a Smile :) 🍁 21:56, 13 January 2019 (UTC)
@Thegooduser: certainly, your script page (User:Thegooduser/vector.js) has a history that you can revert to just like any other page. — xaosflux Talk 22:14, 13 January 2019 (UTC)
@Thegooduser: The latest version moved the link from your "p-personal" toolbar to the "p-tb" toolbar - check the tools side menu (the one with "page information," "permanent link," etc.) --DannyS712 (talk) 22:04, 13 January 2019 (UTC)

Help with modules[edit]

I noticed that a lot of templates on Wikipedia use modules/Lua/Scribunto. I know modules can do almost the same things as templates. However, I was wondering if I can set two arguments to do the same thing. For example, with {{Infobox film}}, I can use both "film-name" and "film name" arguments. They do the same exact thing (in the template's code is "| data1 = {{{film_name|{{{film name|}}}}}}"). Now, say the template was converted to Lua — how would it be written? —CaiusSPQR (talk) 23:22, 13 January 2019 (UTC)

That assignment might be written:
local data1 = frame.args['film_name'] or frame.args['film name']
Perhaps read WP:LUA.
Trappist the monk (talk) 00:17, 14 January 2019 (UTC)
Thank you. I'm a bit confused though. Should I use "data1" or both "frame.args" in the rest of the code? —CaiusSPQR (talk) 00:23, 14 January 2019 (UTC)
Were it me, I would use data if I needed to use that value more than once so that every time I needed the value assigned to |film_name= or |film name= I didn't have to do the 'or'ing every time.
Trappist the monk (talk) 00:32, 14 January 2019 (UTC)
Thank you so much for your help! 😁 —CaiusSPQR (talk) 00:34, 14 January 2019 (UTC)
Some lua tips:
Depending on what you want to do, you can also use a template wrapper for parameter conversion: {{#invoke|...|data1={{{film_name|{{{film name|}}}}}}|...}}.
frame.args['film_name'] can be shortened to frame.args.film_name (table).
Lua treats empty parameters ("" or spaces) differently than template: Module:Arguments#Trimming and removing blanks. MarMi wiki (talk) 02:09, 14 January 2019 (UTC)

FileExporter beta feature[edit]

Johanna Strodt (WMDE) 09:41, 14 January 2019 (UTC)

Tech News: 2019-03[edit]

@Trizek (WMF): I think this edition got truncated. Graham87 04:13, 15 January 2019 (UTC)
@Graham87: yes it was (meta:). You can read the entire issue here: meta:Tech/News/2019/03. — xaosflux Talk 04:55, 15 January 2019 (UTC)
@Graham87:, yeah, I'm very sorry about that. I've fixed it above. Trizek (WMF) (talk) 13:45, 15 January 2019 (UTC)

Black box appearing[edit]

Hello,

Today I have logged onto Wikipedia and there seems to be a solid black box on the articles box and what activity I am doing. For example: This page right now will have a black box around "Article" and a black box around "Edit source". Another example would be if I was on a random page and there would be a black box around "Article" and a black box around "Read".

Thank you AmericanAir88(talk) 22:59, 14 January 2019 (UTC)

What is your browser? What is your skin at Special:Preferences#mw-prefsection-rendering. Does it happen if you log out? PrimeHunter (talk) 23:10, 14 January 2019 (UTC)
@PrimeHunter: It happens when I log out. I use safari. I use the default skin. AmericanAir88(talk) 23:45, 14 January 2019 (UTC)
Is it on a computer or iOS device? Safari dropped the Windows version in 2012 so I cannot test it on a computer. I don't see it on an iPad. It sometimes helps with interface rendering to clear the entire cache. PrimeHunter (talk) 00:01, 15 January 2019 (UTC)
@PrimeHunter: Clearing the cache did not work. This is on a MacBook Air. AmericanAir88(talk) 00:39, 15 January 2019 (UTC)
MacBook Air uses macOS and not iOS so I cannot help properly. PrimeHunter (talk) 00:47, 15 January 2019 (UTC)
@PrimeHunter: Is there someone I can speak to who has expertise in MacOs? AmericanAir88(talk) 02:50, 15 January 2019 (UTC)
Using Safari on MacBook Air and everything appears normal to me, logged-in and out. –Ammarpad (talk) 07:52, 15 January 2019 (UTC)
I don't see any changes, either, AmericanAir88. Have you tried restarting? After that, as today's not Thursday, I'd look at updates (Safari, OS X, or a Safari extension) and new extensions, and double-check that I hadn't changed any preferences. BlackcurrantTea (talk) 16:58, 15 January 2019 (UTC)

List of Wikipedians by article count[edit]

I know I've raised this before, but does anyone have the time and skills to be able to fix this list so it updates automatically each day, as per the number of edits list? Many thanks. Lugnuts Fire Walk with Me 09:07, 15 January 2019 (UTC)

@Lugnuts: that really needs to be done by a bot, it looks like it used to be done by MZMcBride's bot - so you could start by asking MZMcBride. Alternatively, someone else could take it up, and you could ask at WP:BOTREQ. — xaosflux Talk 13:50, 15 January 2019 (UTC)
Thank you. IIRC, I've asked MZMcBride before about this, and I think there was something technical stopping it from being updated. I'll do a bit of digging, and see what I find. Lugnuts Fire Walk with Me 13:58, 15 January 2019 (UTC)

Code correction[edit]

Hi - I don't do code so would like this line looked at

div style="padding: 14px; background: #FFFAF0;<!--#ddcef2;--> border-style: groove; border-width: 5px; border-color: green; font-size: 95%; text-align:left; font-family: Euphema, arial;"

Its the top line on my talk page and its in pink; is the code deprecated perhaps? Thanks your time Face-smile.svg MarkDask 15:22, 15 January 2019 (UTC)

Added nowiki tags to your div above. I suspect that your browser doesn't ignore the commented color value (violet) (tested on Firefox based/IE11/Chrome based and the background color is FFFAF0), or you just need to refresh (F5/Ctrl+F5) the page. MarMi wiki (talk) 16:49, 15 January 2019 (UTC)
And comments in css (in style too?) are done by /* and */ - CSS Comments. MarMi wiki (talk) 16:57, 15 January 2019 (UTC)
Yes, according to CSS Style Attributes (linked from Semantics, structure, and APIs of HTML documents) the value of the style attribute must match the syntax of the contents of a CSS declaration block (excluding the delimiting braces). So comments inside a style= attribute can only be of the /* ... */ form. --Redrose64 🌹 (talk) 21:35, 15 January 2019 (UTC)
(edit conflict) @Markdask: I suspect this is because you have a <div> element that is missing a </div> closing tag. This happens on talk pages when people want unusual affects sometimes. Are you trying to keep that box border around future sections that other people add, or just around your welcome box? — xaosflux Talk 16:50, 15 January 2019 (UTC)

AFD transclusion[edit]

Bit of an odd situation I wanted to see if somebody on the technical side could look into. Earlier today, User:Cyberbot I detected Wikipedia:Articles for deletion/John Dingfelder as "not correctly transcluded to the log", and added it to today's AFD list accordingly — but the page is, and always has been, correctly transcluded to the daylog for the day it was created, January 9 (and there's no indication in the edit history of that page that it got temporarily vandalized, the only explanation I can think of for why a discussion on it might appear untranscluded six days later.) And it's not a case of the discussion having been relisted for further consideration without getting readded to the new daylog, either, as January 9 isn't seven days ago yet and the discussion's already on a consensus track and won't even need to be relisted at all.

So could somebody take a few minutes to look into why a bot might make this mistake? Thanks. Bearcat (talk) 16:25, 15 January 2019 (UTC)

Find unusually short articles[edit]

How can I query (or search, if no such list exists) the English wikipedia for articles obviously having a problem because they are meaninglessly short, i.e. zero prose, or less than 10 words, or even less than 100 words. Searching wikipedia is likely to be an enormous task, and such a script might need admin or even higher access to the wiki, Nonetheless, can it be done?

If there is a list, or when there is one, what can/should be done with it? These articles should be moved to some kind of editors-only (requires login to access) sandbox until they are suitable for publication, but I know of no such global structure. Articles can be so severely impaired for reasons other than length that they shouldn't be in the encyclopedia. Maybe deleting them isn't the best policy, because we'd rather eat dirt than delete a page because, well, it just doesn't measure up, and not for any admin or technical reason. Sbalfour (talk) 22:14, 15 January 2019 (UTC)

See Special:ShortPages. It excludes disambiguation pages but includes set index articles like surnames with two entries. PrimeHunter (talk) 22:31, 15 January 2019 (UTC)

File names which have been changed[edit]

I'm going to ask this here since I figure it's a technical question and because there are probably more people watching this page than there are watching WT:File names. What happens to a file name once it has been changed? Is a redirect to the new name created? I came across File:Kedi (2006 film).jpg while checking on some non-free images; this file used to be named File:Kedi.jpg, which if you click on the link you'll see is now a completely different file uploaded to Commons. It's probably not a big deal except that there is a link to the original file name in Wikipedia:Non-free content review/Archive 55#File:Kedi.jpg which now lead to a completely different file and the log shows that "File:Kedi.jpg" was deleted per WP:F2. I know that {{Shadows Commons}} is used in cases where two files (one on Commons and one on Wikipedia) have the same name; but, I'm not sure if that applies in a case like this. -- Marchjuly (talk) 05:51, 16 January 2019 (UTC)

Date format in signatures as viewed by unregistered users[edit]

Is there a reason why the date format in signatures is dd mmm yyyy when viewed by unregistered users? I presume it's just the way the css is configured but is there any background for that configuration rather than mmm dd, yyyy? Nthep (talk) 13:28, 16 January 2019 (UTC)

@Nthep: signature dates are not stored as any sort of typed data value, they are simply text and readers see them just as they are in the wikitext. In fact everyone sees them this way unless they specifically implement a hack to see them some other way. — xaosflux Talk 14:06, 16 January 2019 (UTC)
I get that but was there any reason why it's the way round it is, other than that's the way the developer set it? Nthep (talk) 14:29, 16 January 2019 (UTC)
I think that day-month-year is more common around the world than month-day-year, which IIRC is pretty much just a North American thing (or maybe more generally an English thing?). It also orders the time units by length. Writ Keeper  14:34, 16 January 2019 (UTC)
It's just a North American thing, I live in the UK and we use DDMMYY. [Username Needed] 15:10, 16 January 2019 (UTC)
See also Date format by country#Usage map. Some wikis use another date format. PrimeHunter (talk) 18:42, 16 January 2019 (UTC)
Is there an example somewhere of such a "hack" I can use to make the standard sig times display the same way as my (localized ISO-3166) history/contrib times (e.g. to convert "01:23, 16 January 2019 (UTC)" to "2019-01-15T17:23")? —[AlanM1(talk)]— 15:12, 16 January 2019 (UTC)
@AlanM1: there is a Gadget for that, see Wikipedia:Comments in Local Time for documentation and limitations. — xaosflux Talk 15:20, 16 January 2019 (UTC)
I think you'll also want to check out Special:Preferences#mw-prefsection-rendering, specifically the "Date format" and "Time format" sections. ~ Amory (utc) 15:23, 16 January 2019 (UTC)
@Amorymeltzer: Thanks. I already had that set, affecting the history and contribs pages.
@Xaosflux and Gary: Just what I wanted Face-smile.svg. I copied User:Gary/comments in local time.js to User:AlanM1/comments in local time.js and tweaked it a bit to render e.g. "2018-12-24T19:40, Monday (23 days ago)". I added two new boolean config items to LocalComments: dropOffset drops the "(UTC±n)" suffix; diffLast causes it to render the date and time together as shown (like the gadget setting mentioned above) and put the dayOfTheWeek and descriptiveDifference last. —[AlanM1(talk)]— 21:01, 16 January 2019 (UTC)

Emergency server switch is NOT HERE[edit]

Quick note, while everyone else is trying to sort out MassMessage problems: There's going to be a partial m:server switch tomorrow, because of hardware problems; it's just like all the previous ones, except affecting only some (most) wikis and with much less planning. It will NOT affect the English, German, French, or Russian Wikipedias (or several smaller places). Check the Phab link for the list of affected wikis.

On a side note, please ping me if you need my attention this week (or any time you think something's important, ever). Thanks, Whatamidoing (WMF) (talk) 19:59, 16 January 2019 (UTC)

From the title, I thought we were blocking someone that had named themself Emergency server switch as WP:NOTHERE. Natureium (talk) 20:00, 16 January 2019 (UTC)
<grin>
The task's been closed, so this is done. It sounds like editing was blocked on those wikis for less than four minutes. Whatamidoing (WMF) (talk) 17:52, 17 January 2019 (UTC)
This isn't WP:ANI :) Galobtter (pingó mió) 17:53, 17 January 2019 (UTC)
Galobtter, so tempted to create the account named Emergency server switch just to say that it is here... Home Lander (talk) 20:35, 17 January 2019 (UTC)
Sorry, was someone looking for me? Emergency Server Switch (talk) 21:23, 17 January 2019 (UTC)
Soooooooooooooock! Natureium (talk) 21:39, 17 January 2019 (UTC)

Template Data Table[edit]

Question... When adding TemplateData is there any way to edit it basically in a spreadsheet? It is so time consuming to use the data editor, constantly going back and forth between different params... --Zackmann (Talk to me/What I been doing) 19:26, 17 January 2019 (UTC)

@Zackmann08: There's some other tools you can try listed at Wikipedia:TemplateData/Tutorial#Tools, or you can edit the wikitext directly (but you need to be careful to keep the JSON syntax valid, or the page will refuse to save) - Evad37 [talk] 00:53, 18 January 2019 (UTC)
@Evad37: thanks!!! --Zackmann (Talk to me/What I been doing) 03:29, 18 January 2019 (UTC)

Floating 6[edit]

Can anyone fix the floating bold "6" here? http://en.turkcewiki.org/w/index.php?title=The_Beatles_(album)&oldid=878971860#Charts I can't seem to find where this is in the code. ―Justin (koavf)TCM 03:55, 18 January 2019 (UTC)

@Koavf:  Done --DannyS712 (talk) 04:12, 18 January 2019 (UTC)
Thanks! ―Justin (koavf)TCM 04:36, 18 January 2019 (UTC)

Staunton Mall[edit]

Can someone figure out why the map isn't working properly in the infobox for Staunton Mall? Ten Pound Hammer(What did I screw up now?) 04:11, 18 January 2019 (UTC)

@TenPoundHammer: How should it appear/work? --DannyS712 (talk) 04:14, 18 January 2019 (UTC)
@DannyS712: It should show a map. I'm just seeing a blank space where it should be. Actually all such maps appear to be malfunctioning right now. Ten Pound Hammer(What did I screw up now?) 04:17, 18 January 2019 (UTC)
@TenPoundHammer: I'm seeing a fully working map, and not just on that page. Maybe its a problem on your end? --DannyS712 (talk) 04:19, 18 January 2019 (UTC)
Seems to work for me as well. --Palosirkka (talk) 08:52, 19 January 2019 (UTC)

Idiosyncratic watchlist[edit]

I use my watchlist to keep an eye on articles I have written, particularly for detecting vandalism or unsuitable changes to articles. But the watchlist is inconsistent, and does not show me all the entries I would like it to. Today for instance I noticed (by resting the pointer on "diff") that Desert hare had been vandalised, but decided to look at another article on the watchlist before clicking through to Desert hare. By the time I got back to the watchlist, Desert hare was no longer listed there. By this time someone else had dealt with the vandalism, but the article should still have appeared on my watchlist, with a different time tag. Then there are pages like this one which I particularly want to watch, and where I can't rely on the watchlist alerting me to changes, which means that I often miss comments. Is there anything I can do to make the watchlist more suited to my requirements? Cwmhiraeth (talk) 10:10, 18 January 2019 (UTC)

@Cwmhiraeth: in your watchlist do you have any filters enabled, for example - hide probably good edits? Depending on your configuration you may only see WL entries for the "latest" entry - and if you filter it out, it won't show. — xaosflux Talk 13:44, 18 January 2019 (UTC)
At Preferences → Watchlist, make sure that "Expand watchlist to show all changes, not just the most recent" is turned on. --Redrose64 🌹 (talk) 17:49, 18 January 2019 (UTC)
Thank you. We'll see how it goes now. Cwmhiraeth (talk) 18:35, 18 January 2019 (UTC)

Usage metrics of a script[edit]

Is there any particular way to answer questions like "How many people use my script right now ?" or "How many times is a script used per day ?".(especially if the script in question is a unconventional one like User:FR30799386/undo.js ?) << FR 12:20, 18 January 2019 (UTC)

You could query for the ads it leaves in the edit summaries. It's miserably slow, though. Here's the 100 most recent. —Cryptic 14:30, 18 January 2019 (UTC)
Regarding the first, some writers of scripts advise the use of backlinks. For example, see User:Anomie/previewtemplatelastmod.js or User:Evad37/XFDcloser. The backlink is the wikilink that follows the ; // characters, and it allows usage to be checked using e.g. Special:WhatLinksHere/User:Anomie/previewtemplatelastmod.js or Special:WhatLinksHere/User:Evad37/XFDcloser after which you need to look for only page names that end in ".js" and ignore the others. --Redrose64 🌹 (talk) 17:56, 18 January 2019 (UTC)
An insource search always works anyhow - this search in userspace finds that 20 people use the script. Galobtter (pingó mió) 18:00, 18 January 2019 (UTC)
That answers my questions. Cryptic, I have forked your query so that I can run it on a later date, it answers my second question. I have added a backlink and the insource search does give me an idea of how many people are importing it right now. :) << FR 18:26, 18 January 2019 (UTC)

Edit conflicts on talk pages[edit]

Could edit conflicts on talk pages ever be reworked? My thought process for this is that after an editor (#1) has posted a comment, and while s/he is going back to edit it, fix typos, etc., another editor (#2) is already writing up their response. Editor #1 saves their fixes, Editor #2 goes to save their brand new reply, and is presented with an edit conflict. Going back to the question, could edit conflicts on talk pages be reworked so that the server could detect that Editor #2 didn't actually have any sort of conflict and just wanted to submit a new reply, and add the reply to where it was meant to go while ignoring Editor #2's changes? -- /Alex/21 13:18, 18 January 2019 (UTC)

Obligatory "structured discussions would solve this problem but en.WP refuses to use them". (Not without some decent reasons, mind you.) --Izno (talk) 13:55, 18 January 2019 (UTC)
Obligatory trout to the face for Izno for bringing up Flow... — xaosflux Talk 20:34, 18 January 2019 (UTC)
This is probably a good idea in principle. I'm just worried about the case where Editor #2 posts information that would make Editor #1 change their reply, which would result in Editor #1 having to go back and make edits. For my part, in an upcoming reply-link change I'm going to display a little popup saying something like "An editor has made another comment here since you started writing [click here to reload]" if something like that is detected. Enterprisey (talk!) 21:54, 18 January 2019 (UTC)

Weird "Revert"[edit]

Could someone explain what happened Here? [Username Needed] 15:45, 18 January 2019 (UTC)

An IP user used the "undo" button, presumably from the page history, to undo Nochorus's edit. The undo functionality, unlike rollback or Twinkle, can work on edits that aren't the most recent. Writ Keeper  15:51, 18 January 2019 (UTC)

HELP - Code for time variation[edit]

HELP - Need-To-Know, if possible, any Code to present the variation in the time duration of a day on the planet Saturn - variation to present => "+1m52s/-1m19s" - OR - "+112s/-79s" - in order that the final presentation looks like => http://cdn.iopscience.com/images/0004-637X/871/1/1/apjaaf798ieqn1.gif - from the following reference => < ref name="APJ-20190117">Mankovich, Christopher; et al. (17 January 2019). "Cassini Ring Seismology as a Probe of Saturn's Interior. I. Rigid Rotation". The Astrophysical Journal. 871 (1). Retrieved 18 January 2019.CS1 maint: Explicit use of et al. (link)</ref> - Related material, so far, is the following => 10h 33m 38s ( - from {{RA|10|33|38}} )
10 hours,33 minutes,38 seconds (+1m52s;-1m19s)[1][2] - iac - TIA - and - Enjoy! :) Drbogdan (talk) 21:35, 18 January 2019 (UTC)

References

  1. ^ Mankovich, Christopher; et al. (17 January 2019). "Cassini Ring Seismology as a Probe of Saturn's Interior. I. Rigid Rotation". The Astrophysical Journal. 871 (1). Retrieved 18 January 2019.CS1 maint: Explicit use of et al. (link)
  2. ^ McCartney, Gretchen; Wendel, JoAnna (18 January 2019). "Scientists Finally Know What Time It Is on Saturn". NASA. Retrieved 18 January 2019.
{{val}} can use uncertainties like that but it cannot handle h/m/s units:
  • {{val|1234|+56|-78|sortable=off}}1234+56
    −78
Special:ExpandTemplates shows the following output:
<span class="nowrap">1234<span style="margin-left:0.3em;"><span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:right;">+56<br />−78</span></span></span>
If desperate, you might try replacing the numbers in the output wikitext with what is needed for the h/m/s superscripts. Johnuniq (talk) 22:13, 18 January 2019 (UTC)
@Johnuniq: Thank you *very much* for your reply - seems worth considering - and better than my own less worthy tries - Thanks again - it's *greatly* appreciated - Enjoy! :) Drbogdan (talk) 22:23, 18 January 2019 (UTC)

Tabular data not available[edit]

I'm investigating an error at California's 5th congressional district#2012. This is the wikitext and the error:

{{election box US auto|California|2012|United States Representative District 5|Mike Thompson link=Mike Thompson (California politician)}}
Lua error in Module:Election_box_US_auto at line 159:
Unable to find tabular data:
California Elections/2012/General/Candidates.tab.

The above calls Module:Election box US auto which executes the equivalent of:

tab_name = 'California Elections/2012/General/Candidates.tab'
tabular = mw.ext.data.get(tab_name)

The result in tabular is false instead of a table, and that gives the error above. The result should be the Lua equivalent of c:Data:California Elections/2012/General/Candidates.tab.

In a sandbox at Commons, previewing the following shows a table of valid data, as it should:

{{Data:California Elections/2012/General/Candidates.tab}}

I've done some sandbox testing that shows mw.ext.data.get('California Elections/2012/General/Candidates.tab') works at Commons but fails an enwiki. Any ideas? Johnuniq (talk) 02:09, 19 January 2019 (UTC)

Using what links here lead me to User:Legoktm/test (ping Legoktm). That is currently working but editing the page and previewing shows errors. There is a presumably temporary breakage that I suppose should be reported at phab somewhere. Johnuniq (talk) 02:26, 19 January 2019 (UTC)
This is phab:T214179. — JJMC89(T·C) 03:10, 19 January 2019 (UTC)
Magic, thanks. Basing articles on Wikidata and/or Commons tabular data has drawbacks. I wonder what appears in an enwiki watchlist if a Commons table is vandalized. Johnuniq (talk) 06:15, 19 January 2019 (UTC)

Transclusion links[edit]

What is the "hide transclusions" button supposed to do on the Special:WhatLinksHere page? I assumed it would hide links transcluded on to the target page through templates, but that's not working for me. SpinningSpark 12:08, 19 January 2019 (UTC)

It only hides pages where the whole page itself is transcluded. It's only useful on templates and other pages used for transclusion. User:PrimeHunter/Source links.js may help with what you want. It's a frequently requested feature. Wikipedia:Village pump (technical)/Archive 155#What Links Here vs.Templates has links to other requests here and at Phabricator. PrimeHunter (talk) 12:36, 19 January 2019 (UTC)
@PrimeHunter: that's great. The only thing that that isn't doing for me is finding links that come in via a redirect. It's not even finding the redirect page. But it's a great help, so often what links here is swamped by navbox entries making it useless. SpinningSpark 15:10, 19 January 2019 (UTC)

Proposed gadget: Shortdesc helper[edit]

I recently revised my user script User:Galobtter/Shortdesc helper to fix some minor issues and use OOUI, and I'm proposing that it become a gadget. It apparently is/will be possible to conveniently edit short descriptions on the mobile app and it would seem good to have a gadget for doing so on desktop; shortdesc helper has been installed and used by a reasonable number of people and I haven't received much reports of bugs or issues with it. Galobtter (pingó mió) 13:39, 19 January 2019 (UTC)

Why does advanced search make searching namespaces harder rather than easier?[edit]

On the search tab of preferences:

"Don’t show the Advanced Search interface.
Advanced Search adds a form to the Special:Search page. This allows you to perform specialized searches, even if you don't know any search syntax. It also changes the way namespaces can be selected.

Yeah, Advanced Search makes it more difficult to search templates for example. -- Timeshifter (talk) 14:22, 19 January 2019 (UTC)

TemplateData not working for Template:Infobox video game[edit]

I tried to add {{Infobox video game}} using the VisualEditor but it displays neither the description nor the fields (tried two different browsers and accounts). As far as I can tell, Template:Infobox video game/doc which contains the TemplateData for this template has not been changed recently and when I try to edit the TemplateData there, all fields appear. I tried to append the whole TD block to the sandbox version and use that version but while I can edit the TD, it also won't appear when trying to add the template with the VE. Can someone help? Regards SoWhy 14:46, 19 January 2019 (UTC)