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

I am building a language switching feature for my wikia. The logic goes like this, if xx = en, display english language. if xx = th, display thailand langauge. I am trying to retrieve the xx from a url query, http://example.com/wiki/test_page?lang=en. However, searching around the community and google, I am still unable to find a guide/tutorial to implement this language switching.

Any help would be highly appreciated anyone.  