User:Zackmann08/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 15:
function wpBuildCheckForUnknownParameters()
{
var templateTitle = 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 mycontent = document.getElementById('wpTextbox1');
// Copy the contents of the text window so we can modify it without problems
Line 135 ⟶ 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>