Extension : ParserMigration

From mediawiki.org
This page is a translated version of the page Extension:ParserMigration and the translation is 18% complete.
Manuel des extensions MediaWiki
ParserMigration
État de la version : stable
Implémentation Interface utilisateur
Description Fournit une interface pour migrer le texte d'article vers de nouvelles versions du parseur MediaWiki
Auteur(s)
Dernière version Continuous updates
Politique de compatibilité Versions ponctuelles alignées avec MediaWiki. Le master n'est pas compatible arrière.
MediaWiki >= 1.42
Modifie la base
de données
Non
Licence Licence Creative Commons Zero v1.0 Universal
Téléchargement
  • $wgParserMigrationEnableParsoidArticlePages
  • $wgParserMigrationEnableQueryString
  • $wgParserMigrationUserNoticeVersion
  • $wgParserMigrationEnableParsoidDiscussionTools
  • $wgParserMigrationUserNoticeDays
Téléchargements trimestriels 16 (Ranked 123rd)
Traduire l’extension ParserMigration sur translatewiki.net si elle y est disponible
Problèmes Tâches ouvertes · Signaler un bogue

The ParserMigration extension was introduced in gerrit:296182. It 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

  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé ParserMigration dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserMigration
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'ParserMigration' );
    
  • This extension also 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 new Parsoid wikitext parser to render article pages.
    "Follow the wiki default" uses Parsoid 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.
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

See also

For the 2018-era deployment of the ParserMigration tool, see: