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

Contenuto cancellato Contenuto aggiunto
m mediawiki.util è gestita dal RL, il resto neanche lo tocco!
m beautify
Riga 1:
mw.util.addPortletLink( 'p-tb', '//it.wikipedia.org/wiki/Wikipedia:LiveRC', 'LiveRC 1.x', '' );
 
if ( mw.config.get( 'wgPageName' ) == 'Wikipedia:LiveRC' ) {
mw.loader.load( '//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js&action=raw&ctype=text/javascript' );
}
 
Riga 8:
// Here comes the configuration
try {
lrcParams[ "PageTitle" ] = "Wikipedia:LiveRC"; // Pagina principale del LiveRC
lrcParams[ "SandboxPage" ] = "Wikipedia:Pagina delle prove"; // Pagina della Sandbox
lrcParams[ "TchatChannel" ] = "#wikipedia-it-liverc"; // Canale della chat
lrcParams[ "TZ" ] = '+01:00'; // Fuso orario (+02:00, 02:00, -0200, -05:45, ...)
lrcParams[ "SubstWarnings" ] = false;
 
UnTranslatedTexts[ "ON_ARTICLE" ] = "su";
UnTranslatedTexts[ "UPDATEMESSAGES" ] = "Aggiornamento configurazione Mediawiki locale";
UnTranslatedTexts[ "MWSiteGlobalLegend" ] = "Configurazione locale di Mediawiki";
UnTranslatedTexts[ "MWGeneralConfigLegend" ] = "Configurazione generale di Mediawiki";
UnTranslatedTexts[ "MWLanguagesLegend" ] = "Lingue supportate";
UnTranslatedTexts[ "MWMessagesLegend" ] = "Messaggi di sistema";
UnTranslatedTexts[ "MWExtensionsLegend" ] = "Estensioni Mediawiki";
UnTranslatedTexts[ "MWNamespacesLegend" ] = "Namespace";
UnTranslatedTexts[ "MWMagicwordsLegend" ] = "Magic word";
UnTranslatedTexts[ "MWInterwikimapLegend" ] = "Tabella interwiki",
UnTranslatedTexts[ "TAG_RESUME" ] = "Template",
UnTranslatedTexts[ "USERMSG_RESUME" ] = "Avviso";
UnTranslatedTexts[ "EMPTY_RESUME" ] = "Svuotamento";
UnTranslatedTexts[ "USERTHANK_RESUME" ] = "Ringraziamento";
UnTranslatedTexts[ "BLOCKTEMPLATE" ] = "Blocco";
UnTranslatedTexts[ "RESUMESTART" ] = "[[WP:LRC|LiveRC]] : ";
UnTranslatedTexts[ "Comment" ] = "Personalizzazione per LiveRC";
 
lstAverto = [ {
'template': 'Test',
'string': 'Test',
Riga 266:
// ];
 
lstBlank = [ {
tooltip: "copyvio",
resume: "copyvio"
Riga 280:
];
 
lrcRevertMessages = [ {
resume: "Sandbox",
text: "Sandbox"
Riga 320:
];
 
commenttests = [ {
state: "REVERT",
icon: "RevertIcon",
Riga 385:
];
 
templatestests = [ {
state: "PORTAIL",
icon: "",
Riga 435:
];
 
categoriestests = [ {
state: "ADQ",
icon: "AdQIcon",
Riga 476:
 
// Estensioni
LiveRC_DeleteExtension( "UserWarningsExtension" );
LiveRC_DeleteExtension( "LinkOnIconExtension" );
LiveRC_DeleteExtension( "InserisciTemplate" );
LiveRC_DeleteExtension( "DiffExtension" );
LiveRC_DeleteExtension( "InstallAndConfigLiveRCExtension" );
 
var MyExtension = {};
MyExtension[ "name" ] = "InserisciTemplate";
MyExtension[ "url" ] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js";
MyExtension[ "desc" ] = "Inserisce un template di avviso in cima alla voce";
MyExtension[ "neededright" ] = "";
LiveRC_AddNewExtension( MyExtension );
} catch ( e ) {}
}
window.LiveRC_getSiteCustom = LiveRC_getSiteCustom;