User:Newmanbe/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.
//[[MediaWiki talk:Quick-delete.js]]
// From [[en:User:Lupin/autoedit.js]]
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Quick-delete.js&action=raw&ctype=text/javascript');

/**
 * 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:'no source', template:'\x7b\x7bsubst:nsd}}', editSummary:'[[Commons:Licensing|Possible copyright violation]] (no source)' },
			{ name:'no license', template:'\x7b\x7bsubst:nld}}', editSummary:'[[Commons:Licensing|Possible copyright violation]] (nl license)' },
			{ name:'no proof', template:'\x7b\x7bsubst:npd}}', editSummary:'[[Commons:Licensing|Possible copyright violation]] (No proof of license)' },
	
			{ name:'derivative', template:'\x7b\x7bderivative}}', editSummary:'[[Commons:Licensing|Possible copyright violation]] ([[Commons:Derivative works|derivative work]])' },
			{ name:'logo', template:'\x7b\x7blogo}}', editSummary:'[[Commons:Licensing|Possible copyright violation]] (logo)' },
			{ name:'fair use', template:'\x7b\x7bfair use}}', editSummary:'[[Commons:Licensing#Material_under_the_fair_use_clause_is_not_allowed_on_the_Commons|Possible copyright violation]] (fair use)' },
			{ name:'copyvio', template:'\x7b\x7bcopyvio}}', editSummary:'Possible copyright violation (\x7b\x7bcopyvio}})' },
	
			{ name:'PD-ineligible', template:'\x7b\x7bPD-ineligible}}', editSummary:'This work is not eligible for copyright' },
	
			{ name:'convert to SVG', template:'\x7b\x7bConvert to SVG}}', editSummary:'Convert to SVG' },
			{ name:'convert to international', template:'\x7b\x7bconvert to international}}', editSummary:'Convert to international' }
		]
	);
});
// <nowiki>