MediaWiki:Guidedtour-tour-view history.js

De Wikimedica
Révision datée du 5 janvier 2021 à 22:55 par Charles-Éric Noël Laflamme (discussion | contributions) (Modification description)

Note : après avoir enregistré vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

/*
 * 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: 'view_history'
	} );

	tour.firstStep( {
		name: 'view_history',
		title: 'Cette page a récemment été modifiée?',
		description: 'Il est possible de voir l\'historique des modifications d\'une page en cliquant sur l\'onglet <b>Voir l\'historique</b>.<br><br>Même si une erreur a été commise, il est toujours possible de récupérer les anciennes versions d\'une page.',
		attachTo: '#ca-history',
		position: 'bottom',
		buttons: [ 
			{ action: 'end', classString: 'mw-tour-complete'}	
		],
		closeOnClickOutside: false
	} );
	
}( mw.guidedTour ) );