« MediaWiki:Guidedtour-tour-help link.js » : différence entre les versions

De Wikimedica
(Renommage tour)
(Modification title/description)
 
Ligne 25 : Ligne 25 :
tour.firstStep( {
tour.firstStep( {
name: 'help',
name: 'help',
title: 'Portail d\'aide',
title: 'Vous avez besoin d\'aide?',
description: 'En tout temps, des pages d\'<b>aide</b> sont disponibles ici.',
description: 'En tout temps, les pages du portail d\'<b>Aide</b> sont disponibles ici.',
attachTo: '#n-help',
attachTo: '#n-help',
position: 'right',
position: 'right',

Dernière version du 5 janvier 2021 à 22:45

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

	tour.firstStep( {
		name: 'help',
		title: 'Vous avez besoin d\'aide?',
		description: 'En tout temps, les pages du portail d\'<b>Aide</b> sont disponibles ici.',
		attachTo: '#n-help',
		position: 'right',
		buttons: [ 
			{ action: 'end', classString: 'mw-tour-complete'}	
		],
		closeOnClickOutside: false
	} );
	
}( mw.guidedTour ) );