User:Thiago R Ramos/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.
/**
 * 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:'{{subst:nsd}}', editSummary:'Possible copyright violation ({{subst:nsd}})' },
		{ name:'no license', template:'{{subst:nld}}', editSummary:'Possible copyright violation ({{subst:nld}})' },
		{ name:'no license', template:'{{subst:npd}}', editSummary:'Possible copyright violation ({{subst:npd}})' },

		{ name:'derivative', template:'{{derivative}}', editSummary:'Possible copyright violation ({{derivative}})' },
		{ name:'logo', template:'{{logo}}', editSummary:'Possible copyright violation ({{logo}})' },
		{ name:'fair use', template:'{{fair use}}', editSummary:'Possible copyright violation ({{fair use}})' },
		{ name:'copyvio', template:'{{copyvio}}', editSummary:'Possible copyright violation ({{copyvio}})' },

		{ name:'disputed', template:'{{disputed}}', editSummary:'Disputed licensing ({{disputed}})' },
		{ name:'PD-ineligible', template:'{{PD-ineligible}}', editSummary:'This work is not eligible for copyright ({{PD-ineligible}})' },

		{ name:'convert to SVG', template:'{{Convert to SVG}}', editSummary:'Convert to SVG' },
		{ name:'convert to international', template:'{{convert to international}}', editSummary:'Convert to international' },
	]);
});
// </nowiki>