UILANGCODE

Jump to: navigation, search
Edited by author.
Last edit: 07:43, 2 September 2011

Hi Niklas,

we have UILANGCODE here (btw. where does it come from, codewise? Couldn't find the implementation) but there is nothing having a similar functionality in MediaWiki proper. Are you planning something like this?

I am asking in a context of having templates, or help pages, address users in either standard or zxx-formal speech, but there are more uses.

Purodha Blissenbach07:18, 2 September 2011

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