MediaWiki:Gadget-ProveIt.js: Difference between revisions

From Porn Base Central
Jump to navigation Jump to search
(Replaced content with "function loadProveIt() { mw.config.set({ 'proveit-tag': 'ProveIt edit', // Revision tag defined at Special:Tags (optional) 'proveit-summary': 'Reference edited with [...")
 
m (1 revision imported)
 

Latest revision as of 17:13, 16 August 2020

function loadProveIt() {
	mw.config.set({
		'proveit-tag': 'ProveIt edit', // Revision tag defined at Special:Tags (optional)
		'proveit-summary': 'Reference edited with [[PBC: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 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
			4,
			12,
			100,
			118, // Draft namespace
			446,
		]
	});
	mw.loader.load( '//commons.wikimedia.org/w/load.php?modules=ext.gadget.ProveIt&only=scripts' );
	mw.loader.load( '//commons.wikimedia.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 );