Utilisateur:Althiphika/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",'-23:00');
  }catch(e){ }


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

  try{
    addCustomOption("Log_rights",false);
    addCustomOption("Log_import",false);
    addCustomOption("Log_gblrights",false);
    addCustomOption("Log_gblblock",false);
    addCustomOption("Log_globalauth",false);
    addCustomOption("Log_renameuser",false);
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      {'template':'Test 0','string':'Test 0','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Test 1','string':'Test 1','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Test 2','string':'Test 2','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Test 3','string':'Test 3','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Seul avertissement','string':'Test 4','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':'LE hors-critères','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'LE dans texte','string':'LE dans texte','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Spammeur','string':'Spam','hasPage':true,'addName':true,'addSectionTitle':false},
      {'template':'Ortho','string':'Ortho','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':'BSI BàS','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 BandoDelist','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':'vandalisme craca','string':'craca','hasPage':false,'addName':false,'addSectionTitle':false},
      {'template':'Faux décès','string':'Faux décès','hasPage':true,'addName':false,'addSectionTitle':true}
    ]);
  }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':'Suppression','string':'PàS','withDate':''},
      {'template':'biblio','string':'biblio','withDate':''},
      {'template':'pub','string':'pub','withDate':''},
      {'template':'Orthographe','string':'ortho','withDate':''}
    ]);
  }catch(e){ }

}


/* ** Extensions ** */

//EXTENSIONS SETUP :  |UserWarningsExtension| |MostModifiedPagesExtension| |LinkOnIconExtension| |EditCharactersExtension| |RunCommonJS| |HotCatsMulti| |BandeauPortail| |PreviewAllLinksExtension| |PreviewThisPageExtension|

// -- 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');

// -- LinkOnIconExtension : Lie les icônes PàS, AdQ, BA et copyvio aux pages de discussion associées. --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/LinkOnIconExtension.js&action=raw&ctype=text/javascript');

// -- EditCharactersExtension : Améliore la fenêtre de modification avec les fonctions standards du Common.js (toolbar et caractères spéciaux). --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/EditCharactersExtension.js&action=raw&ctype=text/javascript');

// -- RunCommonJS : Améliore la prévisualisation avec des fonctions du Common.js (boîtes déroulantes, palettes, etc...) --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/RunCommonJS.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');

// -- BandeauPortail : Permet d’ajouter/modifier/retirer un ou plusieurs bandeau de portail lors de la prévisualisation d’un article --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/BandeauPortail.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');

// -- PreviewThisPageExtension : Permet de prévisualiser une page au choix --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/PreviewThisPageExtension.js&action=raw&ctype=text/javascript');


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

// {{Catégorisation JS}}