« MediaWiki:Guidedtour-tour-discussion tab.js » : différence entre les versions

De Wikimedica
m (Antoine Mercier-Linteau a déplacé la page MediaWiki:Guidedtour-tour-discussion.js vers MediaWiki:Guidedtour-tour-discussion tab.js : Titre plus précis)
(Renommage tour)
Ligne 10 : Ligne 10 :
}
}
console.log('Loading discussion tour.');
console.log('Loading discussion tab tour.');
tour = new gt.TourBuilder( {
tour = new gt.TourBuilder( {
Ligne 20 : Ligne 20 :
* if this were on-wiki, it would be MediaWiki:Guidedtour-tour-test.js
* if this were on-wiki, it would be MediaWiki:Guidedtour-tour-test.js
*/
*/
name: 'discussion'
name: 'discussion_tab'
} );
} );



Version du 25 novembre 2020 à 23:27

/*
 * discussion 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 discussion tab 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: 'discussion_tab'
	} );

	tour.firstStep( {
		name: 'discussion',
		title: 'Page de discussion',
		description: 'Toutes les pages possèdent un espace de discussion pour que les éditeurs puissent converser sur les sujets en lien avec le page: contenu, les données, la recherche, etc.<br><br>Pour plus d\'informations, voir <a href="/wiki/Aide:Discussion">Aide:Discussion</a>.',
		attachTo: '#ca-talk',
		position: 'bottom',
		buttons: [ 
			{ action: 'end', classString: 'mw-tour-complete'}	
		],
		closeOnClickOutside: false
	} );
	
}( mw.guidedTour ) );