MediaWiki:Guidedtour-tour-discussion tab.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.
/*
* 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: 'Vous désirez discuter de cette page?',
description: 'Toutes les pages possèdent un espace de <b>Discussion</b> pour que les éditeurs puissent converser sur les sujets en lien avec la page: contenu, données, 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 ) );