Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

« Utilisateur:Groche/common.js » : différence entre les versions

De AJLSM
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
m a déplacé Utilisateur:Elopez/common.js vers Utilisateur:Groche/common.js : Automatically moved page while merging the user "Elopez" to "Groche"
 
(7 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
if ( mw.user.options.get( 'usebetatoolbar' ) === 1 ) {  
// <noinclude>On travaille en dur dans le fichier {{path|modules/jquery.wikiEditor.toolbar.config.js}}</noinclude>
    mw.loader.using( "ext.wikiEditor.toolbar", function() {
        $('#wpTextbox1').wikiEditor('addToToolbar', {
            'section': 'advanced',
            'group': 'format',
            'labelMsg': 'Ajouter une catégorie',
            'tools': {
                'button-id': {
                    'label': 'Comment visible only for editors',
                    'type': 'button',
                    'icon': 'http://mw.ajlsm.com/images/c/c4/Toolbar_category.png',
                    'action': {
                        'type': 'encapsulate',
                        'options': {
                            'pre': "[[category:",
                            'periMsg': "catégorie à laquelle appartient l'article",
                            'post': "]]"
                        }
                    }
                }
            }
        });
    });
}

Dernière version du 28 mai 2013 à 09:21

// <noinclude>On travaille en dur dans le fichier {{path|modules/jquery.wikiEditor.toolbar.config.js}}</noinclude>