Hi,

can anybody describe briefly how to process wiki templates, e.g.
{{Main|Climate of Moscow}} in article 
http://en.wikipedia.org/wiki/Moscow?action=raw
?

When I execute following code, I get DOM for page, but templates is
left unexpanded.

from mwlib.uparser import parseString

fn = 'test.wiki'
wdom = parseString(title=fn, raw=open(fn).read().decode('utf-8'))

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to