Jump to content

MediaWiki:Guidedtour-tour-WikiEduHelp.js

From Wikipedia, the free encyclopedia
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.
// Guided Tour for student editors in Wiki Education's Wikipedia Student Program to request help

( function ( window, document, $, mw, gt ) {
 
gt.defineTour( {
        name: 'WikiEduHelp',
        shouldLog: true,
        steps: [ {
                //1
                title: 'Request feedback',
                description: 'Project:Wiki_Ed/tour/request_feedback',
                onShow: gt.getPageAsDescription,
                overlay: true,
                closeOnClickOutside: false,
	            buttons: [ {
                        name: 'Ian',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'User_talk:Ian_(Wiki_Ed)' ) + '?action=edit&preload=Wikipedia%3AWiki_Ed%2FNeed_help_preload&preloadtitle=Need+help+request+from+%7E%7E%7E&section=new&tour=WikiEduHelp&step=2'
					},  {
                        name: 'Brianda',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'User_talk:Brianda_(Wiki_Ed)' ) + '?action=edit&preload=Wikipedia%3AWiki_Ed%2FNeed_help_preload&preloadtitle=Need+help+request+from+%7E%7E%7E&section=new&tour=WikiEduHelp&step=2'
					},  {
                        name: 'Nevermind',
                        onclick: function() { gt.endTour(); }
				} ],
				allowAutomaticOkay: false
			} , {
                //2
                title: 'Fill out this form and save it',
                description: 'After saving this form to request help, you should get a response on your Talk page from a Wiki Education Foundation Content Expert within one business day. Be sure to check back on Wikipedia for the notification.',
                // onShow: gt.getPageAsDescription,
                overlay: false,
                closeOnClickOutside: false,
	            buttons: [ {
	            	    name: 'Okay',
                        action: 'end'
                } ],
                allowAutomaticOkay: false

		}]
 
} );
 
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;