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

I have another problem now. In the current state the PhyWelcome template is in, it works well and can correctly choose between PhyWelcome-reg and PhyWelcome-anon when it is just displayed, but as soon as I choose to substitute the template, it always chooses PhyWelcome-reg for some reason. If I on the other hand grab all code in the template and copy it to place manually, the correct template is chosen, so it seems like the template isn't really substituted when I use, but something else, similar but not the same to a manual substitution, happens. I have included some

before,   and other miscellaneous templates that I want substituted; maybe this has something to do with it? Once again, I have really no idea of what could be wrong or how I should debug this. It doesn't really feel sane either to make a huge amount of Wikipedia edits just to find a bug in a template.