Thread:User talk:CodeCat/Template:sw-noun/new/reply

I've cleaned up the code significantly and I have spotted the error thanks to that alone. Can you see it? There are also two more mistakes, under M-WA CLASS and under U CLASS, there are "if"s with more than two "branches". You probably meant to use either ifeq or switch there.