commit | 55d2e22c030f4cf79f122f0ce993821dba9f9701 | [log] [tgz] |
---|---|---|
author | Translation updater bot <[email protected]> | Wed Nov 01 09:08:49 2023 +0100 |
committer | Translation updater bot <[email protected]> | Wed Nov 01 09:08:49 2023 +0100 |
tree | c7b095007eba0de3a5f91abd04ebc5bbed3d49df | |
parent | 7141bbf147015148b225eadf42d7660c4a345edd [diff] |
Localisation updates from https://translatewiki.net. Change-Id: Idf7238efa8eb9786bb436142f95b773c17900b09
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 during 2018 to compare Tidy-based output with a RemexHTML-based replacement.
In 2023 it was overhauled to compare legacy parser output with Parsoid output.
Add:
wfLoadExtension( 'ParserMigration' );
to your LocalSettings.php
to enable.
Running npm test
and composer test
will run automated code checks.
This extension adds action=parser-migration
to the MediaWiki action API, which parses a page with two different parser configurations and returns one or both variants in the API response.
It also adds 'Enable parser migration tool' to the list of 'Developer tools' options at the bottom of the 'Editing' options for a user. When this is enabled, an "Edit with migration tool" link is added to the Tools menu in the sidebar for article pages. Clicking this on an article page will bring up a variant of the "preview edit" page which allows you to compare the legacy parser output against Parsoid output.