FIRSTwiki: CD namespace

I’m trying to code a CD namespace. So instead of {{CDThread2|42|a thread}}, you’d write [CD:Thread:42|a thread]]. There’s only one problem: I don’t know PHP! I think I’m doing ok so far, but I would appreciate help.

The MediaWiki source is available at Sourceforge. (recomend CVS folder)

Anyone interested should IM/PM me. It’s a little complex.