User:David0811/misfunciones.js

From Simple English Wikipedia, the free encyclopedia

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
 //<h2>Funciones y variables globales</h2><pre> 
//Funciones desarrolladas por Axxgreazz para el [[w:es:User:Axxgreazz/Monobook-Suite]]
//Para ver las funcionalidades contenidas aquí revisa
//http://es.wikipedia.org/wiki/Usuario:Axxgreazz/Monobook-Suite
 
incluir ("","","topaz.js");            /*Módulo de Topaz */
incluir ("","","lenguaje.js");         /*Funciones de idioma */
incluir ("","","interface.js");        /*Funciones varias */
incluir ("","","tablas.js");           /*Módulo de Tablas */
incluir ("","","tildes.js");           /*Módulo de Tildes */
incluir ("","","titulos.js");          /*Módulo de Titulos */
incluir ("","","operadores.js");       /*Módulo de Operadores */
incluir ("","","searchbox.js");        /*Módulo de Busqueda y reemplazo */
incluir ("","","listanegra.js");       /*Usuarios no permitidos*/
 
var msNoart    = 'Is not an article page';
var msNoimg    = 'Is not an image page';
var msNodis    = 'Is not an user talk page';
var msNoartdis = 'Is not an article or user talk page';
var msNoimgdis = 'Is not an image or user talk page';
var msNodef    = 'This funcionality still don´t exist in this Wiki project';
 
/*</pre>
 
== Funciones para mantenimiento==
<pre><nowiki> */
function qd()
{
   insertTags('{{QD|','}}',msStringU('Reason'));
}

function avisousuario()
{  
    switch (wgNamespaceNumber) 
    {  
     case "simple.wikipedia.org" :          var plantilla = '';
                        if (msTestTL == '') { alert(no_definida('uw-vandalism')); return; }
                        if (msTestTL[0] == "k") { plantilla = uw-vandalism[1];}
                        var aviso = '';
                        if (msTestTL.length == 3) { plantilla = uw-vandalism[2];}
                        else {
                        var texto ='';
                        for (i=2; i<msTestTL.length; i++)
                            texto = texto + msTestTL[i] + ' : ' 
                                    + msStringU(msTestMsgTL[i-2]) + '\n';
                        aviso = prompt(msStringU('User warning message') + ':\n' + texto ,'');
                        }
 
                        if(aviso!=null) { plantilla_aviso (plantilla + aviso,
                                        msStringU('User warning'),'','','',''); }
                        break; 
 
     default : alert (msStringU(msNodis)); break;



/*</nowiki></pre>