<pre>
importScript('User:Coyau/resumedeluxe.js');
importScript('User:Coyau/ToolbarMH.js');
importScript('User:Sreejithk2000/JustReplace.js');
var UploadForm_ownwork_author = "\{\{User:Coyau/cc-by-sa}}";
var UploadForm_own_language_first = true;
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"Adding a lens category":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Adding a lens category.","mdReplacePermission":false,"mdDeleteHeading":"","mdTalkNote":"","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(.)$/","mdReplaceText1":"$1\n[[Category:Taken with %FocalLength%]]","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"\n[[Category:Taken with %FocalLength%]]","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"Taken with 28/1","mdReplaceText3":"Taken with Canon EF 28mm F1.8","mdRRegEx4":false,"mdRVar4":true,"mdMatchText4":"Taken with 50/1","mdReplaceText4":"Taken with Canon EF 50mm F1.4 USM","mdRRegEx5":false,"mdRVar5":true,"mdMatchText5":"Taken with 100/1","mdReplaceText5":"Taken with Canon EF 100mm F2.8 Macro USM","mdRRegEx6":true,"mdRVar6":true,"mdMatchText6":"/Taken with (10|11|12|13|14|15|16|17|18|19|20|21|22)/1/g","mdReplaceText6":"Taken with Canon EF-S 10-22mm F3.5-4.5 USM","mdRRegEx7":true,"mdRVar7":true,"mdMatchText7":"/\\n\\[\\[Category:Taken with \\d{1,3}\\/\\d{1,3}\\]\\]/g","mdReplaceText7":"","mdRRegEx8":false,"mdRVar8":true,"mdMatchText8":"","mdReplaceText8":"","selPreserve":"placeholder","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Coyau","lestart":"2013-06-25T23:17:15Z","ledir":"older"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"target":"User:Coyau","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["2013-06-26T00:21:04Z","2013-06-25T23:17:15Z"],"setVals":["lestart"]},"time":"2013-06-27T06:48:12.124Z"},"add {{Object photo}}":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"add {{[[template:Object photo|Object photo]]}}","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:Coyau|Coyau]] ([[User talk:Coyau|talk]] · [[Special:Contributions/Coyau|contribs]])","mdTalkNote":"Yours sincerely","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Information\n|Description=\n","mdReplaceText1":"{{Object photo\n|Object=\n|Detail=\n|Description=","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Amandiers gate of the Cemetery Père-Lachaise","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Amandiers gate of the Cemetery Père-Lachaise","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2013-02-25T17:02:27.210Z"},"{{Objet photo}} & lens cat":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Adding a lens category & {{[[template:Object photo|Object photo]]}}.","mdReplacePermission":false,"mdDeleteHeading":"","mdTalkNote":"","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(.)$/","mdReplaceText1":"$1\n[[Category:Taken with %FocalLength%]]","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"\n[[Category:Taken with %FocalLength%]]","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"Taken with 28/1","mdReplaceText3":"Taken with Canon EF 28mm F1.8","mdRRegEx4":false,"mdRVar4":true,"mdMatchText4":"Taken with 50/1","mdReplaceText4":"Taken with Canon EF 50mm F1.4 USM","mdRRegEx5":false,"mdRVar5":true,"mdMatchText5":"Taken with 100/1","mdReplaceText5":"Taken with Canon EF 100mm F2.8 Macro USM","mdRRegEx6":true,"mdRVar6":true,"mdMatchText6":"/\\n\\[\\[Category:Taken with \\d{1,3}\\/\\d{1,3}\\]\\]/g","mdReplaceText6":"","mdRRegEx7":false,"mdRVar7":true,"mdMatchText7":"{{Information\n|Description=\n","mdReplaceText7":"{{Object photo\n|Object=\n|Detail=\n|Description=","mdRRegEx8":false,"mdRVar8":true,"mdMatchText8":"","mdReplaceText8":"","selPreserve":"placeholder","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Coyau","lestart":"2013-04-03T11:33:49Z","ledir":"older"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"target":"User:Coyau","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["2013-04-03T14:03:51Z","2013-04-03T11:33:49Z"],"setVals":["lestart"]},"time":"2013-04-09T20:53:16.203Z"},"{{Object photo}} from flickr2commons":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"add {{[[template:Object photo|Object photo]]}}","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:Coyau|Coyau]] ([[User talk:Coyau|talk]] · [[Special:Contributions/Coyau|contribs]])","mdTalkNote":"Yours sincerely","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Information\n| Description =","mdReplaceText1":"{{Object photo\n| Object =\n| Detail =\n| Description = {{en|1= ","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"\n| Source =","mdReplaceText2":"}}\n| Source =","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Coyau","ledir":"older","lecontinue":"20150222210504|115155224"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"target":"User:Coyau","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20150222231648|115171403","20150222210504|115155224"],"setVals":["lecontinue"]},"time":"2015-02-23T10:57:34.003Z"}};
//////////////////////////////////vFCProfilEnd//
//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":false,"editpages":true,"docleanup":true,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
//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":30,"maxSimultaneousReq":10,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
/* BOUTONS D'EDITION */
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
$(function() {
if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) === -1 || !mw.toolbar)
return;
$.each([
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
[
'\{\{Artwork\n |artist =\{\{creator:}}\n |title =\{\{Title|1=|lang=|de=|en=|fr=|nl=}}\n |wikidata =', '\n |description =\n |date =\n |medium =\{\{oil on canvas}}\n |dimensions =\{\{Size|unit=|height=|width=}}\n |institution =\{\{institution:}}\n |department =\n |references =\{\{Joconde|}}\n |object history =\n |exhibition history =\n |credit line =\n |inscriptions =\n |notes =\n |accession number =\n |place of creation =\n |source =\n |permission =\n}}',
'b/bb/Button_%C3%A9bauche',
'Template:Artwork',
'',
'mw-editbutton-artwork'
],
[
'\{\{Technique|', '|adj=|and=|adjand=|and2=|adjand2=|and3=|adjand3=|and4=|adjand4=|on=|adjon=|over=|adjover=|mounted=|adjmounted=}}',
'Technique',
'Technique',
'',
'mw-editbutton-technique'
],
[
'\{\{Size|unit=', '|height=|width=|length=|depth=|diameter=|thickness=|prec=|lang=}}',
'Size',
'Size',
'',
'mw-editbutton-size'
]
], function(_, button) {
mw.toolbar.addButton('//upload.wikimedia.org/wikipedia/commons/' + button[2] + '.png', button[3], button[0], button[1], (button[0] ? button[4] : ''), 'mw-editbutton-' + button[4]);
});
});
//thumbnails size
$( function() {
$( ".searchResultImage a.image img" ).each( function() { if ( this.width*3 < $(this).data( 'file-width' )) {this.srcset = ''; this.src = this.src.replace( /\d+(px-[^\/]*$)/, (this.width*3) +"$1" );this.width = this.width*1.5; this.height = this.height*1.5} } );
$( '.mw-gallery-traditional li' ).each( function() { var $this = $(this), child = $this.children( 'div' ), child2 = child.children( 'div' ), img = child2.find( 'img' ); if ( img[0].width*3 < img.data( 'file-width' ) ) { $this.width( $this.width() * 1.5 ); child.width( child.width()*1.5 ); child2.width( child2.width()*1.5); img[0].srcset = ''; img[0].src = img[0].src.replace( /\d+(px-[^\/]*$)/, (img[0].width*3) + '$1' ); img[0].width *= 1.5; img[0].height *= 1.5; } } );
});
</pre>