Usuario:Edmenb/vector.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é.

/*importScriptURI('http://en.wikipedia.org/w/index.php?title=User:WikiBhasha.MSR/WikiBhasha.js&action;=raw&ctype;=text/js');


/*mw.loader.load('//es.wikipedia.org/w/index.php?title=User:Locos_epraix/botonera.js&action=raw&ctype=text/javascript');

/* Adición de botones dentro de la barra de botones «avanzada» del nuevo editor */
/* Label = etiquetita cuando le pasas el ratón */
/* icon = la imagen del botón */
/* type = desconozco que otros hay además de ''encapsulate''. */
/* pre = lo que va antes del texto seleccionado (puedes poner "") */
/* post = lo que cierra, aquí puedes poner la plantilla. Explicacion gracias a Magister Mathematicae */

 

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'Fecha': {
                                        label: 'Plantilla Fecha',
                                        type: 'button',
                                        icon: 'https://upload.wikimedia.org/wikipedia/commons/3/3c/Vector_toolbar_bold_F_button.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "{{Usuario:Edmenb/fecha|}}",    
                                                   post: ""
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'Fecha': {
                                        label: 'Plantilla Expulsado CPP',
                                        type: 'button',
                                        icon: 'https://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "{{Usuario:Edmenb/expulsado}}",    
                                                   post: ""
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'No Firmado': {
                                        label: 'Aceptado',
                                        type: 'button',
                                        icon: 'https://upload.wikimedia.org/wikipedia/commons/9/99/Flagged_Rev3.svg',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "[[archivo:Flagged Rev3.svg|30px]]",    
                                                   post: " "
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'No Firmado': {
                                        label: 'Negado',
                                        type: 'button',
                                        icon: 'https://upload.wikimedia.org/wikipedia/commons/1/16/Deletion_icon.svg',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "[[archivo:Deletion icon.svg|30px]]",    
                                                   post: ""
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'Proteger': {
                                        label: 'Plantilla Semi-protegido',
                                        type: 'button',
                                        icon: 'http://upload.wikimedia.org/wikipedia/commons/8/83/Button_encrypted.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "",    
                                                   post: "{{prot|}}"
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'advanced',
                        'group': 'format',
                        'tools': {
                                'comment': {
                                        label: 'Comment',
                                        type: 'button',
                                        icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1b/Button_hide_wiki_tag.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                        pre: "<!-- ",
                                                        post: " -->"
                                                }
                                        }
                                }
                        }
                } );
        } );
}            
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'advanced',
                        'group': 'format',
                        'tools': {
                                'strikethrough': {
                                        label: 'Strike',
                                        type: 'button',
                                        icon: 'http://upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                        pre: "<s>",
                                                        post: "</s>"
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'Llaves': {
                                        label: 'Llaves para plantillas',
                                        type: 'button',
                                        icon: 'http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "{{",    
                                                   post: "}}"
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'advanced',
                        'group': 'format',
                        'tools': {
                                'Underline': {
                                        label: 'Underline',
                                        type: 'button',
                                        icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                        pre: "<u>",
                                                        post: "</u>"
                                                }
                                        }
                                }
                        }
                } );
        } );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        $( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'main',
                        'group': 'insert',
                        'tools': {
                                'Vandalismo 1': {
                                        label: 'Aviso vandalismo 1',
                                        type: 'button',
                                        icon: 'https://upload.wikimedia.org/wikipedia/commons/4/42/1_white%2C_blue_rounded_rectangle.svg',
                                        action: {
                                                type: 'encapsulate',
                                                options: {
                                                   pre : "{{Usuario:Edmenb/vandalismo}}",    
                                                   post: ""
                                                }
                                        }
                                }
                        }
                } );
        } );
}

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

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


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