Thread:Project:Support desk/Help with template, please!/reply (4)

Hmm, apparently (after some debugging) when in subst mode, it was comparing a literal, not what you expect its value to be. You need to replace the with  (and ditto for uc: part.

Debugging templates can be hard. w:Special:expandtemplates and be useful, so can the api but both are kind of complicated to use if you're not already very familiar with how templates work. (In this case, I used var_dump on my local install, but that's generally not an option for most people ;)