« MediaWiki:Guidedtour-tour-help link.js » : différence entre les versions
Aucun résumé des modifications |
(Modification title/description) |
||
(2 versions intermédiaires par un autre utilisateur non affichées) | |||
Ligne 10 : | Ligne 10 : | ||
} | } | ||
console.log('Loading help tour.'); | console.log('Loading help link 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_link' | ||
} ); | } ); | ||
tour.firstStep( { | tour.firstStep( { | ||
name: 'help', | name: 'help', | ||
title: ' | title: 'Vous avez besoin d\'aide?', | ||
description: 'En tout temps, | description: 'En tout temps, les pages du portail d\'<b>Aide</b> sont disponibles ici.', | ||
attachTo: '#n-help', | attachTo: '#n-help', | ||
position: 'right', | position: 'right', |
Dernière version du 5 janvier 2021 à 22:45
/*
* 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: 'help_link'
} );
tour.firstStep( {
name: 'help',
title: 'Vous avez besoin d\'aide?',
description: 'En tout temps, les pages du portail d\'<b>Aide</b> sont disponibles ici.',
attachTo: '#n-help',
position: 'right',
buttons: [
{ action: 'end', classString: 'mw-tour-complete'}
],
closeOnClickOutside: false
} );
}( mw.guidedTour ) );