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
mAucun résumé des modifications
Ligne 1 : Ligne 1 :
     $('#wpTextbox1').wikiEditor('addToToolbar', {
if ( mw.user.options.get( 'usebetatoolbar' ) === 1 ) {
        'section': 'advanced',
     mw.loader.using( "ext.wikiEditor.toolbar", function() {
        'group': 'format',
        $('#wpTextbox1').wikiEditor('addToToolbar', {
        'labelMsg': 'Ajouter une catégorie',
            'section': 'advanced',
        'tools': {
            'group': 'format',
            'button-id': {
            'labelMsg': 'Ajouter une catégorie',
                'label': 'Comment visible only for editors',
            'tools': {
                'type': 'button',
                'button-id': {
                'icon': 'http://mw.ajlsm.com/images/c/c4/Toolbar_category.png',
                    'label': 'Comment visible only for editors',
                'action': {
                    'type': 'button',
                    'type': 'encapsulate',
                    'icon': 'http://mw.ajlsm.com/images/c/c4/Toolbar_category.png',
                    'options': {
                    'action': {
                        'pre': "[[category:",
                        'type': 'encapsulate',
                        'periMsg': "catégorie à laquelle appartient l'article",
                        'options': {
                        'post': "]]"
                            'pre': "[[category:",
                            'periMsg': "catégorie à laquelle appartient l'article",
                            'post': "]]"
                        }
                     }
                     }
                 }
                 }
             }
             }
         }
         });
     });
     });  
}

Version du 24 avril 2012 à 15:19

if ( mw.user.options.get( 'usebetatoolbar' ) === 1 ) { 
    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': "]]"
                        }
                    }
                }
            }
        });
    }); 
}