2012-05-01: Support was added for Waymarked Trails. (Other news...)
UILANGCODE
It's a local hack, intended for use in the sidebar for the lack of better solution - Special:MyLanguage is one candidate for replacing it.
Special:MyLanguage redirects to the main page at the moment. At least there is code to look at :-) Thanks.
It is used like Special:MyLanguage/Page name, and it goes to Page name/uilangcode if the page exists.
Yes, I had been reading the code and hit "save page" too early above.
Understood. Looks good for help pages.
If we were to use this redirect thing in template transclusions, that would mean to me have /lang templates for supported languages and a fallback template in the parent page, and modifying the parser to look for /lang subpages. That seems not easy and straightforward given the fact that there are many templates out there having a /doc subpage for documentation which can easily be confused with a language code subpage.