Usuario:Netito777/fb.js

De Wikipedia, la enciclopedia libre

Nota: Después de guardar, debes refrescar la caché de tu navegador para ver los cambios. Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar. Firefox: mientras presionas Mayús pulsas el botón Actualizar, (o presiona Ctrl-Shift-R). Los usuarios de Google Chrome y Safari pueden simplemente pulsar el botón Recargar. Para más detalles e instrucciones acerca de otros exploradores, véase Ayuda:Cómo limpiar la caché.

//<pre>
//Fuente: http://en.wikipedia.org/wiki/Usuario:Lorian/monobook.js
//Personalizada por Axxgreazz, para el [[w:es:User:Axxgreazz/Monobook-Suite]]
//http://es.wikipedia.org/wiki/Usuario:Axxgreazz/Monobook-Suite
 
var Reve = 'Revert';
var Mess = 'Message';
var Warn = 'Warn'; 
var WarnSummary = 'Warning with';
var RevertSummary1 = 'Reverted edits by'; 
var RevertSummary2 = 'to last version'; 
var RevertSummary3 = 'by'; 
var RevertSummary4 = 'with';
var pagina ='';
 
// Revert tools
function getElementsByClass(searchClass,node,tag) {
  // Function from http://www.dustindiaz.com/getelementsbyclass/
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}
 
// _GET code from NoGray JS Library http://www.nogray.com/new_site/
var _GET = new Array();
var _uri = location.href;
 
var _temp_get_arr = _uri.substring(_uri.indexOf('?')+1, _uri.length).split("&");
 
var _temp_get_arr_1 = new Array();
 
for(_get_arr_i=0; _get_arr_i<_temp_get_arr.length; _get_arr_i++){
  _temp_get_arr_1 = _temp_get_arr[_get_arr_i].split("=");
  pagina = _temp_get_arr_1;
  _GET[decodeURI(_temp_get_arr_1[0])] = decodeURI(_temp_get_arr_1[1]);
}
 
delete _uri; delete _temp_get_arr; delete _temp_get_arr_1;
 
function getMessage (where, user1, user2, oldid) 
{
   var message = prompt (msStringU('Message') + ':', '');
   if (message!=null) 
   {   window.location = 'http://'+ location.hostname + '/w/index.php?title=' + 
                         _GET['title'] + '&action=edit&oldid=' + oldid + 
                         '&'+where+'=2&user1='+user1+'&user2='+user2+'&message='+message;
   }
}
 
