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.
//==============================
// pour convertir Information en Book
importScript('User:Hsarrazin/book.js');

mw.loader.load( 'https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WhereWikimediansLive.css&action=raw&ctype=text/css', 'text/css' ); mw.loader.load( 'https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WhereWikimediansLive.js&action=raw&ctype=text/javascript' ); 


/* from [[User:Multichill/vector.js]] after https://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=312773073#Looking_for_a_coder */
(function(mw, $) {

  if (mw.config.get('wgAction') !== 'view') return;

  $(function() {
  	var title = new mw.Title(mw.config.get('wgTitle'), mw.config.get('wgNamespaceNumber'));
  	var titleForUrl = encodeURIComponent(title.toString());
  	var url = '//tools.wmflabs.org/locator-tool/#/geolocate';
  	if (mw.config.get('wgNamespaceNumber') === 6) {
  		url = 'https://commons.wikimedia.org/w/index.php?title=' + titleForUrl + '&action=edit&withJS=MediaWiki:InformationToArtwork.js';
  	} else {
  		return;
  	}

    mw.util.addPortletLink(
	'p-tb',
	url,
	'Convert to Artwork',
	't-art',
	'Converts the information template to the Artwork template'
);

  });

})(mediaWiki, jQuery);


/* for Art Photo */
(function(mw, $) {

  if (mw.config.get('wgAction') !== 'view') return;

  $(function() {
  	var title = new mw.Title(mw.config.get('wgTitle'), mw.config.get('wgNamespaceNumber'));
  	var titleForUrl = encodeURIComponent(title.toString());
  	var url = '//tools.wmflabs.org/locator-tool/#/geolocate';
  	if (mw.config.get('wgNamespaceNumber') === 6) {
  		url = 'https://commons.wikimedia.org/w/index.php?title=' + titleForUrl + '&action=edit&withJS=MediaWiki:InformationToArt_Photo.js';
  	} else {
  		return;
  	}

    mw.util.addPortletLink(
	'p-tb',
	url,
	'Convert to Art Photo',
	't-art',
	'Converts the information template to the Art Photo template'
);

  });

})(mediaWiki, jQuery);

//=========== Autres 
//add structured data to commons -en sélectionner 1 seulement // 
importScript('User:Jarekt/sdc_tool.js') ;
//importScript('User:Magnus Manske/sdc_tool.js') ;

// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");

// LangSwitch pour Creator
importScript('User:Hsarrazin/LangSwitch.js');

// bouton Typo //
importScript('User:Hsarrazin/typo.js');

// améliore l'affichage des catégories (par Tpt)//
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Tpt/interproject.js&action=raw&ctype=text/javascript');

//affiche un lien reasonator sur les catégories
importScript('User:Jheald/wdcat.js');

//affichage des zones d'images
mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/wd-image-positions.js&action=raw&ctype=text/javascript' );

//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"convert to Book template":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"convert to Book template","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Convert to Book template]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Information","mdReplaceText1":"{{subst:Book/subst|subst=subst:","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"[[Category:Convert to Book template]]","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Convert to Book template","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|57c58141445953c5814157204142524148414d202d20504f575354414e4945204f5247414e495a41435949204b4fc59a43494fc5814120c581414349c583534b4945474f204e41205255534920492e504446|17881648"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Convert to Book template","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|5448c389c38254524520444520504c415554452c2050414e434b4f55434b452c20544f4d4520322e444a5655|4938130","file|57c58141445953c5814157204142524148414d202d20504f575354414e4945204f5247414e495a41435949204b4fc59a43494fc5814120c581414349c583534b4945474f204e41205255534920492e504446|17881648"],"setVals":["cmcontinue"]},"time":"2021-02-25T19:48:48.019Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"unwatch","minor":true,"editpages":false,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//</nowiki>