Utente:9Aaron3/LiveRCparam.js

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca

Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.


Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti (per le pagine globali è comunque necessario attendere qualche minuto). Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome: premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menù Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.

//<syntaxhighlight lang="javascript">//<pre>//<nowiki>

// Personalizzazione del LiveRC

/* ** Variabili ** */

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


  // -- Parametri LiveRC --

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


  // -- Opzioni pannello di controllo --

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


  // -- Motivi di rollback per tool di rollback automatico --

  try{
    defineCustomRevertMessages([
      { 'resume' : 'Rimozione non giustificata di contenuti' , 'text' : 'Rimozione contenuti' },
      { 'resume' : 'Traduzione automatica' , 'text' : 'Traduzione automatica' },
      { 'resume' : 'Annullo svuotamento talk' , 'text' : 'Svuotamento talk' },
      { 'resume' : 'Rimozione avvisi di servizio' , 'text' : 'Rimozione avvisi' },
      { 'resume' : 'modifica in violazione di [[WP:COI]]/[[WP:CSC]]' , 'text' : 'COI/CSC' }
    ]);
  }catch(e){ }


  // -- Template di avviso per tool di avvisi automatici --

  try{
    defineCustomWarningTemplates([
      { 'template' : 'Test' , 'string' : 'Test' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Vandalismo' , 'string' : 'Vandalismo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'RimozioneContenuti' , 'string' : 'RimozioneContenuti' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Avvisocopyviol' , 'string' : 'Violazione di copyright' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Senza senso' , 'string' : 'Senza senso' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'AvvisoCommento' , 'string' : 'Commenti in voce' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Promozionale' , 'string' : 'Promozionale' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Avvisoavvisi' , 'string' : 'AvvisoAvvisi' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Dati personali' , 'string' : 'Dati personali' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'subst:Benvenuto' , 'string' : 'Benvenuto' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Grazie' , 'string' : 'Grazie!' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Oggetto' , 'string' : 'Oggetto' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Yc' , 'string' : 'Cartellino giallo' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'WNB' , 'string' : 'WNB' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'WND' , 'string' : 'WND' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'WNF' , 'string' : 'WNF' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'WNCV' , 'string' : 'WNCV' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'WNRO' , 'string' : 'WNRO' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Turpiloquio' , 'string' : 'Turpiloquio' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Loggati' , 'string' : 'Loggati' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'InvitoNPOV' , 'string' : 'Invito NPOV' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Avviso sport futuro' , 'string' : 'Sport futuro' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avvisosenzafonti' , 'string' : 'Senza fonti' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'In italiano' , 'string' : 'In italiano' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Anteprima' , 'string' : 'Anteprima' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Attacco' , 'string' : 'Attacco' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'ProposteCommenti' , 'string' : 'ProposteCommenti' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'TempoRelativo' , 'string' : 'TempoRelativo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'Avviso evento futuro' , 'string' : 'Evento futuro' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'AvvisoB' , 'string' : 'Avviso bibliografia' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : true }
    ]);
  }catch(e){ }


  // -- Testi non traducibili --

  try{
    addCustomUnTranslatedText("MWInterwikimapLegend", 'Tabella interwiki');
    addCustomUnTranslatedText("TAG_RESUME", '');
    addCustomUnTranslatedText("RESUMESTART", '[[WP:LRC|LiveRC]]: ');
  }catch(e){ }


  // -- Parametri per testi di commento --

  try{
    defineCustomCommentTests([
      { 'state' : 'REVERT' , 'icon' : 'RevertIcon' , 'class' : 'RcRevert' , 'regex' : /LiveRC: Annullata la modifica|[Aa]nnullata la modifica|[Aa]nnullate le modifiche|[Aa]nnullata\]\] la modifica|Ripristino alla versione / , 'hide' : false },
      { 'state' : 'BLANKING' , 'icon' : 'BlankingIcon' , 'class' : 'RcBlanking' , 'regex' : /Pagina svuotata completamente/ , 'hide' : false },
      { 'state' : 'REPLACED' , 'icon' : 'ReplacedIcon' , 'class' : 'RcReplaced' , 'regex' : /Pagina sostituita con/ , 'hide' : false },
      { 'state' : 'REDIRECTED' , 'icon' : 'RedirectedIcon' , 'class' : 'RcRedirected' , 'regex' : /Redirect a |^#REDIRECT/ , 'hide' : false },
      { 'state' : 'WPCLEANER' , 'icon' : 'WPCIcon' , 'class' : 'RcWPC' , 'regex' : /WPCleaner/ , 'hide' : false },
      { 'state' : 'AWB' , 'icon' : 'AWBIcon' , 'class' : 'RcAWB' , 'regex' : /AWB|AutoWikiBrowser/ , 'hide' : false },
      { 'state' : 'HOTCAT' , 'icon' : 'HotCatIcon' , 'class' : 'RcHotCat' , 'regex' : /HotCatsMulti|HotCat|Hotcat/ , 'hide' : false },
      { 'state' : 'LRC' , 'icon' : 'LRCIcon' , 'class' : 'RcLRC' , 'regex' : /Live RC|LiveRC/ , 'hide' : false },
      { 'state' : 'POPUPS' , 'icon' : 'PopupsIcon' , 'class' : 'RcPopups' , 'regex' : /(P|p)opup/ , 'hide' : false }
    ]);
  }catch(e){ }


  // -- Mostra/nascondi tab del pannello di configurazione --

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

}


/* ** Estensioni ** */

  LiveRC_Config['UsedLiveRCExtensions'] = [
  ];


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

// {{Catégorisation JS}}