Usuário:Admin/monobook.js

De Sexta Poética
Revisão de 21h13min de 3 de abril de 2009 por Admin (discussão | contribs)
Ir para navegação Ir para pesquisar

Nota: Após publicar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer/Edge: PressioneCtrl enquanto clica Recarregar, ou Pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
/* 
Monobook desarrollado por [[Usuario:Axxgreazz]]. Cada módulo especifica su origen y autor.
*Puedes ver las funcionalidades contenidas aquí en [[Usuario:Axxgreazz/Monobook-Suite# Módulos|Módulos del Monobook-Suite]]
*Si quieres instrucciones para instalarlo revisa: [[Usuario:Axxgreazz/Monobook-Suite#Instalación del monobook.js|Instalación del Monobook-Suite]]
*Si necesitas mayores detalles sobre la configuración revisa: [[Usuario:Axxgreazz/Monobook-Suite/Configuración|Configuración del Monobook-Suite]] */

//<pre><nowiki>

/* Sección 1: Inicialización de monobook (No modificar) */

incluir ("","","init.js");           
incluir ("","","funciones.js");

/* Sección 2: Personalización de Modulos */
/* (Copia cualquiera de los archivos indicados a continuación a tu espacio de usuario */
/* y personaliza tus botones de la barra de herramientas, busqueda y enlaces wiki */

incluir ("","","misparametros.js");
incluir ("","","misfunciones.js");
incluir ("","","misbotones-full.js");
incluir ("","","misbuscadores-full.js");
incluir ("","","misenlaces.js");
incluir ("","","misflotantes.js");

/* Sección 3 : Modulos del monobook
/* Puedes desactivar cualquiera de los módulo agregando dos barras ("//") al inicio */
/* de la línea. Además puedes incorporar un módulo de esta u otra wiki */
/* Tan sólo especifica el host de la wiki, el nombre del usuario y el nombre de archivo */

incluir ("","","toolbarextendido.js");   /*Módulo de Barra de herramientas */
incluir ("","","enlaceswiki.js");        /*Módulo de Enlaces Wiki */
incluir ("","","modulobusqueda.js");     /*Módulo de Búsqueda */
incluir ("","","popups.js");             /*Módulo de Popups */
incluir ("","","livepreview2.js");       /*Módulo de LivePreview v1.2 de Sanbec*/
incluir2 ("","","antivandaltool.js");             /*Módulo Anti-vandalismo */
incluir ("","","reversion.js");          /*Módulo de Reversión */
incluir ("","","statuschanger.js");      /*Administración de estados */
incluir ("","","quickedit.js");          /*Edición rápida */
incluir ("","","panelcontrol.js");       /*Panel de control del Monobook */
incluir ("","","quickimgdelete.js");     /*Mantenimiento de imágenes (prueba)*/
//incluir ("","","botoneraflotante.js"); /*Botonera flotante */

<!--teste-->
incluir ("","","moveedit.js");

/* Sección 4: Función base (No modificar) */

function incluir(url,usuario,nombre)   
{
   if (url=="") {url = 'pt.wikipedia.org'; }
   if (usuario=="") {usuario = 'Lijealso'; };  /*não alterar */
   document.write('<script type="text/javascript" src="' 
+ 'http://' + url + '/w/index.php?title=User:' + usuario 
+ '/' + nombre + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}

function incluir2(url,pagina,nombre)   
{
   if (url=="") {url = 'pt.wikipedia.org'; }
   if (pagina=="") {pagina = 'Wikipedia:Software'; };  /*não alterar */
   document.write('<script type="text/javascript" src="' 
+ 'http://' + url + '/w/index.php?title=' + pagina 
+ '/' + nombre + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}






















/** Extra toolbar options ****************************************************** <nowiki>
  *
  *  Description: UNDOCUMENTED
  *  Maintainers: [[:en:User:MarkS]]?, [[:en:User:Voice of All]], [[:en:User:R. Koot]]
  */
 
 //This is a modified copy of a script by User:MarkS for extra features added by [[:en:User:Voice of All]].
 // This is based on the original code on [[en:Wikipedia:Tools/Editing tools]]
 // To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]]
 
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
     "speedTip": "Predefinição",
     "tagOpen": "{{",
     "tagClose": "}}",
     "sampleText": "Predefinição"};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
     "speedTip": "Redirect",
     "tagOpen": "#REDIRECT [[",
     "tagClose": "]]",
     "sampleText": "Insert text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
     "speedTip": "Riscar",
     "tagOpen": "<s>",
     "tagClose": "</s>",
     "sampleText": "Strike-through text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
     "speedTip": "Quebra de linha",
     "tagOpen": "<br />",
     "tagClose": "",
     "sampleText": ""};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6a/Button_sup_letter.png",
     "speedTip": "Superscript",
     "tagOpen": "<sup>",
     "tagClose": "</sup>",
     "sampleText": "Superscript text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_sub_letter.png",
     "speedTip": "Subscript",
     "tagOpen": "<sub>",
     "tagClose": "</sub>",
     "sampleText": "Subscript text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
     "speedTip": "Small",
     "tagOpen": "<small>",
     "tagClose": "</small>",
     "sampleText": "Small Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png",
     "speedTip": "Inserir comentário",
     "tagOpen": "<!-- ",
     "tagClose": " -->",
     "sampleText": "Comment"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png",
     "speedTip": "Inserir galeria de imagens",
     "tagOpen": "\n<gallery>\n",
     "tagClose": "\n</gallery>",
     "sampleText": "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
     "speedTip": "Inserir bloco de texto citado",
     "tagOpen": "<blockquote>\n",
     "tagClose": "\n</blockquote>",
     "sampleText": "Block quote"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
     "speedTip": "Inserir uma tabela",
     "tagOpen": '{| class="wikitable"\n|-\n',
     "tagClose": "\n|}",
     "sampleText": "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/30/Bv_icon.png",
     "speedTip": "boas vindas",
     "tagOpen": "{{bv}}",
     "tagClose": " ~~~~",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/54/Bvip_icon.png",
     "speedTip": "boas vindas ip",
     "tagOpen": "{{bv-ip}}",
     "tagClose": " ~~~~",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png",
     "speedTip": "boas vindas aviso",
     "tagOpen": "{{bv-av|",
     "tagClose": "}} ~~~~",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/11/Button_category.png",
     "speedTip": "Categoria",
     "tagOpen": "[[Categoria:",
     "tagClose": "]]",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f0/Bouton_Vandale0.png",
     "speedTip": "propor para eliminação",
     "tagOpen": "{{eliminação",
     "tagClose": "}}",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png",
     "speedTip": "aviso a usuário",
     "tagOpen": "{{lixousuario}}",
     "tagClose": " ~~~~",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/11/Button_ER.png",
     "speedTip": "ER",
     "tagOpen": "{{ER|motivo",
     "tagClose": "|~~~~}}",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7e/Button_nav.png",
     "speedTip": "navegação",
     "tagOpen": "{{navegação|acima",
     "tagClose": "|anterior|posterior}}",
     "sampleText": ""};
 }

//</nowiki></pre>