Difference between revisions of "MediaWiki:Common.js"

From SCI Wiki
Jump to navigationJump to search
Line 6: Line 6:
 
mw.toolbar.addButton({ // OLD WAY - "classic toolbar"
 
mw.toolbar.addButton({ // OLD WAY - "classic toolbar"
 
         imageId: 'mw-customeditbutton-myspecialbutton',
 
         imageId: 'mw-customeditbutton-myspecialbutton',
         imageFile: '//upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png',
+
         imageFile: '/buttons/comment.png',
 
         speedTip: "Comment",
 
         speedTip: "Comment",
 
         tagOpen: "<!-- ",
 
         tagOpen: "<!-- ",

Revision as of 00:30, 2 September 2013

/* Any JavaScript here will be loaded for all users on every page load. */


// Comment
mw.toolbar.addButton({ // OLD WAY - "classic toolbar"
        imageId: 'mw-customeditbutton-myspecialbutton',
        imageFile: '/buttons/comment.png',
        speedTip: "Comment",
        tagOpen: "<!-- ",
        tagClose: " -->",
        sampleText: "Insert comment here"
});

// Line Break
mw.toolbar.addButton({ // OLD WAY - "classic toolbar"
        imageId: 'mw-customeditbutton-myspecialbutton',
        imageFile: '/buttons/br.png',
        speedTip: "New Line",
        tagOpen: "",
        tagClose: "<br />",
        sampleText: "Insert comment here"
});