On 18/01/07, Lane, Ryan <Ryan.Lane(a)ocean.navo.navy.mil> wrote:
I didn't even think about templates when I was
writing the extension,
but now that someone has mentioned it, I'm feeling kind of a "duh"
moment. Is there any good documentation around on how to do this type of
thing, or any recommended parser extensions to look at? (I've already
looked at [[meta:MediaWiki extensions FAQ]] and
Sometimes, it's safe to call the parent parser back on the extension
input, and sometimes, it's not. You could attempt
$parser->replaceVariables( $text ); if things seem to work, then it's
probably okay, but you might like to do some recursion testing to
check nothing's going to die horribly and unexpectedly.
Another approach is to declare a second, local-scope parser - clone
the $parser object passed, and see if that does it.