2009/10/29 Laurent <[email protected]>: > I'm trying to retrieve all the templates from a page as XML strings so > that I can retrieve their parameters and values. For that I'm using > the "expandtemplates" action with "generatexml" set to true. It works > well for very small articles however not for large ones (above approx. > 2000 characters). In this cases, the API fails because the query > string is too big (Error ERR_TOO_BIG). > > Is there any way around this issue? Or maybe I'm not using the right > approach? Any help would be appreciated. > Are you grabbing a page's content in one request (prop=revisions), then feeding it to action=expandtemplates in a second request? In that case, you can take a shortcut by passing the &rvexpandtemplates&rvgeneratexml parameters to prop=revisions.
Roan Kattouw (Catrope) _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
