The wikipedia API appears to be evolving regularly. I noticed today that it seems to includes some functions for the expansion of templates, an issue known to be complicated. Upon first try of this function it doesn’t appear to work properly yet. Must remember to come back to this as it could be a crucial point in whether we can rely on wikimarkup as our data source or continue the somewhat problematic inspection of rendered html.
—