User:Zackmann08/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 15:
function wpBuildCheckForUnknownParameters()
{
var dummyContenttemplateTitle = "Test#2"document.title;
templateTitle = templateTitle.replace(/Editing\sTemplate\:(.*)\s\-\sWikipedia.*/, "{{unknown params category|$1}}");
var dummy = $('<input>').val(dummyContenttemplateTitle).appendTo('body').select()
document.execCommand('copy')
 
var dummyContent2 = "Test#3";
var dummy2 = ('<input>').val(dummyContent2).appendTo('body').select()
document.execCommand('copy')
var mycontent = document.getElementById('wpTextbox1');
// Copy the contents of the text window so we can modify it without problems
Line 143 ⟶ 140:
}
var dummyContent = "this is to be copied to clipboard";
var dummy = $('<input>').val(dummyContent).appendTo('body').select();
document.execCommand('copy');
// -------------------------------------------------------------------------------- //
});
 
var dummyContent = "Attempt #2";
var dummy = $('<input>').val(dummyContent).appendTo('body').select()
document.execCommand('copy')
//</nowiki>