Re: [Wikitech-l] Which hook to use and how for pre-save-modifications of wikitext?

2015-11-14 Thread Jackmcbarn
Look how subst: works in the braceSubstitution function in Parser.php. Basically, do this: if ( $parser->ot['wiki'] ) { /* do your stuff */ }. On Sat, Nov 14, 2015 at 5:36 PM, Purodha Blissenbach < puro...@blissenbach.org> wrote: > Hi, > > I want to implement something similar to expansion

Re: [Wikitech-l] Yandex?

2015-07-02 Thread Jackmcbarn
On Thu, Jul 2, 2015 at 3:55 PM, Legoktm legoktm.wikipe...@gmail.com wrote: So it appears that ContentTranslation will be contacting a third-party, closed source service? Are users going to be informed that this is the case? What data is being sent? I am also interested in the answer to

Re: [Wikitech-l] global cleanup of nowiki

2015-06-19 Thread Jackmcbarn
On Fri, Jun 19, 2015 at 4:38 AM, Amir E. Aharoni amir.ahar...@mail.huji.ac.il wrote: * '''nowiki/''' - this doesn't do anything at all. I couldn't reproduce it in any way, so it's probably a bug that was fixed. Beware that in some cases, nowiki/ is doing something important. For example,

[Wikitech-l] Permanently deleting change tags available by default

2015-02-05 Thread Jackmcbarn
Gerrit change 181958[1] was recently merged, which allows (among other things) the ability for sysops to irrecoverably delete change tags. Since irrecoverable deletion of anything from on-wiki is rather unprecedented, I think we should stop granting it to all sysops in DefaultSettings.php, so that

Re: [Wikitech-l] Permanently deleting change tags available by default

2015-02-05 Thread Jackmcbarn
On Thu, Feb 5, 2015 at 5:17 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: Note the deletions aren't intended to be irrevocable. Once phase 2 of this project is done someone could go through and re-add the tag to each thing it was removed from. Kind of like with Special:Nuke, someone

Re: [Wikitech-l] Urlencoding strip markers

2015-01-30 Thread Jackmcbarn
On Fri, Jan 30, 2015 at 2:02 PM, Brion Vibber bvib...@wikimedia.org wrote: On Thu, Jan 29, 2015 at 5:38 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: On Thu, Jan 29, 2015 at 2:47 PM, Arlo Breault abrea...@wikimedia.org wrote: https://gerrit.wikimedia.org/r/#/c/181519/

Re: [Wikitech-l] Changing contentmodel of pages

2015-01-24 Thread Jackmcbarn
I agree with pretty much all of this. In my mind, editcontentmodel is a temporary hack that should go away completely once the bugs that led to its creation are fixed. Jackmcbarn On Fri, Jan 23, 2015 at 1:00 AM, Legoktm legoktm.wikipe...@gmail.com wrote: Hi, On 01/09/2015 04:25 PM, Erik

Re: [Wikitech-l] template condition performance

2014-12-21 Thread Jackmcbarn
MediaWiki caches the result of templates called with no parameters, but not if they are called with parameters, so there would be a small performance benefit to splitting the template. However, [1] also comes into play here, so unless it'd be just as convenient to have the second template, or

Re: [Wikitech-l] JSON and Scribunto

2014-11-04 Thread Jackmcbarn
I think we should do it. The disadvantages aren't really disadvantages, since users could just write their own JSON-processing module if we don't give them one, and then those could both be issues anyway. Jackmcbarn On Tue, Nov 4, 2014 at 3:45 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote

Re: [Wikitech-l] Tor and Anonymous Users (I know, we've had this discussion a million times)

2014-10-01 Thread Jackmcbarn
On Wed, Oct 1, 2014 at 10:40 AM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: One simple solution would be to disallow IP edits via Tor, i.e. softblock[1] all Tor exit nodes instead of hardblocking them. [1]:

Re: [Wikitech-l] Tor and Anonymous Users (I know, we've had this discussion a million times)

2014-10-01 Thread Jackmcbarn
sleeper accounts from good IPs lettting them go stale beyond CU retention, and you have an infinite number of accounts you can then use to skip past the softblocks on tor and create havoc. Anything short of a hard block wont stop open proxy abuse. On Wed, Oct 1, 2014 at 10:44 AM, Jackmcbarn

Re: [Wikitech-l] Wrapping signatures with a span for discoverability

2014-09-30 Thread Jackmcbarn
are spoofable now. I don't think this is even worth worrying about. Jackmcbarn ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Wrapping signatures with a span for discoverability

2014-09-30 Thread Jackmcbarn
of this would be the performance hit of looking up all those signatures. Some pages have hundreds, if not thousands, of different users' signatures. Jackmcbarn ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo

Re: [Wikitech-l] Removal of Scribunto's Allow saving code with errors option

2014-09-29 Thread Jackmcbarn
how much broken Lua is out there in the wild on WMF wikis? On 29 September 2014 01:17, Jackmcbarn jackmcb...@gmail.com wrote: Scribunto has an option to allow code to be saved even if it contains syntax errors that prevent it from ever working. The original reason for this feature

Re: [Wikitech-l] Removal of Scribunto's Allow saving code with errors option

2014-09-29 Thread Jackmcbarn
it. Jackmcbarn On Mon, Sep 29, 2014 at 9:53 PM, MZMcBride z...@mzmcbride.com wrote: Jackmcbarn wrote: Scribunto has an option to allow code to be saved even if it contains syntax errors that prevent it from ever working. The original reason for this feature was to make it more convenient to save

[Wikitech-l] Removal of Scribunto's Allow saving code with errors option

2014-09-28 Thread Jackmcbarn
don't know any Lua are breaking otherwise-functional modules with it. Because of this, and because it's easy enough to save incomplete code by simply wrapping it all in a multiline comment, I plan to remove the option unless objections are raised. Jackmcbarn

[Wikitech-l] Dynamically generating files from Scribunto

2014-09-16 Thread Jackmcbarn
it equivalent to #4 At the moment, I'm leaning towards option 3. Are there any other thoughts on these, or any additional ideas? Jackmcbarn ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech

[Wikitech-l] Converting {{!}} to a magic word

2014-06-09 Thread Jackmcbarn
/ for more details about this proposed change. Regards, Jackmcbarn ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l