Thread:DerpTheMerp/@comment-31781065-20171029171641

/*jshint browser:true jquery:true laxbreak:true smarttabs:true*/ /*global mediaWiki */ // // Add "Edit Greeting" button to Message Wall if ( mediaWiki.config .get ( 'wgNamespaceNumber' ) === 1200 ) { ( <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">function <span class="br0" style="color:rgb(0,153,0);">( window<span class="sy0" style="color:rgb(51,153,51);">, <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">$ <span class="sy0" style="color:rgb(51,153,51);">, mw<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ 	<span class="st0" style="color:rgb(42,161,152);">"use strict" <span class="sy0" style="color:rgb(51,153,51);">;  	<span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">var messages <span class="sy0" style="color:rgb(51,153,51);">= <span class="br0" style="color:rgb(0,153,0);">{  		en<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{  			editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Edit greeting' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Greeting history' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Wall history' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, be<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, ca<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Edita la benvinguda' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial de la benvinguda' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial del mur' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, de<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Begrüßung bearbeiten' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Versionen ansehen' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Versionen der Nachrichten' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, es<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editar bienvenida' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial de la bienvenida' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial del muro' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, fr<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Modifier accueil' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historique accueil' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historique du mur' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, gl<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editar benvida' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial da benvida' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial do muro' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, hi<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, hu<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Üdvözlet szerkesztése' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Üdvözlet laptörténete' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Fal története' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, it<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Modifica saluto' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Cronologia del saluto' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Cronologia della bacheca' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, kn<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, mo<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, nl<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Bewerk prikbordbegroeting' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Prikbordbegroeting geschiedenis' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Prikbord geschiedenis' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, oc<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editatz benvenguda' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Istoric de la benvenguda' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Istoric del mur' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, pl<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Edytuj powitanie' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historia powitania' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historia tablicy' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, pt<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editar saudação' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Histórico de saudações' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Histórico do mural' <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);">'pt-br' <span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editar saudação' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Histórico de saudações' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Histórico do mural' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, ro<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Modificarea salutului' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Istoricul salutului' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Istoricul peretelui de mesaje' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, ru<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, uk<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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);">, val<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Editar benvinguda' <span class="sy0" style="color:rgb(51,153,51);">, history<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial de la benvinguda' <span class="sy0" style="color:rgb(51,153,51);">, wallHistory<span class="sy0" style="color:rgb(51,153,51);">: <span class="st0" style="color:rgb(42,161,152);">'Historial del mur' <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, zh<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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="st0" style="color:rgb(42,161,152);">'zh-hans' <span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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="st0" style="color:rgb(42,161,152);">'zh-hant' <span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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="st0" style="color:rgb(42,161,152);">'zh-tw' <span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ editGreeting<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);">, history<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);">, wallHistory<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="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">; messages <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);">extend <span class="br0" style="color:rgb(0,153,0);">( messages.<span class="me1" style="color:rgb(38,139,210);">en <span class="sy0" style="color:rgb(51,153,51);">, messages<span class="br0" style="color:rgb(0,153,0);">[ mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgUserLanguage' <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(7,54,66);">function <span class="re0" style="color:rgb(38,139,210);">checkSetIn <span class="br0" style="color:rgb(0,153,0);">( map<span class="sy0" style="color:rgb(51,153,51);">, what<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);">for <span class="br0" style="color:rgb(0,153,0);">( <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">var i <span class="sy0" style="color:rgb(51,153,51);">= <span class="nu0" style="color:rgb(211,54,130);">0 <span class="sy0" style="color:rgb(51,153,51);">, l <span class="sy0" style="color:rgb(51,153,51);">= what.<span class="me1" style="color:rgb(38,139,210);">length <span class="sy0" style="color:rgb(51,153,51);">; i <span class="sy0" style="color:rgb(51,153,51);">< l <span class="sy0" style="color:rgb(51,153,51);">; <span class="sy0" style="color:rgb(51,153,51);">++ i<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);">( map<span class="br0" style="color:rgb(0,153,0);">[ what<span class="br0" style="color:rgb(0,153,0);">[ i<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="kw1" style="font-weight:bold;color:rgb(133,153,0);">return <span class="kw2" style="font-weight:bold;color:rgb(181,137,0);">true <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="kw1" style="font-weight:bold;color:rgb(133,153,0);">return <span class="kw2" style="font-weight:bold;color:rgb(181,137,0);">false <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Message Walls are always in Edit mode in Oasis. <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <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);">{ view<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(211,54,130);">1 <span class="sy0" style="color:rgb(51,153,51);">, edit<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="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">[ mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgAction' <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="nu0" style="color:rgb(211,54,130);">1 <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);">return <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// We show the button for the owning user, and for sysops. <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// We don't show it for anyone else since you get a permission error when trying to <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// access someone else's message. Why? Beats me. <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">var user <span class="sy0" style="color:rgb(51,153,51);">= mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgTitle' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// NOTE: Anons can edit their greetings as well, not going to support that though since <span class="co1" style="font-style:italic;color:rgb(147,161,161);">//   I can't easily see what their IP address is to figure out if they own the wall or not. <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( user <span class="sy0" style="color:rgb(51,153,51);">!== mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgUserName' <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="co1" style="font-style:italic;color:rgb(147,161,161);">// Not self <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( <span class="sy0" style="color:rgb(51,153,51);">! checkSetIn<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">{ sysop<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(211,54,130);">1 <span class="sy0" style="color:rgb(51,153,51);">, staff<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(211,54,130);">1 <span class="sy0" style="color:rgb(51,153,51);">, threadmoderator<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);">, mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgUserGroups' <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="co1" style="font-style:italic;color:rgb(147,161,161);">// Not sysop user.<span class="me1" style="color:rgb(38,139,210);">indexOf <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="sy0" style="color:rgb(51,153,51);">!== <span class="sy0" style="color:rgb(51,153,51);">- <span class="nu0" style="color:rgb(211,54,130);">1 <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Archived talk page <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);">return <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="kw0" style="font-weight:bold;color:rgb(7,54,66);">function <span class="re0" style="color:rgb(38,139,210);">createOasis <span class="br0" style="color:rgb(0,153,0);">( url<span class="sy0" style="color:rgb(51,153,51);">, wallUrl<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);">( <span class="st0" style="color:rgb(42,161,152);">'#EditMessageWallGreeting' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">length <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);">return <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Double run <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">var $button <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);">( window.<span class="me1" style="color:rgb(38,139,210);">Mustache .<span class="me1" style="color:rgb(38,139,210);">render <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">' ' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<nav class="wikia-menu-button">' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<a accesskey="e" href="' <span class="sy0" style="color:rgb(51,153,51);">+ url <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'?action=edit">' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<span class="sprite edit-pencil" style="display:inline-block; margin-right:1ex; vertical-align: text-bottom"> ' <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);">+ <span class="st0" style="color:rgb(42,161,152);">'</a> ' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Whitespace is needed here for negative margin on drop to work <span class="st0" style="color:rgb(42,161,152);">'  ' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<ul class="WikiaMenuElement" style="min-width:100%">' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<li><a href="' <span class="sy0" style="color:rgb(51,153,51);">+ url <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'?action=history"></a></li>' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'<li><a accesskey="h" href="' <span class="sy0" style="color:rgb(51,153,51);">+ wallUrl <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'?action=history"></a></li>' <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'</ul> ' <span class="sy0" style="color:rgb(51,153,51);">, messages <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">prependTo <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'#WikiaMainContentContainer' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">children <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);">if <span class="br0" style="color:rgb(0,153,0);">( window.<span class="me1" style="color:rgb(38,139,210);">WikiaButtons <span class="sy0" style="color:rgb(51,153,51);">&& window.<span class="me1" style="color:rgb(38,139,210);">WikiaButtons .<span class="me1" style="color:rgb(38,139,210);">menuButtons <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ window.<span class="me1" style="color:rgb(38,139,210);">WikiaButtons .<span class="me1" style="color:rgb(38,139,210);">add <span class="br0" style="color:rgb(0,153,0);">( $button<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="kw0" style="font-weight:bold;color:rgb(7,54,66);">function <span class="re0" style="color:rgb(38,139,210);">createMonobook <span class="br0" style="color:rgb(0,153,0);">( url<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);">'#ca-edit > a' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">prop <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'href' <span class="sy0" style="color:rgb(51,153,51);">, url <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(42,161,152);">'?action=edit' <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);">( messages.<span class="me1" style="color:rgb(38,139,210);">editGreeting <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);">} mw.<span class="me1" style="color:rgb(38,139,210);">loader .<span class="me1" style="color:rgb(38,139,210);">load <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'mediawiki.Title' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(42,161,152);">'wikia.mustache' <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);">null <span class="sy0" style="color:rgb(51,153,51);">, <span class="kw2" style="font-weight:bold;color:rgb(181,137,0);">true <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="kw0" style="font-weight:bold;color:rgb(7,54,66);">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);">{ 		mw.<span class="me1" style="color:rgb(38,139,210);">loader .<span class="me1" style="color:rgb(38,139,210);">using <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(42,161,152);">'mediawiki.Title' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(42,161,152);">'wikia.mustache' <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(7,54,66);">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="br0" style="color:rgb(0,153,0);">( mw.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'skin' <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);">'oasis' <span class="sy0" style="color:rgb(51,153,51);">? createOasis <span class="sy0" style="color:rgb(51,153,51);">: createMonobook<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);">new mw.<span class="me1" style="color:rgb(38,139,210);">Title <span class="br0" style="color:rgb(0,153,0);">( user<span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(211,54,130);">1202 <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">getUrl <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="co1" style="font-style:italic;color:rgb(147,161,161);">// Message Wall Greeting <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">new mw.<span class="me1" style="color:rgb(38,139,210);">Title <span class="br0" style="color:rgb(0,153,0);">( user<span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(211,54,130);">1200 <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">getUrl <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Message Wall <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="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">( window<span class="sy0" style="color:rgb(51,153,51);">, jQuery<span class="sy0" style="color:rgb(51,153,51);">, mediaWiki<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="co1" style="font-style:italic;color:rgb(147,161,161);">// Remove the [broken] talk page link from the Greeting page. <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( mediaWiki.<span class="me1" style="color:rgb(38,139,210);">config .<span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">get <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(42,161,152);">'wgNamespaceNumber' <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);">1202 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ jQuery<span class="br0" style="color:rgb(0,153,0);">( <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">function <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="br0" style="color:rgb(0,153,0);">{ 	<span class="co1" style="font-style:italic;color:rgb(147,161,161);">// Monobook, Oasis  	<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);">'#ca-talk, .WikiaPageHeader a[data-id="comment"]' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(38,139,210);">remove <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);">} <ac_metadata title="Code"> </ac_metadata>