From Wikipedia, the free encyclopedia
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.

//<nowiki>

const mwUtil = mw.util;

const menuPlainText = 

	'Citation', 

	'Cleanup',

	'Copyedit',

	'Timing',

	'Expand'

	];

const menuID = 

	'pt-Citation',

	'pt-Cleanup',

	'pt-Copyedit',

	'pt-Timing',

	'pt-Expansion'

	];

const template = 



'{{more citations needed}}',

'{{cleanup|reason=',

'{{copy edit}}',

'{{current}}',

'{{Missing information|'

];

	//These functions do eventually need to be cleaned up into a single function, if possible.

	function citation(){

		document.editform.wpTextbox1.value = template0 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function cleanup(){

		 let reason = window.prompt("Enter the reason for cleanup",'Reason');

		document.editform.wpTextbox1.value = template1 + reason+"}}"+"\n" + document.editform.wpTextbox1.value;

		

	}

	function copyedit(){

		

		document.editform.wpTextbox1.value = template2 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function timing(){

		

		document.editform.wpTextbox1.value = template3 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function expand(){

		

	    let text = window.prompt("What is the subject that requires expansion?",'Subject');

		document.editform.wpTextbox1.value = template4 + text+"}}"+"\n" + document.editform.wpTextbox1.value;

		

	}

	



$( document ).ready( function () { 



//Initialization code

mw.util.addPortlet('p-easyT', 'EasyTemplates', '#p-cactions');

let menuGenStep = menuPlainText.length-menuPlainText.length;

let length =menuPlainText.length;

while (menuGenStep < length){

	//Generates menu, as well as linking to insertion function

	mw.util.addPortletLink('p-easyT', "javascript:"+ menuPlainTextmenuGenStep].toLowerCase()+"();", menuPlainTextmenuGenStep],menuIDmenuGenStep]);

	menuGenStep++;

}

mw.util.addPortletLink('p-easyT', 'https://en.wikipedia.org/?title=User:Vghfr/EasyTemplates/Easytemplates.js', 'Script (dev link)');



});

//</nowiki>
From Wikipedia, the free encyclopedia
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.

//<nowiki>

const mwUtil = mw.util;

const menuPlainText = 

	'Citation', 

	'Cleanup',

	'Copyedit',

	'Timing',

	'Expand'

	];

const menuID = 

	'pt-Citation',

	'pt-Cleanup',

	'pt-Copyedit',

	'pt-Timing',

	'pt-Expansion'

	];

const template = 



'{{more citations needed}}',

'{{cleanup|reason=',

'{{copy edit}}',

'{{current}}',

'{{Missing information|'

];

	//These functions do eventually need to be cleaned up into a single function, if possible.

	function citation(){

		document.editform.wpTextbox1.value = template0 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function cleanup(){

		 let reason = window.prompt("Enter the reason for cleanup",'Reason');

		document.editform.wpTextbox1.value = template1 + reason+"}}"+"\n" + document.editform.wpTextbox1.value;

		

	}

	function copyedit(){

		

		document.editform.wpTextbox1.value = template2 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function timing(){

		

		document.editform.wpTextbox1.value = template3 + "\n" + document.editform.wpTextbox1.value;

		

	}

	function expand(){

		

	    let text = window.prompt("What is the subject that requires expansion?",'Subject');

		document.editform.wpTextbox1.value = template4 + text+"}}"+"\n" + document.editform.wpTextbox1.value;

		

	}

	



$( document ).ready( function () { 



//Initialization code

mw.util.addPortlet('p-easyT', 'EasyTemplates', '#p-cactions');

let menuGenStep = menuPlainText.length-menuPlainText.length;

let length =menuPlainText.length;

while (menuGenStep < length){

	//Generates menu, as well as linking to insertion function

	mw.util.addPortletLink('p-easyT', "javascript:"+ menuPlainTextmenuGenStep].toLowerCase()+"();", menuPlainTextmenuGenStep],menuIDmenuGenStep]);

	menuGenStep++;

}

mw.util.addPortletLink('p-easyT', 'https://en.wikipedia.org/?title=User:Vghfr/EasyTemplates/Easytemplates.js', 'Script (dev link)');



});

//</nowiki>

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook