Board Thread:Support Requests - Getting Technical/@comment-27076366-20160122041935/@comment-1117661-20160122063332

There's no way to directly tap into the query and get the value, but something similar can be done with  (mw:Help:Magic words)

You can set up a bunch of messages (all starting with "Custom-" are whitelisted) adding a lang code at the end like so: MediaWiki:Custom-message/fr

This way it'll return the message depending on language of the user and default to wiki language for logged-off.

If you don't want set up separate messages for all strings you can just make ones for language codes (ie. MediaWiki:Custom-code = en, MediaWiki:Custom-code/pl = pl etc.) and do the logic in a template.

And ofc, language can be changed with a  parameter (along with the rest of interface)

http://community.wikia.com/wiki/Thread:979258?uselang=es

Note: if English isn't the language of your wikia, you put En string in a message with  and the wiki language goes to the main one.