Re: [Wikitech-l] Modifying img src values via extension?

2012-11-03 Thread Dmitriy Sintsov
3 Ноябрь 2012 г. 2:00:47 пользователь Platonides (platoni...@gmail.com) написал: On 01/11/12 06:37, Dmitriy Sintsov wrote: Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... }

Re: [Wikitech-l] Modifying img src values via extension?

2012-11-02 Thread Platonides
On 01/11/12 06:37, Dmitriy Sintsov wrote: Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf['class'] = $myParser; Such way, multiple extensions could nest (override) default

[Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Daniel Barrett
Is there any easy way (via extension) to modify the src attribute of images on wiki pages? I see hooks for modifying href values - LinkBegin and LinkEnd. But I don't see something similar for images, whose URLs seem to be produced via File::getUrl(). Purpose: I want to add a querystring

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Brion Vibber
On Wed, Oct 31, 2012 at 6:53 AM, Daniel Barrett d...@vistaprint.com wrote: Is there any easy way (via extension) to modify the src attribute of images on wiki pages? I see hooks for modifying href values - LinkBegin and LinkEnd. But I don't see something similar for images, whose URLs seem

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
31 Октябрь 2012 г. 21:34:25 пользователь Brion Vibber (br...@pobox.com) написал: On Wed, Oct 31, 2012 at 6:53 AM, Daniel Barrett d...@vistaprint.com wrote: Is there any easy way (via extension) to modify the src attribute of images on wiki pages? I see hooks for modifying href values -

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf['class'] = $myParser; Such way, multiple extensions could nest (override) default class. Even monkey patching is not so much needed

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf['class'] = $myParser; Such way, multiple extensions could nest (override) default class. Even monkey patching is not so much needed