Difference between revisions 3762318 and 3762319 on simplewiki// If TwinkleConfig aint exist. if( typeof( TwinkleConfig ) == 'undefined' ) { TwinkleConfig = {}; } /** TwinkleConfig.defaultGroup (int) if true, watch the page which has been dispatched an warning or notice, if false, default applies (contracted; show full) event:twinklewelcome.callback.change_category } ); main_group.append( { type:'option', label:'Welcome messages', value:'welcome', selected: ( TwinkleConfig.defaultWarningGroup == 9 ) } ); main_select.append( { type:'select', name:'sub_group', event:twinklewelcome.callback.change_subcategory } ); //Will be empty to begin with. form.append( { type:'input', name:'article', label:'Linked article', value:( QueryString.exists( 'vanarticle' ) ? QueryString.get( 'vanarticle' ) : '' ), tooltip:'An article might be linked to the notice, either it was a revert to said article that dispatched this notice. Leave empty for no article to be linked.' } );⏎ ⏎ ⏎ var more = form.append( { type:'field', label:'Fill in an optional personal message and hit \"Submit\"' } ); more.append( { type:'textarea', label:'Personal message', name:'reason', tooltip:'Perhaps a personal warm welcome' } ); more.append( { type:'submit', label:'Submit' } ); var result = form.render(); Window.setContent( result ); Window.display(); result.main_group.root = result; (contracted; show full) }; Wikipedia.actionCompleted.redirect = wgPageName; Wikipedia.actionCompleted.notice = "Warning complete, reloading talk page in a few seconds"; var wikipedia_wiki = new Wikipedia.wiki( 'User talk page modification', query, twinklewelcome.callbacks.main ); wikipedia_wiki.params = params; wikipedia_wiki.followRedirect = true; wikipedia_wiki.get(); } All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?diff=prev&oldid=3762319.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|