User:SockyPaws/common.js

From Zoophilia Wiki
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * ProveIt is a reference manager for MediaWiki instances.
 * Documentation: <https://www.mediawiki.org/wiki/ProveIt>
 * Source code: <https://www.mediawiki.org/wiki/MediaWiki:Gadget-ProveIt.js>
 */
function loadProveIt() {
  mw.config.set( {
    'proveit-tag': 'proveit', // Revision tag defined at Special:Tags (optional)
    'proveit-summary': 'Reference edited with [[mediawikiwiki:ProveIt|ProveIt]]', // Automatic edit summary (optional)
    'proveit-templates': [ // Local citation templates (without namespace)
      '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',
    ],
    'proveit-namespaces': [ // Supported namespaces, see https://www.mediawiki.org/wiki/Manual:Namespace_constants
      0, // Main namespace
      2, // User namespace
    ]
  } );
  mw.loader.load('//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ProveIt');
}

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

// Backlink: [[wikipedia:User:Danski454/goToTop|gotoTop user script]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Danski454/goToTop.js&action=raw&ctype=text/javascript&maxage=86400');

// Backlink: [[wikipedia:User:PerfektesChaos/js/lintHint/r.js|LintHint user script]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&ctype=text/javascript&maxage=86400');

// Handles parameter and value spacing in templates, Backlink: [[wikipedia:User:BrandonXLF/ParameterSpacing.js|ParameterSpacing user script]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ParameterSpacing.js&action=raw&ctype=text/javascript&maxage=86400');