https://bugzilla.wikimedia.org/show_bug.cgi?id=55307
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Long story short: it's impossible to do without another API query. We can use
http://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=He...
to do this. We cannot do it using regexps because of template expansions.