Misplaced Pages

User:CnkALTDS/user.js

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:CnkALTDS
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump.
This code will be executed when previewing this page.
Documentation for this user script can be added at User:CnkALTDS/user.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Misplaced Pages:Bypass your cache.
/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/TemplateScript
 * @update-token ]
 */
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
	pathoschild.TemplateScript.add(
		[
			{ name:'Welcome', template:'{{uw-welcome}}\n', editSummary:'Welcome to Misplaced Pages!' },
			{ name:'Blank 1', template:'{{uw-delete2}}\n', editSummary:'Warning 2: Do not blank pages' },
			{ name:'Blank 2', template:'{{uw-delete3}}\n', editSummary:'Warning 3: Do not blank pages' },
			{ name:'BLANK', template:'{{uw-delete4}}\n', editSummary:'Final warning: Do not blank pages' },
			{ name:'Joke 1', template:'{{uw-joke2}}\n', editSummary:'Warning 2: Please do not joke' },
			{ name:'Joke 2', template:'{{uw-joke3}}\n', editSummary:'Warning 3: Please do not joke' },
			{ name:'JOKE', template:'{{uw-joke4}}\n', editSummary:'Final warning: Please do not joke' },
			{ name:'Test 1', template:'{{uw-test2}}\n', editSummary:'Warning 2: Do not make test in Misplaced Pages articles' },
			{ name:'Test 2', template:'{{uw-test3}}\n', editSummary:'Warning 3: Do not make test in Misplaced Pages articles' },
			{ name:'TEST', template:'{{uw-test4}}\n', editSummary:'Final warning: Do not make test in Misplaced Pages articles' },
			{ name:'Copyright', template:'{{uw-copyright}}\n', editSummary:'Warning: Do not add copyrighted works violation' },
			{ name:'Advert 1', template:'{{uw-advert2}}\n', editSummary:'Warning 2: It is not allowed to make advert in Misplaced Pages' },
			{ name:'Advert 2', template:'{{uw-advert3}}\n', editSummary:'Warning 3: It is not allowed to make advert in Misplaced Pages' },
			{ name:'ADVERT', template:'{{uw-advert4}}\n', editSummary:'Final warning: It is not allowed to make advert in Misplaced Pages' },
			{ name:'Spam 1', template:'{{uw-spam2}}\n', editSummary:'Warning 1: It is not allowed to add spamlinks in Misplaced Pages' },
			{ name:'Spam 2', template:'{{uw-spam3}}\n', editSummary:'Warning 2: It is not allowed to add spamlinks in Misplaced Pages' },
			{ name:'SPAM', template:'{{uw-spam4}}\n', editSummary:'Final warning: It is not allowed to add spamlinks in Misplaced Pages' },
			{ name:'Signature', template:'{{uw-tilde}}\n', editSummary:'Please add your signature at the end of your posts' },
			{ name:'Template 1', template:'{{uw-tdel2}}\n', editSummary:'Warning 2: Do not remove templates' },
			{ name:'TEMPLATE', template:'{{uw-tdel4}}\n', editSummary:'Final warning :Do not remove templates' },
			{ name:'Vandal 1', template:'{{uw-vandalism1}}\n', editSummary:'Warning 2: Do not make vandalism' },
			{ name:'Vandal 2', template:'{{uw-vandalism2}}\n', editSummary:'Warning 3: Do not make vandalism' },
			{ name:'VANDAL', template:'{{uw-vandalism4}}\n', editSummary:'Final warning: Do not make vandalism' },
			{ name:'Redirect 1', template:'{{uw-redirect2}}\n', editSummary:'Warning 2: Do not redirect wrongly' },
			{ name:'REDIRECT', template:'{{uw-redirect4}}\n', editSummary:'Final warning: Do not redirect wrongly' },
			{ name:'Userpage', template:'{{uw-userpage}}\n', editSummary:'Warning: Userpage or subpage is against policy' },
			{ name:'Username', template:'{{uw-username}}\n', editSummary:'Warning: Username is against policy' },
			{ name:'Username cont', template:'{{uw-coi-username}}\n', editSummary:'Warning: Username is against policy, and conflict of interest' },
			{ name:'UP Vandal', template:'{{uw-upv}}\n', editSummary:'Warning: Do not make edits on User Pages' },
			{ name:'Legal Threat', template:'{{uw-legal}}\n', editSummary:'Warning: Do not make legal threats over Misplaced Pages' }
		],
		{ forNamespaces: 'user talk' } // common fields
	);
});
// </nowiki>
User:CnkALTDS/user.js Add topic