Jump to content

MediaWiki:Gadget-formWizard.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by I JethroBT (talk | contribs) at 03:48, 21 May 2015 (replacing existing code with formWizard-core loader). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*  ______________________________________________________________________________________
 * |                                                                                     |
 * |                    === WARNING: GADGET FILE ===                                     |
 * |                  Changes to this page affect many users.                            |
 * | Please discuss changes on the talk page or on [[MediaWiki_talk:Gadgets-definition]] |
 * |	 before editing.                                                                 |
 * |_____________________________________________________________________________________|
 *
 * See https://meta.wikimedia.org/wiki/Meta:FormWizard for usage and description.
 */
//<nowiki>
$(function(){
	var namespace = mw.config.values['wgPageName'].split('/')[0];
	if ( namespace == 'Wikipedia:Co-op' ){
		mw.loader.load( 'ext.gadget.formWizard-core' );
	}
});