Utilisateur:Champagne/LiveRCparam.js

Une page de Wikipédia, l'encyclopédie libre.
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;

Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
//<syntaxhighlight lang="javascript">//<pre>//<nowiki>
// Personnalisation pour LiveRC

/* ** Variables ** */

function LiveRC_getUserCustom(){


  // -- Paramètres de LiveRC --

  try{
    addCustomParam("TZ",'+02:00');
    addCustomParam("ShowUserInfos",true);
  }catch(e){ }


  // -- Options au démarrage de LiveRC --

  try{
    addCustomOption("DisplayliveSpam",true);
    addCustomOption("RC_external",true);
  }catch(e){ }


  // -- Résumés de révocation --

  try{
    defineCustomRevertMessages([
      {'resume':'[[Wikipédia:Bac à sable|Bac à sable]]','text':'Bac à sable'},
      {'resume':'[[Wikipédia:Vandalisme|Vandalisme]]','text':'Vandalisme'},
      {'resume':'Retrait d’information non sourcée','text':'Non-sourcé'},
      {'resume':'Traduction automatique','text':'Trad auto'},
      {'resume':'Suppression référence','text':'Suppression référence'}
    ]);
  }catch(e){ }


  // -- Modèles d’avertissement --

  try{
    defineCustomWarningTemplates([
      {'template':'Test 0','string':'Non encyclopédique','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Test 1','string':'Vandalisme 1','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Test 2','string':'Vandalisme 2','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Test 3','string':'Dernier avertissement','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Seul avertissement','string':'Avertissement unique','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Retrait injustifié','string':'Retrait injustifié','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Motivation modif','string':'Résumé','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'LE HC','string':'Liens blogs','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'LE dans texte','string':'Liens en référence','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Spammeur','string':'Spammeur','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Ortho','string':'Orthographe','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Ajout POV','string':'Non-neutre','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Non-encyclo','string':'Non-encyclo','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Faut sourcer','string':'Faut sourcer','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Maladresse','string':'Modif corrigée','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Suppr Bandeaux','string':'Bandeaux','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Bienvenue Copyvio 1','string':'Copyright','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Compte publicitaire','string':'PU publicitaire','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'BSI CAA','string':'BSI CAA','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'BSI BàS','string':'Suppression page','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'BSI promo','string':'BSI promo','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'BSI canular','string':'BSI canular','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Aide sources','string':'Aide sources','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'Aide images','string':'Aide images','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'Aide wikification','string':'Aide wikif','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Aide liens','string':'Aide liens','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'AideMeta/Promo','string':'Aide BandoPromo','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'AideMeta/RefLié','string':'Aide BandoRefLié','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'AideMeta/RefSec','string':'Aide BandoRefSec','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'AideMeta/TI','string':'Aide BandoTI','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'AideMeta/Delist','string':'Aide supp listes','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Bienvenue','string':'Bienvenue','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'Bienvenue IP','string':'Bienvenue IP','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'Bienvenue IP méritante','string':'Bienvenue IP +','hasPage':false,'addName':true,'addSectionTitle':false},
      {'template':'Bienvenu','string':'Bienvenu (promo page utilisateur)','hasPage':false,'addName':false,'addSectionTitle':false}
    ]);
  }catch(e){ }


  // -- Modèles de bandeaux --

  try{
    defineCustomTagTemplates([
      {'template':'Admissibilité à vérifier','string':'admissibilité','withDate':'$month $year'},
      {'template':'Copie à vérifier','string':'copyvio','withDate':''},
      {'template':'À sourcer','string':'à sourcer','withDate':'$month $year'},
      {'template':'À wikifier','string':'à wikifier','withDate':'$month $year'},
      {'template':'Sources secondaires','string':'sources secondaires','withDate':'$month $year'},
      {'template':'Sources à lier','string':'sources à lier','withDate':'$month $year'},
      {'template':'À délister','string':'à délister','withDate':'$month $year'},
      {'template':'Rédaction','string':'rédaction','withDate':'$month $year'},
      {'template':'Travail inédit','string':'TI','withDate':''},
      {'template':'Règle des 3 révocations','string':'R3R','withDate':''},
      {'template':'Promotionnel','string':'Promotionnel','withDate':'$month $year'},
      {'template':'Ébauche','string':'Ébauche','withDate':'$month $year'}
    ]);
  }catch(e){ }


  // -- Affichage/masquage des onglets du menu de configuration --

  try{
    addCustomParamMenuTab("lstReport",true);
    addCustomParamMenuTab("lrcSupprLineParams",true);
  }catch(e){ }

}


/* ** Extensions ** */

//EXTENSIONS SETUP :  |UserWarningsExtension| |MostModifiedPagesExtension| |HotCatsMulti| |PreviewAllLinksExtension|

// -- UserWarningsExtension : Ajoute une icône aux utilisateurs ayant reçu un avertissement. En option, indique si la page de discussion de l’utilisateur existe ou non. --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/UserWarningsExtension.js&action=raw&ctype=text/javascript');

// -- MostModifiedPagesExtension : Ajoute une icône aux pages ayant été modifiées récemment par plusieurs utilisateurs ou ayant fait l’objet de plusieurs reverts. --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/MostModifiedPagesExtension.js&action=raw&ctype=text/javascript');

// -- HotCatsMulti : Permet d’ajouter/modifier/retirer une ou plusieurs catégories lors de la prévisualisation d’une page --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/HotCatsMulti.js&action=raw&ctype=text/javascript');

// -- PreviewAllLinksExtension : Permet de prévisualiser tout lien interne de la fenêtre de prévisualisation --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/PreviewAllLinksExtension.js&action=raw&ctype=text/javascript');


//END PARAMS
//</nowiki></pre></syntaxhighlight>

// {{Catégorisation JS}}