//<nowiki>
//<nowiki>
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
importScript('User:1Veertje/cat-a-lot.js');
// mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//</nowiki>
importScript('User:1Veertje/filelist.js');
importScript('User:Rillke/bigChunkedUpload.js');
importScript('User:1Veertje/Tips/CatPerson.js');
importScript('User:1Veertje/categoryColor.js');
//quickly add Duplicate/GM/RM templates. Expansion to AjaxQuickDelete.
window.AjaxDeleteExtraButtons = [{
'label': 'DW',
'tag': '{' '{copyvio|[[COM:DW|Derivative work]]}}',
'img_summary': 'This is a [[COM:DW|derivative work]]',
'talk_tag': '{' '{subst:derivativenote|1=%FILE%}}',
'talk_summary': '%FILE% is a [[COM:DW|derivative work]]',
},
{
'label': 'Duplicate',
'tag': '{' '{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[%PARAMETER%]]',
'prompt_text': 'Which file is this a duplicate of?'
},{
'label': 'GM',
'tag': '{' '{Gemeentelijk monument|1=%PARAMETER%}}',
'img_summary': 'Tagging as gemeentelijk monument # %PARAMETER%',
'prompt_text': 'Gemeentelijk monument ID'
},{
'label': 'RM',
'tag': '{' '{Rijksmonument|1=%PARAMETER%}}',
'img_summary': 'Tagging as Rijksmonument # %PARAMETER%',
'prompt_text': 'Rijksmonument ID'
},{
'label': 'War',
'tag': '{' '{War Memorial Netherlands|1=%PARAMETER%}}',
'img_summary': 'Tagging as War Memorial Netherlands # %PARAMETER%',
'prompt_text': 'War Memorial NL ID'
}
];
if ( mw.config.get("wgAction") == 'view' && mw.config.get("wgNamespaceNumber") == 6 && window.localStorage ) {
( function( $, mw, undefined ) {
var _install = function() {
var title, validTitle;
try {
title = mw.config.get( 'wgTitle' );
validTitle = new mw.Title( title );
validTitle = validTitle.getExtension().length && !/(?:\/|\#|\:)/.test( title );
} catch ( ex ) {}
if ( validTitle ) {
$activationLinks = $( mw.libs.commons.ui.addEditLink(
'#chunked upload',
"upload new version (chunked)",
'e-chunkedupload-overwrite',
"Create new file using chunked uploading" ) );
modeNewFile = true;
}
$('#filetoc').append($activationLinks);
$activationLinks.click( window.bigChunkedUpload );
};
mw.loader.using( [ 'ext.gadget.editDropdown', 'mediawiki.util', 'mediawiki.Title' ], _install );
}( jQuery, mediaWiki ) );
}
//add buttons to the classic upload form
if (mw.config.get( 'wgPageName' ) == 'Special:Upload'){
$('.mw-htmlform-field-HTMLTextField').after('<tr><td></td><td>'
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution acquired using the [[Dememorixer]]\')">Dememorixer</button>'
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution\')">Higher resolution</button>'
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'=={{int:filedesc}}==\\n{{Artwork\\n|wikidata=\\n|title={{en|1= }}\\n|date=\\n|medium = \\n|dimensions = \\n|institution=\\n|source=\\n|author=\\n|notes=\\n|permission=\\n|other versions=\\n}}\')">Artwork</button>'
'</td></tr>');
}
//add user category automatically
// if ("UploadWizard" === mw.config.get('wgCanonicalSpecialPageName')) {
// mw.loader.using('ext.uploadWizard', function () {
// try {
// var autoAdd = mw.config.get('UploadWizardConfig').autoAdd;
// // Add a custom category to all my upload wizard uploads
// autoAdd.categories.push("Photographs by User:1Veertje");
// // Add a custom license tag to all my files uploaded using the sorcerer
// // autoAdd.wikitext = "{{My custom information or re-using tag}}";
// } catch (ex) {
// mw.log("Injecting user-category into UploadWizard failed.", ex);
// }
// });
// }
//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"last executed (auto-saved)":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Images from Art UK]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/http:\\/\\/www\\.bbc\\.co\\.uk\\/arts\\/yourpaintings\\/paintings\\/(. )/","mdReplaceText1":"{{BBCYourPaintings|$1}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Images from Art UK","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|434841524c455320544f574e5348454e44204146544552205245863e4f4c44532e4a5047|49890231"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Images from Art UK","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|434841524c455320464f535445522042415248414d2042592048454e525920545245464652592044554e4e20313836302e4a5047|35172884","file|434841524c455320544f574e5348454e44204146544552205245863e4f4c44532e4a5047|49890231"],"setVals":["cmcontinue"]},"time":"2017-12-28T23:02:08.690Z"},"putting dimensions into size template":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"putting dimensions into size template","mdReplacePermission":false,"mdDeleteHeading":"","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\|dimensions ?= ?([0-9.] ) ?x ?([0-9.] ) ?(m|cm|mm|mi|in|ft|yd)/g","mdReplaceText1":"|dimensions = {{Size|unit = $3|width=$1 |height = $2}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"1Veertje","ledir":"older","lecontinue":"20180109110525|251304245"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"modeSearch":false,"target":"1Veertje","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20180109112124|251307548","20180109110525|251304245"],"setVals":["lecontinue"]},"time":"2018-01-10T16:15:32.778Z"},"re:publica author":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Re:publica 2019]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/Die re:publica ist eine der weltweit wichtigsten Konferenzen zu den Themen der digitalen Gesellschaft und findet in diesem Jahr vom 06. bis 08. Mai in der STATION-Berlin statt. Foto: (. )\\/re:publica\\n\\| Source = (. )\\n\\| Date = (. )\\n\\| Author = /","mdReplaceText1":"\n| Source = $2\n| Date = $3\n| Author = $1 / ","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Re:publica 2019","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|5245205055424c494341203139202d20444159203120283437373931313834373531292e4a5047|78774910"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Re:publica 2019","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|5245205055424c494341203139202d20444159203120283437373837333130313131292e4a5047|78753692","file|5245205055424c494341203139202d20444159203120283437373931313834373531292e4a5047|78774910"],"setVals":["cmcontinue"]},"time":"2019-05-08T09:16:46.007Z"},"not-that-category":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files found with [[Special:Search/incategory:\"Photographs by Gregor Fischer\" incategory:\"Future Affairs Berlin 2019\"]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\| [dD]escription = \\n([^] )\\[Category:((?!Photographs by Inge Krossøy|Nordiske Mediedager 2018). ?)([\\]|])/","mdReplaceText1":"|Description = $2\n$1[Category:$2$3","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Photographs by Inge Krossøy","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Photographs by Inge Krossøy","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2019-06-11T09:50:16.888Z"},"Date append":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:NEXT19]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/Date\\s =\\s*(. )([^] )\\[\\[Category:NEXT19/","mdReplaceText1":"Date =$1$2[[Category:NEXT19|$1","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:NEXT19","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:NEXT19","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2019-09-27T20:18:47.948Z"},"Heinrich böll ":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Europäischer Jugendkongress 2014]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"Jugendkongress 2014]]","mdReplaceText1":"Jugendkongress 2014]]\n[[Category:#%PAGENAME%]]","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#(Moderation |Podium v.l.n.r. )?(. ?)[,\\(]. /","mdReplaceText2":"$2]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Europäischer Jugendkongress 2014","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Europäischer Jugendkongress 2014","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2020-03-11T05:44:53.651Z"},"title_name_append":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Europäischer Jugendkongress 2014]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"Gulltaggen 2013]]","mdReplaceText1":"Gulltaggen 2013]]\n[[Category:#%PAGENAME%]]","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#(Moderation |Podium v.l.n.r. )?(. ?) ?[,\\(]. /","mdReplaceText2":"$2]] ","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Gulltaggen 2013","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Gulltaggen 2013","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2020-03-30T18:28:25.871Z"},"archive review":{"editInputs":{"mdDeleteReason":"","mdEditSummary":" ","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:FaceMePLS uploads 2022-05-18]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/archived version on \\[(. ?)( [^#] archive=)\\|/","mdReplaceText1":"archived version on [$1$2$1|","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:FaceMePLS uploads 2022-05-18","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|53544154494f4e53574547202d20484f45464b4144452028333138343130333239292e4a5047|118191055"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:FaceMePLS uploads 2022-05-18","loadThumbs":true,"loadWikitext":true,"startDate":"2022-05-18T12:00:00Z","startFile":""}},"proceedAt":{"vals":["file|4d5552414c2054555353454e20444520424f47454e20414d5354455244414d202837363130343630323034292e4a5047|118132505","file|53544154494f4e53574547202d20484f45464b4144452028333138343130333239292e4a5047|118191055"],"setVals":["cmcontinue"]},"time":"2022-05-21T10:22:38.555Z"},"Append file name as cat":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Files from GroenLinks Flickr stream]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"GroenLinks Flickr stream]]","mdReplaceText1":"GroenLinks Flickr stream]]\n[[Category:#%PAGENAME%]] ","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#(. ?) \\(. /","mdReplaceText2":"$1]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Files from GroenLinks Flickr stream","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Files from GroenLinks Flickr stream","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2023-08-09T19:47:37.672Z"}};
//////////////////////////////////vFCProfilEnd//
//
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":false,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//
//
//two extra edit buttons
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
mw.loader.using( 'user.options' ).then( function () {
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
$.when(
mw.loader.using( 'ext.wikiEditor' ), $.ready
).then( customizeToolbar );
}
} );
}
function customizeToolbar(){
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Iconfinder_category_103432.svg/25px-Iconfinder_category_103432.svg.png',
action: {
type: 'encapsulate',
options: {
pre: '[[Category:',
peri: '',
post: ']]'
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/f/fe/Icons-mini-icon_airmail.gif',
action: {
type: 'encapsulate',
options: {
pre: '{{Wikidata Infobox}}',
peri: '',
post: ''
}
}
}
}
} );
if (mw.config.get('wgNamespaceNumber') == 14){
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/04/Antu_im-user-offline.svg/25px-Antu_im-user-offline.svg.png',
action: {
type: 'encapsulate',
options: {
pre: peoplePrefill() '[[Category:',
post: ']]'
}
}
}
}
} );
}
}
//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"c_replace","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":250,"maxSimultaneousReq":15,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>