Thread:Project:Support desk/Redlink appears instead of transcluded template

Versions: MediaWiki: 1.23.1 PHP: 5.3.27 (cgi-fcgi) MySQL: 5.5.32-cll-lve

I stole the idea of template documentation subpages from Wikipedia. I have implemented it in another (private) wiki, where it works as expected. But on this wiki, two specific templates are not working correctly. Nothing else seems to be affected, though I cant see anything in these templates that would be causing this problem.

Visiting this page should transclude the documentation for Template:MT_doc via Template:MT_doc/doc. But instead it shows a redlink Template:MT doc/doc. However, clicking on the redlink does not create or edit Template:MT_doc; it views it - because, after all, it exists. So why is it not being transcluded?

The same behaviour occurs again on that page. The first thing there should be an alert template; instead, a redlink is shown Template:Alert. Again, clicking on the redlink "correctly" visits Template:Alert instead of creating or editing it.

Ive tried clearing the object cache, but that didnt fix it. Any help welcome. Thanks in advance.