Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
<html><head><scripttype="text/javascript"src="http://code.jquery.com/jquery.min.js"></script><scripttype="text/javascript"src="mediawiki.cookie.js"></script></head><body><styletype="text/css">#centralNotice.collapsed#editorSurvey2011{display:none;}#editorSurvey2011{position:relative;overflow:hidden;margin-bottom:0.5em!important;background-color:#d7e4fa;background-repeat:repeat-x;border:solid1px#a7d7f9;display:none;}#editorSurvey2011-content{position:relative;padding:20px;text-align:center;}#editorSurvey2011-logo{position:absolute;top:20px;left:25px;background-image:url(http://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Wikimedia_logo_text_RGB.svg/60px-Wikimedia_logo_text_RGB.svg.png);height:60px;width:60px;background-repeat:no-repeat;}#editorSurvey2011#cn-toggle-box{position:absolute;z-index:98;top:0px;right:0px;float:right;font-size:0em;}</style><divid="editorSurvey2011"style="display:none"><divid="editorSurvey2011-logo"></div><divid="editorSurvey2011-content"><spanstyle="font-size: 1em;line-height: 1.5em;"><aid="editorSurveyLink"style="color:black"target="_blank"href="{{{BannerLink}}}">{{{BannerHtml}}}</a></span></div><divid="cn-toggle-box"><aid="editorSurveyClose"href="#"><imgborder="0"src="http://bits.wikimedia.org/skins-1.17/common/images/closewindow.png"alt="Close"/></a></div></div><scripttype="text/javascript">varconstSamplingRate={{{SamplingRate}}};varconstDisplayTimeSpan={{{DisplayTimeSpan}}};varconstDone='done';varconstTodo='todo';$(document).ready(function(){wmdeslog('$(document).ready');// If the survey should not be hidden...if(mw.cookie.get('surveyStatus2')!=constDone){initSurveyIfNeeded();}});functioninitSurveyIfNeeded(){wmdeslog('initSurveyIfNeeded');// If the users has been picked to participate in the surveyif(mw.cookie.get('surveyStatus2')==constTodo){varstartTime=mw.cookie.get('surveyStartTime2');// If the start of the survey is set, display it when still within 5 mins, otherwise set done.if(startTime!=null){if(parseInt(startTime)+(1000*60*constDisplayTimeSpan)>(newDate()).getTime()){displaySurvey();}else{setSurveyStatus(constDone);if(wgNoticeToggleState)toggleNotice();}}// If the start of the survey is not set, check for the right page (first page that is not an "action" page)elseif(window.location.toString().indexOf('action=')==-1){mw.cookie.set('surveyStartTime2',(newDate()).getTime().toString(),{'expires':31/* days */,'path':'/'});displaySurvey();}}else{// If the user is an editor, do lottery.if(window.location.toString().indexOf('action=edit')!=-1){varselectionSize=constSamplingRate;// If the user wins the lottery, set DisplayTodoif(Math.random()<selectionSize){setSurveyStatus(constTodo);if(!wgNoticeToggleState)toggleNotice();}// If the user loses, set done.else{setSurveyStatus(constDone);if(wgNoticeToggleState)toggleNotice();}}else{// (If the user is not an editor, hide banner.)if(wgNoticeToggleState)toggleNotice();}}}functionsetSurveyStatus(status){wmdeslog('setSurveyStatus: '+status);mw.cookie.set('surveyStatus2',status,{'expires':31/* days */,'path':'/'});}functiondisplaySurvey(){wmdeslog('displaySurvey');$('#editorSurveyLink').click(onSurveyLinkClick);$('#editorSurveyClose').click(onSurveyCloseClick);if(!wgNoticeToggleState)toggleNotice();$('#editorSurvey2011').show();}varisFirstClick=true;functiononSurveyLinkClick(){wmdeslog('onSurveyLinkClick');if(isFirstClick){wmdeslog('onSurveyLinkClick - first click');setSurveyStatus(constDone);varsender=$(this);sender.attr('href',sender.attr('href')+Math.random().toString());if(wgNoticeToggleState)toggleNotice();isFirstClick=false;}returntrue;}functiononSurveyCloseClick(){$('#editorSurvey2011').hide();setSurveyStatus(constDone);if(wgNoticeToggleState)toggleNotice();}functionwmdeslog(message){//console.log( 'WMDE survey: ' + message );}</script></body></html>