User:Perhelion/problemImages

From Meta, a Wikimedia project coordination wiki

Install[edit]

Paste the following code in your global.js or common.js (or /vector.js):

Please leave the [[File:Perhelion_problemImages.js]] in for statistics (workaround for phab:T35355).

Configuration[edit]

The script can be controlled by two variables. For this purpose add following code (at best before the integration):

  • window.autorunPI = true;
Runs the script automatic on article namespace.
  • window.localProbCats = { 'dewiki': 'Wikipedia:Dateiüberprüfung|Wikipedia:Schnelllöschen' }';
Specification of user-defined problem/maintenance categories (without namespace) as an object with wgDBname (for example, 'dewiki' for the German Wikipedia) as key. Default for En.Wiki is { 'enwiki': 'Wikipedia files for discussion|Candidates for speedy deletion' }';.
The names must be separated by a pipe without spaces

Code[edit]