« MediaWiki:Guidedtour-tour-help link.js » : différence entre les versions
(Page créée avec « →* help tour : ( function ( gt ) { var tour, launchTourButtons; if(!mw.config.get('wgIsProbablyEditable')) { return; // Skip the tour if the user cannot edit t… ») |
Aucun résumé des modifications |
||
Ligne 10 : | Ligne 10 : | ||
} | } | ||
console.log('Loading | console.log('Loading help tour.'); | ||
tour = new gt.TourBuilder( { | tour = new gt.TourBuilder( { | ||
Ligne 20 : | Ligne 20 : | ||
* if this were on-wiki, it would be MediaWiki:Guidedtour-tour-test.js | * if this were on-wiki, it would be MediaWiki:Guidedtour-tour-test.js | ||
*/ | */ | ||
name: ' | name: 'help' | ||
} ); | } ); | ||
Version du 24 novembre 2020 à 10:37
/*
* 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 ) );