Last modified: 2010-05-15 15:56:39 UTC
I've written some extensions which as part of their output return links to other
pages on my site.
I do this by building up the text for the link using the normal wiki syntac and
then pass the resulting string through the parser:
Under 1.5.5 links created in such a way were picked up when the page containing
the extension was edited and were included in the pagelinks table (and thus in
the Special:Mostlinked page).
Under 1.6.6 this is no longer the case. The pages display perfectly and the
links work but the pagelinks table is not updated.
Run it through the parser object you've been passed, so the links get
See Cite.php for examples.
This is the Parser object that was introduced at 1.6 I take it? So basically
anything written for 1.5 (which didn't get the parser object passed) will need
A third parameter; the reference to the current parser, was added to parser hook
rendering functions as of 1.5.8.
Extensions often need rewriting to reflect changes to the branch(es) they intend