Jump to content

User:CnkALTDS/user.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CnkALTDS (talk | contribs) at 15:54, 27 April 2010 (improved). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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 Wikipedia:Bypass your cache.
// <source lang="javascript">
/*************
*** TemplateScript
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/TemplateScript>
***    - adds a menu of user-defined, form-specific templates
*************/
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/TemplateScript.js&action=raw&ctype=text/javascript');
 
/* define templates */
function define_templates() {
        /* syntax: new_template('type','name','text','optional 1','optional 2','optional 3');
             see documentation
        */
 
        /* ### edit templates below ### */
        new_template('edit','Welcome','{{uw-welcome}}\n','Welcome to Wikipedia!');
        new_template('edit','Blank 1','{{uw-delete2}}\n','Warning 2: Do not blank pages');
        new_template('edit','Blank 2','{{uw-delete3}}\n','Warning 3: Do not blank pages');
        new_template('edit','BLANK','{{uw-delete4}}\n','Final warning: Do not blank pages');
        new_template('edit','Joke 1','{{uw-joke2}}\n','Warning 2: Please do not joke');
	new_template('edit','Joke 2','{{uw-joke3}}\n','Warning 3: Please do not joke');
        new_template('edit','JOKE','{{uw-joke4}}\n','Final warning: Please do not joke');
        new_template('edit','Test 1','{{uw-test2}}\n','Warning 2: Do not make test in Wikipedia articles');
        new_template('edit','Test 2','{{uw-test3}}\n','Warning 3: Do not make test in Wikipedia articles');
        new_template('edit','TEST','{{uw-test4}}\n','Final warning: Do not make test in Wikipedia articles');
        new_template('edit','Copyright','{{uw-copyright}}\n','Warning: Do not add copyrighted works violation');
        new_template('edit','Advert 1','{{uw-advert2}}\n','Warning 2: It is not allowed to make advert in Wikipedia');
        new_template('edit','Advert 2','{{uw-advert3}}\n','Warning 3: It is not allowed to make advert in Wikipedia');
        new_template('edit','ADVERT','{{uw-advert4}}\n','Final warning: It is not allowed to make advert in Wikipedia');
        new_template('edit','Spam 1','{{uw-spam2}}\n','Warning 1: It is not allowed to add spamlinks in Wikipedia');
        new_template('edit','Spam 2','{{uw-spam3}}\n','Warning 2: It is not allowed to add spamlinks in Wikipedia');
        new_template('edit','SPAM','{{uw-spam4}}\n','Final warning: It is not allowed to add spamlinks in Wikipedia');
        new_template('edit','Signature','{{uw-tilde}}\n','Please add your signature at the end of your posts');
        new_template('edit','Template 1','{{uw-tdel2}}\n','Warning 2: Do not remove templates');
        new_template('edit','TEMPLATE','{{uw-tdel4}}\n','Final warning :Do not remove templates');
        new_template('edit','Vandal 1','{{uw-vandalism1}}\n','Warning 2: Do not make vandalism');
        new_template('edit','Vandal 2','{{uw-vandalism2}}\n','Warning 3: Do not make vandalism');
        new_template('edit','VANDAL','{{uw-vandalism4}}\n','Final warning: Do not make vandalism');
        new_template('edit','Redirect 1','{{uw-redirect2}}\n','Warning 2: Do not redirect wrongly');
        new_template('edit','REDIRECT','{{uw-redirect4}}\n','Final warning: Do not redirect wrongly');
        new_template('edit','Userpage','{{uw-userpage}}\n','Warning: Userpage or subpage is against policy');
        new_template('edit','Username','{{uw-username}}\n','Warning: Username is against policy');
        new_template('edit','Username cont','{{uw-coi-username}}\n','Warning: Username is against policy, and conflict of interest');
        new_template('edit','UP Vandal','{{uw-upv}}\n','Warning: Do not make edits on User Pages');
        new_template('edit','Legal Threat','{{uw-legal}}\n','Warning: Do not make legal threats over Wikipedia');
        

        
        /* ### edit templates above ### */
        }
 
/* Load script */
addOnloadHook(function() {templatescript(define_templates())});
 
// </source>