Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
MediaWiki:AJLSM-WikiEditor.js
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
$textarea.wikiEditor( 'addToToolbar', {
sections: {
ajlsm: {
type: 'toolbar',
label: 'AJLSM'
}
}
} );
$textarea.wikiEditor( 'addToToolbar', {
section: 'ajlsm',
groups: {
insertion: {
label: 'Insertion'
}
}
} );
$textarea.wikiEditor( 'addToToolbar', {
section: 'ajlsm',
group: 'insertion',
tools: {
ajlsmPath: {
label: 'Ajouter un chemin vers un fichier/dossier',
type: 'button',
icon: mw.config.get( 'wgScriptPath' ) + '/images/9/96/Toolbar-path.svg',
action: {
type: 'encapsulate',
options: {
pre: '{{path|',
peri: '/path/to/dir-or-file',
post: '}}'
}
}
}
}
} );
} );