Utilisateur:SleaY/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 ** */

window.LiveRC_getUserCustom = function(){
  lrcDisplayDebug('getUserCustom');


  // -- Paramètres de LiveRC --

  try{
    addCustomParam("lrcXUWColorNoTalk", 'rouge');
    addCustomParam("lrcXUWColorRecentTalk", 'jaune');
    addCustomParam("lrcXUWColorRecentWarning", 'bleu');
  }catch(e){ }


  // -- Résumés de blanchiment --

  try{
    defineCustomBlankMessages([
      { 'tooltip' : 'copyvio' , 'resume' : '[[WP:COPY|copie de site web sans autorisation explicite]]' },
      { 'tooltip' : 'CAA' , 'resume' : '[[WP:CAA|critères d’admissibilité non atteints]]' },
      { 'tooltip' : 'non encyclo' , 'resume' : '[[WP:P|non encyclopédique en l’état]]' },
      { 'tooltip' : 'BaS' , 'resume' : 'Bac à sable' },
      { 'tooltip' : 'vandalisme' , 'resume' : 'Vandalisme' },
      { 'tooltip' : 'Spam' , 'resume' : 'Spam' }
    ]);
  }catch(e){ }


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

  try{
    Custom_lrcRevertMessages = [
      { 'resume' : '[[Aide:Bac à sable|Bac à sable]], test de débutant' , 'text' : 'Bac à sable' },
      { 'resume' : '[[Wikipédia:Vandalisme| ⚠ Vandalisme]]' , 'text' : 'Vandalisme' },
      { 'resume' : '[[Wikipédia:Vérifiabilité|Information non sourcée]]' , 'text' : 'Non-sourcé' },
      { 'resume' : 'Traduction automatique' , 'text' : 'Trad auto' },
      { 'resume' : 'Modification suspecte' , 'text' : 'Suspect' },
      { 'resume' : '[[WP:TI|Travail inédit]]' , 'text' : 'TI' },
      { 'resume' : '[[Aide:Style encyclopédique|Non encyclopédique]]' , 'text' : 'Non encyclo' },
      { 'resume' : '[[Wikipédia:Droit d\'auteur| © Violation du droit d’auteur]]' , 'text' : 'Copie de site' },
      { 'resume' : 'Maladresse' , 'text' : 'Maladresse' },
      { 'resume' : 'Retrait de contenu sans explication' , 'text' : 'Retrait injustifié' },
      { 'resume' : 'Retrait de bandeau de maintenance sans explication' , 'text' : 'Suppr Bandeaux' },
      { 'resume' : '­[[WP:FORUM|Wikipédia n\'est pas un forum]]' , 'text' : 'Pas un forum' }
    ];
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      { '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' : 'Contributions rémunérées' , 'string' : 'Contribs rémunérées' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Test 1' , 'string' : 'Test 1' , 'hasPage' : true , 'addName' : false , '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 texte' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Ajout POV' , 'string' : 'Non-neutre' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Non-encyclo' , 'string' : 'Non-encyclo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Utilisateur:SleaY/Faut sourcer' , 'string' : 'Faut sourcer' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Faut sourcer 2' , 'string' : 'Faut sourcer 2' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Faux décès' , 'string' : 'Faux décès' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE HC' , 'string' : 'LE inadéquat' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur' , 'string' : 'Spam 1' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE dans texte' , 'string' : 'LE dans texte' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Avertissement Copyvio' , 'string' : 'Copyvio' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Dernier avertissement Copyvio' , 'string' : 'Copyvio (Dernier avert)' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Avertissement Copyvio Synopsis' , 'string' : 'Copyvio (Synopsis)' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI Copyvio' , 'string' : 'Copyvio (SI)' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Ortho' , 'string' : 'Ortho' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Traduction automatique' , 'string' : 'Traduction auto' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Motivation modif' , 'string' : 'Motivation modif' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Compte publicitaire' , 'string' : 'PU publicitaire' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI CAA' , 'string' : 'SI CAA' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI BàS' , 'string' : 'SI BàS' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI promo' , 'string' : 'SI promo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI canular' , 'string' : 'SI canular' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide sources' , 'string' : 'Aide sources' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide images' , 'string' : 'Aide images' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide wikification' , 'string' : 'Aide wikif' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide liens' , 'string' : 'Aide liens' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Promo' , 'string' : 'Aide Promo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefLié' , 'string' : 'Aide RefLié' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefSec' , 'string' : 'Aide RefSec' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/TI' , 'string' : 'Aide TI' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Delist' , 'string' : 'Aide Delist' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Vandalisme cracra' , 'string' : 'Cracra' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'U-R3R' , 'string' : 'R3R' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'U-R3R-2' , 'string' : 'R3R-2' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test ?' , 'string' : 'Test ?' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Modification relue' , 'string' : 'Relue' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Pas un forum 2' , 'string' : 'Message effacé' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur 2' , 'string' : 'Spam 2' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur 3' , 'string' : 'Spam 3' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur 4' , 'string' : 'Spam 4' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Attention image externe' , 'string' : 'Image externe' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Suppr Bandeaux' , 'string' : 'Suppr Bandeaux' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Utilisateur:SleaY/maladresse' , 'string' : 'maladresse' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Utilisateur:SleaY/blague' , 'string' : 'blague' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Utilisateur:SleaY/spam multiple' , 'string' : 'spam multiple' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Retrait injustifié 2' , 'string' : 'Retrait texte 2' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Utilisateur:SleaY/Commentaire' , 'string' : 'Commentaire' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false }
    ]);
  }catch(e){ }


  // -- Modèles de bandeaux --

  try{
    defineCustomTagTemplates([
      { 'template' : 'Suppression Immédiate|raison=[[WP:COPY|Copie de site web sans autorisation explicite]]' , 'string' : 'SI - ©' , 'resume' : 'Demande de suppression immédiate : [[WP:COPY|copie de site web sans autorisation explicite]]' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=[[WP:CAA|Critères d\'admissibilité non atteints]]' , 'string' : 'SI - CAA' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=[[WP:P|Non encyclopédique en l\'état]]' , 'string' : 'SI - encyclo' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=[[Wikipédia:Bac à sable|Bac à sable]], test de débutant' , 'string' : 'SI - box' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=Pas en français / Not in French' , 'string' : 'SI - fr' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=[[Wikipédia:Vandalisme|Vandalisme]]' , 'string' : 'SI - vandal' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|raison=Promotion et publicité ou pourriel' , 'string' : 'SI - spam' , 'withDate' : '' },
      { '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' : '' }
    ]);
  }catch(e){ }


  // -- Textes non traduisibles --

  try{
    addCustomUnTranslatedText("RESUMESTART", '[[WP:PRC|Patrouille RC]] : ');
  }catch(e){ }


Custom_lstMyTemplate = {
};

}


/* ** Extensions ** */

  LiveRC_Config['UsedLiveRCExtensions'] = [
    'InstallAndConfigLiveRCExtension', // Fournit une interface de configuration lorsque l’utilisateur est présent sur la page d’installation
    '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.
    'MostModifiedPagesExtension',      // Ajoute une icône aux pages ayant été modifiées récemment par plusieurs utilisateurs ou ayant fait l’objet de plusieurs reverts.
    'ToolbarExtension',                // Améliore la fenêtre de modification avec une barre d’outils paramétrable.
    'HotCatsMulti',                    // Permet d’ajouter/modifier/retirer une ou plusieurs catégories lors de la prévisualisation d’une page
    'PreviewAllLinksExtension',        // Permet de prévisualiser tout lien interne de la fenêtre de prévisualisation
    'PreviewThisPageExtension',        // Permet de prévisualiser une page au choix
    'DiffExtension',                   // Permet d’avoir les fonctions automatiques de LiveRC dans les diff "normaux"
    'InserisciTemplate',               // Permet d’insérer un modèle d’avertissement paramétré dans une page
    'MarkQuestionable'                 // Instaure un système de modifications marquées comme douteuses
  ];


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

// {{Catégorisation JS}}