User:Hispano76/common.js

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript'); mw.loader.load('//es.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ver-subpaginas.js&action=raw&ctype=text/javascript'); mw.loader.load('//es.wikipedia.org/w/index.php?title=MediaWiki:Gadget-reversion.js&action=raw&ctype=text/javascript'); mw.loader.load('https://meta.miraheze.org/w/index.php?title=User:Void/links.js&action=raw&ctype=text/javascript'); // ( function ( $, mw ) {	var customizeToolbar = function {		var wpTextbox1 = $('#wpTextbox1');

function extraPublish { var sumario = $( '#wpSummary' ); if ( sumario === '' ) { var respuesta = window.prompt( 'Ingrese un resumen de edición' ); if( respuesta !== null ) { sumario.val( respuesta ); } else { return; }			}			$( '#editform' ).submit; }		function extraPreview { $( '#wpPreview' ).click; }		function extraWelcome { var aviso = 'IP'; }			aviso = aviso + ' -- ~'; $( '#wpTextbox1' ).val( aviso + '\n' + $( '#wpTextbox1' ).val ); }		function extraCategory { var respuesta = window.prompt( 'Nombre de la categoría:' ); if ( respuesta !== null ) { $( '#wpTextbox1' ).val( $( '#wpTextbox1' ).val + '\n' + 'Categoría:' + respuesta + '' ); }		}		function extraChangeCase { var wpTextbox1 = $( '#wpTextbox1' ); var selectionStart = wpTextbox1.prop('selectionStart'); var selectionEnd = wpTextbox1.prop('selectionEnd'); if ( selectionEnd > selectionStart ) { var content = wpTextbox1.val; var selr = content.length - selectionEnd; var selt = content.substring( selectionStart, selectionEnd ); if ( selt === selt.toUpperCase ) { selt = selt.toLowerCase; } else if ( selt == selt.toLowerCase && ( selectionEnd - selectionStart ) > 1 ) { selt = selt.substring(0, 1).toUpperCase + selt.substring(1).toLowerCase; } else { selt = selt.toUpperCase; }				wpTextbox1.val(					content.substring( 0, selectionStart ) +					selt +					content.substring( selectionEnd )				); if ( selectionEnd > selectionStart ) { wpTextbox1.prop('selectionStart', selectionStart); wpTextbox1.prop('selectionEnd', content.length - selr); } else { wpTextbox1.prop('selectionStart', selectionEnd); wpTextbox1.prop('selectionEnd', selectionStart); }			}		}		function extraAddReflist { const section = '== Referencias ==\n\n\n'; var wpTextbox1 = $( '#wpTextbox1' ); var content = wpTextbox1.val; if ( content.search( /^(=+)\s*Referencias\s*\1/m ) < 0 ) { var position = content.search( /(=+)\s*Enlaces externos\s*\1|\[\[\s*[Cc]ategoría\s*:/ ); if ( position < 0 ) { wpTextbox1.val( content + section ); wpTextbox1.focus; wpTextbox1.prop('selectionStart', content.length); wpTextbox1.prop('selectionEnd', content.length + section.length); } else { wpTextbox1.val( content.substring(0, position) + section + content.substring(position, content.length) ); wpTextbox1.focus; wpTextbox1.prop('selectionStart', position); wpTextbox1.prop('selectionEnd', position + section.length); }			}		}		function extraArchiveCDB { var respuesta = window.prompt( 'Decisión:' ); if( respuesta !== null ) { $( '#wpTextbox1' ).val(					': \'\'\ + respuesta + '\'\'\' -- ~\n' +					$( '#wpTextbox1' ).val.replace( /\{\{RETIRA ESTA PLANTILLA CUANDO CIERRES ESTA CONSULTA[^\}]*\}\}\n/,  ) +					'\n'				); $( '#wpSummary' ).val( 'Cerrando consulta: ' + respuesta ); }		}

// groups: wpTextbox1.wikiEditor('addToToolbar', {			section: 'advanced',			groups: {				miscelanea: {					type: 'toolbar',					label: 'Miscelánea'				},				mantenimiento: {					type: 'toolbar',					label: 'Mantenimiento'				},			}		} ); // format buttons: wpTextbox1.wikiEditor('addToToolbar', {			section: 'advanced',			group: 'format',			tools: {				strike: {					type: 'button',					label: 'Tachado',					filters: [ 'body:not(.ns-0, .ns-104)' ],					icon: 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Antu_format-text-strikethrough.svg/22px-Antu_format-text-strikethrough.svg.png',					action: {						type: 'encapsulate',						options: {							pre: ' ',							peri: 'Texto tachado',							post: ' '						}					}				},				underline: {					type: 'button',					label: 'Subrayado',					filters: [ 'body:not(.ns-0, .ns-104)' ],					icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Antu_format-text-underline.svg/22px-Antu_format-text-underline.svg.png',					action: {						type: 'encapsulate',						options: {							pre: ' ',							peri: 'Texto subrayado',							post: ' '						}					}				},			}		} ); // size buttons: wpTextbox1.wikiEditor('addToToolbar', {			section: 'advanced',			group: 'size',			tools: {				changecase: {					type: 'button',					label: 'Cambiar a mayúsculas o minúsculas',					icon: '//upload.wikimedia.org/wikipedia/commons/e/e4/Toolbar_case.png',					action: {						type: 'callback',						execute: function (context) { extraChangeCase; }					}				},			}		} ); // insert buttons: wpTextbox1.wikiEditor('addToToolbar', {			section: 'advanced',			group: 'insert',			tools: {				cite: {					type: 'button',					label: 'Cita',					icon: '//upload.wikimedia.org/wikipedia/commons/f/fd/Toolbar_blockquote.png',					action: {						type: 'encapsulate',						options: {							pre: '',							ownline: true						}					}				},				code: {					type: 'button',					label: 'Código',					icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/18/Antu_application-xsd.svg/22px-Antu_application-xsd.svg.png',					action: {						type: 'encapsulate',						options: {							pre: ' '						}					}				},				math: {					type: 'button',					label: 'Fórmula matemática (LaTeX)',					icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/10/Antu_format-text-symbol.svg/22px-Antu_format-text-symbol.svg.png',					action: {						type: 'encapsulate',						options: {							pre: '$$',							peri: 'Escribe aquí una fórmula', post: '$$' }					}				},				line: { type: 'button', label: 'Línea horizontal', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/09/Antu_menu_new_sep.svg/22px-Antu_menu_new_sep.svg.png', action: { type: 'encapsulate', options: { pre: '\n', ownline: true }					}				},				comment: { type: 'button', label: 'Comentario oculto', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d1/VisualEditor_-_Icon_-_Comment.svg/24px-VisualEditor_-_Icon_-_Comment.svg.png', action: { type: 'encapsulate', options: { pre: '' }					}				},				template: { type: 'button', label: 'Plantilla', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Template_alt_full_black_22.svg/22px-Template_alt_full_black_22.svg.png', action: { type: 'encapsulate', options: { pre: '' }					}				},				doublequote: { type: 'button', label: 'Comillas angulares', icon: '//upload.wikimedia.org/wikipedia/commons/a/ac/Norwegian_quote_sign.png', action: { type: 'encapsulate', options: { pre: '«', post: '»' }					}				},				singlequote: { type: 'button', label: 'Comillas inglesas', icon: '//upload.wikimedia.org/wikipedia/commons/c/c6/Quote_toolbar_symbol.png', action: { type: 'encapsulate', options: { pre: '“', post: '”' }					}				},				listaref: { type: 'button', label: 'Sección de referencias', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f9/VisualEditor_-_Icon_-_References.svg/24px-VisualEditor_-_Icon_-_References.svg.png', action: { type: 'callback', execute: function (context) { extraAddReflist; } }				},			}		} );		// misc. buttons:		wpTextbox1.wikiEditor('addToToolbar', { section: 'advanced', group: 'miscelanea', tools: { username: { type: 'button', label: 'Usuario', filters: [ 'body:not(.ns-0, .ns-104)' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Antu_list-resource-add.svg/22px-Antu_list-resource-add.svg.png', action: { type: 'encapsulate', options: { pre: '' }					}				},				unsigned: { type: 'button', label: 'No firmado', filters: [ 'body:not(.ns-104)' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/05/Breezeicons-actions-22-draw-freehand.svg/22px-Breezeicons-actions-22-draw-freehand.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre usuario', post: '' }					}				},				done: { type: 'button', label: 'Hecho', filters: [ 'body:not(.ns-0, .ns-104)' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/85/Antu_games-endturn.svg/22px-Antu_games-endturn.svg.png', action: { type: 'encapsulate', options: { pre: '' }					}				},				preview: { type: 'button', label: 'Previsualizar', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/78/Antu_view-preview.svg/22px-Antu_view-preview.svg.png', action: { type: 'callback', execute: function (context) { extraPreview; } }				},				save: { type: 'button', label: 'Publicar cambios', icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Breezeicons-actions-22-document-save.svg/22px-Breezeicons-actions-22-document-save.svg.png', action: { type: 'callback', execute: function (context) { extraPublish; } }				},			}		} );		// mant. buttons:		wpTextbox1.wikiEditor('addToToolbar', { section: 'advanced', group: 'mantenimiento', tools: { citarequerida: { type: 'button', label: 'Cita requerida', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/c/c3/Toolbar_references2.png', action: { type: 'encapsulate', options: { pre: '' }					}				},				bienvenida: { type: 'button', label: 'Bienvenida', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/3/33/Toolbar_welcome.png', action: { type: 'callback', execute: function (context) { extraWelcome; } }				},				categoria: { type: 'button', label: 'Agregar categoría', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/c/c4/Toolbar_category.png', action: { type: 'callback', execute: function (context) { extraCategory; } }				},				avisocategoria: { type: 'button', label: 'Aviso categorizar', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/c/c4/Toolbar_category.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				desambiguacion: { type: 'button', label: 'Desambiguación', filters: [ 'body.ns-0' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/72/Disambig.svg/25px-Disambig.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				votonulo: { type: 'button', label: 'Voto nulo', filters: [ 'body.ns-1, body.ns-4, body.ns-5, body.ns-11, body.ns-13, body.ns-15, body.ns-101, body.ns-102, body.ns-103, body.ns-105, body.ns-829' ], icon: '//upload.wikimedia.org/wikipedia/commons/6/6c/Toolbar_anular_voto.png', action: { type: 'encapsulate', options: { pre: ': ', peri: 'Voto a anular', post: ' -- ~' }					}				},				avisovotonulo: { type: 'button', label: 'Aviso voto nulo', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/6/6c/Toolbar_anular_voto.png', action: { type: 'encapsulate', options: { pre: ' -- ~', ownline: true }					}				},				traduccion: { type: 'button', label: 'Traducción', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/40/Icono_de_traducción.svg/25px-Icono_de_traducción.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				endesarrollo: { type: 'button', label: 'En desarrollo', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Commons-emblem-Under_construction-green.svg/25px-Commons-emblem-Under_construction-green.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				transferir: { type: 'button', label: 'Transferir', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/27/Commons-emblem-doc.svg/25px-Commons-emblem-doc.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				fusionar: { type: 'button', label: 'Fusionar', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Commons-emblem-merge.svg/25px-Commons-emblem-merge.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				fusionarplantilla: { type: 'button', label: 'Fusionar', filters: [ 'body.ns-10' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Commons-emblem-merge.svg/25px-Commons-emblem-merge.svg.png', action: { type: 'encapsulate', options: { pre: ' ', ownline: true }					}				},				avisoprueba1: { type: 'button', label: 'Aviso prueba 1', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/3/34/Ambox_warning_blue.svg/25px-Ambox_warning_blue.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				avisoprueba2: { type: 'button', label: 'Aviso prueba 2', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/74/Ambox_warning_yellow.svg/25px-Ambox_warning_yellow.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				avisoprueba3: { type: 'button', label: 'Aviso prueba 3', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Ambox_warning_orange.svg/25px-Ambox_warning_orange.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				avisoprueba4: { type: 'button', label: 'Aviso prueba 4', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Ambox_warning_pn.svg/25px-Ambox_warning_pn.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				avisoimagen: { type: 'button', label: 'Aviso imagen retirada', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Unfree_image.svg/25px-Unfree_image.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre de la imagen', post: ' -- ~', ownline: true }					}				},				avisoblanqueodiscu: { type: 'button', label: 'Aviso blanqueo discusión', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/b/ba/Toolbar_supr.png', action: { type: 'encapsulate', options: { pre: ' -- ~', ownline: true }					}				},				referencias: { type: 'button', label: 'Referencias', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/3/34/Toolbar_references.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisoreferencias: { type: 'button', label: 'Aviso referencias', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/3/34/Toolbar_references.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				wikificar: { type: 'button', label: 'Wikificar', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Spanish_Language_Wiki.svg/25px-Spanish_Language_Wiki.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisowikificar: { type: 'button', label: 'Aviso wikificar', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Spanish_Language_Wiki.svg/25px-Spanish_Language_Wiki.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				copyedit: { type: 'button', label: 'Copyedit', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Commons-emblem-copyedit.svg/25px-Commons-emblem-copyedit.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisocopyedit: { type: 'button', label: 'Aviso copyedit', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Commons-emblem-copyedit.svg/25px-Commons-emblem-copyedit.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				noneutralidad: { type: 'button', label: 'No neutral', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c6/Commons-emblem-scales.svg/25px-Commons-emblem-scales.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisononeutralidad: { type: 'button', label: 'Aviso no neutralidad', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c6/Commons-emblem-scales.svg/25px-Commons-emblem-scales.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				maltraducido: { type: 'button', label: 'Mal traducido', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Commons-emblem-question_book_orange.svg/25px-Commons-emblem-question_book_orange.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisomaltraducido: { type: 'button', label: 'Aviso mal traducido', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Commons-emblem-question_book_orange.svg/25px-Commons-emblem-question_book_orange.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				autotrad: { type: 'button', label: 'Autotraducido', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/40/Commons-emblem-question-book-red.svg/25px-Commons-emblem-question-book-red.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisoautotrad: { type: 'button', label: 'Aviso autotrad', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/40/Commons-emblem-question-book-red.svg/25px-Commons-emblem-question-book-red.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				contextualizar: { type: 'button', label: 'Contextualizar', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/16/Commons-emblem-hand.svg/25px-Commons-emblem-hand.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisocontextualizar: { type: 'button', label: 'Aviso contextualizar', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/16/Commons-emblem-hand.svg/25px-Commons-emblem-hand.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				promocional: { type: 'button', label: 'Promocional', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Commons-emblem-scales-red.svg/25px-Commons-emblem-scales-red.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisopromocional: { type: 'button', label: 'Aviso promocional', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Commons-emblem-scales-red.svg/25px-Commons-emblem-scales-red.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				fuenteprimaria: { type: 'button', label: 'Fuente primaria', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d4/Commons-emblem-forbidden-primary-sources.svg/25px-Commons-emblem-forbidden-primary-sources.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisofuenteprimaria: { type: 'button', label: 'Aviso fuente primaria', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d4/Commons-emblem-forbidden-primary-sources.svg/25px-Commons-emblem-forbidden-primary-sources.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				infraesbozo: { type: 'button', label: 'Infraesbozo', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Gnome-emblem-important.svg/25px-Gnome-emblem-important.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisoinfraesbozo: { type: 'button', label: 'Aviso infraesbozo', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Gnome-emblem-important.svg/25px-Gnome-emblem-important.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				sinrelevancia: { type: 'button', label: 'Sin relevancia', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/46/NotCommons-emblem-registered-trademark.svg/25px-NotCommons-emblem-registered-trademark.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisosinrelevancia: { type: 'button', label: 'Aviso sin relevancia', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/46/NotCommons-emblem-registered-trademark.svg/25px-NotCommons-emblem-registered-trademark.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				copyvio: { type: 'button', label: 'Posible copyvio', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Commons-emblem-restricted-permission.svg/25px-Commons-emblem-restricted-permission.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisocopyvio: { type: 'button', label: 'Aviso de posible copyvio', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Commons-emblem-restricted-permission.svg/25px-Commons-emblem-restricted-permission.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				plagio: { type: 'button', label: 'Plagio', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/NotCommons-emblem-copyrighted.svg/25px-NotCommons-emblem-copyrighted.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisoplagio: { type: 'button', label: 'Aviso de plagio', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/NotCommons-emblem-copyrighted.svg/25px-NotCommons-emblem-copyrighted.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				consultaborrado: { type: 'button', label: 'Consulta de borrado', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Help-browser-red.svg/25px-Help-browser-red.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: '', post: '', ownline: true }					}				},				avisoconsultaborrado: { type: 'button', label: 'Aviso de consulta de borrado', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Help-browser-red.svg/25px-Help-browser-red.svg.png', action: { type: 'encapsulate', options: { pre: ' -- ~', ownline: true }					}				},				propb: { type: 'button', label: 'Propuesta de borrado', filters: [ 'body.ns-0, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Commons-emblem-speedy-old.svg/25px-Commons-emblem-speedy-old.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'motivo', post: '', ownline: true }					}				},				avisopropb: { type: 'button', label: 'Aviso de propuesta de borrado', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Commons-emblem-speedy-old.svg/25px-Commons-emblem-speedy-old.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo', post: ' -- ~', ownline: true }					}				},				destruir: { type: 'button', label: 'Borrado rápido', filters: [ 'body.ns-0, body.ns-3, body.ns-104' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Commons-emblem-speedy.svg/25px-Commons-emblem-speedy.svg.png', action: { type: 'encapsulate', options: { pre: '', ownline: true }					}				},				avisodestruir: { type: 'button', label: 'Aviso de borrado rápido', filters: [ 'body.ns-3' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Commons-emblem-speedy.svg/25px-Commons-emblem-speedy.svg.png', action: { type: 'encapsulate', options: { pre: '', peri: 'nombre del artículo -- ~', ownline: true }					}				},			}		} );		if ( $.inArray( 'sysop', mw.config.get( 'wgUserGroups' ) ) > -1 ) {			wpTextbox1.wikiEditor('addToToolbar', { section: 'advanced', group: 'mantenimiento', tools: { archivarconsulta: { type: 'button', label: 'Archivar consulta de borrado', filters: [ 'body.ns-4[class*=page-Wikipedia_Consultas_de_borrado]' ], icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Help-browser-red.svg/25px-Help-browser-red.svg.png', action: { type: 'callback', execute: function (context) { extraArchiveCDB; } }					},				}			} );		}	};

if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) { mw.loader.using( 'user.options' ).then( function {			// This can be the string "0" if the user disabled the preference (T54542)			if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {				$.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar );			}		} );	} }( jQuery, mediaWiki ) ); //