I forgot to mention that this only happens when the extension calls
$wgOut->parse(). If I comment out those bits, the extension works
fine, even when a page includes multiple templates invoking it.
I run a MediaWiki-based site, and I am working on writing an
extension, of the type that adds an XML-style tag which is processed
by a callback. On first inspection it works fine, but if a page
includes multiple templates, each of which contains an instance of
the extension's tag, then only the last one displays correctly, and
all the others appear as a long string starting with UNIQ and
followed by mostly-random-looking data (but also containing the tag's
name in the middle).
I can only find a brief reference to this issue (or a similar-
sounding one), at <http://meta.wikimedia.org/wiki/
MediaWiki_extensions_FAQ#Templates_with_extension_tags>, but I don't
understand what the fix is. I'm running the latest versions of
MediaWiki and PHP. What am I doing wrong?
I'm looking into writing an script to (login and) edit MW page
content, via HTTP. Is there a sample script that anyone can
recommend? Alternatively, is there any documentation on how MW
handles login sessions (eg, what cookies it sets), etc?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development