MediaWiki:Guidedtour-tour-pending notifications.js
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.
/*
* Pending notifications tour
*/
( function ( gt ) {
var tour, launchTourButtons;
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: 'pending_notifications'
} );
// Tours do not work in the mobile frontend (for now).
attachTo = mw.mobileFrontend === undefined ? '#pt-notifications-alert' : '#user-notifications';
tour.firstStep( {
name: 'pending_notifications',
title: 'D\'autres éditeurs vous ont écrit !',
description: 'Si quelqu\'un s\'adresse directement à vous, l\'icône de cloche passera au rouge. Si une conversation que vous suivez est mise à jour, l\'icône de boîte passera au bleu.<br>Surveillez ces icônes : ils permettent aux éditeurs de collaborer ensemble sur la plateforme.',
attachTo: attachTo,
position: 'bottom',
buttons: [
{ action: 'end', classString: 'mw-tour-complete'}
],
closeOnClickOutside: true
} );
}( mw.guidedTour ) );