$(function ()
{
   if (typeof ms_Activa_Reversion == 'undefined') { ms_Activa_Reversion = true;}
   if (!msActivarModulo(ms_Activa_Reversion)) return;
 








      document.getElementById('contentSub').innerHTML = document.getElementById('contentSub').innerHTML + ' <br>Para artículos: '
      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=3">' + msStringU('Wikif') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=7">' + msStringU('ME') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=8">' + msStringU('Wikci') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=1">' + msStringU('Context') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=9">' + msStringU('SRA') + '</a> - '  

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=m">' + msStringU('Infra') + '</a> - '  

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=0">' + msStringU('PVN') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=l">' + msStringU('Refs') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=v">' + msStringU('Exp') + '</a> - '

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=delete&rapido=p">' + msStringU('Borrar') + '</a><br> ---- <br> Para usuarios: '


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=2">' + msStringU('Hi!') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=a">' + msStringU('Trash') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=b">' + msStringU('E') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=c">' + msStringU('ME') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=n">' + msStringU('Ort') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=o">' + msStringU('SRAP') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=s">' + msStringU('FP') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=u">' + msStringU('PVN') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=w">' + msStringU('FO') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=x">' + msStringU('HX') + '</a> - ' 

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=d">' + msStringU('Spam') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=i">' + msStringU('Copy') + '</a> - '

      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=y">' + msStringU('RM') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=f">' + msStringU('Blank') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=e">' + msStringU('P1') + '</a> - ' 


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=g">' + msStringU('P2') + '</a> - '



      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=h">' + msStringU('P3') + '</a> - '


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=r">' + msStringU('B1') + '</a> - '


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=q">' + msStringU('B2') + '</a> - '


      + '<a href="http://' + location.hostname + '/w/index.php?title=' + pagina
      + '&action=edit&borrar=j">' + msStringU('B3') + '</a> '


   if (location.href.match(/diff=/)) 
   {  // Get username of submitter
      var user1 = getElementsByClass('diff-otitle',null,'td'); 
      user1 = user1[0].getElementsByTagName('a')[2].innerHTML;
 
      var user2 = getElementsByClass('diff-ntitle',null,'td'); 
      if (user2[0].getElementsByTagName('a')[2].href.indexOf ('undo=') != -1)
      {   user2 = user2[0].getElementsByTagName('a')[3].innerHTML; }
      else
      {   user2 = user2[0].getElementsByTagName('a')[2].innerHTML; }
 
      var oldid = getElementsByClass('diff-otitle',null,'td'); 
      oldid = oldid[0].getElementsByTagName('a')[0].href.split("oldid=")[1];
 
      var msAviTemp = '';
      if (msTestMsgTL) 
      for (i=0; i<msTestMsgTL.length; i++)
      {
         if (i == msTestMsgTL.length - 1) separador = ')';
         else separador = ' / ';
         msAviTemp = msAviTemp 
                     + '<a href="http://' + location.hostname + '/w/index.php?title=User_talk:' 
                     + user2 + '&action=edit&warn=' + i + '&titleP=' + wgPageName.replace(/_/g , ' ') 
                     + '">' + msStringU(msTestMsgTL[i]) + '</a>' + separador; 
      }
      else msAviTemp = msStringU('This wiki project does not have user message templates') + ')';
 
      document.getElementById('contentSub').innerHTML = '('
      + '<a href="http://' + location.hostname + '/w/index.php?title=' + _GET['title'] 
      + '&action=edit&oldid=' + oldid + '&revert=1&user1=' + user1 
      + '&user2=' + user2 + '">' + msStringU(Reve) + '</a> / ' 
      + '<a href="javascript:var message = getMessage(\'revert\', \'' + user1 + '\', \''
      + user2 + '\', \'' + oldid + '\');">' + msStringU(Mess) + '</a>) ' 
      + '(' + msStringU(Warn) + ': ' + msAviTemp;   
  }  


 else if (location.href.match(/borrar=1/)) 
  {
  document.getElementById ("wpTextbox1").value='{{contextualizar|{{subst:CURRENTDAY}}|{{subst:CURRENTMONTHNAME}}}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Plantilla Contextualizar, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


 else if (location.href.match(/borrar=2/)) 
  {
  document.getElementById ("wpTextbox1").value='{{subst:Bienvenido usuario}} ~~~~\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Bienvenida al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


 else if (location.href.match(/borrar=3/)) 
  {
  document.getElementById ("wpTextbox1").value='{{wikificar}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Plantilla wikificar, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=7/)) 
  {
  document.getElementById ("wpTextbox1").value='{{copyedit}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Plantilla copyedit, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=8/)) 
  {
  document.getElementById ("wpTextbox1").value='{{wikci}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Plantilla wikci, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=9/)) 
  {
  document.getElementById ("wpTextbox1").value='{{sinrelevancia|{{subst:CURRENTDAY}}|{{subst:CURRENTMONTHNAME}}}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Plantilla SRA, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=a/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:aviso vandalismo}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=b/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba0a}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=c/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba0b}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=d/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba0c}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=e/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba2}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=f/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba2a}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=g/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba3}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=h/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba4}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=i/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Kved/Copialiteral}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=j/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:prueba5}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }

else if (location.href.match(/borrar=l/)) 
  {
  document.getElementById ("wpTextbox1").value='{{referencias}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Pidiendo referencias, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=0/)) 
  {
  document.getElementById ("wpTextbox1").value='{{No neutralidad}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'No neutral, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


 else if (location.href.match(/borrar=m/)) 
  {
  document.getElementById ("wpTextbox1").value='{{artículo infraesbozo|{{subst:CURRENTDAY}}|{{subst:CURRENTMONTHNAME}}}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Artículo infraesbozo, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=n/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/Ortografía}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=o/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/Aviso de relevancia}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


 else if (location.href.match(/rapido=p/)) 
  {
   document.getElementById ("wpConfirmB").click();

  }

else if (location.href.match(/borrar=q/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/bloqueo}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=r/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/Block largo|~~~~}}';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }


else if (location.href.match(/borrar=s/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Aviso FP}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=u/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/PVN}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }



else if (location.href.match(/borrar=v/)) 
  {
  document.getElementById ("wpTextbox1").value='{{Usuario expulsado}}\n'+document.getElementById("wpTextbox1").value;
 document.editform.wpSummary.value = 'Usuario expulsado, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }




else if (location.href.match(/borrar=w/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/NOES}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }




else if (location.href.match(/borrar=x/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/Hoax}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }

else if (location.href.match(/borrar=y/)) 
  {
  document.getElementById ("wpTextbox1").value=document.getElementById("wpTextbox1").value+'\n{{subst:Usuario:Netito777/Fichajes}} ~~~~';
 document.editform.wpSummary.value = 'Aviso al usuario, usando [[:w:es:Usuario:Racso/Fastbuttons|FastButtons]]';
 
   document.editform.submit();
    
  }

  else if (location.href.match(/revert=1/)) 
  {
    document.getElementById('wpSummary').value = msStringU(RevertSummary1) + ' ' + '[[User:' + _GET['user2'] + '|' + _GET['user2'] + ']]' + ' ' + msStringU(RevertSummary2) + ' ' + msStringU(RevertSummary3) + ' ' + '[[User:' + _GET['user1'] + '|' + _GET['user1'] + ']]' + ' ' + msStringU(RevertSummary4) + ' ' + msSummaryLink;
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=2/)) {
    document.getElementById('wpSummary').value = msStringU(RevertSummary1) + ' ' + '[[User:' + _GET['user2'] + '|' + _GET['user2'] + ']]' + ' ' + msStringU(RevertSummary2) + ' ' + msStringU(RevertSummary3) + ' ' + '[[User:' + _GET['user1'] + '|' + _GET['user1'] + ']]' + ' ' + msStringU(RevertSummary4) + ' ' + msSummaryLink + ' (' + _GET['message'] + ')';
    document.getElementById('editform').submit();
  } else if (wgCanonicalNamespace == 'User_talk' && wgAction == "edit") {
 
    if (location.href.match(/warn=0/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[2] + '|' + _GET['titleP'] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=1/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[3] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=2/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[4] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=3/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[5] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=4/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[6] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=5/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:'+ msTestTL[7] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=6/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n\n::{{sub'+'st:'+ msTestTL[8] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=7/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n\n::{{sub'+'st:'+ msTestTL[9] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
 
  } else if (location.href.match(/warn=8/)) {
    document.getElementById('wpSummary').value = msStringU(WarnSummary) + ' ' + msSummaryLink;
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n\n::{{sub'+'st:'+ msTestTL[10] + '}} ~~'+'~~';
    document.getElementById('editform').submit();
  }}
});
//</pre>