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


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

  try{
    defineCustomRevertMessages([
      { 'resume' : 'possibile test' , 'text' : 'possibile test' },
      { 'resume' : 'vandalismo' , 'text' : 'vandalismo' },
      { 'resume' : 'senza fonte' , 'text' : 'senza fonte' }
    ]);
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      { 'template' : 'aiutoW' , 'string' : 'Wikificare' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'aiutoOL' , 'string' : 'Overlinking' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'anteprima' , 'string' : 'Anteprima' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'attacco' , 'string' : 'Attacco personale' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avvisoavvisi' , 'string' : 'Rimozione avvisi' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avviso evento futuro' , 'string' : 'Evento futuro' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avvisoF' , 'string' : 'Senza fonti' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avviso sport futuro' , 'string' : 'Evento futuro sport' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'conto terzi' , 'string' : 'Contributo su commissione' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'dati personali' , 'string' : 'Dati personali' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'invitoNPOV' , 'string' : 'NPOV' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'non enciclopedico' , 'string' : 'Non enciclopedico' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'no sandbox in pagina discussioni' , 'string' : 'No sandbox in pagina discussioni' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'no sandbox in pagina utente' , 'string' : 'No sandbox in pagina utente' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'oggetto' , 'string' : 'Oggetto' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'pagina utente promozionale' , 'string' : 'Pagina utente promozionale' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'promozionale' , 'string' : 'Promozionale' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'rimozionecontenuti' , 'string' : 'Rimozione contenuti' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'test' , 'string' : 'Test' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'turpiloquio' , 'string' : 'Turpiloquio' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'vandalismo' , 'string' : 'Vandalismo' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'YC' , 'string' : 'Cartellino giallo' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'TempoRelativo' , 'string' : 'Tempo relativo' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avviso non hai firmato' , 'string' : 'Senza firma' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'AvvisoNomeFile' , 'string' : 'Avviso nome file' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'grazie' , 'string' : 'Grazie' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'in italiano' , 'string' : 'In italiano' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'ProposteCommenti' , 'string' : 'Proposte commenti' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'risposta' , 'string' : 'Ping' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'svuotamento talk' , 'string' : 'Svuotamento discussioni' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'traduzione' , 'string' : 'Traduzione' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'avviso commento' , 'string' : 'Avviso commento' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true },
      { 'template' : 'senza senso' , 'string' : 'Senza senso' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : true }
    ]);
  }catch(e){ }


  // -- Icone utilizzate da LiveRC --

  try{
    addCustomIcon("AdQIcon", { 'type' : 1 , 'src' : 'c/c0/Crystal_Clear_action_bookmark.svg' , 'width' : 10 , 'height' : 10 });
    addCustomIcon("APDQIcon", { 'type' : 1 , 'src' : 'c/cc/Crystal_Clear_action_bookmark_doubt.svg' , 'width' : 10 , 'height' : 10 });
    addCustomIcon("BAIcon", { 'type' : 1 , 'src' : 'e/e9/Crystal_Clear_action_bookmark_Silver.svg' , 'width' : 10 , 'height' : 10 });
    addCustomIcon("HomonIcon", { 'type' : 0 , 'src' : '4/46/Disambigua_compass.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("StubIcon", { 'type' : 0 , 'src' : '0/0e/Puzzle_stub.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("PaSIcon", { 'type' : 0 , 'src' : '7/7d/User-trash-full-4.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("CopyrightIcon", { 'type' : 0 , 'src' : 'c/cf/Copyright-problem.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("RecentIcon", { 'type' : 0 , 'src' : 'b/b1/Ambox_outdated_content.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("R3RIcon", { 'type' : 0 , 'src' : '2/26/R3R_modern_logo.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("WIPIcon", { 'type' : 0 , 'src' : '6/6a/Under_construction_icon-orange.svg' , 'width' : 16 , 'height' : 13 });
    addCustomIcon("LockIcon", { 'type' : 0 , 'src' : 'a/a5/Semi-protection-shackle-itwiki.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ExtendedLockIcon", { 'type' : 0 , 'src' : 'f/f1/AV-protection-shackle-itwiki.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("FullLockIcon", { 'type' : 0 , 'src' : '3/35/Total-protection-shackle-itwiki.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("TrackingCategoriesIcon", { 'type' : 0 , 'src' : 'd/dc/Nuvola_apps_important_yellow.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("Watchers0Icon", { 'type' : 0 , 'src' : '3/3d/Radar_icon_red.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers1Icon", { 'type' : 0 , 'src' : 'c/cd/Radar_icon_orange.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers2Icon", { 'type' : 0 , 'src' : '2/2a/Radar_icon_yellow.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers3Icon", { 'type' : 0 , 'src' : 'e/e6/Radar_icon_green.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("RedirectIcon", { 'type' : 0 , 'src' : '7/7f/Redirect_arrow_without_text_%28cropped%29.svg' , 'width' : 16 , 'height' : 10 });
    addCustomIcon("ExternalIcon", { 'type' : 0 , 'src' : 'f/ff/Wikidata-logo.svg' , 'width' : 16 , 'height' : 9 });
    addCustomIcon("DeleteIcon", { 'type' : 0 , 'src' : '5/5c/Gtk-cut.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("MoveIcon", { 'type' : 0 , 'src' : '7/79/Rename_icon.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ThanksIcon", { 'type' : 0 , 'src' : '5/50/Crystal_Clear_app_amor.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("InterwikiIcon", { 'type' : 0 , 'src' : 'b/b4/Wikimedia_Community_Logo_optimized.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("SysopIcon", { 'type' : 0 , 'src' : 'd/d1/Wikipedia_Administrator.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("BotIcon", { 'type' : 0 , 'src' : '1/1b/Crystal_kbackgammon_engine.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("MinorEditIcon", { 'type' : 0 , 'src' : '5/58/Letter_m.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("RevertIcon", { 'type' : 0 , 'src' : 'b/b6/Rollback_arrow.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("WPCIcon", { 'type' : 0 , 'src' : '2/2d/Nuvola_web_broom.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("AWBIcon", { 'type' : 0 , 'src' : '5/58/AWB_logo_draft.svg' , 'width' : 12 , 'height' : 12 });
  }catch(e){ }


  // -- Descrizione dei parametri di LiveRC --

  try{
    addCustomTradToTranslatedParamDesc("DesclrcTranslatedParamDesc", { 'it' : 'Descrizione dei parametri di LiveRC' });
    addCustomTradToTranslatedParamDesc("DescDisplayliveTag", { 'it' : 'Mostra log etichette' });
    addCustomTradToTranslatedParamDesc("DescshowTags_StandardDesc", { 'it' : 'Checkboxes "Etichette": descrizione standard' });
    addCustomTradToTranslatedParamDesc("DescLockIcon_Title", { 'it' : 'Tooltip dell\'icona di protezione agli "autoconfermati"' });
  }catch(e){ }


  // -- Testi non traducibili --

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

}


/* ** Estensioni ** */

  LiveRC_Config['UsedLiveRCExtensions'] = [
  ];


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

// {{Catégorisation JS}}