For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
I see no limitations here on the number of queries this could cause per page. Shouldn't this be limited like #ifexist and pagesincategory?
Wait, sorry, this shouldn't cause queries, of course. They never need be unstubbed.
Don't these parser functions need to be localised and added to MagicWords.php?
See r46822 for an example of this...
they're already there as magic words