User:Bijay Chaurasia/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// Script to make it work in Vector
importScript('User:Krinkle/insertVectorButtons.js');

// Put the snippets within this function
function kCustomMainInsertButton_config(){


// Welcome :
kCustomMainInsertButton(
        'welcome', //imageId
        'http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Nuvola_apps_edu_languages.svg/22px-Nuvola_apps_edu_languages.svg.png', //imageFile
        'Welcome', //speedTip
        '{\{Welcome}\}\~\~\~\~', //tagOpen
        '', //tagClose
        '' //sampleText
);
// Welcome + Sandbox :
kCustomMainInsertButton(
        'welcometest1', //imageId
        'http://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Gtk-dialog-info.svg/22px-Gtk-dialog-info.svg.png', //imageFile
        'Welcome + Sandbox', //speedTip
        '{\{Welcome}\}\n\n{\{subst:test|', //tagOpen
        '}\}\~\~\~\~', //tagClose
        '' //sampleText
);
// Test2 :
kCustomMainInsertButton(
        'test2', //imageId
        'http://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Nuvola_apps_important.svg/22px-Nuvola_apps_important.svg.png', //imageFile
        'Test2', //speedTip
        '{\{subst:test2|', //tagOpen
        '}\}\~\~\~\~', //tagClose
        '' //sampleText
);
// Test3 :
kCustomMainInsertButton(
        'test3', //imageId
        'http://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Stop_hand_nuvola.svg/22px-Stop_hand_nuvola.svg.png', //imageFile
        'Test3', //speedTip
        '{\{subst:test3|', //tagOpen
        '}\}\~\~\~\~', //tagClose
        '' //sampleText
);
}

// stable script for reviewing images from any kind of source
importScript('User:ZooFari/licensereviewer.js');