Previous discussion was archived at User talk:Roan Kattouw (WMF)/Archive 1 on 10 July 2015.

Categories

edit

Hi!

What do you think about moving the categories out of the editable area?

Currently, categories are allowed anywhere in the wikitext (there can be non-category wikitext between two categories), formatted in any way (there can be two categories in one line). Wouldn't it be nicer if the categories were moved out of the editable area altogether? That way, there can be an underlying structure that allows for nice programming (HotCat wouldn't have to be 123kb), and end users would never be in contact with the underlying code for the categories. They would just change, add and remove the categories they want.

The way I see it, there are three reasons why this would be desirable:

  1. It would be easier for end users to get and set categories.
  2. It would reduce edit conflicts: Diligent patrollers like adding categories to new pages immediately as they are created, and new users like making many small edits. See the problem here?
  3. It would completely erase edits like changing "category:Blah" to "Category:Blah".

What do you think? Nirmos (talk) 16:14, 27 November 2015 (UTC)Reply

I agree that that would be a good thing to do, and there are some old tasks for this in Phabricator (T2167, T2201, T29312 and probably others that I can't find right now). The reason those tasks are so old (and their numbers so low) is because this is a difficult problem. There's an RfC for "multi-content revisions" that may address this problem, along with many other things, but that's a big chunk of work and will probably take a long time. Roan Kattouw (WMF) (talk) 19:44, 1 December 2015 (UTC)Reply

Please provide feedback on suggested improvements to the Code of Conduct

edit

Thanks to everyone who’s helped work on the Code of Conduct so far.

People have brought up issues they feel were missed when working on "Unacceptable behavior" and "Report a problem". Consultants have also suggested changes in these same sections.

These are important sections, so please take a look at the proposed changes. I apologize that this feedback arrived later than planned, but I think this will create a better document.

If you prefer to give your opinion privately, feedback via e-mail is welcome at conduct-discussion wikimedia.org.

Thanks. Mattflaschen-WMF via MediaWiki message delivery (talk) 04:18, 24 February 2016 (UTC)Reply

Please participate in discussion on updated "Marginalized and underrepresented groups" text

edit

Thanks for participating in the earlier discussion on Talk:Code of Conduct/Draft#Marginalized and underrepresented groups. There was some support and some issues were raised. I've attempted to propose a better draft to address the issues.

Please participate at Talk:Code of Conduct/Draft#New proposed wording. Thanks. User:Mattflaschen-WMF via MediaWiki message delivery (talk) 01:40, 17 March 2016 (UTC)Reply

Please participate in discussion on updated "Enforcement issues" text

edit

Thanks for participating in the earlier discussion on Talk:Code of Conduct/Draft#Enforcement issues. There was strong support for the first two points, so they have been closed. Most people either supported the third at least in principle, or were neutral. However, there are some suggested wording changes (partly by Smalyshev (WMF), and partly by me).

Please participate again at Talk:Code of Conduct/Draft#New proposed wording. Thanks. User:Mattflaschen-WMF via MediaWiki message delivery (talk) 01:47, 17 March 2016 (UTC)Reply

Please participate in discussion on updated "Enforcement issues" text

edit

Sorry, the correct link for the discussion about wording re Talk:Code of Conduct/Draft#Enforcement issues is Talk:Code of Conduct/Draft#Circumvention text new wording. Thanks. I apologize for the double-message. User:Mattflaschen-WMF via MediaWiki message delivery (talk) 01:51, 17 March 2016 (UTC)Reply

Modularization

edit

Hi. I have some questions about modularization. If I want to get my own name, I can either type mw.config.values.wgUserName or mw.user.getName(), but if I want to get the page name, the only option seems to be mw.config.values.wgPageName. The only thing I can find in mw.page is watch. So, my question is, will more stuff be added to mw.page in the future? Will it be something like mw.page.getPageName() in the future? Is the work with modularization abandoned or ongoing? Will the values in mw.config.values eventually be deprecated once they've been in a module long enough? Is there a Phabricator task about this? I did find phab:T133277 which is called "Modularization of JS code", but that appears to be something much more specific than what I'm talking about. Nirmos (talk) 23:32, 16 May 2016 (UTC)Reply

Side note: you should use mw.config.get( 'wgFoo' ) instead of mw.config.values.wgFoo.
I don't think there's a specific task about this (perhaps @Timo Tijhof (WMF) would know) but an idea I've proposed before is to expose config variables per module instead of globally. This could change mw.config.get() to something else, but we'd probably keep the old one around for backwards compatibility. As for mw.page, I'm not aware of any immediate plans to move more stuff into there.
I wouldn't say the modularization work is abandoned, but it's not particularly active either. Perhaps a better way to describe its status would be "dormant" or "moving slowly". The task you found is specific to one extension (RevisionSlider). Roan Kattouw (WMF) (talk) 17:36, 17 May 2016 (UTC)Reply
Is there a reason I should use mw.config.get( 'wgFoo' ) over mw.config.values.wgFoo? mw.config.get( 'wgFoo' ) fails silently with trailing spaces, even though it is unambiguous, see this edit for instance. mw.config.values.wgFoo is much more robust and fails loudly. Nirmos (talk) 17:51, 17 May 2016 (UTC)Reply
The main reason is that mw.config.values.foo is using an internal implementation detail, not the public API. The public API is mw.config.get( 'foo' ). So the latter is considered cleaner, but both work. You're right though that louder failures for misspelled config variables would be good. Roan Kattouw (WMF) (talk) 23:46, 17 May 2016 (UTC)Reply
@Nirmos Ideas for a more complete Page interface exist at phab:T41813. For now, mw.config.get is the supported way to get this information. See also Manual:Interface/JavaScript#mw.config.
(phab:T133277 is actually about the RevisionSlider project, not MediaWiki.) Krinkle (talk) 23:53, 15 September 2016 (UTC)Reply

Test topic

edit

Testing notificatoin emails Catrope (talk) 23:46, 17 May 2016 (UTC)Reply

נסיון עם עברית

edit

This is a Hebrew RTL test. MSchottlender-WMF (talk) 22:00, 1 June 2016 (UTC)Reply

Vagrant

edit

Hi. I really want to help develop MediaWiki, but I need some help to get started. I have Windows 10 Home. When I type "vagrant up" in Git Bash, it says

==> default: Verifying Hyper-V is enabled...
The Hyper-V cmdlets for PowerShell are not available! Vagrant
requires these to control Hyper-V. Please enable them in the
"Windows Features" control panel and try again.

Does this mean that I have to upgrade to Windows 10 Pro, or do I need to do something in PowerShell? I'm kind of lost. Nirmos (talk) 14:56, 16 July 2016 (UTC)Reply

Pinging @Brion Vibber (WMF) who seems to know a lot about Vagrant/Hyper-V. Nirmos (talk) 20:49, 19 July 2016 (UTC)Reply
Sorry, I was on vacation when you posted your first comment, so I missed it.
I don't know anything about Vagrant, I don't use it myself. I also haven't used Windows in many years, so I'm afraid I can't be of much help here. I'll also ping @BDavis (WMF) who does a lot of Vagrant work. Even if the solution is simple and not directly Vagrant-related, I'm hoping we can add it to the documentation here on mediawiki.org so people won't have to ask this question in the future. Roan Kattouw (WMF) (talk) 21:08, 19 July 2016 (UTC)Reply
The last version of Windows I used was NT 4.5, so this fancy new Hyper-V stuff is not anything I've played with. These instructions at MSDN might help @Nirmos out. BDavis (WMF) (talk) 00:24, 20 July 2016 (UTC)Reply

get user name of IP

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I just have to ask, is there a reason we aren't able to get the user name of IPs? mw.user.getName() returns null for IPs. At first, I thought maybe this is because of some security or privacy concern, but I'm not sure that makes any sense. Does it have to do with caching?

Ideally, mw.user.getName() should return the IP for IPs, and if you want to differentiate between IPs and logged-in users you would use mw.user.isAnon(), and mw.user.isAnon() would have to be reworked to no longer rely on mw.user.getName(). Unfortunately, that would be a breaking change for code that relies on comparing mw.user.getName() with null to tell IPs and logged-in users apart, but maybe that would be acceptable with enough communication (tech news, mailing lists, console.log)? Nirmos (talk) 00:22, 14 October 2016 (UTC)Reply

The reason is because the mw.config values are in a JSON blob that's embedded in the page, and page views for anons are cached (and therefore are reused between different IPs). This is also why the bar at the top right where your user name appears shows "Not logged in" instead of the IP.
MediaWiki can be configured to show the IP there, but that setting is incompatible with the Varnish cache that WMF uses, so it's only there for 3rd-party wikis. Roan Kattouw (WMF) (talk) 01:30, 14 October 2016 (UTC)Reply
Ahh, so it is because of cache. Okay, thanks for answering. Nirmos (talk) 01:33, 14 October 2016 (UTC)Reply
Ok, but what about making a new method called mw.user.getIP and make it async like mw.user.getGroups? Would that be acceptable? Nirmos (talk) 02:47, 14 October 2016 (UTC)Reply
I believe it would be. Like getGroups all it would need to do is send an API request for meta=userinfo Roan Kattouw (WMF) (talk) 17:22, 14 October 2016 (UTC)Reply
Thanks, I've created phab:T148266 now. Nirmos (talk) 14:38, 15 October 2016 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Function to update notifications

edit

Hi! Is there any JavaScript function I can call to update #pt-notifications-alert and/or #pt-notifications-notice? Nirmos (talk) 13:13, 16 December 2016 (UTC)Reply

edit

Roan, I really like to have a small set of additional features in the Flow extension.

Is there any way for me to sponsor or support development? Thanks! TitusiMW (talk) 18:55, 28 February 2017 (UTC)Reply

A barnstar for you!

edit
  The Technical Barnstar
Thanks for solving Phabricator task T177825! I was one of the many Wikipedians that wasn't getting pings.

Chris Troutman (talk) 23:48, 14 October 2017 (UTC)Reply

How we will see unregistered users

edit

Hi!

You get this message because you are an admin on a Wikimedia wiki.

When someone edits a Wikimedia wiki without being logged in today, we show their IP address. As you may already know, we will not be able to do this in the future. This is a decision by the Wikimedia Foundation Legal department, because norms and regulations for privacy online have changed.

Instead of the IP we will show a masked identity. You as an admin will still be able to access the IP. There will also be a new user right for those who need to see the full IPs of unregistered users to fight vandalism, harassment and spam without being admins. Patrollers will also see part of the IP even without this user right. We are also working on better tools to help.

If you have not seen it before, you can read more on Meta. If you want to make sure you don’t miss technical changes on the Wikimedia wikis, you can subscribe to the weekly technical newsletter.

We have two suggested ways this identity could work. We would appreciate your feedback on which way you think would work best for you and your wiki, now and in the future. You can let us know on the talk page. You can write in your language. The suggestions were posted in October and we will decide after 17 January.

Thank you. /Johan (WMF)

18:17, 4 January 2022 (UTC) MediaWiki message delivery (talk) 18:17, 4 January 2022 (UTC)Reply

Help needed

edit

Hi dear Roan, I'm a sysop and interface admin on Turkish Wikipedia, right now I'm working on an AfD remarker gadget on the Turkish wiki for leaving opinions to candidate articles, I'm working on it for about 21 hours approximately but I have a problem with getting selected data with OOUI ButtonSelectWidget can you help me with this please, how can I get selected ButtonOptionWidget data? Doğu (talk) 15:29, 27 May 2022 (UTC)Reply