User:Kaldari/common.js

//popupFixDabs = true; //importScript('User:Ohconfucius/script/MOSNUM dates.js'); // User:Ohconfucius/script/MOSNUM dates.js //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ABellezzasolo%2FScripts%2Fsubpages.js&action=raw&ctype=text/javascript'); // User:Bellezzasolo/Scripts/subpages.js //mw.loader.load( 'https://www.mediawiki.org/w/index.php?title=User:MSchottlender-WMF/WhoWroteThat.js&action=raw&ctype=text/javascript' ); console.log('0'); if($('#wpTemplateSandboxPage').attr('type') == 'hidden') { console.log('1'); mw.loader.using('jquery.makeCollapsible', function {		$('#templatesandbox-editform').makeCollapsible({collapsed: !$('#wpTemplateSandboxPage').attr('value') });	}); $('#templatesandbox-editform').prepend(' Preview page with this template '); $('#wpTemplateSandboxPage').before(' Page title: ').after('').replaceWith($('#wpTemplateSandboxPage').clone.attr({type: 'text', tabindex: +($('#wpDiff').attr('tabIndex')) + 0.5, size: 60, spellcheck: true, 'data-mw-searchsuggest': '{"wrapAsLink":false}'}).addClass('mw-searchInput')); } if($('#wpTemplateSandboxTemplate').attr('type') == 'hidden') { console.log('2'); $('#wpTemplateSandboxTemplate').before(' Template name: ').after(' ').replaceWith($('#wpTemplateSandboxTemplate').clone.attr({type: 'text', tabindex: +($('#wpDiff').attr('tabIndex')) + 0.25, size: 60, spellcheck: true})); }