Re: [Wikitech-l] Equivalence for using Template:Cite_Web with templates surrounding Wikicode

2019-12-31 Thread Eran Rosenthal
Hi Eugene, Assuming it is local installation or wiki other than English wikipedia where citations aren't yet configurated you can follow E.g copy https://en.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json and

Re: [Wikitech-l] Gerrit Vandalism

2019-03-18 Thread Eran Rosenthal
I couldn't catch anyone in the IRC so this is also tracked in: https://phabricator.wikimedia.org/T218636 On Tue, Mar 19, 2019 at 7:40 AM Jay prakash <0freerunn...@gmail.com> wrote: > Hi please stop User Mill on Gerrit. He/She vandalised my and my Tech's > patches. > > User:Jayprakash12345 >

[Wikitech-l] Community-Engineering gaps as defined in configuration

2019-03-09 Thread Eran Rosenthal
Hi, Wiki communities can ask to override their default configurations (following consensus). The reasons to override may vary: 1. *customization* for community to align to community specific policy (example: special namespaces / upload policy/user groups rights defined per project and

Re: [Wikitech-l] Javascript function does not work

2019-02-12 Thread Eran Rosenthal
Hi Igal, We are trying to avoid using jquery.ui in favor or OOUI to get a more modern interface. jquery dialog module is NOT loaded by default (and if it works for you in any wiki, likely you enabled some gadget that relay on it or it was enabled as default gadget) Though not all people like

Re: [Wikitech-l] The mw.ext construct in lua modules

2019-02-04 Thread Eran Rosenthal
> What is the problem with the ".ext" part? 1. It adds unnecessary complexity both in the extension (need to init mw.ext if it doesn't exist) and more important - in its usage when the Lua extension is invoked (longer names) (there is very small risk of name collision - mw.ModuleA and

Re: [Wikitech-l] The mw.ext construct in lua modules

2019-02-02 Thread Eran Rosenthal
I agree with John, and I think mw.ext.EXTNAME should be avoided and we should prefer mw.EXTNAME which is clear and simple and fills very native. This is already the way it is used in wikibase (mw.wikibase.FUNCNAME) which I believe is the most heavily used extension exposing Lua interface. To

Re: [Wikitech-l] Article geotags missing in geo_tags table for some WP languages?

2018-11-08 Thread Eran Rosenthal
List of wikis by geo_tags count may help to identify wikis that aren't using geo tags: abwiki0 adywiki0 akwiki0 arcwiki0 aywiki0 bgwiki0 biwiki0 bjnwiki0 bmwiki0 bowiki0 bpywiki0 brwiki0 bugwiki0 bxrwiki0 chrwiki0 chywiki0 crhwiki

Re: [Wikitech-l] The annual Community Wishlist Survey now open for proposals

2018-10-30 Thread Eran Rosenthal
Please avoid as much as possible from "not feasible" answers but rather direct the proposals to smaller and feasible solutions if they are too broad. Usually such proposals have higher impact and importance compared to smaller tasks. Good example of such answer by Danny H in

Re: [Wikitech-l] How much data can we plan to upload on Wikidata infrastructure? [Was: Fwd: Re: [wikidata] [glam] [Toulouse] Projet de partenariat CNES]

2018-10-15 Thread Eran Rosenthal
I'm not sure Wikidata/Wikibase is the right platform for real-time/near real time data or such raw data from sensors. Dependening on the usage I think the following should be considered: * What resultion (time resolution/spatial resolution) is really needed for readers? (Probably averaging/down

Re: [Wikitech-l] Map internationalization launched everywhere, AND embedded maps now live on 276 Wikipedias

2018-05-10 Thread Eran Rosenthal
Kudos. Great work! On Thu, May 10, 2018 at 2:11 AM, Yuri Astrakhan wrote: > Joe, thanks for heeding community's wish to have better maps, and > delivering, all within the short span of ~3.5 months. Very impressive > achievement! How can the community encourage WMF to

Re: [Wikitech-l] GSoC 2018 Introduction: Hagar Shilo

2018-05-03 Thread Eran Rosenthal
Good luck / בהצלחה! On Thu, May 3, 2018 at 7:39 PM, Amir E. Aharoni < amir.ahar...@mail.huji.ac.il> wrote: > Welcome / ברוכה הבאה! > > בתאריך יום ה׳, 3 במאי 2018, 19:27, מאת Hagar Shilo ‏< > hagarshi...@mail.tau.ac.il>: > > > Hi All, > > > > My name is Hagar Shilo. I'm a web developer and a

Re: [Wikitech-l] Code review for T15673

2018-05-02 Thread Eran Rosenthal
Done. Thanks for Lucas and Brian Wolff for reviewing the patch. On Wed, May 2, 2018 at 1:18 PM, Eran Rosenthal <eranro...@gmail.com> wrote: > Hi, > A long standing issue with references that it doesn't natively support > direction which is widely requested feature in RTL wikis.

[Wikitech-l] Code review for T15673

2018-05-02 Thread Eran Rosenthal
Hi, A long standing issue with references that it doesn't natively support direction which is widely requested feature in RTL wikis. Can someone with +2 permissions please review the gerrit item in https://gerrit.wikimedia.org/r/#/c/7738/ ? Thanks, Eran

Re: [Wikitech-l] What ways are there to include user-edited JavaScript in a wiki page? (threat model: crypto miners)

2018-03-15 Thread Eran Rosenthal
Lego already did a script to verify no external resources are loaded: https://phabricator.wikimedia.org/T71519 I think there is a Jenkins job running it on regular basis On Thu, Mar 15, 2018 at 6:30 AM, MZMcBride wrote: > David Gerard wrote: > >What ways are there to include

Re: [Wikitech-l] Wikidata vandalism dashboard (for Wikipedians)

2018-01-29 Thread Eran Rosenthal
Good idea, and thanks for sharing. Ideas for improvement: 1. Missing reference - the list by itself is not sufficient to determine whether some edit is bad or not, as there is no reference (Qid is not meaningful). It would be nice to have another column with "reference" value to compare -

Re: [Wikitech-l] Proposal regarding the handling of imported usernames

2017-11-30 Thread Eran Rosenthal
I suggested it on T20209#3535024 back in August, thanks Brad for taking care for it :) Just to add a sidenote regarding user=0 and user_text with some non IP value - I saw it was quite common in Wikidata recentchanges table few months ago with rc_type=5 (RC_EXTERNAL), though I can't see such

Re: [Wikitech-l] Previous mediawiki version test wiki

2017-09-22 Thread Eran Rosenthal
If you don't have access to old mediawiki version (whether it is group2, your own wiki or test3wiki suggested above), and suspects there is a regression of something that was working in the past, it is useful to indicate it in the bug description, and the maintainer of that feature can check it

[Wikitech-l] Orphan unbreak now

2017-08-17 Thread Eran Rosenthal
There are thousands of pages generating lua errors when accessing wikidata with Lua (T170039 ) and it affects on most/all wikis. The issue is lasting for few weeks since first reported. It seems to have no root cause, but the best current guess (AFAIK)

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-18 Thread Eran Rosenthal
I wrote 2 years ago a phantom-js based script to catch all JS errors in all wikis: https://github.com/eranroz/wiki-js-error-log See also: https://phabricator.wikimedia.org/T71519 On Wed, Jan 18, 2017 at 6:37 PM, Jeremy Baron wrote: > On Jan 18, 2017 11:26, "Amir E.

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-15 Thread Eran Rosenthal
TL;DR: The ONLY practical solution today it to use Lua. This sucks,but it works and scale well [in WP sense] - hewiki uses it heavily in infoboxs - to show list of actors in movies, or musical band members etc. Long version: Actually, specifically for list of presidents you don't need bot. Here

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-11 Thread Eran Rosenthal
Currently it is only possible with Lua. The documentation is in: https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua it is quite ugly to write such module (not cool SPARQL...) but it works, and you can expose it with nice interface to be used in wikipages. On Sun, Dec 11, 2016 at

Re: [Wikitech-l] [discovery] Weekly update for the week starting 2016-09-05

2016-09-10 Thread Eran Rosenthal
Thanks Deborah for the update. Just to mention another interesting feature (implemented but yet evaluated/activated) - dcausse have implemented ability to show search results also based on the DEFAULTSORT. (T134978 ) E.g when you search for Putin (and

Re: [Wikitech-l] Opening up MediaWiki dev summit in January?

2016-09-06 Thread Eran Rosenthal
> > But there is a problem: we have a capacity limit of 200 people. In hackthons (either Wikimedia hackathon or Wikimania hackthon days) there is not always a large enough hall for all the devs, and people may sit in different rooms. So the capability limit can be soften a bit - this could be a

Re: [Wikitech-l] Let's make parsoid i18n great again

2016-04-01 Thread Eran Rosenthal
I rebased https://gerrit.wikimedia.org/r/#/c/247914/ and added some documentation. It seems that jenkins got drunk :) On Fri, Apr 1, 2016 at 10:34 PM, C. Scott Ananian wrote: > On Fri, Apr 1, 2016 at 3:31 PM, Siebrand Mazeland > wrote: > > >

Re: [Wikitech-l] Let's make parsoid i18n great again

2016-03-31 Thread Eran Rosenthal
Usage statistics link is broken. Correct one: https://phabricator.wikimedia.org/T116020#1738654 On Thu, Mar 31, 2016 at 10:42 PM, Eran Rosenthal <eranro...@gmail.com> wrote: > TL;DR: Parsoid isn't i18n friendly and uses English keywords instead of > localized.[1] Is it a bug or fea

[Wikitech-l] Let's make parsoid i18n great again

2016-03-31 Thread Eran Rosenthal
TL;DR: Parsoid isn't i18n friendly and uses English keywords instead of localized.[1] Is it a bug or feature? Please voice your opinion! Longer version: For some funny reasons Parsoid is reading arrays from "right to left"[1], that is, it uses the LAST alias of the magic words rather than the

Re: [Wikitech-l] VisualEditor roadmap - extensibility within MediaWiki?

2016-01-22 Thread Eran Rosenthal
Good question (and no good answer) and I think it address to the weakest point of VE documentation - it doesn't have enough code examples, or high view documentation. (the best answer you can get may be https://doc.wikimedia.org/VisualEditor/master/#!/api/mw.libs.ve-method-addPlugin ) My advice

Re: [Wikitech-l] Cross-wiki search API?

2015-09-11 Thread Eran Rosenthal
See also related bug: https://phabricator.wikimedia.org/T71489 On Fri, Sep 11, 2015 at 12:45 PM, Magnus Manske wrote: > I seem to remember that all Wikimedia wikis now share a single search > index, and per-wiki searches are filtered through a tag for the

Re: [Wikitech-l] Min php version

2015-07-22 Thread Eran Rosenthal
side note: How come php 5.3.3 support broken accidentally? Isn't Jenkins script validates compatibility with the min php? :) On Wed, Jul 22, 2015 at 9:36 PM, Krinkle krinklem...@gmail.com wrote: On 20 Jul 2015, at 22:42, Legoktm legoktm.wikipe...@gmail.com wrote: OTOH, if we never bump

Re: [Wikitech-l] global cleanup of nowiki

2015-06-30 Thread Eran Rosenthal
Recently a little bird told me Main roundtrip quality target achieved for the Parsoid, having 99.95% percentage of clean roundtrip. Given this information, I would expect we can use the Parsoid to cleanup its own (previous) mess based on lots of bug fixes done during the time. Even if it can't do

[Wikitech-l] Implementing features for the sake of implementing features

2015-06-17 Thread Eran Rosenthal
Sometimes programmers waste their time for implementing non-useful/non-important features, but sometimes such features aren't just not useful, but harmful.[1; you are more than welcome to convince me otherwise] Both developers, designers and project managers should always ask themselves why do we

Re: [Wikitech-l] Attracting new talent to our projects

2014-12-31 Thread Eran Rosenthal
Just to mention (Yuvi Panda idea): http://www.gossamer-threads.com/lists/wiki/wikitech/348122 On Thu, Jan 1, 2015 at 2:25 AM, Jeremy Baron jer...@tuxmachine.com wrote: On Dec 31, 2014 7:22 PM, Gabriel Wicke gwi...@wikimedia.org wrote: Perhaps some fun HTTP headers

Re: [Wikitech-l] Our CAPTCHA is very unfriendly

2014-11-08 Thread Eran Rosenthal
+1 for disabling CAPTCHs (at least in signup form). Anyway, sysops already have enougth tools for treating abuse by spam bots using AbuseFilter (e.g with rate filter). On Sat, Nov 8, 2014 at 12:19 AM, MZMcBride z...@mzmcbride.com wrote: Tim Starling wrote: On 07/11/14 19:17, svetlana wrote:

Re: [Wikitech-l] what should i publish a gadget extension?

2013-12-15 Thread Eran Rosenthal
There is no conventional process for gadget publishing, but you may proposed it to English Wikipedia in: https://en.wikipedia.org/wiki/Wikipedia:Gadget/proposals and it is a community decision whether to adapt it or not (and please read first https://en.wikipedia.org/wiki/Wikipedia:Gadget) Other

Re: [Wikitech-l] Re-evaluating MediaWiki ResourceLoader's debug mode

2013-12-12 Thread Eran Rosenthal
Another point to look into if someones wants to refactor the RL debug=true: When loading VE with debug=true hundreds of modules are loaded (with different requests) and it takes long to load it. It would be nice to have an option of debug=0.5 :) in which all the resources (or at least the ve

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-10 Thread Eran Rosenthal
Nice feature, thanks! 1. I tried to use it in ?debug=1 mode, and it seems to give 0 size to many modules. 2. It would be nice if it would also give details about dependent modules (inclusive size vs exclusive size). for example when using ve with ?debug=1 and inspecting the net panel, it looks

Re: [Wikitech-l] Add tags when saving an edit ?

2013-08-16 Thread Eran Rosenthal
You can define convention for your edit summaries, and ask sysops to tag it with AbuseFilter. On Fri, Aug 16, 2013 at 9:30 PM, Bartosz Dziewoński matma@gmail.comwrote: No, but there's a bug about this[1] and there was a now-abandoned patch[2]. [1]

[Wikitech-l] VE/Migration guide for gadgets developers

2013-07-22 Thread Eran Rosenthal
Hi, When the ResourceLoader was deployed (or even before it) to production, there were migration development guides for gadget/extension developers: - http://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers -

Re: [Wikitech-l] Disambiguator extension deployed to all WMF wikis (action required)

2013-07-10 Thread Eran Rosenthal
Nice extension :) You may use generator to enjoy this new property. For example to check whether there is a disambig link from SOME_TITLE en.wikipedia.org/w/api.php?action=querygenerator=linkstitles=SOME_TITLEprop=pagepropsppprop=disambiguationgpllimit=500 (without this extension it was possible

Re: [Wikitech-l] Search documentation

2013-06-17 Thread Eran Rosenthal
I think that from user perspective, such help pages are not very useful since most users don't read help pages. Some features (the important ones) should be hinted in the search form itself. In hewiki we modified the [[MediaWiki:Search-summary]][1] to include a small expandable table with hints

Re: [Wikitech-l] State of MediaWiki's render action (parameter to index.php)

2013-05-20 Thread Eran Rosenthal
To include a page within iframe, sometimes it is reasonable to use ?printable=yes. For example there is a gadget in hewiki that shows Wikidata entry in iframe (within dialog) with ?printable=yes to allow uses to edit properties. (the benefit of printable=yes is that the JS is loaded, but there is

Re: [Wikitech-l] Global watchlist and watchlist wishlist

2013-05-06 Thread Eran Rosenthal
What happened to last years gsoc project in this area? Are there people working on getting it merged? Patchsets for watchlist are waiting for review for too long. The GSOC project: https://gerrit.wikimedia.org/r/#/c/16419/ other patchsets waiting for review:

Re: [Wikitech-l] Socializing changes

2013-04-06 Thread Eran Rosenthal
In hewiki we had a discussion in village pump before phase II deployment and there is a simple bureaucratic policy for converting templates to use the new {{#property}} feature: a discussion in Wikipedia:Village pump/templates for each template conversion before actually adding {{#property}} for

Re: [Wikitech-l] Code review statistics and trends

2012-08-23 Thread Eran Rosenthal
A real waste of time for reviewer is checking for code conventions which can be done automatically. Some static code analysis tools to automatically check conventions (spaces, missing messages['qqq']...) would help reduce the effort needed for review, allowing the human code reviewer to fully