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.
/**
 * ProveIt is a reference manager for Wikipedia and any other MediaWiki wiki
 * Documentation at https://www.mediawiki.org/wiki/ProveIt
 *
 * This initialization script sets the configuration options specific to this wiki
 * and then loads the ProveIt code directly from MediaWiki.org
 */
function loadProveIt() {
	mw.config.set({
		'proveit-tag': 'ProveIt edit', // Revision tag defined at Special:Tags (optional)
		'proveit-summary': 'Reference edited with [[Wikipedia:ProveIt|ProveIt]]', // Automatic edit summary (optional)
		'proveit-templates': [ // Citation templates (without namespace)
			'Citation',
			'Cite arXiv',
			'Cite AV media',
			'Cite AV media notes',
			'Cite book',
			'Cite bioRxiv',
			'Cite conference',
			'Cite comic',
			'Cite encyclopedia',
			'Cite episode',
			'Cite Instagram',
			'Cite interview',
			'Cite journal',
			'Cite magazine',
			'Cite mailing list',
			'Cite map',
			'Cite news',
			'Cite newsgroup',
			'Cite paper',
			'Cite podcast',
			'Cite press release',
			'Cite report',
			'Cite serial',
			'Cite sign',
			'Cite speech',
			'Cite techreport',
			'Cite thesis',
			'Cite tweet',
			'Cite video',
			'Cite video game',
			'Cite ssrn',
			'Cite web',
		],
		'proveit-namespaces': [ // Supported namespaces (see https://www.mediawiki.org/wiki/Manual:Namespace_constants)
			0, // Main namespace
			2, // User namespace
			10, // Template namespace
			118, // Draft namespace
		],
		'proveit-normalize-warning': '<strong>Warning!</strong> Edits that <strong>only</strong> do cosmetic changes may be considered disruptive. See <a target="_blank" href="https://en.wikipedia.org/wiki/Wikipedia:COSMETICBOT">WP:COSMETICBOT</a> for more.'
	});
	mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.ProveIt&only=scripts' );
	mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.ProveIt&only=styles', 'text/css' );
}

// Only load when editing
mw.hook( 'wikipage.editform' ).add( loadProveIt );
mw.hook( 've.activationComplete' ).add( loadProveIt );