Content deleted Content added
Zackmann08 (talk | contribs) test |
Zackmann08 (talk | contribs) No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 2:
// Shamelessly copied from User:Frietjes/addcheckforunknownparameters.js
jQuery(document).ready(function($) {
document.execCommand("copy");▼
if(mw.config.get('wgNamespaceNumber') != -1 && document.getElementsByName('wpTextbox1')[0]) {
mw.loader.using(['mediawiki.util']).done( function() {
Line 26 ⟶ 15:
function wpBuildCheckForUnknownParameters()
{
var templateTitle = document.title;
templateTitle = templateTitle.replace(/Editing\sTemplate\:(.*)\s\-\sWikipedia.*/, "{{unknown params category|$1}}");
var dummy = $('<input>').val(templateTitle).appendTo('body').select()
var mycontent = document.getElementById('wpTextbox1');
// Copy the contents of the text window so we can modify it without problems
Line 146 ⟶ 140:
}
// -------------------------------------------------------------------------------- //
});
|