User:Stefan2/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// <nowiki>

// Bevaka sidor som föreslås för radering:
window.AjaxDeleteWatchFile = true;

// Extra knappar (bruksanvisning på [[Help:AjaxQuickDelete]]):
window.AjaxDeleteExtraButtons = [
  {
    'label': 'no source nor licence',
    'tag': '{{subst:nsd}}{{subst:nld}}',
    'img_summary': 'This file is missing legal information.',
    'talk_tag': '{{subst:User:Stefan2/nsdnld|1=%FILE%}}',
    'talk_summary': '%FILE% is missing legal information',
  }, {
    'label': 'dw-nsd',
    'tag': '{{subst:dw-nsd}}',
    'img_summary': 'This is a [[COM:DW|derivative work]] and no source is provided.',
    'talk_tag': '{{subst:dw image source|1=%FILE%}}',
    'talk_summary': 'Original source is missing for %FILE%',
  }, {
    'label': 'Dublett',
    'tag': '{{duplicate|1=%PARAMETER%|user=%USER%}}',
    'img_summary': 'Tagging as duplicate of  [[%PARAMETER%]]',
    'prompt_text': 'Which is file is this a duplicate of?'
  }, {
    'label': 'Fel licens',
    'tag': '{{wrong license}}',
    'img_summary': 'This file has a wrong licence specified.',
    'talk_tag': '{{subst:wrong license note|1=%FILE%}}',
    'talk_summary': 'Licence for %FILE% is wrong',
  }, {
    'label': 'bsr',
    'tag': '{{bsr}}',
    'img_summary': 'This file needs a better source.',
    'talk_tag': '{{subst:bsr-user|%FILE%}}',
    'talk_summary': '%FILE% needs a better source.',
  }, {
    'label': 'non-free logo',
    'tag': '{{logo}}',
    'img_summary': 'This is a non-free logo.',
    'talk_tag': '{{subst:copyvionote|%FILE%}}',
    'talk_summary': '%FILE% is a non-free logo.',
  }, {
    'label': 'fair use',
    'tag': '{{fair use}}',
    'img_summary': 'The uploader asserts fair use.',
    'talk_tag': '{{subst:copyvionote|%FILE%}}',
    'talk_summary': '[[COM:FU|Fair use]] is not valid on Commons.',
  }, {
    'label': 'bad filename',
    'tag': '{{move|2=2}}',
    'img_summary': 'This file needs a better name.',
    'talk_tag': '{{subst:Please name images|%FILE%}}',
    'talk_summary': 'Please name your files properly.',
  }
];

importScript('User:Magog the Ogre/cleanup.js');

// mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');

importScript('User:Majora/LicenseReview.js');

// </nowiki>
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"del","watchlistUserTalk":"preferences","watchlistFiles":"watch","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":30,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":false,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>