Thread:Superluigi6/@comment-5272302-20160115020209/@comment-4536113-20160115022632

The code we have in Mediawiki:Wikia.js is /** Language dropdown **/ function appendLanguageDropdown ( ) { var borderColor  = $ ( '.WikiaPageHeader .comments' ) .css ( 'border-top-color' ) ; <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var server <span class="sy0" style="color:rgb(51,153,51);"> = wgServer.<span class="me1" style="color:rgb(38,139,210);">replace <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">"http://" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(42,161,152);">"" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var html <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<nav style="border: 1px solid ' <span class="sy0" style="color:rgb(51,153,51);">+ borderColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">';" class="wikia-menu-button secondary combined chooselanguage"> <img style="margin-top: 3px; margin-left: 2px; margin-right: 4px;" class="chevron" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D"> <ul style="min-width: 42px; margin-top: 1px; border: 1px solid ' <span class="sy0" style="color:rgb(51,153,51);">+ borderColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'; border-top: none; text-align:center;" class="WikiaMenuElement" style="min-width:20px;"></ul> ' <span class="sy0" style="color:rgb(51,153,51);">; flags <span class="sy0" style="color:rgb(51,153,51);"> = <span class="br0" style="color:rgb(0,153,0);">{ <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'de' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="de-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/de.svg" alt="German">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'en' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="en-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/us.svg" alt="English">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'es' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="es-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/es.svg" alt="Spanish">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'ja' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="ja-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/jp.svg" alt="Japanese">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pl' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="pl-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/pl.svg" alt="Polish">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pt' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="pt-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/pt.svg" alt="Portuguese">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pt-br' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="pt-br-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/br.svg" alt="Brazilian Portuguese">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'ru' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="ru-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/ru.svg" alt="Russian">' <span class="sy0" style="color:rgb(51,153,51);">; flags<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'tr' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(42,161,152);">'<img class="tr-image" style="width:20px; height:15px; border-radius:3px" src="http://lipis.github.io/flag-icon-css/flags/4x3/tr.svg" alt="Turkish">' <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaPageHeader .comments' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">after <span class="br0" style="color:rgb(0,153,0);">( html<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; languages <span class="sy0" style="color:rgb(51,153,51);"> = <span class="br0" style="color:rgb(0,153,0);">{ <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaArticleInterlang ul li a' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">each <span class="br0" style="color:rgb(0,153,0);">( <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ 		<span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var languageFull <span class="sy0" style="color:rgb(51,153,51);"> = <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( this<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">text <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var href <span class="sy0" style="color:rgb(51,153,51);"> = <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( this<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">attr <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'href' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var pageNameArray <span class="sy0" style="color:rgb(51,153,51);"> = href.<span class="me1" style="color:rgb(38,139,210);">split <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'/' <span class="br0" style="color:rgb(0,153,0);">) <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var pageName <span class="sy0" style="color:rgb(51,153,51);"> = pageNameArray<span class="br0" style="color:rgb(0,153,0);">[ pageNameArray.<span class="me1" style="color:rgb(38,139,210);">length <span class="sy0" style="color:rgb(51,153,51);">- <span class="nu0" style="color:rgb(211,54,130);">1 <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">switch <span class="br0" style="color:rgb(0,153,0);">( languageFull<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Deutsch" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'de' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"English" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'en' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Español" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'es' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"日本語" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'ja' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Polski" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pl' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Português" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pt' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Português do Brasil" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'pt-br' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Русский" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'ru' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">case <span class="st0" style="color:rgb(42,161,152);">"Türkçe" <span class="sy0" style="color:rgb(51,153,51);">: languages<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'tr' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);"> = href<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">break <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; 	<span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var language <span class="sy0" style="color:rgb(51,153,51);"> = wgContentLanguage<span class="sy0" style="color:rgb(51,153,51);">;  	<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ .<span class="me1" style="color:rgb(38,139,210);">each <span class="br0" style="color:rgb(0,153,0);">( flags<span class="sy0" style="color:rgb(51,153,51);">, <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( key<span class="sy0" style="color:rgb(51,153,51);">, value<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( key <span class="sy0" style="color:rgb(51,153,51);"> === language<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaPageHeader .chooselanguage' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">prepend <span class="br0" style="color:rgb(0,153,0);">( flags<span class="br0" style="color:rgb(0,153,0);">[ key<span class="br0" style="color:rgb(0,153,0);">] <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">else <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( languages<span class="br0" style="color:rgb(0,153,0);">[ key<span class="br0" style="color:rgb(0,153,0);">] <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaPageHeader .chooselanguage ul' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">append <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'<a style="display: inline; padding: 0; height: 0; line-height: 0;" class="' <span class="sy0" style="color:rgb(51,153,51);">+ key <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'-link" href="' <span class="sy0" style="color:rgb(51,153,51);">+ languages<span class="br0" style="color:rgb(0,153,0);">[ key<span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'"><li style="border-top: 1px solid ' <span class="sy0" style="color:rgb(51,153,51);">+ borderColor <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'; padding-top: 3px; padding-bottom: 3px;" class="' <span class="sy0" style="color:rgb(51,153,51);">+ key <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'">' <span class="sy0" style="color:rgb(51,153,51);">+ flags<span class="br0" style="color:rgb(0,153,0);">[ key<span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'</li></a>' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; 	<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaPageHeader .chooselanguage' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">on <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'click' <span class="sy0" style="color:rgb(51,153,51);">, <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( this<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">hasClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'active' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);"> === <span class="kw2" style="font-weight:bold;color:rgb(181,137,0);">false <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( this<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">addClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'active' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">else <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( this<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">removeClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'active' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; 	<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaPageHeader .chooselanguage' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">on <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'mouseleave' <span class="sy0" style="color:rgb(51,153,51);">, <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var that <span class="sy0" style="color:rgb(51,153,51);"> = this<span class="sy0" style="color:rgb(51,153,51);">; <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">var timeOut <span class="sy0" style="color:rgb(51,153,51);"> = setTimeout<span class="br0" style="color:rgb(0,153,0);">( <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( that<span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">removeClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'active' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(211,54,130);">500 <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.chooselanguage' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">on <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'mouseenter' <span class="sy0" style="color:rgb(51,153,51);">, <span class="kw0" style="font-weight:bold;color:rgb(88,110,117);">function <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ 			clearTimeout<span class="br0" style="color:rgb(0,153,0);">( timeOut<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">;  		<span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">}  <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'.WikiaArticleInterlang' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">length <span class="sy0" style="color:rgb(51,153,51);">> <span class="nu0" style="color:rgb(211,54,130);">0 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{  	addOnloadHook<span class="br0" style="color:rgb(0,153,0);">( appendLanguageDropdown<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">}

I think this should work.

Another one that's on the front page and related to interlanguage links at least is

pt-br:













if that's of any use as well.

If these don't work, let me know.