Difference between revisions of "MediaWiki:Common.js"
From SCI Wiki
Jump to navigationJump to searchLine 16: | Line 16: | ||
mw.toolbar.addButton({ // OLD WAY - "classic toolbar" | mw.toolbar.addButton({ // OLD WAY - "classic toolbar" | ||
imageId: 'mw-customeditbutton-myspecialbutton', | imageId: 'mw-customeditbutton-myspecialbutton', | ||
− | imageFile: ' | + | imageFile: '//buttons/br.png', |
speedTip: "New Line", | speedTip: "New Line", | ||
tagOpen: "", | tagOpen: "", |
Revision as of 00:29, 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: '//upload.wikimedia.org/wikipedia/en/3/34/Button_hide_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"
});