MediaWiki:Guidedtour-tour-GTA1.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// Guided Tour to help users start editing
 
( function ( window, document, $, mw, gt ) {
gt.defineTour( {
        name: 'GTA1',
        steps: [ {
                title: 'Upload your image',
                description: 'Welcome to the Wiki Loves Monuments 2013 United States Upload Wizard.',
                overlay: true,
                buttons: [ {
                        action: 'next'
                } ],
 
                // shouldSkip is a general tool to skip a step based on their progress towards some goal.  This is used to ensure this step will not be shown once they have started editing.
                // shouldSkip always returns true to skip, or false otherwise.
   shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }
        }, 
 {
                title: 'Upload your file',
                description: 'Follow the instructions on the screen to upload your file. When you are finished uploading, click 'next'.',
                attachTo: '#p-participate',
                position: 'right',
                // Same as above.  We plan to make this less repetitive in the future.
 // shouldSkip is a general tool to skip a step based on their progress towards some goal.  This is used to ensure this step will not be shown once they have started editing.
                // shouldSkip always returns true to skip, or false otherwise.
   shouldSkip: function() {
return gt.isPage( 'Special:ChangeEmail' );
                }

        },
 {
                title: 'Confirm your email',
                description: 'Please <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">confirm your email</a>. Without it, we cannot contact you if you win. <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">Click here to confirm your email.</a>',
                attachTo: '#pt-userpage',
                position: 'bottom',
                closeOnClickOutside: false,
  buttons: [ {
                        action: 'end'
                } ]
   
   shouldSkip: function() {
return gt.isPage( 'Special:ChangeEmail' );
                }
       }, 

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