On Thu, Mar 7, 2013 at 2:38 PM, Max Semenik <maxsem.wiki(a)gmail.com> wrote:
On 07.03.2013, 23:23 Jim wrote:
Is there an easy way to get the parameters passed
to each template
(which I can enumerate with query&prop=templates)? At present I have a
dumb state machine that counts curly braces, but I wonder if there is an
API call that will provide me with the wikitext of each parameter (keyed
by index and/or parameter name).
No.
The closest you can come is to use action=parse&generatexml=1, which
will give you a version of the wikitext with XML tags delimiting
various bits including template/parser function calls and their
parameters.
Personally, I'd stick with the state machine.