MediaWiki:Guidedtour-tour-drafts.js

De Wikimedica
Révision datée du 5 janvier 2021 à 22:51 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: 'drafts'
	} );

	tour.firstStep( {
		name: 'drafts',
		title: 'Vous avez un brouillon en tête?',
		description: 'Il est possible de produire des pages personnelles à l\'aide de l\'onglet <b>Brouillons</b>.<br><br>Il s\'agit de l\'espace idéal pour de sauvegarder le progrès d\'une page en construction ou pour simplement vous familariser avec l\'interface d\'édition.',
		attachTo: '#pt-drafts',
		position: 'bottom',
		buttons: [ 
			{ action: 'end', classString: 'mw-tour-complete'}	
		],
		closeOnClickOutside: false
	} );
	
}( mw.guidedTour ) );