UILANGCODE

Fragment of a discussion from User talk:Nike
Jump to: navigation, search

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.

Nike07:26, 2 September 2011
Edited by author.
Last edit: 08:21, 2 September 2011

Special:MyLanguage redirects to the main page at the moment. At least there is code to look at :-) Thanks.

Purodha Blissenbach08:01, 2 September 2011

It is used like Special:MyLanguage/Page name, and it goes to Page name/uilangcode if the page exists.

Nike08:14, 2 September 2011

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.

Purodha Blissenbach08:20, 2 September 2011
 
 
 
Personal tools

Variants
Actions
Translators
Navigation
Toolbox
Google AdSense