« MediaWiki:Guidedtour-tour-help link.js » : différence entre les versions
Aucun résumé des modifications |
m (Antoine Mercier-Linteau a déplacé la page MediaWiki:Guidedtour-tour-help.js vers MediaWiki:Guidedtour-tour-help link.js : Titre plus précis) |
(Aucune différence)
|
Version du 25 novembre 2020 à 23:25
/*
* 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 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'
} );
tour.firstStep( {
name: 'help',
title: 'Portail d\'aide',
description: 'En tout temps, des pages d\'<b>aide</b> sont disponibles ici.',
attachTo: '#n-help',
position: 'right',
buttons: [
{ action: 'end', classString: 'mw-tour-complete'}
],
closeOnClickOutside: false
} );
}( mw.guidedTour ) );