User:Zackmann08/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 15:
function wpBuildCheckForUnknownParameters()
{
var dummyContenttemplateTitle = document.title;
templateTitle = templateTitle.replace(/Editing\sTemplate\:(.*)\s\-\sWikipedia.*/, "{{unknown params category|$1}}");
var dummy = $('<input>').val(dummyContenttemplateTitle).appendTo('body').select()
document.execCommand('copy')
 
Line 139 ⟶ 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>