/**
* ProveIt is a reference manager for Wikipedia and any other MediaWiki wiki
* Documentation: https://www.mediawiki.org/wiki/ProveIt
* Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ProveIt.js
*/
function loadProveIt() {
mw.config.set( {
// Local citation templates (without namespace)
'proveit-templates': [
'Citation',
'Cite arXiv',
'Cite AV media',
'Cite book',
'Cite bioRxiv',
'Cite comic',
'Cite encyclopedia',
'Cite episode',
'Cite interview',
'Cite journal',
'Cite magazine',
'Cite news',
'Cite paper',
'Cite press release',
'Cite report',
'Cite sign',
'Cite speech',
'Cite thesis',
'Cite tweet',
'Cite video',
'Cite video game',
'Cite web',
'R',
'Sfn',
'Harvnb',
'Kitab3',
'Məqalə',
'Publikasiya'
],
// Citation templates that shouldn't go inside <ref> tags
'proveit-templates-noref': [ 'R', 'Sfn', 'Harvnb' ],
// Supported namespaces, see https://www.mediawiki.org/wiki/Manual:Namespace_constants
'proveit-namespaces': [ 0, 2, 118 ],
// Preferred date format, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
'proveit-date-format': { year: 'numeric', month: 'numeric', day: 'numeric' },
// Revision tag defined at Special:Tags
'proveit-tag': 'ProveIt ilə ',
// Automatic edit summary
'proveit-summary': 'İstinadlar "[[Vikipediya:Qadcetlər/ProveIt|ProveIt]]" ilə edildi.',
} );
// Load from the central, global version at MediaWiki.org
mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ProveIt' );
}
// Only load when editing
mw.hook( 'wikipage.editform' ).add( editForm => window.ProveIt || loadProveIt() );
mw.hook( 've.newTarget' ).add( target => target.constructor.static.name === 'article' && target.on( 'surfaceReady', loadProveIt ) );