User:GVarnum-WMF/common.js: Difference between revisions
Content deleted Content added
GVarnum-WMF (talk | contribs) mNo edit summary |
GVarnum-WMF (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
template: '{{historical}} \n', |
template: '{{historical}} \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Tagged as historical', |
editSummary: 'Tagged as historical, ', |
||
}); |
}); |
||
Line 26: | Line 26: | ||
template: '[[Category:Pages to be exported to Meta-Wiki]] \n', |
template: '[[Category:Pages to be exported to Meta-Wiki]] \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Added to Category:Pages to be exported to Meta-Wiki', |
editSummary: 'Added to Category:Pages to be exported to Meta-Wiki, ', |
||
}); |
}); |
||
Line 33: | Line 33: | ||
template: '[[Category:Pages to be exported to MediaWiki.org]] \n', |
template: '[[Category:Pages to be exported to MediaWiki.org]] \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Added to Category:Pages to be exported to MediaWiki.org', |
editSummary: 'Added to Category:Pages to be exported to MediaWiki.org, ', |
||
}); |
}); |
||
Line 40: | Line 40: | ||
template: '[[Category:Pages to be exported to Donate wiki]] \n', |
template: '[[Category:Pages to be exported to Donate wiki]] \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Added to Category:Pages to be exported to Donate wiki', |
editSummary: 'Added to Category:Pages to be exported to Donate wiki, ', |
||
}); |
}); |
||
Line 47: | Line 47: | ||
template: '[[Category:Documentation wiki]] \n', |
template: '[[Category:Documentation wiki]] \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Added to Category:Documentation wiki', |
editSummary: 'Added to Category:Documentation wiki, ', |
||
}); |
}); |
||
Line 54: | Line 54: | ||
template: '{{proposed deletion}} \n', |
template: '{{proposed deletion}} \n', |
||
position: 'before', |
position: 'before', |
||
editSummary: 'Propose for deletion', |
editSummary: 'Propose for deletion, ', |
||
}); |
}); |
||
Revision as of 01:58, 5 May 2018
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui.resizable', 'mediawiki.util'], function(){
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:Pathoschild/templatescript.js]]
*/
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add({
name: 'Historical',
template: '{{historical}} \n',
position: 'before',
editSummary: 'Tagged as historical, ',
});
pathoschild.TemplateScript.add({
name: 'Tag for Meta-Wiki',
template: '[[Category:Pages to be exported to Meta-Wiki]] \n',
position: 'before',
editSummary: 'Added to Category:Pages to be exported to Meta-Wiki, ',
});
pathoschild.TemplateScript.add({
name: 'Tag for MediaWiki.org',
template: '[[Category:Pages to be exported to MediaWiki.org]] \n',
position: 'before',
editSummary: 'Added to Category:Pages to be exported to MediaWiki.org, ',
});
pathoschild.TemplateScript.add({
name: 'Tag for Donate wiki',
template: '[[Category:Pages to be exported to Donate wiki]] \n',
position: 'before',
editSummary: 'Added to Category:Pages to be exported to Donate wiki, ',
});
pathoschild.TemplateScript.add({
name: 'Tag for Documentation',
template: '[[Category:Documentation wiki]] \n',
position: 'before',
editSummary: 'Added to Category:Documentation wiki, ',
});
pathoschild.TemplateScript.add({
name: 'Propose for deletion',
template: '{{proposed deletion}} \n',
position: 'before',
editSummary: 'Propose for deletion, ',
});
});
// </nowiki>