User:DougRM/common.js

( function ( $, mw, gt ) { gt.defineTour( { name: 'dougtest', steps: [ { title: 'Ready to help?', description: 'This page needs basic copyediting – impr

( function ( $, mw, gt ) {
gt.defineTour( {
	name: 'dougtest',
	steps: [ {
		title: 'Ready to help?',
		description: 'This page needs basic copyediting – improving the grammar, style, tone, or spelling – to make it clear and easy to read. This tour will show you the steps to take.',
		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: 'Click \'Edit\'',
		description: 'This will let you make changes to any part of the page, when you\'re ready.',
		attachTo: '#ca-edit',
		position: 'bottom',
                // Same as above.  We plan to make this less repetitive in the future.
		shouldSkip: function() {
			return gt.hasQuery( { action: 'edit' } );
		}
	}, {
		title: 'Preview (optional)',
		description: 'Clicking \'Preview\' allows you to check what the page will look like with your changes. Just don\'t forget to save.',
		attachTo: '#wpPreview',
		position: 'top',
                // Normally, the guider will automatically close when the user clicks outside the boundaries.  This can be turned off on a case-by-case basis, as it is here.
                // In this case, it is turned off since the user is likely to click the edit box before seeing the guider at the bottom of the screen.
		closeOnClickOutside: false,
                // This is the opposite of the above.  We skip if they are *not* editing.
		shouldSkip: function() {
			return !gt.hasQuery( { action: 'edit' } );
		}
	}, {
		title: 'You\'re almost finished!',
		description: 'Click \'Save\' and your changes will be visible.',
		attachTo: '#wpSave',
		position: 'top',
 
                // Normally, guiders will close when the user clicks outside them.  But you may want to disable this in some cases.
                // For example, since people normally click on the edit box, we are disabling them on steps that are on the edit screen.
		closeOnClickOutside: false,
 
                // We skip if they are not doing a preview, show changes, etc.
		shouldSkip: function() {
			return !gt.hasQuery( { action: 'submit' } );
		}
	}, {
		title: 'Looking for more to do?',
		description: '[[Special:GettingStarted|Getting Started]] is updated every hour with new pages.',
                onShow: gt.parseDescription,
		overlay: true,
 
                // We don't want to show this step if they didn't complete an edit.
                // Note that this requires they actually change something, not just click save.
		shouldSkip: function() {
			return !gt.isPostEdit();
		},
		buttons: [ {
			action: 'end'
		} ]
	} ]
} );
 
} (jQuery, mediaWiki, mediaWiki.guidedTour ) );

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.