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).