Re: [Wikitech-l] Merge Extension:Update into core of mediawiki

2014-12-29 Thread Thomas Mulhall
Ok. On Monday, 29 December 2014, 4:06, MZMcBride z...@mzmcbride.com wrote: Thomas Mulhall wrote:   Hi what about merging Extension:Update in core of mediawiki the extension is at https://www.mediawiki.org/wiki/Extension:Update and tells the user when there is an update to mediawiki

[Wikitech-l] Fwd: find previous section title

2014-12-29 Thread Moritz Schubotz
Dear all, is there an API for extraction the previous section title from a wikipage? My situation is the following. I have a wikipage that looks like that: page intro ==section1== text math id=1.../math text math id=2.../math ===section 2=== text math id=3.../math /page And I want to know the

Re: [Wikitech-l] Fwd: find previous section title

2014-12-29 Thread Gabriel Wicke
Moritz, you can certainly do this in HTML, either using the PHP parser output or Parsoid. Parsoid output makes it easier to identify math extension output. If you need the wikitext for the heading, then Parsoid can also give you the source offsets of the that in data-parsoid (see the dsr property