« MediaWiki:Guidedtour-tour-recent changes.js » : différence entre les versions

De Wikimedica
(Création modifications récentes)
 
(Aucune différence)

Version du 5 janvier 2021 à 22:42

/*
 * help tour
 */
( function ( gt ) {
	var tour, launchTourButtons;
	
	if(!mw.config.get('wgIsProbablyEditable'))
	{
		return; // Skip the tour if the user cannot edit the page.
	}
	
	console.log('Loading help link tour.');
	
	tour = new gt.TourBuilder( {
		/*
		 * This is the name of the tour.  It must be lowercase, without any hyphen (-) or
		 * period (.) characters.
		 *
		 * If this is an on-wiki tour, it should match the MediaWiki page.  For instance,
		 * if this were on-wiki, it would be MediaWiki:Guidedtour-tour-test.js
		 */
		name: 'recent_modifications'
	} );

	tour.firstStep( {
		name: 'recent_modifications',
		title: 'Une plateforme dynamique!',
		description: 'Chaque jour, une panoplie de modifications sont effectuées sur la plateforme. Consultez les derniers changements en direct à l\'aide de l\'onglet <b>Modifications récentes</b>.',
		attachTo: '#n-Contenu',
		position: 'right',
		buttons: [ 
			{ action: 'end', classString: 'mw-tour-complete'}	
		],
		closeOnClickOutside: false
	} );
	
}( mw.guidedTour ) );