Hi there,

I'm using the API to extract the raw wiki text from my pages, using
the "?action=query&titles=Main_Page&export&exportnowrap" syntax.  That
works perfectly.

Now I would like to get the templates expanded out in the result, so I
use: 
"?action=query&titles=Main_Page&prop=revisions&rvlimit=1&rvprop=content&rvexpandtemplates",
which does the job, as expected, but it also strips out the comments.

My problem is that the comments are meaningful to me (I use them to
help process the wiki text in subsequent steps).

Is there a way to expand templates with the API, but leave the
comments intact?

Thanks,
Kevin

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to