मीडियाविकि:Gadget-ProveIt.js: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
नया वर्जन लागू कइल गइल |
Sophivorus (बातचीत | योगदान) Update to latest |
||
लाइन 1:
/**
* ProveIt is a powerful
*
*
* The gadget
* but here are a few * and
*/
// Only load on appropriate namespaces
var namespace = mw.config.get( 'wgNamespaceNumber' );
if ( namespace === 0 || namespace === 2
// Only load when editing
Line 19 ⟶ 20:
if ( contentModel === 'wikitext' ) {
// Only load with the classic wikitext editors, not the new one
// Set the wiki-specific options (all options are optional and can be set to null)▼
var textbox = document.getElementById( 'wpTextbox1' );
mw.config.set({▼
if ( textbox ) {
'proveit-tag': 'ProveIt edit', // Revision tag created at Special:Tags▼
'proveit-summary': 'Reference edited with [[Wikipedia:ProveIt|ProveIt]]', // Edit summary automatically added by ProveIt▼
'proveit-templates': [ // These templates should have their TemplateData defined▼
▲ mw.config.set({
'Template:Citation',▼
▲ 'proveit-tag': 'ProveIt edit', // Revision tag created at Special:Tags
'Template:Cite AV media',▼
▲ 'proveit-summary': 'Reference edited with
'Template:Cite book',▼
▲ 'proveit-templates': [ // These templates should have their TemplateData defined
'Template:Cite encyclopedia',▼
'Template:
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
'Template:Cite
]
});
// Load the latest code directly from Commons
mw.loader.load( '//commons.wikimedia.org/w/
mw.loader.load( '//commons.wikimedia.org/w/
}
}
}
|