Extensión:ParserMigration
![]() Estado de la versión: estable |
|
---|---|
Implementación | Interfaz de usuario |
Descripción | Brinda una interfaz para migrar el texto de los artículos a las versiones nuevas del analizador sintáctico de MediaWiki |
Autor(es) | |
Última versión | Continuous updates |
Política de compatibilidad | Lanza instantáneas junto con MediaWiki. La rama maestra no es retrocompatible. |
Cambios en la base de datos | No |
Licencia | Creative Commons Zero v1.0 Universal |
Descargar | |
|
|
Descargas trimestrales | 5 (Ranked 79th) |
Traduce la extensión ParserMigration si está disponible en translatewiki.net | |
Incidentes | Tareas abiertas · Reportar un error |
The ParserMigration extension provides an interface for comparing article rendering with a new non-default version of the MediaWiki parser , thus serving as a parser migration tool.
It was deployed on the Wikimedia production cluster until 2018 to compare Tidy-based output with a RemexHTML-based output. RemexHTML was the replacement for Tidy. In 2023 it was redeployed in order to compare legacy wikitext parser output with output generated by the Parsoid wikitext parser.
The availability of the tool can be controlled by a user via the "parsermigration" preference option.
Using the extension
See Help:Extension:ParserMigration and the extension's README file.
Installation
- Descarga y mueve la carpeta
ParserMigration
extraída a tu directorioextensions/
.
Los desarrolladores y contribuidores de código deberían instalar la extensión desde Git en su lugar, usando:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserMigration
- Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
wfLoadExtension( 'ParserMigration' );
Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.
Configuration
This extension adds a dropdown under "Developer tools" at the bottom of the "Editing" options for a user, which allows the user to opt-in, opt-out, or follow the wiki defaults for the use of the Parsoid wikitext parser to render article pages.
If the user chooses to follow the wiki default, the use of Parsoid will be based on two configuration options:
$wgParserMigrationEnableParsoidDiscussionTools
if set to true, will use Parsoid for all pages in the talk namespace, but not for other pages. This is intended for use with the DiscussionTools extension, which is already powered by Parsoid and enabled by default on some wikis.$wgParserMigrationEnableParsoidArticlePages
if set to true, will use Parsoid for all pages in the main article namespace, but not for other pages.
See also
For the 2018-era deployment of the ParserMigration tool, see:
Esta extensión está siendo usada en uno o más proyectos de Wikimedia. Esto significa probablemente que la extensión es estable y funciona lo suficientemente bien como para ser usada en sitios con gran cantidad de visitas. Puedes buscar el nombre de esta extensión en los archivos CommonSettings.php e InitialiseSettings.php de Wikimedia para ver dónde se instala. Encontrarás la lista completa de extensiones instaladas en un wiki en particular en la página Special:Version del wiki. |
Esta extensión está incluida en los siguientes anfitriones/granjas wiki y/o paquetes: No se trata de una lista oficial. Algunas granjas/hosts wiki y/o paquetes pueden tener disponible esta extensión aunque no estén listados aquí. Siempre compruébelo con su anfitrión o granja wiki para confirmarlo. |