Help:VisualFileChange.js/es
| Esta es la documentación de VisualFileChange, un accesorio escrito en JavaScript para realizar ediciones en masa. El código de la secuencia de órdenes se ubica en MediaWiki:VisualFileChange.js. |
¿Qué es VFC?

VisualFileChange (también conocido como AjaxMassDelete), agrega un enlace "Ejecuta tareas en lote" ( “Perform batch task”) a su caja de herramientas en las páginas wiki. Este enlace permite aplicar acciones a algunos o a todos los archivos en las listas de cargas de usuarios, las categorías o las galerías. Las acciones incluyen la creación de solicitudes de eliminación masiva, la inserción de etiquetas o texto libre y sustituciones de texto personalizadas (se admiten expresiones regulares).
Documentación
See also Help:AjaxQuickDelete para conocer los conceptos básicos de las solicitudes de eliminación automática o “etiquetar archivo y notificar al cargador”.
Paso 0: instalación
Para instalarlo:
- Manualmente: En Preferencias ▸ pestaña Accesorios, sección «Herramientas de mantenimiento»: pulsa en «VisualFileChange», desplázate a la parte inferior de la página y pulsa en «Guardar».
- Automáticamente: pulsa aquí y sigue las instrucciones.
- Si no tiene el derecho autopatrolled: agregue
mw.loader.load( 'ext.gadget.VisualFileChange' );a su common.js o <skin>.js
Ahora debería ver un enlace "Ejecutar tarea por lotes" en su caja de herramientas. Hacer clic en él activará VisualFileChange.
Para cambiar el texto "Ejecutar tarea por lotes", agregue window.vFC_PortletText = '<your new portlet text>'; a your common.js o <skin>.js

Paso 1: inserta colaborador
El programa solicita un contribuidor, un nombre de página o una consulta de búsqueda. Asegúrate de escribirlo correctamente.
Paso 2: seleccionar acción, insertar motivo, sustitución y patrón, etiquetas o texto libre
OTRS-Miembros: primero rellenar el ID o URL y entonces cambiar a OTRS- sacar etiquetas. Con OTRS- añadir puedes añadir cualquier plantilla a la sección de permiso sin sacar speedy-deletion- y relacionado-etiquetas.
Marca «Limpiar sección de permiso» para quitar cualquier contenido que pueda existir en la sección Permiso.
Paso 3: cargar tantos archivos como desees
Solo se modificarán los archivos seleccionados y en el cuadro de diálogo. Para obtener más archivos, desplácese hacia abajo o haga clic en "más". Sin embargo, evite que su navegador se bloquee al cargar demasiados archivos. En lugar de ello, puede continuar donde lo dejó utilizando la opción de "más opciones" en el cuadro de diálogo de inicio o la opción de perfil creado automáticamente.
Paso 4: seleccionar elementos en los que realizar las acciones
There are only items listed, originally uploaded by the specified user.
If there are deleted images, the numbers are discontinuous. Script will detect a lot of problem- and OTRS-tags and common license-types and show them under each thumbnail. Ejemplo


Cute select – Filter loaded files
If you do not specify anything, everything will match and all checkboxes in the thumbnail-dialog will get the state of the one in this dialog.
This allows you both, selecting and deselecting.

- RegExpr /R/
A RegExpr also known as regular expression or regex is a pattern used to match more than one "string" (e.g. the image text or a title).
They can be really helpful anywhere, so, if you are unexperienced don't be lazy and learn them; the earlier, the better.
In the cute selection dialog, insert the RegExpr without flags (they are currently not supported) (Test.*); however when performing a custom replace, insert the RegExpr with flags (/\{\{FlickrView.*\|\d{4}\}\}/ig). Don't forget to escape "special characters".
Please test your RegExpr before using and use the opportunity to examine the changes the current set of replacement rules would cause to avoid undesired replacements.
Puedes utilizar https://regex101.com/ (u otras herramientas similares) para probar tus expresiones regulares.
When using regular expressions, VFC follows the same convention as Perl, PHP, and others that in the replacement string, $0 matches the whole matched string, matches the first parenthesized expression, /[|]\s*[Ss]ource\s*=\s*([^|}]*) on MyCoolWebsite/ the second parenthesized expression, etc. So, for example, the regular expression | Source = {{MyCoolWebsite|$1}}/[|]\s*[Ss]ource\s*=\s*([^|}]*) on MyCoolWebsite/ with a replacement string | Source = {{MyCoolWebsite|$1}} would turn |source=FOO.BAR on MyCoolWebsite</nowiki> into | Source = {{MyCoolWebsite|FOO.BAR}}.
Selección de intervalo. Varios elementos entre dos archivos
Select file A, hold down ⇧ Shift while selecting file B.
All files between the two files now get the state of file B.
Custom replace: Flags
- If
/R/is set, the pattern is treated as a regular expression. If the background behind the button is red, it is very likely that you forgot to tick this button. If the background behind the pattern field is red, you ticked this button but the pattern is not a valid regular expression. - If
%V%is set, VisualFileChange looks for variables (e.g. File metadata like%GPSLatitude%or the file name%PAGENAME%) in "Text to insert instead". Esta opción está activada de manera predeterminada. Ejemplos.
Paso 5: ejecución
La secuencia de órdenes te mostrará la acción que esté realizando en ese momento. Finally it prompts you where to go. Before executing, the script saves your input into an auto-profile. This allows you to continue at the last loaded files. If you re-launch VisualFileChange and insert the same target, a big yellow box will appear. Just click the link for convenient continuing.

Configuración personalizada
VisualFileChange allows you to customize lots of features.
It is not recommended to drastically increase the numbers of files to be loaded when scrolling down but it can be helpful in some cases.
If you send too many simultaneous requests to the API, errors may rise. Users who are not logged in should only send one request at one time.
In case of errors, set "ask for confirmation after ... edits" to less than 8 and wait a while when the dialog prompts you whether to continue.
We regret this limitation but cannot change it because it is on the server side. There are also much more edit restrictions for users who are not logged in.
Para más información
Desarrollo y hallazgo y corrección de defectos
- Informa de cualquier defecto en MediaWiki talk:Gadget-VisualFileChange.js
- diagrama de flujo (desactualizado)