User:Zolo/vector.js
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.
The accompanying .css page for this skin can be added at User:Zolo/vector.css. |
/*
Disabled: Please see https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users) to fix this script
function InsertButtonsToToolBar() {
// Add object cat
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png",
"speedTip": "Add {{Category definition: Object}}",
"tagOpen": "\n{{Category definition: Object \n |type = \n |image = \n |artist =\n |title =\n |description =\n|dimensions =\n|medium= \n|institutution= \n| accession number= \n|object history=\n}}",
"tagClose": "",
"sampleText": ""};
}
$( InsertButtonsToToolBar );
*/
//* based on [[MediaWiki:Gadget-Tineye.js]]
importScript('MediaWiki:Extra-tabs.js');
$( function() {
if (mw.config.get('wgNamespaceNumber') !== 14) return;
mw.util.addPortletLink('p-cactions','http://maps.google.com/maps?q=http%3A%2F%2Ftoolserver.org%2F%7Epara%2Fcgi-bin%2Fkmlexport%3Fproject%3DCommons%26article%3DCategory%253A' + encodeURIComponent (wgTitle.split(" ").join("_")), 'Map', 'ca-mapg');
});
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>