Jump to content

Help:Extension:ParserMigration

From mediawiki.org
Revision as of 16:30, 10 April 2023 by Cscott (talk | contribs) (Add more screenshots, reorganize.)

The ParserMigration extension allows users to compare the output of the legacy wikitext parser with the latest Parsoid wikitext parser.

Enabling via user preference

This extension adds Enable parser migration tool to the list of Developer tools options at the bottom of the Editing preferences for a user.

User preferences item added by the ParserMigration extension

Comparing article rendering

When this is enabled, an Edit with migration tool link is added to the Tools menu in the sidebar for article pages.

Page tools menu item added by the ParserMigration extension

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.

Parser output comparison page added by the ParserMigration extension

Action API

This extension also 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.

Action API added by the ParserMigration extension