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 18:06, 21 May 2015 (replacing with code to allow FormWizard to be loaded generally in the WP namespace (see https://phabricator.wikimedia.org/T99866)). 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.get('wgCanonicalNamespace');
	if ( namespace == 'Project' ){
		mw.loader.load( 'ext.gadget.formWizard-core' );
	}
});