MediaWiki:Gadget-ProveIt.js
Eʼtibor bering: Oʻzgartirishlaringizni koʻrish uchun, yangi moslamalaringizning saqlashdan keyin, brauzer keshini tozalash kerak:
Mozilla / Firefox: Ctrl+Shift+R, IE: Ctrl+F5, Safari: Cmd+Shift+R, Konqueror: F5, Opera: Tools → Preferences orqali keshni tozalang.
/**
* 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',
'proveit-summary': 'Tahrir [[VP:ProveIt|ProveIt]] gadjeti yordamida amalga oshirildi', // tahrir izohi
'proveit-templates': [ // Manba andozalari
'ArXiv manbasi',
'Citation',
'Ensiklopediya manbasi',
'Jurnal manbasi',
'Kitob manbasi',
'Konferensiya manbasi',
'Press-reliz manbasi',
'Qism manbasi',
'Tweet manbasi',
'Veb manbasi',
'Video manbasi',
'Yangiliklar manbasi',
],
'proveit-namespaces': [ // qarang: https://www.mediawiki.org/wiki/Manual:Namespace_constants
0, // asosiy nomfazo
2, // foydalanuvchi nomfazosi
118, // qoralama nomfazosi
]
});
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' );
}
mw.hook( 'wikipage.editform' ).add( loadProveIt );
mw.hook( 've.activationComplete' ).add( loadProveIt );