MediaWiki:Gadget-LiveRC 1x.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Ripristino alla versione 68579250 datata 2014-10-10 07:13:29 di Jalo tramite popup
Riga 10:
+ '&action=raw&ctype=text/javascript');
}
 
window.LiveRC_getSiteCustom=LiveRC_getSiteCustom;
function LiveRC_getSiteCustom(){
// Here comes the configuration
try{
lrcParams["PageTitle"] = "Wikipedia:LiveRC"; // Pagina principale del LiveRC
window.Custom_lrcParams = {};
lrcParams["SandboxPage"] := "Wikipedia:Pagina delle prove",; // Pagina della Sandbox
window.lrcParams = {
lrcParams["TchatChannel"] := "#wikipedia-it-liverc",; // Canale della chat
"PageTitle" : "Wikipedia:LiveRC",
lrcParams["TZ"] = '+01:00'; // Fuso orario (+02:00, 02:00, -0200, -05:45, ...)
"SandboxPage" : "Wikipedia:Pagina delle prove",
lrcParams["SubstWarnings"] := false;
"TchatChannel" : "#wikipedia-it-liverc",
"TZ" : '+01:00',
"SubstWarnings" : false
};
 
UnTranslatedTexts["ON_ARTICLE"] = "su";
window.Custom_UnTranslatedTexts = {};
window. UnTranslatedTexts["UPDATEMESSAGES"] = {"Aggiornamento configurazione Mediawiki locale";
UnTranslatedTexts["MWSiteGlobalLegend:"] = "Configurazione locale di Mediawiki",;
ON_ARTICLE: "su",
UnTranslatedTexts["MWGeneralConfigLegend:"] = "Configurazione generale di Mediawiki",;
UPDATEMESSAGES: "Aggiornamento configurazione Mediawiki locale",
UnTranslatedTexts["MWLanguagesLegend:"] = "Lingue supportate",;
MWSiteGlobalLegend: "Configurazione locale di Mediawiki",
UnTranslatedTexts["MWMessagesLegend:"] = "Messaggi di sistema",;
MWGeneralConfigLegend: "Configurazione generale di Mediawiki",
UnTranslatedTexts["MWExtensionsLegend:"] = "Estensioni Mediawiki",;
MWLanguagesLegend: "Lingue supportate",
UnTranslatedTexts["MWNamespacesLegend:"] = "Namespace",;
MWMessagesLegend: "Messaggi di sistema",
UnTranslatedTexts["MWMagicwordsLegend:"] = "Magic word",;
MWExtensionsLegend: "Estensioni Mediawiki",
UnTranslatedTexts["MWInterwikimapLegend:"] = "Tabella interwiki",
MWNamespacesLegend: "Namespace",
UnTranslatedTexts["TAG_RESUME:"] = "Template",
MWMagicwordsLegend: "Magic word",
UnTranslatedTexts["USERMSG_RESUME:"] = "Avviso",;
MWInterwikimapLegend: "Tabella interwiki",
UnTranslatedTexts["EMPTY_RESUME:"] = "Svuotamento",;
TAG_RESUME: "Template",
UnTranslatedTexts["USERTHANK_RESUME:"] = "Ringraziamento",;
USERMSG_RESUME: "Avviso",
UnTranslatedTexts["BLOCKTEMPLATE:"] = "Blocco",;
EMPTY_RESUME: "Svuotamento",
UnTranslatedTexts["RESUMESTART:"] = "[[WP:LRC|LiveRC]] : ",;
USERTHANK_RESUME: "Ringraziamento",
UnTranslatedTexts["Comment:"] = "Personalizzazione per LiveRC";
BLOCKTEMPLATE: "Blocco",
RESUMESTART: "[[WP:LRC|LiveRC]]: ",
Comment: "Personalizzazione per LiveRC"
};
 
window.lstAverto = [
{ 'template':'Test', 'string':'Test', 'hasPage':true, 'addName':false, 'addSectionTitle':true },
{ 'template':'Vandalismo', 'string':'Vandalismo', 'hasPage':true, 'addName':false, 'addSectionTitle':true },
Riga 81 ⟶ 74:
// We insert the argument too. This is unusable on it.wiki
// lstBando = new Array();
//window.lstBando = [
// { template: "W" , string: "W" , withDate: "$month $year" },
// { template: "S" , string: "S" , withDate: "" },
Riga 88 ⟶ 81:
// ];
window.lstBlank = [
{tooltip: "copyvio" , resume: "violazione di [[WP:CT|copyright]]copyvio" },
{tooltip: "sandbox" , resume: "sandbox" },
{tooltip: "vandalismo" , resume: "vandalismo" }
];
window.lrcRevertMessages = [
{ resume: "Sandbox" , text: "Sandbox" },
{ resume: "Vandalismo" , text: "Vandalismo" },
Riga 102 ⟶ 95:
// su it.wiki non usiamo template per richieste agli admin
window.lstReport = [
// { userright:"delete",
// text:"REPORTING_DELETION",
Riga 123 ⟶ 116:
];
window.commenttests = [
{ 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},
Riga 135 ⟶ 128:
];
 
window.templatestests = [
{ state: "PORTAIL" , icon:"" , class:"RcPortail" , template: "Portale" },
{ state: "RECENT" , icon:"RecentIcon" , class:"RcRecent" , template: "Recentismo" },
Riga 146 ⟶ 139:
];
window.categoriestests = [
{ state: "ADQ" , icon:"AdQIcon" , class:"RcADQ", regex: /Voci in vetrina - /},
{ state: "BA" , icon:"BAIcon" , class:"RcBA", regex: /Voci di qualità - /},
Riga 155 ⟶ 148:
// su it.wiki, al momento, non abbiamo questo genere di categorie
// window.watchCategories = [
// { state: "SCOLARIP" , icon:"ScolarIPIcon" , class:"RcScolarIP", category: "Indirizzi IP scolastici"},
// { state: "SHAREDIP" , icon:"SharedIPIcon" , class:"RcSharedIP", category: "Indirizzi IP condivisi"},
Riga 169 ⟶ 162:
LiveRC_DeleteExtension("InstallAndConfigLiveRCExtension");
 
window.lrcExtensionsvar MyExtension = [new Object();
MyExtension["name":] = "InserisciTemplate",;
{
MyExtension["url":] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js",;
"name":"InserisciTemplate",
MyExtension["desc":] = "Inserisce un template di avviso in cima alla voce",;
"url":"//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js",
MyExtension["neededright"] = "";
"desc":"Inserisce un template di avviso in cima alla voce",
LiveRC_AddNewExtension(MyExtension);
"neededright": ""
}
];
}catch(e){ }
}
 
//</source>