MediaWiki:Guidedtour-tour-recent changes.js
(Redirigé depuis MediaWiki:Guidedtour-tour-recent modifications.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.
/*
* 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: 'recent_changes'
} );
tour.firstStep( {
name: 'recent_changes',
title: 'Une plateforme dynamique!',
description: 'Chaque jour, une panoplie d\'améliorations sont effectuées sur la plateforme. Consultez les derniers changements en direct par les <b>Améliorations récentes</b>.',
attachTo: "[href*=\"Spécial:Modification\"]",
position: 'right',
buttons: [
{ action: 'end', classString: 'mw-tour-complete'}
],
onShow: function() {
// Display the menu where the link now is. Use a timeout otherwise somehting closes the menu again.
setTimeout (function() { $('#vector-page-tools-dropdown-checkbox').click(); }, 500 );
},
closeOnClickOutside: false
} );
}( mw.guidedTour ) );