Jump to content

User:Jayprakash12345/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jayprakash12345 (talk | contribs) at 19:02, 25 March 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
mw.loader.using( 'ext.guidedTour.lib', function () {
	(function (window, document, $, mw, gt) {
		var pageName = 'User:Sarthak_Kundra/firstTour', tour;
		
		tour = new gt.TourBuilder( {
			/*
			 * This is the name of the tour.  It must be lowercase, without any hyphen (-) or
			 * period (.) characters.
			 *
			 * The page where you save an on-wiki tour must be named
			 * MediaWiki:Guidedtour-tour-{name}.js , in this example MediaWiki:Guidedtour-tour-mytest.js
			 */
			name: 'firstTour'
		} );
	
		// Information defining each tour step
	
		// This tour shows a central overlay at the start of the tour.
		// Guiders appear in the center if another position is not specified.
		// To specify the first step of the tour, use .firstStep instead of .step
		tour.firstStep( {
			name: 'overlay',
			// Note that for on-wiki tours, we use title and description with the actual text.
			// The title appears in the title bar of the guider.
			title: 'Testing',
	
			// The description appears in the body
			description: 'This is a test of the description. Lorem ipsum dolor sit!',
	
			// This specifies that there is an overlay behind the guider.
			overlay: true
		} )
	// The following should be the last line of your tour.
	} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );		
} );